stratosphere-0.2.0: EDSL for AWS CloudFormation

Safe HaskellNone
LanguageHaskell2010

Stratosphere.ResourceProperties.S3WebsiteRedirectRule

Description

The RedirectRule property is an embedded property of the Amazon S3 Website Configuration Routing Rules Property that describes how requests are redirected. In the event of an error, you can specify a different error code to return.

Synopsis

Documentation

data S3WebsiteRedirectRule Source #

Full data type definition for S3WebsiteRedirectRule. See s3WebsiteRedirectRule for a more convenient constructor.

Instances

Show S3WebsiteRedirectRule Source # 
Generic S3WebsiteRedirectRule Source # 
ToJSON S3WebsiteRedirectRule Source # 
FromJSON S3WebsiteRedirectRule Source # 
type Rep S3WebsiteRedirectRule Source # 
type Rep S3WebsiteRedirectRule = D1 (MetaData "S3WebsiteRedirectRule" "Stratosphere.ResourceProperties.S3WebsiteRedirectRule" "stratosphere-0.2.0-B1WeL9cnxuQ3qer3csMa6f" False) (C1 (MetaCons "S3WebsiteRedirectRule" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_s3WebsiteRedirectRuleHostName") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe (Val Text)))) (S1 (MetaSel (Just Symbol "_s3WebsiteRedirectRuleHttpRedirectCode") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe (Val Text))))) ((:*:) (S1 (MetaSel (Just Symbol "_s3WebsiteRedirectRuleProtocol") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe (Val Text)))) ((:*:) (S1 (MetaSel (Just Symbol "_s3WebsiteRedirectRuleReplaceKeyPrefixWith") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe (Val Text)))) (S1 (MetaSel (Just Symbol "_s3WebsiteRedirectRuleReplaceKeyWith") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe (Val Text))))))))

s3WebsiteRedirectRule :: S3WebsiteRedirectRule Source #

Constructor for S3WebsiteRedirectRule containing required fields as arguments.

swrrHostName :: Lens' S3WebsiteRedirectRule (Maybe (Val Text)) Source #

Name of the host where requests are redirected.

swrrHttpRedirectCode :: Lens' S3WebsiteRedirectRule (Maybe (Val Text)) Source #

The HTTP redirect code to use on the response.

swrrProtocol :: Lens' S3WebsiteRedirectRule (Maybe (Val Text)) Source #

The protocol to use in the redirect request.

swrrReplaceKeyPrefixWith :: Lens' S3WebsiteRedirectRule (Maybe (Val Text)) Source #

The object key prefix to use in the redirect request. For example, to redirect requests for all pages with the prefix docs (objects in the docs folder) to the documents/ prefix, you can set the KeyPrefixEquals property in routing condition property to docs/, and set the ReplaceKeyPrefixWith property to documents/. Important If you specify this property, you cannot specify the ReplaceKeyWith property.

swrrReplaceKeyWith :: Lens' S3WebsiteRedirectRule (Maybe (Val Text)) Source #

The specific object key to use in the redirect request. For example, redirect request to error.html. Important If you specify this property, you cannot specify the ReplaceKeyPrefixWith property.