/*
* 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 securityhub-2018-10-26.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.SecurityHub.Model
{
///
/// Container for the parameters to the EnableSecurityHub operation.
/// Enables Security Hub for your account in the current Region or the Region you specify
/// in the request.
///
///
///
/// When you enable Security Hub, you grant to Security Hub the permissions necessary
/// to gather findings from other services that are integrated with Security Hub.
///
///
///
/// When you use the EnableSecurityHub
operation to enable Security Hub,
/// you also automatically enable the following standards:
///
/// -
///
/// Center for Internet Security (CIS) Amazon Web Services Foundations Benchmark v1.2.0
///
///
-
///
/// Amazon Web Services Foundational Security Best Practices
///
///
///
/// Other standards are not automatically enabled.
///
///
///
/// To opt out of automatically enabled standards, set EnableDefaultStandards
/// to false
.
///
///
///
/// After you enable Security Hub, to enable a standard, use the BatchEnableStandards
/// operation. To disable a standard, use the BatchDisableStandards
operation.
///
///
///
/// To learn more, see the setup
/// information in the Security Hub User Guide.
///
///
public partial class EnableSecurityHubRequest : AmazonSecurityHubRequest
{
private ControlFindingGenerator _controlFindingGenerator;
private bool? _enableDefaultStandards;
private Dictionary _tags = new Dictionary();
///
/// Gets and sets the property ControlFindingGenerator.
///
/// This field, used when enabling Security Hub, specifies whether the calling account
/// has consolidated control findings turned on. If the value for this field is set to
/// SECURITY_CONTROL
, Security Hub generates a single finding for a control
/// check even when the check applies to multiple enabled standards.
///
///
///
/// If the value for this field is set to STANDARD_CONTROL
, Security Hub
/// generates separate findings for a control check when the check applies to multiple
/// enabled standards.
///
///
///
/// The value for this field in a member account matches the value in the administrator
/// account. For accounts that aren't part of an organization, the default value of this
/// field is SECURITY_CONTROL
if you enabled Security Hub on or after February
/// 23, 2023.
///
///
public ControlFindingGenerator ControlFindingGenerator
{
get { return this._controlFindingGenerator; }
set { this._controlFindingGenerator = value; }
}
// Check to see if ControlFindingGenerator property is set
internal bool IsSetControlFindingGenerator()
{
return this._controlFindingGenerator != null;
}
///
/// Gets and sets the property EnableDefaultStandards.
///
/// Whether to enable the security standards that Security Hub has designated as automatically
/// enabled. If you do not provide a value for EnableDefaultStandards
, it
/// is set to true
. To not enable the automatically enabled standards, set
/// EnableDefaultStandards
to false
.
///
///
public bool EnableDefaultStandards
{
get { return this._enableDefaultStandards.GetValueOrDefault(); }
set { this._enableDefaultStandards = value; }
}
// Check to see if EnableDefaultStandards property is set
internal bool IsSetEnableDefaultStandards()
{
return this._enableDefaultStandards.HasValue;
}
///
/// Gets and sets the property Tags.
///
/// The tags to add to the hub resource when you enable Security Hub.
///
///
[AWSProperty(Min=1, Max=50)]
public Dictionary Tags
{
get { return this._tags; }
set { this._tags = value; }
}
// Check to see if Tags property is set
internal bool IsSetTags()
{
return this._tags != null && this._tags.Count > 0;
}
}
}