aws-cdk-lib.aws_s3.CfnBucket.RedirectAllRequestsToProperty

interface RedirectAllRequestsToProperty

LanguageType name
.NETAmazon.CDK.AWS.S3.CfnBucket.RedirectAllRequestsToProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awss3#CfnBucket_RedirectAllRequestsToProperty
Javasoftware.amazon.awscdk.services.s3.CfnBucket.RedirectAllRequestsToProperty
Pythonaws_cdk.aws_s3.CfnBucket.RedirectAllRequestsToProperty
TypeScript aws-cdk-lib » 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 { aws_s3 as s3 } from 'aws-cdk-lib';
const redirectAllRequestsToProperty: s3.CfnBucket.RedirectAllRequestsToProperty = {
  hostName: 'hostName',

  // the properties below are optional
  protocol: 'protocol',
};

Properties

NameTypeDescription
hostNamestringName of the host where requests are redirected.
protocol?stringProtocol 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.