Package com.pulumi.aws.redshift
Class UsageLimit
- java.lang.Object
-
- com.pulumi.resources.Resource
-
- com.pulumi.resources.CustomResource
-
- com.pulumi.aws.redshift.UsageLimit
-
public class UsageLimit extends com.pulumi.resources.CustomResourceCreates a new Amazon Redshift Usage Limit. ## Example Usage
## Import Using `pulumi import`, import Redshift usage limits using the `id`. For example: ```sh $ pulumi import aws:redshift/usageLimit:UsageLimit example example-id ```package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import com.pulumi.aws.redshift.UsageLimit; import com.pulumi.aws.redshift.UsageLimitArgs; import java.util.ArrayList; import java.util.Arrays; import java.util.Map; import java.io.File; import java.nio.file.Files; import java.nio.file.Paths; public class App { public static void main(String[] args) { Pulumi.run(App::stack); } public static void stack(Context ctx) { var example = new UsageLimit("example", UsageLimitArgs.builder() .clusterIdentifier(exampleAwsRedshiftCluster.id()) .featureType("concurrency-scaling") .limitType("time") .amount(60) .build()); } }
-
-
Constructor Summary
Constructors Constructor Description UsageLimit(java.lang.String name)UsageLimit(java.lang.String name, UsageLimitArgs args)UsageLimit(java.lang.String name, UsageLimitArgs args, com.pulumi.resources.CustomResourceOptions options)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description com.pulumi.core.Output<java.lang.Integer>amount()com.pulumi.core.Output<java.lang.String>arn()com.pulumi.core.Output<java.util.Optional<java.lang.String>>breachAction()com.pulumi.core.Output<java.lang.String>clusterIdentifier()com.pulumi.core.Output<java.lang.String>featureType()static UsageLimitget(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, UsageLimitState state, com.pulumi.resources.CustomResourceOptions options)Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.com.pulumi.core.Output<java.lang.String>limitType()com.pulumi.core.Output<java.util.Optional<java.lang.String>>period()com.pulumi.core.Output<java.lang.String>region()com.pulumi.core.Output<java.util.Optional<java.util.Map<java.lang.String,java.lang.String>>>tags()com.pulumi.core.Output<java.util.Map<java.lang.String,java.lang.String>>tagsAll()
-
-
-
Constructor Detail
-
UsageLimit
public UsageLimit(java.lang.String name)
- Parameters:
name- The _unique_ name of the resulting resource.
-
UsageLimit
public UsageLimit(java.lang.String name, UsageLimitArgs args)- Parameters:
name- The _unique_ name of the resulting resource.args- The arguments to use to populate this resource's properties.
-
UsageLimit
public UsageLimit(java.lang.String name, UsageLimitArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options)- Parameters:
name- The _unique_ name of the resulting resource.args- The arguments to use to populate this resource's properties.options- A bag of options that control this resource's behavior.
-
-
Method Detail
-
amount
public com.pulumi.core.Output<java.lang.Integer> amount()
- Returns:
- 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.
-
arn
public com.pulumi.core.Output<java.lang.String> arn()
- Returns:
- ARN of the Redshift Usage Limit.
-
breachAction
public com.pulumi.core.Output<java.util.Optional<java.lang.String>> breachAction()
- Returns:
- The action that Amazon Redshift takes when the limit is reached. The default is `log`. Valid values are `log`, `emit-metric`, and `disable`.
-
clusterIdentifier
public com.pulumi.core.Output<java.lang.String> clusterIdentifier()
- Returns:
- The identifier of the cluster that you want to limit usage.
-
featureType
public com.pulumi.core.Output<java.lang.String> featureType()
- Returns:
- The Amazon Redshift feature that you want to limit. Valid values are `spectrum`, `concurrency-scaling`, and `cross-region-datasharing`.
-
limitType
public com.pulumi.core.Output<java.lang.String> limitType()
- Returns:
- 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`.
-
period
public com.pulumi.core.Output<java.util.Optional<java.lang.String>> period()
- Returns:
- 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`.
-
region
public com.pulumi.core.Output<java.lang.String> region()
- Returns:
- 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.
-
tags
public com.pulumi.core.Output<java.util.Optional<java.util.Map<java.lang.String,java.lang.String>>> tags()
- Returns:
- 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.
-
tagsAll
public com.pulumi.core.Output<java.util.Map<java.lang.String,java.lang.String>> tagsAll()
- Returns:
- A map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.
-
get
public static UsageLimit get(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, @Nullable UsageLimitState state, @Nullable com.pulumi.resources.CustomResourceOptions options)
Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.- Parameters:
name- The _unique_ name of the resulting resource.id- The _unique_ provider ID of the resource to lookup.state-options- Optional settings to control the behavior of the CustomResource.
-
-