BucketWebsiteConfigurationArgs constructor
- required Input<
String> bucket, - Input<
BucketWebsiteConfigurationErrorDocument?> ? errorDocument, - Input<
String?> ? expectedBucketOwner, - Input<
BucketWebsiteConfigurationIndexDocument?> ? indexDocument, - Input<
BucketWebsiteConfigurationRedirectAllRequestsTo?> ? redirectAllRequestsTo, - Input<
String?> ? region, - Input<
String?> ? routingRuleDetails, - Input<
List< ? routingRules,BucketWebsiteConfigurationRoutingRule> ?>
Creates a new BucketWebsiteConfigurationArgs.
bucket Name of the bucket.
errorDocument Name of the error document for the website. See below.
expectedBucketOwner Account ID of the expected bucket owner.
indexDocument Name of the index document for the website. See below.
redirectAllRequestsTo Redirect behavior for every request to this bucket's website endpoint. See below. Conflicts with errorDocument, indexDocument, and routingRule.
region Region where this resource will be managed. Defaults to the Region set in the provider configuration.
routingRuleDetails JSON array containing routing rules describing redirect behavior and when redirects are applied. Use this parameter when your routing rules contain empty String values ("") as seen in the example above.
routingRules List of rules that define when a redirect is applied and the redirect behavior. See below.
Implementation
const BucketWebsiteConfigurationArgs({
required this.bucket,
this.errorDocument,
this.expectedBucketOwner,
this.indexDocument,
this.redirectAllRequestsTo,
this.region,
this.routingRuleDetails,
this.routingRules,
});