interface RedirectAllRequestsToProperty
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.S3.CfnBucket.RedirectAllRequestsToProperty |
Java | software.amazon.awscdk.services.s3.CfnBucket.RedirectAllRequestsToProperty |
Python | aws_cdk.aws_s3.CfnBucket.RedirectAllRequestsToProperty |
TypeScript | @aws-cdk/aws-s3 » CfnBucket » RedirectAllRequestsToProperty |
Specifies the redirect behavior of all requests to a website endpoint of an Amazon S3 bucket.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as s3 from '@aws-cdk/aws-s3';
const redirectAllRequestsToProperty: s3.CfnBucket.RedirectAllRequestsToProperty = {
hostName: 'hostName',
// the properties below are optional
protocol: 'protocol',
};
Properties
Name | Type | Description |
---|---|---|
host | string | Name of the host where requests are redirected. |
protocol? | string | Protocol to use when redirecting requests. |
hostName
Type:
string
Name of the host where requests are redirected.
protocol?
Type:
string
(optional)
Protocol to use when redirecting requests.
The default is the protocol that is used in the original request.