Class MetricStreamState.Builder

  • Enclosing class:
    MetricStreamState

    public static final class MetricStreamState.Builder
    extends java.lang.Object
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • arn

        public MetricStreamState.Builder arn​(@Nullable
                                             com.pulumi.core.Output<java.lang.String> arn)
        Parameters:
        arn - ARN of the metric stream.
        Returns:
        builder
      • arn

        public MetricStreamState.Builder arn​(java.lang.String arn)
        Parameters:
        arn - ARN of the metric stream.
        Returns:
        builder
      • creationDate

        public MetricStreamState.Builder creationDate​(@Nullable
                                                      com.pulumi.core.Output<java.lang.String> creationDate)
        Parameters:
        creationDate - Date and time in [RFC3339 format](https://tools.ietf.org/html/rfc3339#section-5.8) that the metric stream was created.
        Returns:
        builder
      • creationDate

        public MetricStreamState.Builder creationDate​(java.lang.String creationDate)
        Parameters:
        creationDate - Date and time in [RFC3339 format](https://tools.ietf.org/html/rfc3339#section-5.8) that the metric stream was created.
        Returns:
        builder
      • excludeFilters

        public MetricStreamState.Builder excludeFilters​(@Nullable
                                                        com.pulumi.core.Output<java.util.List<MetricStreamExcludeFilterArgs>> excludeFilters)
        Parameters:
        excludeFilters - List of exclusive metric filters. If you specify this parameter, the stream sends metrics from all metric namespaces except for the namespaces and the conditional metric names that you specify here. If you don't specify metric names or provide empty metric names whole metric namespace is excluded. Conflicts with `include_filter`.
        Returns:
        builder
      • excludeFilters

        public MetricStreamState.Builder excludeFilters​(java.util.List<MetricStreamExcludeFilterArgs> excludeFilters)
        Parameters:
        excludeFilters - List of exclusive metric filters. If you specify this parameter, the stream sends metrics from all metric namespaces except for the namespaces and the conditional metric names that you specify here. If you don't specify metric names or provide empty metric names whole metric namespace is excluded. Conflicts with `include_filter`.
        Returns:
        builder
      • excludeFilters

        public MetricStreamState.Builder excludeFilters​(MetricStreamExcludeFilterArgs... excludeFilters)
        Parameters:
        excludeFilters - List of exclusive metric filters. If you specify this parameter, the stream sends metrics from all metric namespaces except for the namespaces and the conditional metric names that you specify here. If you don't specify metric names or provide empty metric names whole metric namespace is excluded. Conflicts with `include_filter`.
        Returns:
        builder
      • firehoseArn

        public MetricStreamState.Builder firehoseArn​(@Nullable
                                                     com.pulumi.core.Output<java.lang.String> firehoseArn)
        Parameters:
        firehoseArn - ARN of the Amazon Kinesis Firehose delivery stream to use for this metric stream.
        Returns:
        builder
      • firehoseArn

        public MetricStreamState.Builder firehoseArn​(java.lang.String firehoseArn)
        Parameters:
        firehoseArn - ARN of the Amazon Kinesis Firehose delivery stream to use for this metric stream.
        Returns:
        builder
      • includeFilters

        public MetricStreamState.Builder includeFilters​(@Nullable
                                                        com.pulumi.core.Output<java.util.List<MetricStreamIncludeFilterArgs>> includeFilters)
        Parameters:
        includeFilters - List of inclusive metric filters. If you specify this parameter, the stream sends only the conditional metric names from the metric namespaces that you specify here. If you don't specify metric names or provide empty metric names whole metric namespace is included. Conflicts with `exclude_filter`.
        Returns:
        builder
      • includeFilters

        public MetricStreamState.Builder includeFilters​(java.util.List<MetricStreamIncludeFilterArgs> includeFilters)
        Parameters:
        includeFilters - List of inclusive metric filters. If you specify this parameter, the stream sends only the conditional metric names from the metric namespaces that you specify here. If you don't specify metric names or provide empty metric names whole metric namespace is included. Conflicts with `exclude_filter`.
        Returns:
        builder
      • includeFilters

        public MetricStreamState.Builder includeFilters​(MetricStreamIncludeFilterArgs... includeFilters)
        Parameters:
        includeFilters - List of inclusive metric filters. If you specify this parameter, the stream sends only the conditional metric names from the metric namespaces that you specify here. If you don't specify metric names or provide empty metric names whole metric namespace is included. Conflicts with `exclude_filter`.
        Returns:
        builder
      • includeLinkedAccountsMetrics

        public MetricStreamState.Builder includeLinkedAccountsMetrics​(@Nullable
                                                                      com.pulumi.core.Output<java.lang.Boolean> includeLinkedAccountsMetrics)
        Parameters:
        includeLinkedAccountsMetrics - If you are creating a metric stream in a monitoring account, specify true to include metrics from source accounts that are linked to this monitoring account, in the metric stream. The default is false. For more information about linking accounts, see [CloudWatch cross-account observability](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-Unified-Cross-Account.html).
        Returns:
        builder
      • includeLinkedAccountsMetrics

        public MetricStreamState.Builder includeLinkedAccountsMetrics​(java.lang.Boolean includeLinkedAccountsMetrics)
        Parameters:
        includeLinkedAccountsMetrics - If you are creating a metric stream in a monitoring account, specify true to include metrics from source accounts that are linked to this monitoring account, in the metric stream. The default is false. For more information about linking accounts, see [CloudWatch cross-account observability](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-Unified-Cross-Account.html).
        Returns:
        builder
      • lastUpdateDate

        public MetricStreamState.Builder lastUpdateDate​(@Nullable
                                                        com.pulumi.core.Output<java.lang.String> lastUpdateDate)
        Parameters:
        lastUpdateDate - Date and time in [RFC3339 format](https://tools.ietf.org/html/rfc3339#section-5.8) that the metric stream was last updated.
        Returns:
        builder
      • lastUpdateDate

        public MetricStreamState.Builder lastUpdateDate​(java.lang.String lastUpdateDate)
        Parameters:
        lastUpdateDate - Date and time in [RFC3339 format](https://tools.ietf.org/html/rfc3339#section-5.8) that the metric stream was last updated.
        Returns:
        builder
      • name

        public MetricStreamState.Builder name​(@Nullable
                                              com.pulumi.core.Output<java.lang.String> name)
        Parameters:
        name - Friendly name of the metric stream. If omitted, the provider will assign a random, unique name. Conflicts with `name_prefix`.
        Returns:
        builder
      • name

        public MetricStreamState.Builder name​(java.lang.String name)
        Parameters:
        name - Friendly name of the metric stream. If omitted, the provider will assign a random, unique name. Conflicts with `name_prefix`.
        Returns:
        builder
      • namePrefix

        public MetricStreamState.Builder namePrefix​(@Nullable
                                                    com.pulumi.core.Output<java.lang.String> namePrefix)
        Parameters:
        namePrefix - Creates a unique friendly name beginning with the specified prefix. Conflicts with `name`.
        Returns:
        builder
      • namePrefix

        public MetricStreamState.Builder namePrefix​(java.lang.String namePrefix)
        Parameters:
        namePrefix - Creates a unique friendly name beginning with the specified prefix. Conflicts with `name`.
        Returns:
        builder
      • outputFormat

        public MetricStreamState.Builder outputFormat​(@Nullable
                                                      com.pulumi.core.Output<java.lang.String> outputFormat)
        Parameters:
        outputFormat - Output format for the stream. Possible values are `json`, `opentelemetry0.7`, and `opentelemetry1.0`. For more information about output formats, see [Metric streams output formats](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-metric-streams-formats.html). The following arguments are optional:
        Returns:
        builder
      • outputFormat

        public MetricStreamState.Builder outputFormat​(java.lang.String outputFormat)
        Parameters:
        outputFormat - Output format for the stream. Possible values are `json`, `opentelemetry0.7`, and `opentelemetry1.0`. For more information about output formats, see [Metric streams output formats](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-metric-streams-formats.html). The following arguments are optional:
        Returns:
        builder
      • roleArn

        public MetricStreamState.Builder roleArn​(@Nullable
                                                 com.pulumi.core.Output<java.lang.String> roleArn)
        Parameters:
        roleArn - ARN of the IAM role that this metric stream will use to access Amazon Kinesis Firehose resources. For more information about role permissions, see [Trust between CloudWatch and Kinesis Data Firehose](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-metric-streams-trustpolicy.html).
        Returns:
        builder
      • roleArn

        public MetricStreamState.Builder roleArn​(java.lang.String roleArn)
        Parameters:
        roleArn - ARN of the IAM role that this metric stream will use to access Amazon Kinesis Firehose resources. For more information about role permissions, see [Trust between CloudWatch and Kinesis Data Firehose](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-metric-streams-trustpolicy.html).
        Returns:
        builder
      • state

        public MetricStreamState.Builder state​(@Nullable
                                               com.pulumi.core.Output<java.lang.String> state)
        Parameters:
        state - State of the metric stream. Possible values are `running` and `stopped`.
        Returns:
        builder
      • state

        public MetricStreamState.Builder state​(java.lang.String state)
        Parameters:
        state - State of the metric stream. Possible values are `running` and `stopped`.
        Returns:
        builder
      • statisticsConfigurations

        public MetricStreamState.Builder statisticsConfigurations​(@Nullable
                                                                  com.pulumi.core.Output<java.util.List<MetricStreamStatisticsConfigurationArgs>> statisticsConfigurations)
        Parameters:
        statisticsConfigurations - 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 `output_format`. If the OutputFormat is `json`, you can stream any additional statistic that is supported by CloudWatch, listed in [CloudWatch statistics definitions](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Statistics-definitions.html.html). If the OutputFormat is `opentelemetry0.7` or `opentelemetry1.0`, you can stream percentile statistics (p99 etc.). See details below.
        Returns:
        builder
      • statisticsConfigurations

        public MetricStreamState.Builder statisticsConfigurations​(java.util.List<MetricStreamStatisticsConfigurationArgs> statisticsConfigurations)
        Parameters:
        statisticsConfigurations - 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 `output_format`. If the OutputFormat is `json`, you can stream any additional statistic that is supported by CloudWatch, listed in [CloudWatch statistics definitions](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Statistics-definitions.html.html). If the OutputFormat is `opentelemetry0.7` or `opentelemetry1.0`, you can stream percentile statistics (p99 etc.). See details below.
        Returns:
        builder
      • statisticsConfigurations

        public MetricStreamState.Builder statisticsConfigurations​(MetricStreamStatisticsConfigurationArgs... statisticsConfigurations)
        Parameters:
        statisticsConfigurations - 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 `output_format`. If the OutputFormat is `json`, you can stream any additional statistic that is supported by CloudWatch, listed in [CloudWatch statistics definitions](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Statistics-definitions.html.html). If the OutputFormat is `opentelemetry0.7` or `opentelemetry1.0`, you can stream percentile statistics (p99 etc.). See details below.
        Returns:
        builder
      • tags

        public MetricStreamState.Builder tags​(@Nullable
                                              com.pulumi.core.Output<java.util.Map<java.lang.String,​java.lang.String>> tags)
        Parameters:
        tags - Map of tags to assign to the resource. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
        Returns:
        builder
      • tags

        public MetricStreamState.Builder tags​(java.util.Map<java.lang.String,​java.lang.String> tags)
        Parameters:
        tags - Map of tags to assign to the resource. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
        Returns:
        builder
      • tagsAll

        @Deprecated
        public MetricStreamState.Builder tagsAll​(@Nullable
                                                 com.pulumi.core.Output<java.util.Map<java.lang.String,​java.lang.String>> tagsAll)
        Deprecated.
        Please use `tags` instead.
        Parameters:
        tagsAll - A map of tags assigned to the resource, including those inherited from the provider `default_tags` configuration block.
        Returns:
        builder
      • tagsAll

        @Deprecated
        public MetricStreamState.Builder tagsAll​(java.util.Map<java.lang.String,​java.lang.String> tagsAll)
        Deprecated.
        Please use `tags` instead.
        Parameters:
        tagsAll - A map of tags assigned to the resource, including those inherited from the provider `default_tags` configuration block.
        Returns:
        builder