libZSservicesZSamazonka-s3ZSamazonka-s3
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.S3.Types.RedirectAllRequestsTo

Description

 
Synopsis

Documentation

data RedirectAllRequestsTo Source #

Specifies the redirect behavior of all requests to a website endpoint of an Amazon S3 bucket.

See: newRedirectAllRequestsTo smart constructor.

Constructors

RedirectAllRequestsTo' 

Fields

  • protocol :: Maybe Protocol

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

  • hostName :: Text

    Name of the host where requests are redirected.

Instances

Instances details
Eq RedirectAllRequestsTo Source # 
Instance details

Defined in Amazonka.S3.Types.RedirectAllRequestsTo

Read RedirectAllRequestsTo Source # 
Instance details

Defined in Amazonka.S3.Types.RedirectAllRequestsTo

Show RedirectAllRequestsTo Source # 
Instance details

Defined in Amazonka.S3.Types.RedirectAllRequestsTo

Generic RedirectAllRequestsTo Source # 
Instance details

Defined in Amazonka.S3.Types.RedirectAllRequestsTo

Associated Types

type Rep RedirectAllRequestsTo :: Type -> Type #

NFData RedirectAllRequestsTo Source # 
Instance details

Defined in Amazonka.S3.Types.RedirectAllRequestsTo

Methods

rnf :: RedirectAllRequestsTo -> () #

Hashable RedirectAllRequestsTo Source # 
Instance details

Defined in Amazonka.S3.Types.RedirectAllRequestsTo

FromXML RedirectAllRequestsTo Source # 
Instance details

Defined in Amazonka.S3.Types.RedirectAllRequestsTo

ToXML RedirectAllRequestsTo Source # 
Instance details

Defined in Amazonka.S3.Types.RedirectAllRequestsTo

type Rep RedirectAllRequestsTo Source # 
Instance details

Defined in Amazonka.S3.Types.RedirectAllRequestsTo

type Rep RedirectAllRequestsTo = D1 ('MetaData "RedirectAllRequestsTo" "Amazonka.S3.Types.RedirectAllRequestsTo" "libZSservicesZSamazonka-s3ZSamazonka-s3" 'False) (C1 ('MetaCons "RedirectAllRequestsTo'" 'PrefixI 'True) (S1 ('MetaSel ('Just "protocol") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Protocol)) :*: S1 ('MetaSel ('Just "hostName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))

newRedirectAllRequestsTo Source #

Create a value of RedirectAllRequestsTo with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:protocol:RedirectAllRequestsTo', redirectAllRequestsTo_protocol - Protocol to use when redirecting requests. The default is the protocol that is used in the original request.

$sel:hostName:RedirectAllRequestsTo', redirectAllRequestsTo_hostName - Name of the host where requests are redirected.

redirectAllRequestsTo_protocol :: Lens' RedirectAllRequestsTo (Maybe Protocol) Source #

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

redirectAllRequestsTo_hostName :: Lens' RedirectAllRequestsTo Text Source #

Name of the host where requests are redirected.