IBM COS SDK for JavaScript V2 - v1.0.0
    Preparing search index...

    Interface WebsiteConfiguration

    Specifies website configuration parameters for an Amazon S3 bucket.

    interface WebsiteConfiguration {
        ErrorDocument?: ErrorDocument;
        IndexDocument?: IndexDocument;
        RedirectAllRequestsTo?: RedirectAllRequestsTo;
        RoutingRules?: RoutingRule[];
    }
    Index

    Properties

    ErrorDocument?: ErrorDocument

    The name of the error document for the website.

    IndexDocument?: IndexDocument

    The name of the index document for the website.

    RedirectAllRequestsTo?: RedirectAllRequestsTo

    The redirect behavior for every request to this bucket's website endpoint.

    If you specify this property, you can't specify any other property.

    RoutingRules?: RoutingRule[]

    Rules that define when a redirect is applied and the redirect behavior.