Interface PutMetricStreamRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CloudWatchRequest.Builder
,CopyableBuilder<PutMetricStreamRequest.Builder,
,PutMetricStreamRequest> SdkBuilder<PutMetricStreamRequest.Builder,
,PutMetricStreamRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
PutMetricStreamRequest
-
Method Summary
Modifier and TypeMethodDescriptionexcludeFilters
(Collection<MetricStreamFilter> excludeFilters) If you specify this parameter, the stream sends metrics from all metric namespaces except for the namespaces that you specify here.excludeFilters
(Consumer<MetricStreamFilter.Builder>... excludeFilters) If you specify this parameter, the stream sends metrics from all metric namespaces except for the namespaces that you specify here.excludeFilters
(MetricStreamFilter... excludeFilters) If you specify this parameter, the stream sends metrics from all metric namespaces except for the namespaces that you specify here.firehoseArn
(String firehoseArn) The ARN of the Amazon Kinesis Data Firehose delivery stream to use for this metric stream.includeFilters
(Collection<MetricStreamFilter> includeFilters) If you specify this parameter, the stream sends only the metrics from the metric namespaces that you specify here.includeFilters
(Consumer<MetricStreamFilter.Builder>... includeFilters) If you specify this parameter, the stream sends only the metrics from the metric namespaces that you specify here.includeFilters
(MetricStreamFilter... includeFilters) If you specify this parameter, the stream sends only the metrics from the metric namespaces that you specify here.includeLinkedAccountsMetrics
(Boolean includeLinkedAccountsMetrics) If you are creating a metric stream in a monitoring account, specifytrue
to include metrics from source accounts in the metric stream.If you are creating a new metric stream, this is the name for the new stream.outputFormat
(String outputFormat) The output format for the stream.outputFormat
(MetricStreamOutputFormat outputFormat) The output format for the stream.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.The ARN of an IAM role that this metric stream will use to access Amazon Kinesis Data Firehose resources.statisticsConfigurations
(Collection<MetricStreamStatisticsConfiguration> statisticsConfigurations) By default, a metric stream always sends theMAX
,MIN
,SUM
, andSAMPLECOUNT
statistics for each metric that is streamed.statisticsConfigurations
(Consumer<MetricStreamStatisticsConfiguration.Builder>... statisticsConfigurations) By default, a metric stream always sends theMAX
,MIN
,SUM
, andSAMPLECOUNT
statistics for each metric that is streamed.statisticsConfigurations
(MetricStreamStatisticsConfiguration... statisticsConfigurations) By default, a metric stream always sends theMAX
,MIN
,SUM
, andSAMPLECOUNT
statistics for each metric that is streamed.tags
(Collection<Tag> tags) A list of key-value pairs to associate with the metric stream.tags
(Consumer<Tag.Builder>... tags) A list of key-value pairs to associate with the metric stream.A list of key-value pairs to associate with the metric stream.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
Methods inherited from interface software.amazon.awssdk.services.cloudwatch.model.CloudWatchRequest.Builder
build
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
name
If you are creating a new metric stream, this is the name for the new stream. The name must be different than the names of other metric streams in this account and Region.
If you are updating a metric stream, specify the name of that stream here.
Valid characters are A-Z, a-z, 0-9, "-" and "_".
- Parameters:
name
- If you are creating a new metric stream, this is the name for the new stream. The name must be different than the names of other metric streams in this account and Region.If you are updating a metric stream, specify the name of that stream here.
Valid characters are A-Z, a-z, 0-9, "-" and "_".
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
includeFilters
If you specify this parameter, the stream sends only the metrics from the metric namespaces that you specify here.
You cannot include
IncludeFilters
andExcludeFilters
in the same operation.- Parameters:
includeFilters
- If you specify this parameter, the stream sends only the metrics from the metric namespaces that you specify here.You cannot include
IncludeFilters
andExcludeFilters
in the same operation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
includeFilters
If you specify this parameter, the stream sends only the metrics from the metric namespaces that you specify here.
You cannot include
IncludeFilters
andExcludeFilters
in the same operation.- Parameters:
includeFilters
- If you specify this parameter, the stream sends only the metrics from the metric namespaces that you specify here.You cannot include
IncludeFilters
andExcludeFilters
in the same operation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
includeFilters
PutMetricStreamRequest.Builder includeFilters(Consumer<MetricStreamFilter.Builder>... includeFilters) If you specify this parameter, the stream sends only the metrics from the metric namespaces that you specify here.
You cannot include
This is a convenience method that creates an instance of theIncludeFilters
andExcludeFilters
in the same operation.MetricStreamFilter.Builder
avoiding the need to create one manually viaMetricStreamFilter.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toincludeFilters(List<MetricStreamFilter>)
.- Parameters:
includeFilters
- a consumer that will call methods onMetricStreamFilter.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
excludeFilters
If you specify this parameter, the stream sends metrics from all metric namespaces except for the namespaces that you specify here.
You cannot include
ExcludeFilters
andIncludeFilters
in the same operation.- Parameters:
excludeFilters
- If you specify this parameter, the stream sends metrics from all metric namespaces except for the namespaces that you specify here.You cannot include
ExcludeFilters
andIncludeFilters
in the same operation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
excludeFilters
If you specify this parameter, the stream sends metrics from all metric namespaces except for the namespaces that you specify here.
You cannot include
ExcludeFilters
andIncludeFilters
in the same operation.- Parameters:
excludeFilters
- If you specify this parameter, the stream sends metrics from all metric namespaces except for the namespaces that you specify here.You cannot include
ExcludeFilters
andIncludeFilters
in the same operation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
excludeFilters
PutMetricStreamRequest.Builder excludeFilters(Consumer<MetricStreamFilter.Builder>... excludeFilters) If you specify this parameter, the stream sends metrics from all metric namespaces except for the namespaces that you specify here.
You cannot include
This is a convenience method that creates an instance of theExcludeFilters
andIncludeFilters
in the same operation.MetricStreamFilter.Builder
avoiding the need to create one manually viaMetricStreamFilter.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toexcludeFilters(List<MetricStreamFilter>)
.- Parameters:
excludeFilters
- a consumer that will call methods onMetricStreamFilter.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
firehoseArn
The ARN of the Amazon Kinesis Data Firehose delivery stream to use for this metric stream. This Amazon Kinesis Data Firehose delivery stream must already exist and must be in the same account as the metric stream.
- Parameters:
firehoseArn
- The ARN of the Amazon Kinesis Data Firehose delivery stream to use for this metric stream. This Amazon Kinesis Data Firehose delivery stream must already exist and must be in the same account as the metric stream.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
roleArn
The ARN of an IAM role that this metric stream will use to access Amazon Kinesis Data Firehose resources. This IAM role must already exist and must be in the same account as the metric stream. This IAM role must include the following permissions:
-
firehose:PutRecord
-
firehose:PutRecordBatch
- Parameters:
roleArn
- The ARN of an IAM role that this metric stream will use to access Amazon Kinesis Data Firehose resources. This IAM role must already exist and must be in the same account as the metric stream. This IAM role must include the following permissions:-
firehose:PutRecord
-
firehose:PutRecordBatch
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
outputFormat
The output format for the stream. Valid values are
json
andopentelemetry0.7
. For more information about metric stream output formats, see Metric streams output formats.- Parameters:
outputFormat
- The output format for the stream. Valid values arejson
andopentelemetry0.7
. For more information about metric stream output formats, see Metric streams output formats.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
outputFormat
The output format for the stream. Valid values are
json
andopentelemetry0.7
. For more information about metric stream output formats, see Metric streams output formats.- Parameters:
outputFormat
- The output format for the stream. Valid values arejson
andopentelemetry0.7
. For more information about metric stream output formats, see Metric streams output formats.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
tags
A list of key-value pairs to associate with the metric stream. You can associate as many as 50 tags with a metric stream.
Tags can help you organize and categorize your resources. You can also use them to scope user permissions by granting a user permission to access or change only resources with certain tag values.
You can use this parameter only when you are creating a new metric stream. If you are using this operation to update an existing metric stream, any tags you specify in this parameter are ignored. To change the tags of an existing metric stream, use TagResource or UntagResource.
- Parameters:
tags
- A list of key-value pairs to associate with the metric stream. You can associate as many as 50 tags with a metric stream.Tags can help you organize and categorize your resources. You can also use them to scope user permissions by granting a user permission to access or change only resources with certain tag values.
You can use this parameter only when you are creating a new metric stream. If you are using this operation to update an existing metric stream, any tags you specify in this parameter are ignored. To change the tags of an existing metric stream, use TagResource or UntagResource.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
A list of key-value pairs to associate with the metric stream. You can associate as many as 50 tags with a metric stream.
Tags can help you organize and categorize your resources. You can also use them to scope user permissions by granting a user permission to access or change only resources with certain tag values.
You can use this parameter only when you are creating a new metric stream. If you are using this operation to update an existing metric stream, any tags you specify in this parameter are ignored. To change the tags of an existing metric stream, use TagResource or UntagResource.
- Parameters:
tags
- A list of key-value pairs to associate with the metric stream. You can associate as many as 50 tags with a metric stream.Tags can help you organize and categorize your resources. You can also use them to scope user permissions by granting a user permission to access or change only resources with certain tag values.
You can use this parameter only when you are creating a new metric stream. If you are using this operation to update an existing metric stream, any tags you specify in this parameter are ignored. To change the tags of an existing metric stream, use TagResource or UntagResource.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
A list of key-value pairs to associate with the metric stream. You can associate as many as 50 tags with a metric stream.
Tags can help you organize and categorize your resources. You can also use them to scope user permissions by granting a user permission to access or change only resources with certain tag values.
You can use this parameter only when you are creating a new metric stream. If you are using this operation to update an existing metric stream, any tags you specify in this parameter are ignored. To change the tags of an existing metric stream, use TagResource or UntagResource.
This is a convenience method that creates an instance of theTag.Builder
avoiding the need to create one manually viaTag.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totags(List<Tag>)
.- Parameters:
tags
- a consumer that will call methods onTag.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
statisticsConfigurations
PutMetricStreamRequest.Builder statisticsConfigurations(Collection<MetricStreamStatisticsConfiguration> statisticsConfigurations) By default, a metric stream always sends the
MAX
,MIN
,SUM
, andSAMPLECOUNT
statistics for each metric that is streamed. You can use this parameter to have the metric stream also send additional statistics in the stream. This array can have up to 100 members.For each entry in this array, you specify one or more metrics and the list of additional statistics to stream for those metrics. The additional statistics that you can stream depend on the stream's
OutputFormat
. If theOutputFormat
isjson
, you can stream any additional statistic that is supported by CloudWatch, listed in CloudWatch statistics definitions. If theOutputFormat
isopentelemetry0.7
, you can stream percentile statistics such as p95, p99.9, and so on.- Parameters:
statisticsConfigurations
- By default, a metric stream always sends theMAX
,MIN
,SUM
, andSAMPLECOUNT
statistics for each metric that is streamed. You can use this parameter to have the metric stream also send additional statistics in the stream. This array can have up to 100 members.For each entry in this array, you specify one or more metrics and the list of additional statistics to stream for those metrics. The additional statistics that you can stream depend on the stream's
OutputFormat
. If theOutputFormat
isjson
, you can stream any additional statistic that is supported by CloudWatch, listed in CloudWatch statistics definitions. If theOutputFormat
isopentelemetry0.7
, you can stream percentile statistics such as p95, p99.9, and so on.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
statisticsConfigurations
PutMetricStreamRequest.Builder statisticsConfigurations(MetricStreamStatisticsConfiguration... statisticsConfigurations) By default, a metric stream always sends the
MAX
,MIN
,SUM
, andSAMPLECOUNT
statistics for each metric that is streamed. You can use this parameter to have the metric stream also send additional statistics in the stream. This array can have up to 100 members.For each entry in this array, you specify one or more metrics and the list of additional statistics to stream for those metrics. The additional statistics that you can stream depend on the stream's
OutputFormat
. If theOutputFormat
isjson
, you can stream any additional statistic that is supported by CloudWatch, listed in CloudWatch statistics definitions. If theOutputFormat
isopentelemetry0.7
, you can stream percentile statistics such as p95, p99.9, and so on.- Parameters:
statisticsConfigurations
- By default, a metric stream always sends theMAX
,MIN
,SUM
, andSAMPLECOUNT
statistics for each metric that is streamed. You can use this parameter to have the metric stream also send additional statistics in the stream. This array can have up to 100 members.For each entry in this array, you specify one or more metrics and the list of additional statistics to stream for those metrics. The additional statistics that you can stream depend on the stream's
OutputFormat
. If theOutputFormat
isjson
, you can stream any additional statistic that is supported by CloudWatch, listed in CloudWatch statistics definitions. If theOutputFormat
isopentelemetry0.7
, you can stream percentile statistics such as p95, p99.9, and so on.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
statisticsConfigurations
PutMetricStreamRequest.Builder statisticsConfigurations(Consumer<MetricStreamStatisticsConfiguration.Builder>... statisticsConfigurations) By default, a metric stream always sends the
MAX
,MIN
,SUM
, andSAMPLECOUNT
statistics for each metric that is streamed. You can use this parameter to have the metric stream also send additional statistics in the stream. This array can have up to 100 members.For each entry in this array, you specify one or more metrics and the list of additional statistics to stream for those metrics. The additional statistics that you can stream depend on the stream's
This is a convenience method that creates an instance of theOutputFormat
. If theOutputFormat
isjson
, you can stream any additional statistic that is supported by CloudWatch, listed in CloudWatch statistics definitions. If theOutputFormat
isopentelemetry0.7
, you can stream percentile statistics such as p95, p99.9, and so on.MetricStreamStatisticsConfiguration.Builder
avoiding the need to create one manually viaMetricStreamStatisticsConfiguration.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tostatisticsConfigurations(List<MetricStreamStatisticsConfiguration>)
.- Parameters:
statisticsConfigurations
- a consumer that will call methods onMetricStreamStatisticsConfiguration.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
includeLinkedAccountsMetrics
If you are creating a metric stream in a monitoring account, specify
true
to include metrics from source accounts in the metric stream.- Parameters:
includeLinkedAccountsMetrics
- If you are creating a metric stream in a monitoring account, specifytrue
to include metrics from source accounts in the metric stream.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
PutMetricStreamRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
PutMetricStreamRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-