@Stability(value=Stable) public static final class CfnMetricStream.Builder extends Object implements software.amazon.jsii.Builder<CfnMetricStream>
CfnMetricStream.| Modifier and Type | Method and Description |
|---|---|
CfnMetricStream |
build() |
static CfnMetricStream.Builder |
create(software.constructs.Construct scope,
String id) |
CfnMetricStream.Builder |
excludeFilters(IResolvable excludeFilters)
If you specify this parameter, the stream sends metrics from all metric namespaces except for the namespaces that you specify here.
|
CfnMetricStream.Builder |
excludeFilters(List<? extends Object> excludeFilters)
If you specify this parameter, the stream sends metrics from all metric namespaces except for the namespaces that you specify here.
|
CfnMetricStream.Builder |
firehoseArn(String firehoseArn)
The ARN of the Amazon Kinesis Firehose delivery stream to use for this metric stream.
|
CfnMetricStream.Builder |
includeFilters(IResolvable includeFilters)
If you specify this parameter, the stream sends only the metrics from the metric namespaces that you specify here.
|
CfnMetricStream.Builder |
includeFilters(List<? extends Object> includeFilters)
If you specify this parameter, the stream sends only the metrics from the metric namespaces that you specify here.
|
CfnMetricStream.Builder |
name(String name)
If you are creating a new metric stream, this is the name for the new stream.
|
CfnMetricStream.Builder |
outputFormat(String outputFormat)
The output format for the stream.
|
CfnMetricStream.Builder |
roleArn(String roleArn)
The ARN of an IAM role that this metric stream will use to access Amazon Kinesis Firehose resources.
|
CfnMetricStream.Builder |
statisticsConfigurations(IResolvable statisticsConfigurations)
By default, a metric stream always sends the MAX, MIN, SUM, and SAMPLECOUNT statistics for each metric that is streamed.
|
CfnMetricStream.Builder |
statisticsConfigurations(List<? extends Object> statisticsConfigurations)
By default, a metric stream always sends the MAX, MIN, SUM, and SAMPLECOUNT statistics for each metric that is streamed.
|
CfnMetricStream.Builder |
tags(List<? extends CfnTag> tags)
An array of key-value pairs to apply to the metric stream.
|
@Stability(value=Stable) public static CfnMetricStream.Builder create(software.constructs.Construct scope, String id)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.CfnMetricStream.MetricStreamFilterProperty.Builder.@Stability(value=Stable) public CfnMetricStream.Builder firehoseArn(String firehoseArn)
This Amazon Kinesis Firehose delivery stream must already exist and must be in the same account as the metric stream.
firehoseArn - The ARN of the Amazon Kinesis Firehose delivery stream to use for this metric stream. This parameter is required.this@Stability(value=Stable) public CfnMetricStream.Builder outputFormat(String outputFormat)
Valid values are json and opentelemetry0.7 For more information about metric stream output formats, see Metric streams output formats .
This parameter is required.
outputFormat - The output format for the stream. This parameter is required.this@Stability(value=Stable) public CfnMetricStream.Builder roleArn(String roleArn)
This IAM role must already exist and must be in the same account as the metric stream. This IAM role must include the firehose:PutRecord and firehose:PutRecordBatch permissions.
roleArn - The ARN of an IAM role that this metric stream will use to access Amazon Kinesis Firehose resources. This parameter is required.this@Stability(value=Stable) public CfnMetricStream.Builder excludeFilters(IResolvable excludeFilters)
You cannot specify both IncludeFilters and ExcludeFilters in the same metric stream.
When you modify the IncludeFilters or ExcludeFilters of an existing metric stream in any way, the metric stream is effectively restarted, so after such a change you will get only the datapoints that have a timestamp after the time of the update.
excludeFilters - If you specify this parameter, the stream sends metrics from all metric namespaces except for the namespaces that you specify here. This parameter is required.this@Stability(value=Stable) public CfnMetricStream.Builder excludeFilters(List<? extends Object> excludeFilters)
You cannot specify both IncludeFilters and ExcludeFilters in the same metric stream.
When you modify the IncludeFilters or ExcludeFilters of an existing metric stream in any way, the metric stream is effectively restarted, so after such a change you will get only the datapoints that have a timestamp after the time of the update.
excludeFilters - If you specify this parameter, the stream sends metrics from all metric namespaces except for the namespaces that you specify here. This parameter is required.this@Stability(value=Stable) public CfnMetricStream.Builder includeFilters(IResolvable includeFilters)
You cannot specify both IncludeFilters and ExcludeFilters in the same metric stream.
When you modify the IncludeFilters or ExcludeFilters of an existing metric stream in any way, the metric stream is effectively restarted, so after such a change you will get only the datapoints that have a timestamp after the time of the update.
includeFilters - If you specify this parameter, the stream sends only the metrics from the metric namespaces that you specify here. This parameter is required.this@Stability(value=Stable) public CfnMetricStream.Builder includeFilters(List<? extends Object> includeFilters)
You cannot specify both IncludeFilters and ExcludeFilters in the same metric stream.
When you modify the IncludeFilters or ExcludeFilters of an existing metric stream in any way, the metric stream is effectively restarted, so after such a change you will get only the datapoints that have a timestamp after the time of the update.
includeFilters - If you specify this parameter, the stream sends only the metrics from the metric namespaces that you specify here. This parameter is required.this@Stability(value=Stable) public CfnMetricStream.Builder name(String name)
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.
name - If you are creating a new metric stream, this is the name for the new stream. This parameter is required.this@Stability(value=Stable) public CfnMetricStream.Builder statisticsConfigurations(IResolvable statisticsConfigurations)
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 the OutputFormat is json , you can stream any additional statistic that is supported by CloudWatch , listed in CloudWatch statistics definitions . If the OutputFormat is opentelemetry0 .7, you can stream percentile statistics (p??) .
statisticsConfigurations - By default, a metric stream always sends the MAX, MIN, SUM, and SAMPLECOUNT statistics for each metric that is streamed. This parameter is required.this@Stability(value=Stable) public CfnMetricStream.Builder statisticsConfigurations(List<? extends Object> statisticsConfigurations)
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 the OutputFormat is json , you can stream any additional statistic that is supported by CloudWatch , listed in CloudWatch statistics definitions . If the OutputFormat is opentelemetry0 .7, you can stream percentile statistics (p??) .
statisticsConfigurations - By default, a metric stream always sends the MAX, MIN, SUM, and SAMPLECOUNT statistics for each metric that is streamed. This parameter is required.this@Stability(value=Stable) public CfnMetricStream.Builder tags(List<? extends CfnTag> tags)
For more information, see Tag .
tags - An array of key-value pairs to apply to the metric stream. This parameter is required.this@Stability(value=Stable) public CfnMetricStream build()
build in interface software.amazon.jsii.Builder<CfnMetricStream>Copyright © 2022. All rights reserved.