Class CfnStandard
The AWS::SecurityHub::Standard
resource specifies the enablement of a security standard.
Implements
Inherited Members
Namespace: Amazon.CDK.AWS.SecurityHub
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnStandard : CfnResource, IInspectable
Syntax (vb)
Public Class CfnStandard
Inherits CfnResource
Implements IInspectable
Remarks
The standard is identified by the StandardsArn
property. To view a list of Security Hub standards and their Amazon Resource Names (ARNs), use the DescribeStandards
API operation.
You must create a separate AWS::SecurityHub::Standard
resource for each standard that you want to enable.
For more information about Security Hub standards, see Security Hub standards reference in the AWS Security Hub User Guide .
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-securityhub-standard.html
CloudformationResource: AWS::SecurityHub::Standard
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.SecurityHub;
var cfnStandard = new CfnStandard(this, "MyCfnStandard", new CfnStandardProps {
StandardsArn = "standardsArn",
// the properties below are optional
DisabledStandardsControls = new [] { new StandardsControlProperty {
StandardsControlArn = "standardsControlArn",
// the properties below are optional
Reason = "reason"
} }
});
Synopsis
Constructors
CfnStandard(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
CfnStandard(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
CfnStandard(Construct, String, ICfnStandardProps) |
Properties
AttrStandardsSubscriptionArn | The ARN of a resource that represents your subscription to a supported standard. |
CFN_RESOURCE_TYPE_NAME | The CloudFormation resource type name for this resource class. |
CfnProperties | |
DisabledStandardsControls | Specifies which controls are to be disabled in a standard. |
StandardsArn | The ARN of the standard that you want to enable. |
Methods
Inspect(TreeInspector) | Examines the CloudFormation resource and discloses attributes. |
RenderProperties(IDictionary<String, Object>) |
Constructors
CfnStandard(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected CfnStandard(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
CfnStandard(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected CfnStandard(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
CfnStandard(Construct, String, ICfnStandardProps)
public CfnStandard(Construct scope, string id, ICfnStandardProps props)
Parameters
- scope Constructs.Construct
Scope in which this resource is defined.
- id System.String
Construct identifier for this resource (unique in its scope).
- props ICfnStandardProps
Resource properties.
Properties
AttrStandardsSubscriptionArn
The ARN of a resource that represents your subscription to a supported standard.
public virtual string AttrStandardsSubscriptionArn { get; }
Property Value
System.String
Remarks
CloudformationAttribute: StandardsSubscriptionArn
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
public static string CFN_RESOURCE_TYPE_NAME { get; }
Property Value
System.String
CfnProperties
protected override IDictionary<string, object> CfnProperties { get; }
Property Value
System.Collections.Generic.IDictionary<System.String, System.Object>
Overrides
DisabledStandardsControls
Specifies which controls are to be disabled in a standard.
public virtual object DisabledStandardsControls { get; set; }
Property Value
System.Object
StandardsArn
The ARN of the standard that you want to enable.
public virtual string StandardsArn { get; set; }
Property Value
System.String
Methods
Inspect(TreeInspector)
Examines the CloudFormation resource and discloses attributes.
public virtual void Inspect(TreeInspector inspector)
Parameters
- inspector TreeInspector
tree inspector to collect and process attributes.
RenderProperties(IDictionary<String, Object>)
protected override IDictionary<string, object> RenderProperties(IDictionary<string, object> props)
Parameters
- props System.Collections.Generic.IDictionary<System.String, System.Object>
Returns
System.Collections.Generic.IDictionary<System.String, System.Object>