Package com.pulumi.aws.s3.inputs
Class BucketCorsConfigurationV2State.Builder
- java.lang.Object
-
- com.pulumi.aws.s3.inputs.BucketCorsConfigurationV2State.Builder
-
- Enclosing class:
- BucketCorsConfigurationV2State
public static final class BucketCorsConfigurationV2State.Builder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Builder()Builder(BucketCorsConfigurationV2State defaults)
-
Method Summary
-
-
-
Constructor Detail
-
Builder
public Builder()
-
Builder
public Builder(BucketCorsConfigurationV2State defaults)
-
-
Method Detail
-
bucket
public BucketCorsConfigurationV2State.Builder bucket(@Nullable com.pulumi.core.Output<java.lang.String> bucket)
- Parameters:
bucket- Name of the bucket.- Returns:
- builder
-
bucket
public BucketCorsConfigurationV2State.Builder bucket(java.lang.String bucket)
- Parameters:
bucket- Name of the bucket.- Returns:
- builder
-
corsRules
public BucketCorsConfigurationV2State.Builder corsRules(@Nullable com.pulumi.core.Output<java.util.List<BucketCorsConfigurationV2CorsRuleArgs>> corsRules)
- Parameters:
corsRules- Set of origins and methods (cross-origin access that you want to allow). See below. You can configure up to 100 rules.- Returns:
- builder
-
corsRules
public BucketCorsConfigurationV2State.Builder corsRules(java.util.List<BucketCorsConfigurationV2CorsRuleArgs> corsRules)
- Parameters:
corsRules- Set of origins and methods (cross-origin access that you want to allow). See below. You can configure up to 100 rules.- Returns:
- builder
-
corsRules
public BucketCorsConfigurationV2State.Builder corsRules(BucketCorsConfigurationV2CorsRuleArgs... corsRules)
- Parameters:
corsRules- Set of origins and methods (cross-origin access that you want to allow). See below. You can configure up to 100 rules.- Returns:
- builder
-
expectedBucketOwner
@Deprecated public BucketCorsConfigurationV2State.Builder expectedBucketOwner(@Nullable com.pulumi.core.Output<java.lang.String> expectedBucketOwner)
Deprecated.expected_bucket_owner is deprecated. It will be removed in a future verion of the provider.- Parameters:
expectedBucketOwner- Account ID of the expected bucket owner.- Returns:
- builder
-
expectedBucketOwner
@Deprecated public BucketCorsConfigurationV2State.Builder expectedBucketOwner(java.lang.String expectedBucketOwner)
Deprecated.expected_bucket_owner is deprecated. It will be removed in a future verion of the provider.- Parameters:
expectedBucketOwner- Account ID of the expected bucket owner.- Returns:
- builder
-
region
public BucketCorsConfigurationV2State.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 BucketCorsConfigurationV2State.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
-
build
public BucketCorsConfigurationV2State build()
-
-