/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudfront-2020-05-31.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.CloudFront.Model { /// /// A configuration for a set of security-related HTTP response headers. CloudFront adds /// these headers to HTTP responses that it sends for requests that match a cache behavior /// associated with this response headers policy. /// public partial class ResponseHeadersPolicySecurityHeadersConfig { private ResponseHeadersPolicyContentSecurityPolicy _contentSecurityPolicy; private ResponseHeadersPolicyContentTypeOptions _contentTypeOptions; private ResponseHeadersPolicyFrameOptions _frameOptions; private ResponseHeadersPolicyReferrerPolicy _referrerPolicy; private ResponseHeadersPolicyStrictTransportSecurity _strictTransportSecurity; private ResponseHeadersPolicyXSSProtection _xssProtection; /// /// Gets and sets the property ContentSecurityPolicy. /// /// The policy directives and their values that CloudFront includes as values for the /// Content-Security-Policy HTTP response header. /// /// /// /// For more information about the Content-Security-Policy HTTP response /// header, see Content-Security-Policy /// in the MDN Web Docs. /// /// public ResponseHeadersPolicyContentSecurityPolicy ContentSecurityPolicy { get { return this._contentSecurityPolicy; } set { this._contentSecurityPolicy = value; } } // Check to see if ContentSecurityPolicy property is set internal bool IsSetContentSecurityPolicy() { return this._contentSecurityPolicy != null; } /// /// Gets and sets the property ContentTypeOptions. /// /// Determines whether CloudFront includes the X-Content-Type-Options HTTP /// response header with its value set to nosniff. /// /// /// /// For more information about the X-Content-Type-Options HTTP response header, /// see X-Content-Type-Options /// in the MDN Web Docs. /// /// public ResponseHeadersPolicyContentTypeOptions ContentTypeOptions { get { return this._contentTypeOptions; } set { this._contentTypeOptions = value; } } // Check to see if ContentTypeOptions property is set internal bool IsSetContentTypeOptions() { return this._contentTypeOptions != null; } /// /// Gets and sets the property FrameOptions. /// /// Determines whether CloudFront includes the X-Frame-Options HTTP response /// header and the header's value. /// /// /// /// For more information about the X-Frame-Options HTTP response header, /// see X-Frame-Options /// in the MDN Web Docs. /// /// public ResponseHeadersPolicyFrameOptions FrameOptions { get { return this._frameOptions; } set { this._frameOptions = value; } } // Check to see if FrameOptions property is set internal bool IsSetFrameOptions() { return this._frameOptions != null; } /// /// Gets and sets the property ReferrerPolicy. /// /// Determines whether CloudFront includes the Referrer-Policy HTTP response /// header and the header's value. /// /// /// /// For more information about the Referrer-Policy HTTP response header, /// see Referrer-Policy /// in the MDN Web Docs. /// /// public ResponseHeadersPolicyReferrerPolicy ReferrerPolicy { get { return this._referrerPolicy; } set { this._referrerPolicy = value; } } // Check to see if ReferrerPolicy property is set internal bool IsSetReferrerPolicy() { return this._referrerPolicy != null; } /// /// Gets and sets the property StrictTransportSecurity. /// /// Determines whether CloudFront includes the Strict-Transport-Security /// HTTP response header and the header's value. /// /// /// /// For more information about the Strict-Transport-Security HTTP response /// header, see Strict-Transport-Security /// in the MDN Web Docs. /// /// public ResponseHeadersPolicyStrictTransportSecurity StrictTransportSecurity { get { return this._strictTransportSecurity; } set { this._strictTransportSecurity = value; } } // Check to see if StrictTransportSecurity property is set internal bool IsSetStrictTransportSecurity() { return this._strictTransportSecurity != null; } /// /// Gets and sets the property XSSProtection. /// /// Determines whether CloudFront includes the X-XSS-Protection HTTP response /// header and the header's value. /// /// /// /// For more information about the X-XSS-Protection HTTP response header, /// see X-XSS-Protection /// in the MDN Web Docs. /// /// public ResponseHeadersPolicyXSSProtection XSSProtection { get { return this._xssProtection; } set { this._xssProtection = value; } } // Check to see if XSSProtection property is set internal bool IsSetXSSProtection() { return this._xssProtection != null; } } }