/* * 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 accessanalyzer-2019-11-01.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.AccessAnalyzer.Model { /// /// Proposed access control configuration for an Amazon S3 bucket. You can propose a configuration /// for a new Amazon S3 bucket or an existing Amazon S3 bucket that you own by specifying /// the Amazon S3 bucket policy, bucket ACLs, bucket BPA settings, Amazon S3 access points, /// and multi-region access points attached to the bucket. If the configuration is for /// an existing Amazon S3 bucket and you do not specify the Amazon S3 bucket policy, the /// access preview uses the existing policy attached to the bucket. If the access preview /// is for a new resource and you do not specify the Amazon S3 bucket policy, the access /// preview assumes a bucket without a policy. To propose deletion of an existing bucket /// policy, you can specify an empty string. For more information about bucket policy /// limits, see Bucket /// Policy Examples. /// public partial class S3BucketConfiguration { private Dictionary _accessPoints = new Dictionary(); private List _bucketAclGrants = new List(); private string _bucketPolicy; private S3PublicAccessBlockConfiguration _bucketPublicAccessBlock; /// /// Gets and sets the property AccessPoints. /// /// The configuration of Amazon S3 access points or multi-region access points for the /// bucket. You can propose up to 10 new access points per bucket. /// /// public Dictionary AccessPoints { get { return this._accessPoints; } set { this._accessPoints = value; } } // Check to see if AccessPoints property is set internal bool IsSetAccessPoints() { return this._accessPoints != null && this._accessPoints.Count > 0; } /// /// Gets and sets the property BucketAclGrants. /// /// The proposed list of ACL grants for the Amazon S3 bucket. You can propose up to 100 /// ACL grants per bucket. If the proposed grant configuration is for an existing bucket, /// the access preview uses the proposed list of grant configurations in place of the /// existing grants. Otherwise, the access preview uses the existing grants for the bucket. /// /// public List BucketAclGrants { get { return this._bucketAclGrants; } set { this._bucketAclGrants = value; } } // Check to see if BucketAclGrants property is set internal bool IsSetBucketAclGrants() { return this._bucketAclGrants != null && this._bucketAclGrants.Count > 0; } /// /// Gets and sets the property BucketPolicy. /// /// The proposed bucket policy for the Amazon S3 bucket. /// /// public string BucketPolicy { get { return this._bucketPolicy; } set { this._bucketPolicy = value; } } // Check to see if BucketPolicy property is set internal bool IsSetBucketPolicy() { return this._bucketPolicy != null; } /// /// Gets and sets the property BucketPublicAccessBlock. /// /// The proposed block public access configuration for the Amazon S3 bucket. /// /// public S3PublicAccessBlockConfiguration BucketPublicAccessBlock { get { return this._bucketPublicAccessBlock; } set { this._bucketPublicAccessBlock = value; } } // Check to see if BucketPublicAccessBlock property is set internal bool IsSetBucketPublicAccessBlock() { return this._bucketPublicAccessBlock != null; } } }