BucketCorsConfigurationV2.reference constructor
BucketCorsConfigurationV2.reference(
- String urn
Creates a typed reference to an existing BucketCorsConfigurationV2 resource.
Implementation
BucketCorsConfigurationV2.reference(String urn)
: super(
'aws:s3/bucketCorsConfigurationV2:BucketCorsConfigurationV2',
pulumi.parseUrn(urn).urnName,
const <String, pulumi.Input<dynamic>>{},
pulumi.CustomResourceOptions(urn: pulumi.input(urn)),
isResourceReference: true,
) {
bucket = registerOutput<String>('bucket');
corsRules = registerOutput<List<BucketCorsConfigurationV2CorsRule>>('corsRules', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return pulumi.Input.decodeList<BucketCorsConfigurationV2CorsRule>(guardedValue, (value) => BucketCorsConfigurationV2CorsRule.fromMap((value as Map).cast<String, dynamic>())); });
expectedBucketOwner = registerOutput<String?>('expectedBucketOwner');
region = registerOutput<String>('region');
}