Class UsageLimitArgs.Builder

  • Enclosing class:
    UsageLimitArgs

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

      • Builder

        public Builder()
    • Method Detail

      • amount

        public UsageLimitArgs.Builder amount​(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 UsageLimitArgs.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
      • breachAction

        public UsageLimitArgs.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 UsageLimitArgs.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 UsageLimitArgs.Builder clusterIdentifier​(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 UsageLimitArgs.Builder clusterIdentifier​(java.lang.String clusterIdentifier)
        Parameters:
        clusterIdentifier - The identifier of the cluster that you want to limit usage.
        Returns:
        builder
      • featureType

        public UsageLimitArgs.Builder featureType​(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 UsageLimitArgs.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 UsageLimitArgs.Builder limitType​(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 UsageLimitArgs.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 UsageLimitArgs.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 UsageLimitArgs.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
      • region

        public UsageLimitArgs.Builder region​(@Nullable
                                             com.pulumi.core.Output<java.lang.String> region)
        Parameters:
        region - Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
        Returns:
        builder
      • region

        public UsageLimitArgs.Builder region​(java.lang.String region)
        Parameters:
        region - Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
        Returns:
        builder
      • tags

        public UsageLimitArgs.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 `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
        Returns:
        builder
      • tags

        public UsageLimitArgs.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 `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
        Returns:
        builder