Interface CreateUsageLimitRequest.Builder

    • Method Detail

      • amount

        CreateUsageLimitRequest.Builder amount​(Long amount)

        The limit amount. If time-based, this amount is in Redshift Processing Units (RPU) consumed per hour. If data-based, this amount is in terabytes (TB) of data transferred between Regions in cross-account sharing. The value must be a positive number.

        Parameters:
        amount - The limit amount. If time-based, this amount is in Redshift Processing Units (RPU) consumed per hour. If data-based, this amount is in terabytes (TB) of data transferred between Regions in cross-account sharing. The value must be a positive number.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • breachAction

        CreateUsageLimitRequest.Builder breachAction​(String breachAction)

        The action that Amazon Redshift Serverless takes when the limit is reached. The default is log.

        Parameters:
        breachAction - The action that Amazon Redshift Serverless takes when the limit is reached. The default is log.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        UsageLimitBreachAction, UsageLimitBreachAction
      • period

        CreateUsageLimitRequest.Builder period​(String period)

        The time period that the amount applies to. A weekly period begins on Sunday. The default is monthly.

        Parameters:
        period - The time period that the amount applies to. A weekly period begins on Sunday. The default is monthly.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        UsageLimitPeriod, UsageLimitPeriod
      • period

        CreateUsageLimitRequest.Builder period​(UsageLimitPeriod period)

        The time period that the amount applies to. A weekly period begins on Sunday. The default is monthly.

        Parameters:
        period - The time period that the amount applies to. A weekly period begins on Sunday. The default is monthly.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        UsageLimitPeriod, UsageLimitPeriod
      • resourceArn

        CreateUsageLimitRequest.Builder resourceArn​(String resourceArn)

        The Amazon Resource Name (ARN) of the Amazon Redshift Serverless resource to create the usage limit for.

        Parameters:
        resourceArn - The Amazon Resource Name (ARN) of the Amazon Redshift Serverless resource to create the usage limit for.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • usageType

        CreateUsageLimitRequest.Builder usageType​(String usageType)

        The type of Amazon Redshift Serverless usage to create a usage limit for.

        Parameters:
        usageType - The type of Amazon Redshift Serverless usage to create a usage limit for.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        UsageLimitUsageType, UsageLimitUsageType