/* * 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 complex type that contains information about the Amazon S3 origin. If the origin /// is a custom origin or an S3 bucket that is configured as a website endpoint, use the /// CustomOriginConfig element instead. /// public partial class S3OriginConfig { private string _originAccessIdentity; /// /// Gets and sets the property OriginAccessIdentity. /// /// The CloudFront origin access identity to associate with the origin. Use an origin /// access identity to configure the origin so that viewers can only access objects /// in an Amazon S3 bucket through CloudFront. The format of the value is: /// /// /// /// origin-access-identity/cloudfront/ID-of-origin-access-identity /// /// /// /// where ID-of-origin-access-identity is the value that CloudFront /// returned in the ID element when you created the origin access identity. /// /// /// /// If you want viewers to be able to access objects using either the CloudFront URL or /// the Amazon S3 URL, specify an empty OriginAccessIdentity element. /// /// /// /// To delete the origin access identity from an existing distribution, update the distribution /// configuration and include an empty OriginAccessIdentity element. /// /// /// /// To replace the origin access identity, update the distribution configuration and specify /// the new origin access identity. /// /// /// /// For more information about the origin access identity, see Serving /// Private Content through CloudFront in the Amazon CloudFront Developer Guide. /// /// [AWSProperty(Required=true)] public string OriginAccessIdentity { get { return this._originAccessIdentity; } set { this._originAccessIdentity = value; } } // Check to see if OriginAccessIdentity property is set internal bool IsSetOriginAccessIdentity() { return this._originAccessIdentity != null; } } }