AwsS3BucketCorsRuleArgs

interface AwsS3BucketCorsRuleArgs { allowedHeaders?: Input<Input<string>[]>; allowedMethods: Input<Input<string>[]>; allowedOrigins: Input<Input<string>[]>; exposeHeaders?: Input<Input<string>[]>; id?: Input<string>; maxAgeSeconds?: Input<number>; }

CORS rule input for S3 bucket CORS configuration.

Example

CODE
const corsRule: AwsS3BucketCorsRuleArgs = {
  allowedOrigins: ['https://example.com'],
  allowedMethods: ['GET'],
};

Properties

allowedHeaders: Input<Input<string>[]>

Optional list of allowed headers.

allowedMethods: Input<Input<string>[]>

Allowed methods for CORS requests.

allowedOrigins: Input<Input<string>[]>

Allowed origins for CORS requests.

exposeHeaders: Input<Input<string>[]>

Optional list of response headers exposed to clients.

id: Input<string>

Optional rule identifier.

maxAgeSeconds: Input<number>

Optional maximum caching age in seconds.