BucketVersioningV2 constructor
BucketVersioningV2(
- String name, {
- BucketVersioningV2Args? args,
- CustomResourceOptions? options,
Creates a new BucketVersioningV2.
name The Pulumi resource name.
args Arguments used to configure this BucketVersioningV2. The set of arguments for BucketVersioningV2.
options Resource options controlling this resource's behavior.
Implementation
BucketVersioningV2(
String name, {
BucketVersioningV2Args? args,
pulumi.CustomResourceOptions? options,
}) : super(
'aws:s3/bucketVersioningV2:BucketVersioningV2',
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<BucketVersioningV2VersioningConfiguration>('versioningConfiguration', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return BucketVersioningV2VersioningConfiguration.fromMap((guardedValue as Map).cast<String, dynamic>()); });
}