BucketWebsiteConfiguration constructor

BucketWebsiteConfiguration(
  1. String name, {
  2. BucketWebsiteConfigurationArgs? args,
  3. CustomResourceOptions? options,
})

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

Implementation

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