BucketCorsConfiguration constructor
BucketCorsConfiguration(
- String name, {
- BucketCorsConfigurationArgs? args,
- CustomResourceOptions? options,
Creates a new BucketCorsConfiguration.
name The Pulumi resource name.
args Arguments used to configure this BucketCorsConfiguration. The set of arguments for BucketCorsConfiguration.
options Resource options controlling this resource's behavior.
Implementation
BucketCorsConfiguration(
String name, {
BucketCorsConfigurationArgs? args,
pulumi.CustomResourceOptions? options,
}) : super(
'aws:s3/bucketCorsConfiguration:BucketCorsConfiguration',
name,
pulumi.Input.mapToInputs(args?.toMap() ?? const {}),
pulumi.CustomResourceOptions(version: '7.44.0').merge(options),
) {
bucket = registerOutput<String>('bucket');
corsRules = registerOutput<List<BucketCorsConfigurationCorsRule>>('corsRules', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return pulumi.Input.decodeList<BucketCorsConfigurationCorsRule>(guardedValue, (value) => BucketCorsConfigurationCorsRule.fromMap((value as Map).cast<String, dynamic>())); });
expectedBucketOwner = registerOutput<String?>('expectedBucketOwner');
region = registerOutput<String>('region');
}