import * as core from "@terrascript/core"; export interface IndexDocumentArgs extends core.SchemaArgs { suffix: string | core.StringOut; } export declare class IndexDocument extends core.Schema { suffix: string | core.StringOut; } export interface ErrorDocumentArgs extends core.SchemaArgs { key: string | core.StringOut; } export declare class ErrorDocument extends core.Schema { key: string | core.StringOut; } export interface RedirectArgs extends core.SchemaArgs { hostName?: string | core.StringOut; httpRedirectCode?: string | core.StringOut; protocol?: string | core.StringOut; replaceKeyPrefixWith?: string | core.StringOut; replaceKeyWith?: string | core.StringOut; } export declare class Redirect extends core.Schema { hostName?: string | core.StringOut; httpRedirectCode?: string | core.StringOut; protocol?: string | core.StringOut; replaceKeyPrefixWith?: string | core.StringOut; replaceKeyWith?: string | core.StringOut; } export interface ConditionArgs extends core.SchemaArgs { httpErrorCodeReturnedEquals?: string | core.StringOut; keyPrefixEquals?: string | core.StringOut; } export declare class Condition extends core.Schema { httpErrorCodeReturnedEquals?: string | core.StringOut; keyPrefixEquals?: string | core.StringOut; } export interface RoutingRuleArgs extends core.SchemaArgs { condition?: Condition; redirect: Redirect; } export declare class RoutingRule extends core.Schema { condition?: Condition; redirect: Redirect; } export interface RedirectAllRequestsToArgs extends core.SchemaArgs { hostName: string | core.StringOut; protocol?: string | core.StringOut; } export declare class RedirectAllRequestsTo extends core.Schema { hostName: string | core.StringOut; protocol?: string | core.StringOut; } export interface BucketWebsiteConfigurationArgs extends core.ResourceArgs { /** * (Required, Forces new resource) The name of the bucket. */ bucket: string | core.StringOut; /** * (Optional, Conflicts with `redirect_all_requests_to`) The name of the error document for the website * [detailed below](#error_document). */ errorDocument?: ErrorDocument; /** * (Optional, Forces new resource) The account ID of the expected bucket owner. */ expectedBucketOwner?: string | core.StringOut; /** * (Optional, Required if `redirect_all_requests_to` is not specified) The name of the index document f * or the website [detailed below](#index_document). */ indexDocument?: IndexDocument; /** * (Optional, Required if `index_document` is not specified) The redirect behavior for every request to * this bucket's website endpoint [detailed below](#redirect_all_requests_to). Conflicts with `error_d * ocument`, `index_document`, and `routing_rule`. */ redirectAllRequestsTo?: RedirectAllRequestsTo; /** * (Optional, Conflicts with `redirect_all_requests_to` and `routing_rules`) List of rules that define * when a redirect is applied and the redirect behavior [detailed below](#routing_rule). */ routingRule?: core.Array | core.ArrayOut; /** * (Optional, Conflicts with `routing_rule` and `redirect_all_requests_to`) A json array containing [ro * uting rules](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-websit * econfiguration-routingrules.html) */ routingRules?: string | core.StringOut; } export declare class BucketWebsiteConfiguration extends core.Resource { /** * (Required, Forces new resource) The name of the bucket. */ bucket: string | core.StringOut; /** * (Optional, Conflicts with `redirect_all_requests_to`) The name of the error document for the website * [detailed below](#error_document). */ errorDocument?: ErrorDocument; /** * (Optional, Forces new resource) The account ID of the expected bucket owner. */ expectedBucketOwner?: string | core.StringOut; /** * The `bucket` or `bucket` and `expected_bucket_owner` separated by a comma (`,`) if the latter is pro * vided. */ id: string | core.StringOut; /** * (Optional, Required if `redirect_all_requests_to` is not specified) The name of the index document f * or the website [detailed below](#index_document). */ indexDocument?: IndexDocument; /** * (Optional, Required if `index_document` is not specified) The redirect behavior for every request to * this bucket's website endpoint [detailed below](#redirect_all_requests_to). Conflicts with `error_d * ocument`, `index_document`, and `routing_rule`. */ redirectAllRequestsTo?: RedirectAllRequestsTo; /** * (Optional, Conflicts with `redirect_all_requests_to` and `routing_rules`) List of rules that define * when a redirect is applied and the redirect behavior [detailed below](#routing_rule). */ routingRule?: core.Array | core.ArrayOut; /** * (Optional, Conflicts with `routing_rule` and `redirect_all_requests_to`) A json array containing [ro * uting rules](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-websit * econfiguration-routingrules.html) */ routingRules?: string | core.StringOut; /** * The domain of the website endpoint. This is used to create Route 53 alias records. */ websiteDomain: string | core.StringOut; /** * The website endpoint. */ websiteEndpoint: string | core.StringOut; constructor(name: string, args?: BucketWebsiteConfigurationArgs); getNamespace(): string; } //# sourceMappingURL=bucket_website_configuration.d.ts.map