Class CfnMetricStreamMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnMetricStreamMixinProps>
- Enclosing interface:
CfnMetricStreamMixinProps
CfnMetricStreamMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.excludeFilters(List<? extends Object> excludeFilters) Sets the value ofCfnMetricStreamMixinProps.getExcludeFilters()excludeFilters(IResolvable excludeFilters) Sets the value ofCfnMetricStreamMixinProps.getExcludeFilters()firehoseArn(String firehoseArn) Sets the value ofCfnMetricStreamMixinProps.getFirehoseArn()firehoseArn(IDeliveryStreamRef firehoseArn) Sets the value ofCfnMetricStreamMixinProps.getFirehoseArn()includeFilters(List<? extends Object> includeFilters) Sets the value ofCfnMetricStreamMixinProps.getIncludeFilters()includeFilters(IResolvable includeFilters) Sets the value ofCfnMetricStreamMixinProps.getIncludeFilters()includeLinkedAccountsMetrics(Boolean includeLinkedAccountsMetrics) Sets the value ofCfnMetricStreamMixinProps.getIncludeLinkedAccountsMetrics()includeLinkedAccountsMetrics(IResolvable includeLinkedAccountsMetrics) Sets the value ofCfnMetricStreamMixinProps.getIncludeLinkedAccountsMetrics()Sets the value ofCfnMetricStreamMixinProps.getName()outputFormat(String outputFormat) Sets the value ofCfnMetricStreamMixinProps.getOutputFormat()Sets the value ofCfnMetricStreamMixinProps.getRoleArn()Sets the value ofCfnMetricStreamMixinProps.getRoleArn()statisticsConfigurations(List<? extends Object> statisticsConfigurations) Sets the value ofCfnMetricStreamMixinProps.getStatisticsConfigurations()statisticsConfigurations(IResolvable statisticsConfigurations) Sets the value ofCfnMetricStreamMixinProps.getStatisticsConfigurations()Sets the value ofCfnMetricStreamMixinProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
excludeFilters
@Stability(Stable) public CfnMetricStreamMixinProps.Builder excludeFilters(IResolvable excludeFilters) Sets the value ofCfnMetricStreamMixinProps.getExcludeFilters()- 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 specify bothIncludeFiltersandExcludeFiltersin the same metric stream.When you modify the
IncludeFiltersorExcludeFiltersof 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.- Returns:
this
-
excludeFilters
@Stability(Stable) public CfnMetricStreamMixinProps.Builder excludeFilters(List<? extends Object> excludeFilters) Sets the value ofCfnMetricStreamMixinProps.getExcludeFilters()- 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 specify bothIncludeFiltersandExcludeFiltersin the same metric stream.When you modify the
IncludeFiltersorExcludeFiltersof 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.- Returns:
this
-
firehoseArn
Sets the value ofCfnMetricStreamMixinProps.getFirehoseArn()- Parameters:
firehoseArn- The ARN of the Amazon Kinesis Firehose delivery stream to use for this metric stream. This Amazon Kinesis Firehose delivery stream must already exist and must be in the same account as the metric stream.- Returns:
this
-
firehoseArn
@Stability(Stable) public CfnMetricStreamMixinProps.Builder firehoseArn(IDeliveryStreamRef firehoseArn) Sets the value ofCfnMetricStreamMixinProps.getFirehoseArn()- Parameters:
firehoseArn- The ARN of the Amazon Kinesis Firehose delivery stream to use for this metric stream. This Amazon Kinesis Firehose delivery stream must already exist and must be in the same account as the metric stream.- Returns:
this
-
includeFilters
@Stability(Stable) public CfnMetricStreamMixinProps.Builder includeFilters(IResolvable includeFilters) Sets the value ofCfnMetricStreamMixinProps.getIncludeFilters()- Parameters:
includeFilters- If you specify this parameter, the stream sends only the metrics from the metric namespaces that you specify here. You cannot specify bothIncludeFiltersandExcludeFiltersin the same metric stream.When you modify the
IncludeFiltersorExcludeFiltersof 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.- Returns:
this
-
includeFilters
@Stability(Stable) public CfnMetricStreamMixinProps.Builder includeFilters(List<? extends Object> includeFilters) Sets the value ofCfnMetricStreamMixinProps.getIncludeFilters()- Parameters:
includeFilters- If you specify this parameter, the stream sends only the metrics from the metric namespaces that you specify here. You cannot specify bothIncludeFiltersandExcludeFiltersin the same metric stream.When you modify the
IncludeFiltersorExcludeFiltersof 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.- Returns:
this
-
includeLinkedAccountsMetrics
@Stability(Stable) public CfnMetricStreamMixinProps.Builder includeLinkedAccountsMetrics(Boolean includeLinkedAccountsMetrics) Sets the value ofCfnMetricStreamMixinProps.getIncludeLinkedAccountsMetrics()- Parameters:
includeLinkedAccountsMetrics- If you are creating a metric stream in a monitoring account, specifytrueto include metrics from source accounts that are linked to this monitoring account, in the metric stream. The default isfalse.For more information about linking accounts, see CloudWatch cross-account observability
- Returns:
this
-
includeLinkedAccountsMetrics
@Stability(Stable) public CfnMetricStreamMixinProps.Builder includeLinkedAccountsMetrics(IResolvable includeLinkedAccountsMetrics) Sets the value ofCfnMetricStreamMixinProps.getIncludeLinkedAccountsMetrics()- Parameters:
includeLinkedAccountsMetrics- If you are creating a metric stream in a monitoring account, specifytrueto include metrics from source accounts that are linked to this monitoring account, in the metric stream. The default isfalse.For more information about linking accounts, see CloudWatch cross-account observability
- Returns:
this
-
name
Sets the value ofCfnMetricStreamMixinProps.getName()- 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.
- Returns:
this
-
outputFormat
Sets the value ofCfnMetricStreamMixinProps.getOutputFormat()- Parameters:
outputFormat- The output format for the stream. Valid values arejson,opentelemetry1.0andopentelemetry0.7For more information about metric stream output formats, see Metric streams output formats .This parameter is required.
- Returns:
this
-
roleArn
Sets the value ofCfnMetricStreamMixinProps.getRoleArn()- Parameters:
roleArn- The ARN of an IAM role that this metric stream will use to access Amazon Kinesis Firehose resources. This IAM role must already exist and must be in the same account as the metric stream. This IAM role must include thefirehose:PutRecordandfirehose:PutRecordBatchpermissions.- Returns:
this
-
roleArn
Sets the value ofCfnMetricStreamMixinProps.getRoleArn()- Parameters:
roleArn- The ARN of an IAM role that this metric stream will use to access Amazon Kinesis Firehose resources. This IAM role must already exist and must be in the same account as the metric stream. This IAM role must include thefirehose:PutRecordandfirehose:PutRecordBatchpermissions.- Returns:
this
-
statisticsConfigurations
@Stability(Stable) public CfnMetricStreamMixinProps.Builder statisticsConfigurations(IResolvable statisticsConfigurations) Sets the value ofCfnMetricStreamMixinProps.getStatisticsConfigurations()- Parameters:
statisticsConfigurations- By default, a metric stream always sends the MAX, MIN, SUM, and SAMPLECOUNT 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 theOutputFormatisjson, you can stream any additional statistic that is supported by CloudWatch , listed in CloudWatch statistics definitions . If theOutputFormatis OpenTelemetry, you can stream percentile statistics.- Returns:
this
-
statisticsConfigurations
@Stability(Stable) public CfnMetricStreamMixinProps.Builder statisticsConfigurations(List<? extends Object> statisticsConfigurations) Sets the value ofCfnMetricStreamMixinProps.getStatisticsConfigurations()- Parameters:
statisticsConfigurations- By default, a metric stream always sends the MAX, MIN, SUM, and SAMPLECOUNT 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 theOutputFormatisjson, you can stream any additional statistic that is supported by CloudWatch , listed in CloudWatch statistics definitions . If theOutputFormatis OpenTelemetry, you can stream percentile statistics.- Returns:
this
-
tags
Sets the value ofCfnMetricStreamMixinProps.getTags()- Parameters:
tags- An array of key-value pairs to apply to the metric stream. For more information, see Tag .- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnMetricStreamMixinProps>- Returns:
- a new instance of
CfnMetricStreamMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-