BucketWebsiteConfigurationV2 constructor

BucketWebsiteConfigurationV2(
  1. String name, {
  2. BucketWebsiteConfigurationV2Args? args,
  3. CustomResourceOptions? options,
})

Creates a new BucketWebsiteConfigurationV2. name The Pulumi resource name. args Arguments used to configure this BucketWebsiteConfigurationV2. The set of arguments for BucketWebsiteConfigurationV2. options Resource options controlling this resource's behavior.

Implementation

BucketWebsiteConfigurationV2(
  String name, {
  BucketWebsiteConfigurationV2Args? args,
  pulumi.CustomResourceOptions? options,
}) : super(
        'aws:s3/bucketWebsiteConfigurationV2:BucketWebsiteConfigurationV2',
        name,
        pulumi.Input.mapToInputs(args?.toMap() ?? const {}),
        pulumi.CustomResourceOptions(version: '7.44.0').merge(options),
      ) {
  bucket = registerOutput<String>('bucket');
  errorDocument = registerOutput<BucketWebsiteConfigurationV2ErrorDocument?>('errorDocument', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return BucketWebsiteConfigurationV2ErrorDocument.fromMap((guardedValue as Map).cast<String, dynamic>()); });
  expectedBucketOwner = registerOutput<String?>('expectedBucketOwner');
  indexDocument = registerOutput<BucketWebsiteConfigurationV2IndexDocument?>('indexDocument', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return BucketWebsiteConfigurationV2IndexDocument.fromMap((guardedValue as Map).cast<String, dynamic>()); });
  redirectAllRequestsTo = registerOutput<BucketWebsiteConfigurationV2RedirectAllRequestsTo?>('redirectAllRequestsTo', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return BucketWebsiteConfigurationV2RedirectAllRequestsTo.fromMap((guardedValue as Map).cast<String, dynamic>()); });
  region = registerOutput<String>('region');
  routingRuleDetails = registerOutput<String>('routingRuleDetails');
  routingRules = registerOutput<List<BucketWebsiteConfigurationV2RoutingRule>>('routingRules', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return pulumi.Input.decodeList<BucketWebsiteConfigurationV2RoutingRule>(guardedValue, (value) => BucketWebsiteConfigurationV2RoutingRule.fromMap((value as Map).cast<String, dynamic>())); });
  websiteDomain = registerOutput<String>('websiteDomain');
  websiteEndpoint = registerOutput<String>('websiteEndpoint');
}