interface RedirectTarget
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.S3.RedirectTarget |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awss3#RedirectTarget |
Java | software.amazon.awscdk.services.s3.RedirectTarget |
Python | aws_cdk.aws_s3.RedirectTarget |
TypeScript (source) | aws-cdk-lib » aws_s3 » RedirectTarget |
Specifies a redirect behavior of all requests to a website endpoint of a bucket.
Example
const bucket = new s3.Bucket(this, 'MyRedirectedBucket', {
websiteRedirect: { hostName: 'www.example.com' },
});
Properties
Name | Type | Description |
---|---|---|
host | string | Name of the host where requests are redirected. |
protocol? | Redirect | Protocol to use when redirecting requests. |
hostName
Type:
string
Name of the host where requests are redirected.
protocol?
Type:
Redirect
(optional, default: The protocol used in the original request.)
Protocol to use when redirecting requests.