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.AwsCloudFrontDistributionDefaultCacheBehavior

Description

 
Synopsis

Documentation

data AwsCloudFrontDistributionDefaultCacheBehavior Source #

Contains information about the default cache configuration for the distribution.

See: newAwsCloudFrontDistributionDefaultCacheBehavior smart constructor.

Constructors

AwsCloudFrontDistributionDefaultCacheBehavior' 

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 AwsCloudFrontDistributionDefaultCacheBehavior Source # 
Instance details

Defined in Amazonka.SecurityHub.Types.AwsCloudFrontDistributionDefaultCacheBehavior

Read AwsCloudFrontDistributionDefaultCacheBehavior Source # 
Instance details

Defined in Amazonka.SecurityHub.Types.AwsCloudFrontDistributionDefaultCacheBehavior

Show AwsCloudFrontDistributionDefaultCacheBehavior Source # 
Instance details

Defined in Amazonka.SecurityHub.Types.AwsCloudFrontDistributionDefaultCacheBehavior

Generic AwsCloudFrontDistributionDefaultCacheBehavior Source # 
Instance details

Defined in Amazonka.SecurityHub.Types.AwsCloudFrontDistributionDefaultCacheBehavior

NFData AwsCloudFrontDistributionDefaultCacheBehavior Source # 
Instance details

Defined in Amazonka.SecurityHub.Types.AwsCloudFrontDistributionDefaultCacheBehavior

Hashable AwsCloudFrontDistributionDefaultCacheBehavior Source # 
Instance details

Defined in Amazonka.SecurityHub.Types.AwsCloudFrontDistributionDefaultCacheBehavior

ToJSON AwsCloudFrontDistributionDefaultCacheBehavior Source # 
Instance details

Defined in Amazonka.SecurityHub.Types.AwsCloudFrontDistributionDefaultCacheBehavior

FromJSON AwsCloudFrontDistributionDefaultCacheBehavior Source # 
Instance details

Defined in Amazonka.SecurityHub.Types.AwsCloudFrontDistributionDefaultCacheBehavior

type Rep AwsCloudFrontDistributionDefaultCacheBehavior Source # 
Instance details

Defined in Amazonka.SecurityHub.Types.AwsCloudFrontDistributionDefaultCacheBehavior

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

newAwsCloudFrontDistributionDefaultCacheBehavior :: AwsCloudFrontDistributionDefaultCacheBehavior Source #

Create a value of AwsCloudFrontDistributionDefaultCacheBehavior 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:AwsCloudFrontDistributionDefaultCacheBehavior', awsCloudFrontDistributionDefaultCacheBehavior_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).

awsCloudFrontDistributionDefaultCacheBehavior_viewerProtocolPolicy :: Lens' AwsCloudFrontDistributionDefaultCacheBehavior (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).