Class UsageLimitState.Builder

  • Enclosing class:
    UsageLimitState

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

      • Builder

        public Builder()
    • Method Detail

      • amount

        public UsageLimitState.Builder amount​(@Nullable
                                              com.pulumi.core.Output<java.lang.Integer> amount)
        Parameters:
        amount - The limit amount. If time-based, this amount is in minutes. If data-based, this amount is in terabytes (TB). The value must be a positive number.
        Returns:
        builder
      • amount

        public UsageLimitState.Builder amount​(java.lang.Integer amount)
        Parameters:
        amount - The limit amount. If time-based, this amount is in minutes. If data-based, this amount is in terabytes (TB). The value must be a positive number.
        Returns:
        builder
      • arn

        public UsageLimitState.Builder arn​(@Nullable
                                           com.pulumi.core.Output<java.lang.String> arn)
        Parameters:
        arn - Amazon Resource Name (ARN) of the Redshift Usage Limit.
        Returns:
        builder
      • arn

        public UsageLimitState.Builder arn​(java.lang.String arn)
        Parameters:
        arn - Amazon Resource Name (ARN) of the Redshift Usage Limit.
        Returns:
        builder
      • breachAction

        public UsageLimitState.Builder breachAction​(@Nullable
                                                    com.pulumi.core.Output<java.lang.String> breachAction)
        Parameters:
        breachAction - The action that Amazon Redshift takes when the limit is reached. The default is `log`. Valid values are `log`, `emit-metric`, and `disable`.
        Returns:
        builder
      • breachAction

        public UsageLimitState.Builder breachAction​(java.lang.String breachAction)
        Parameters:
        breachAction - The action that Amazon Redshift takes when the limit is reached. The default is `log`. Valid values are `log`, `emit-metric`, and `disable`.
        Returns:
        builder
      • clusterIdentifier

        public UsageLimitState.Builder clusterIdentifier​(@Nullable
                                                         com.pulumi.core.Output<java.lang.String> clusterIdentifier)
        Parameters:
        clusterIdentifier - The identifier of the cluster that you want to limit usage.
        Returns:
        builder
      • clusterIdentifier

        public UsageLimitState.Builder clusterIdentifier​(java.lang.String clusterIdentifier)
        Parameters:
        clusterIdentifier - The identifier of the cluster that you want to limit usage.
        Returns:
        builder
      • featureType

        public UsageLimitState.Builder featureType​(@Nullable
                                                   com.pulumi.core.Output<java.lang.String> featureType)
        Parameters:
        featureType - The Amazon Redshift feature that you want to limit. Valid values are `spectrum`, `concurrency-scaling`, and `cross-region-datasharing`.
        Returns:
        builder
      • featureType

        public UsageLimitState.Builder featureType​(java.lang.String featureType)
        Parameters:
        featureType - The Amazon Redshift feature that you want to limit. Valid values are `spectrum`, `concurrency-scaling`, and `cross-region-datasharing`.
        Returns:
        builder
      • limitType

        public UsageLimitState.Builder limitType​(@Nullable
                                                 com.pulumi.core.Output<java.lang.String> limitType)
        Parameters:
        limitType - The type of limit. Depending on the feature type, this can be based on a time duration or data size. If FeatureType is `spectrum`, then LimitType must be `data-scanned`. If FeatureType is `concurrency-scaling`, then LimitType must be `time`. If FeatureType is `cross-region-datasharing`, then LimitType must be `data-scanned`. Valid values are `data-scanned`, and `time`.
        Returns:
        builder
      • limitType

        public UsageLimitState.Builder limitType​(java.lang.String limitType)
        Parameters:
        limitType - The type of limit. Depending on the feature type, this can be based on a time duration or data size. If FeatureType is `spectrum`, then LimitType must be `data-scanned`. If FeatureType is `concurrency-scaling`, then LimitType must be `time`. If FeatureType is `cross-region-datasharing`, then LimitType must be `data-scanned`. Valid values are `data-scanned`, and `time`.
        Returns:
        builder
      • period

        public UsageLimitState.Builder period​(@Nullable
                                              com.pulumi.core.Output<java.lang.String> period)
        Parameters:
        period - The time period that the amount applies to. A weekly period begins on Sunday. The default is `monthly`. Valid values are `daily`, `weekly`, and `monthly`.
        Returns:
        builder
      • period

        public UsageLimitState.Builder period​(java.lang.String period)
        Parameters:
        period - The time period that the amount applies to. A weekly period begins on Sunday. The default is `monthly`. Valid values are `daily`, `weekly`, and `monthly`.
        Returns:
        builder
      • tags

        public UsageLimitState.Builder tags​(@Nullable
                                            com.pulumi.core.Output<java.util.Map<java.lang.String,​java.lang.String>> tags)
        Parameters:
        tags - A 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 UsageLimitState.Builder tags​(java.util.Map<java.lang.String,​java.lang.String> tags)
        Parameters:
        tags - A 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 UsageLimitState.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 UsageLimitState.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