interface RedirectAllRequestsToProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.CfnPropertyMixins.AWS.S3.CfnBucketPropsMixin.RedirectAllRequestsToProperty |
Go | github.com/aws/aws-cdk-go/awscdkcfnpropertymixins/v2/awss3#CfnBucketPropsMixin_RedirectAllRequestsToProperty |
Java | software.amazon.awscdk.cfnpropertymixins.services.s3.CfnBucketPropsMixin.RedirectAllRequestsToProperty |
Python | aws_cdk.cfn_property_mixins.aws_s3.CfnBucketPropsMixin.RedirectAllRequestsToProperty |
TypeScript | @aws-cdk/cfn-property-mixins » aws_s3 » CfnBucketPropsMixin » 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 { aws_s3 as s3 } from '@aws-cdk/cfn-property-mixins';
const redirectAllRequestsToProperty: s3.CfnBucketPropsMixin.RedirectAllRequestsToProperty = {
hostName: 'hostName',
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
(optional)
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.

.NET
Go
Java
Python
TypeScript