/*
* 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
{
///
/// The PublicAccessBlock
configuration to apply to this Amazon S3 bucket.
/// If the proposed configuration is for an existing Amazon S3 bucket and the configuration
/// is not specified, the access preview uses the existing setting. If the proposed configuration
/// is for a new bucket and the configuration is not specified, the access preview uses
/// false
. If the proposed configuration is for a new access point or multi-region
/// access point and the access point BPA configuration is not specified, the access preview
/// uses true
. For more information, see PublicAccessBlockConfiguration.
///
public partial class S3PublicAccessBlockConfiguration
{
private bool? _ignorePublicAcls;
private bool? _restrictPublicBuckets;
///
/// Gets and sets the property IgnorePublicAcls.
///
/// Specifies whether Amazon S3 should ignore public ACLs for this bucket and objects
/// in this bucket.
///
///
[AWSProperty(Required=true)]
public bool IgnorePublicAcls
{
get { return this._ignorePublicAcls.GetValueOrDefault(); }
set { this._ignorePublicAcls = value; }
}
// Check to see if IgnorePublicAcls property is set
internal bool IsSetIgnorePublicAcls()
{
return this._ignorePublicAcls.HasValue;
}
///
/// Gets and sets the property RestrictPublicBuckets.
///
/// Specifies whether Amazon S3 should restrict public bucket policies for this bucket.
///
///
///
[AWSProperty(Required=true)]
public bool RestrictPublicBuckets
{
get { return this._restrictPublicBuckets.GetValueOrDefault(); }
set { this._restrictPublicBuckets = value; }
}
// Check to see if RestrictPublicBuckets property is set
internal bool IsSetRestrictPublicBuckets()
{
return this._restrictPublicBuckets.HasValue;
}
}
}