Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

Redirect

import type { Redirect } from "https://aws-api.deno.dev/v0.4/services/s3.ts?docs=full";

Specifies how requests are redirected. In the event of an error, you can specify a different error code to return.

interface Redirect {
HostName?: string | null;
HttpRedirectCode?: string | null;
Protocol?: Protocol | null;
ReplaceKeyPrefixWith?: string | null;
ReplaceKeyWith?: string | null;
}

§Properties

§
HostName?: string | null
[src]

The host name to use in the redirect request.

§
HttpRedirectCode?: string | null
[src]

The HTTP redirect code to use on the response. Not required if one of the siblings is present.

§
Protocol?: Protocol | null
[src]

Protocol to use when redirecting requests. The default is the protocol that is used in the original request.

§
ReplaceKeyPrefixWith?: string | null
[src]

The object key prefix to use in the redirect request. For example, to redirect requests for all pages with prefix docs/ (objects in the docs/ folder) to documents/, you can set a condition block with KeyPrefixEquals set to docs/ and in the Redirect set ReplaceKeyPrefixWith to /documents. Not required if one of the siblings is present. Can be present only if ReplaceKeyWith is not provided.

! IMPORTANT: ! Replacement must be made for object keys containing special characters (such as carriage returns) when using XML requests. ! For more information, see XML related object key constraints.

§
ReplaceKeyWith?: string | null
[src]

The specific object key to use in the redirect request. For example, redirect request to error.html. Not required if one of the siblings is present. Can be present only if ReplaceKeyPrefixWith is not provided.

! IMPORTANT: ! Replacement must be made for object keys containing special characters (such as carriage returns) when using XML requests. ! For more information, see XML related object key constraints.