RedirectTarget

class aws_cdk.aws_s3.RedirectTarget(*, host_name, protocol=None)

Bases: object

__init__(*, host_name, protocol=None)

Specifies a redirect behavior of all requests to a website endpoint of a bucket.

Parameters
  • host_name (str) – Name of the host where requests are redirected.

  • protocol (Optional[RedirectProtocol]) – Protocol to use when redirecting requests. Default: - The protocol used in the original request.

Return type

None

Attributes

host_name

Name of the host where requests are redirected.

Return type

str

protocol

Protocol to use when redirecting requests.

default :default: - The protocol used in the original request.

Return type

Optional[RedirectProtocol]