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