libZSservicesZSamazonka-securityhubZSamazonka-securityhub
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.SecurityHub.Types.AwsCloudFrontDistributionCacheBehavior

Description

 
Synopsis

Documentation

data AwsCloudFrontDistributionCacheBehavior Source #

Information about a cache behavior for the distribution.

See: newAwsCloudFrontDistributionCacheBehavior smart constructor.

Constructors

AwsCloudFrontDistributionCacheBehavior' 

Fields

  • viewerProtocolPolicy :: Maybe Text

    The protocol that viewers can use to access the files in an origin. You can specify the following options:

    • allow-all - Viewers can use HTTP or HTTPS.
    • redirect-to-https - CloudFront responds to HTTP requests with an HTTP status code of 301 (Moved Permanently) and the HTTPS URL. The viewer then uses the new URL to resubmit.
    • https-only - CloudFront responds to HTTP request with an HTTP status code of 403 (Forbidden).

Instances

Instances details
Eq AwsCloudFrontDistributionCacheBehavior Source # 
Instance details

Defined in Amazonka.SecurityHub.Types.AwsCloudFrontDistributionCacheBehavior

Read AwsCloudFrontDistributionCacheBehavior Source # 
Instance details

Defined in Amazonka.SecurityHub.Types.AwsCloudFrontDistributionCacheBehavior

Show AwsCloudFrontDistributionCacheBehavior Source # 
Instance details

Defined in Amazonka.SecurityHub.Types.AwsCloudFrontDistributionCacheBehavior

Generic AwsCloudFrontDistributionCacheBehavior Source # 
Instance details

Defined in Amazonka.SecurityHub.Types.AwsCloudFrontDistributionCacheBehavior

NFData AwsCloudFrontDistributionCacheBehavior Source # 
Instance details

Defined in Amazonka.SecurityHub.Types.AwsCloudFrontDistributionCacheBehavior

Hashable AwsCloudFrontDistributionCacheBehavior Source # 
Instance details

Defined in Amazonka.SecurityHub.Types.AwsCloudFrontDistributionCacheBehavior

ToJSON AwsCloudFrontDistributionCacheBehavior Source # 
Instance details

Defined in Amazonka.SecurityHub.Types.AwsCloudFrontDistributionCacheBehavior

FromJSON AwsCloudFrontDistributionCacheBehavior Source # 
Instance details

Defined in Amazonka.SecurityHub.Types.AwsCloudFrontDistributionCacheBehavior

type Rep AwsCloudFrontDistributionCacheBehavior Source # 
Instance details

Defined in Amazonka.SecurityHub.Types.AwsCloudFrontDistributionCacheBehavior

type Rep AwsCloudFrontDistributionCacheBehavior = D1 ('MetaData "AwsCloudFrontDistributionCacheBehavior" "Amazonka.SecurityHub.Types.AwsCloudFrontDistributionCacheBehavior" "libZSservicesZSamazonka-securityhubZSamazonka-securityhub" 'False) (C1 ('MetaCons "AwsCloudFrontDistributionCacheBehavior'" 'PrefixI 'True) (S1 ('MetaSel ('Just "viewerProtocolPolicy") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))))

newAwsCloudFrontDistributionCacheBehavior :: AwsCloudFrontDistributionCacheBehavior Source #

Create a value of AwsCloudFrontDistributionCacheBehavior 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:viewerProtocolPolicy:AwsCloudFrontDistributionCacheBehavior', awsCloudFrontDistributionCacheBehavior_viewerProtocolPolicy - The protocol that viewers can use to access the files in an origin. You can specify the following options:

  • allow-all - Viewers can use HTTP or HTTPS.
  • redirect-to-https - CloudFront responds to HTTP requests with an HTTP status code of 301 (Moved Permanently) and the HTTPS URL. The viewer then uses the new URL to resubmit.
  • https-only - CloudFront responds to HTTP request with an HTTP status code of 403 (Forbidden).

awsCloudFrontDistributionCacheBehavior_viewerProtocolPolicy :: Lens' AwsCloudFrontDistributionCacheBehavior (Maybe Text) Source #

The protocol that viewers can use to access the files in an origin. You can specify the following options:

  • allow-all - Viewers can use HTTP or HTTPS.
  • redirect-to-https - CloudFront responds to HTTP requests with an HTTP status code of 301 (Moved Permanently) and the HTTPS URL. The viewer then uses the new URL to resubmit.
  • https-only - CloudFront responds to HTTP request with an HTTP status code of 403 (Forbidden).