Class CfnPolicyAssociation
The AWS::SecurityHub::PolicyAssociation resource specifies associations for a configuration policy or a self-managed configuration.
Inherited Members
Namespace: Amazon.CDK.AWS.SecurityHub
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnPolicyAssociation : CfnResource, IInspectable, IPolicyAssociationRef, IConstruct, IDependable, IEnvironmentAware
Syntax (vb)
Public Class CfnPolicyAssociation Inherits CfnResource Implements IInspectable, IPolicyAssociationRef, IConstruct, IDependable, IEnvironmentAware
Remarks
You can associate a Security Hub configuration policy or self-managed configuration with the organization root, organizational units (OUs), or AWS accounts . After a successful association, the configuration policy takes effect in the specified targets. For more information, see Creating and associating Security Hub configuration policies in the Security Hub User Guide .
CloudformationResource: AWS::SecurityHub::PolicyAssociation
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 cfnPolicyAssociation = new CfnPolicyAssociation(this, "MyCfnPolicyAssociation", new CfnPolicyAssociationProps {
ConfigurationPolicyId = "configurationPolicyId",
TargetId = "targetId",
TargetType = "targetType"
});
Synopsis
Constructors
| CfnPolicyAssociation(Construct, string, ICfnPolicyAssociationProps) | Create a new |
Properties
| AttrAssociationIdentifier | The association identifier, formatted as |
| AttrAssociationStatus | The current status of the association between the specified target and the configuration. |
| AttrAssociationStatusMessage | The explanation for a |
| AttrAssociationType | Indicates whether the association between the specified target and the configuration was directly applied by the Security Hub delegated administrator or inherited from a parent. |
| AttrUpdatedAt | The date and time, in UTC and ISO 8601 format, that the configuration policy association was last updated. |
| CFN_RESOURCE_TYPE_NAME | The CloudFormation resource type name for this resource class. |
| CfnProperties | The |
| ConfigurationPolicyId | The universally unique identifier (UUID) of the configuration policy. |
| PolicyAssociationRef | A reference to a PolicyAssociation resource. |
| TargetId | The identifier of the target account, organizational unit, or the root. |
| TargetType | Specifies whether the target is an AWS account , organizational unit, or the root. |
Methods
| Inspect(TreeInspector) | Examines the CloudFormation resource and discloses attributes. |
| IsCfnPolicyAssociation(object) | Checks whether the given object is a CfnPolicyAssociation. |
| RenderProperties(IDictionary<string, object>) | The |
Constructors
CfnPolicyAssociation(Construct, string, ICfnPolicyAssociationProps)
Create a new AWS::SecurityHub::PolicyAssociation.
public CfnPolicyAssociation(Construct scope, string id, ICfnPolicyAssociationProps props)
Parameters
- scope Construct
Scope in which this resource is defined.
- id string
Construct identifier for this resource (unique in its scope).
- props ICfnPolicyAssociationProps
Resource properties.
Remarks
You can associate a Security Hub configuration policy or self-managed configuration with the organization root, organizational units (OUs), or AWS accounts . After a successful association, the configuration policy takes effect in the specified targets. For more information, see Creating and associating Security Hub configuration policies in the Security Hub User Guide .
CloudformationResource: AWS::SecurityHub::PolicyAssociation
ExampleMetadata: fixture=_generated
Properties
AttrAssociationIdentifier
The association identifier, formatted as TargetType/TargetId .
public virtual string AttrAssociationIdentifier { get; }
Property Value
Remarks
For example, ACCOUNT/123456789012 .
CloudformationAttribute: AssociationIdentifier
AttrAssociationStatus
The current status of the association between the specified target and the configuration.
public virtual string AttrAssociationStatus { get; }
Property Value
Remarks
CloudformationAttribute: AssociationStatus
AttrAssociationStatusMessage
The explanation for a FAILED value for AssociationStatus .
public virtual string AttrAssociationStatusMessage { get; }
Property Value
Remarks
CloudformationAttribute: AssociationStatusMessage
AttrAssociationType
Indicates whether the association between the specified target and the configuration was directly applied by the Security Hub delegated administrator or inherited from a parent.
public virtual string AttrAssociationType { get; }
Property Value
Remarks
CloudformationAttribute: AssociationType
AttrUpdatedAt
The date and time, in UTC and ISO 8601 format, that the configuration policy association was last updated.
public virtual string AttrUpdatedAt { get; }
Property Value
Remarks
CloudformationAttribute: UpdatedAt
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
public static string CFN_RESOURCE_TYPE_NAME { get; }
Property Value
Remarks
You can associate a Security Hub configuration policy or self-managed configuration with the organization root, organizational units (OUs), or AWS accounts . After a successful association, the configuration policy takes effect in the specified targets. For more information, see Creating and associating Security Hub configuration policies in the Security Hub User Guide .
CloudformationResource: AWS::SecurityHub::PolicyAssociation
ExampleMetadata: fixture=_generated
CfnProperties
The AWS::SecurityHub::PolicyAssociation resource specifies associations for a configuration policy or a self-managed configuration.
protected override IDictionary<string, object> CfnProperties { get; }
Property Value
Overrides
Remarks
You can associate a Security Hub configuration policy or self-managed configuration with the organization root, organizational units (OUs), or AWS accounts . After a successful association, the configuration policy takes effect in the specified targets. For more information, see Creating and associating Security Hub configuration policies in the Security Hub User Guide .
CloudformationResource: AWS::SecurityHub::PolicyAssociation
ExampleMetadata: fixture=_generated
ConfigurationPolicyId
The universally unique identifier (UUID) of the configuration policy.
public virtual string ConfigurationPolicyId { get; set; }
Property Value
Remarks
You can associate a Security Hub configuration policy or self-managed configuration with the organization root, organizational units (OUs), or AWS accounts . After a successful association, the configuration policy takes effect in the specified targets. For more information, see Creating and associating Security Hub configuration policies in the Security Hub User Guide .
CloudformationResource: AWS::SecurityHub::PolicyAssociation
ExampleMetadata: fixture=_generated
PolicyAssociationRef
A reference to a PolicyAssociation resource.
public virtual IPolicyAssociationReference PolicyAssociationRef { get; }
Property Value
Remarks
You can associate a Security Hub configuration policy or self-managed configuration with the organization root, organizational units (OUs), or AWS accounts . After a successful association, the configuration policy takes effect in the specified targets. For more information, see Creating and associating Security Hub configuration policies in the Security Hub User Guide .
CloudformationResource: AWS::SecurityHub::PolicyAssociation
ExampleMetadata: fixture=_generated
TargetId
The identifier of the target account, organizational unit, or the root.
public virtual string TargetId { get; set; }
Property Value
Remarks
You can associate a Security Hub configuration policy or self-managed configuration with the organization root, organizational units (OUs), or AWS accounts . After a successful association, the configuration policy takes effect in the specified targets. For more information, see Creating and associating Security Hub configuration policies in the Security Hub User Guide .
CloudformationResource: AWS::SecurityHub::PolicyAssociation
ExampleMetadata: fixture=_generated
TargetType
Specifies whether the target is an AWS account , organizational unit, or the root.
public virtual string TargetType { get; set; }
Property Value
Remarks
You can associate a Security Hub configuration policy or self-managed configuration with the organization root, organizational units (OUs), or AWS accounts . After a successful association, the configuration policy takes effect in the specified targets. For more information, see Creating and associating Security Hub configuration policies in the Security Hub User Guide .
CloudformationResource: AWS::SecurityHub::PolicyAssociation
ExampleMetadata: fixture=_generated
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.
Remarks
You can associate a Security Hub configuration policy or self-managed configuration with the organization root, organizational units (OUs), or AWS accounts . After a successful association, the configuration policy takes effect in the specified targets. For more information, see Creating and associating Security Hub configuration policies in the Security Hub User Guide .
CloudformationResource: AWS::SecurityHub::PolicyAssociation
ExampleMetadata: fixture=_generated
IsCfnPolicyAssociation(object)
Checks whether the given object is a CfnPolicyAssociation.
public static bool IsCfnPolicyAssociation(object x)
Parameters
- x object
Returns
Remarks
You can associate a Security Hub configuration policy or self-managed configuration with the organization root, organizational units (OUs), or AWS accounts . After a successful association, the configuration policy takes effect in the specified targets. For more information, see Creating and associating Security Hub configuration policies in the Security Hub User Guide .
CloudformationResource: AWS::SecurityHub::PolicyAssociation
ExampleMetadata: fixture=_generated
RenderProperties(IDictionary<string, object>)
The AWS::SecurityHub::PolicyAssociation resource specifies associations for a configuration policy or a self-managed configuration.
protected override IDictionary<string, object> RenderProperties(IDictionary<string, object> props)
Parameters
- props IDictionary<string, object>
Returns
Overrides
Remarks
You can associate a Security Hub configuration policy or self-managed configuration with the organization root, organizational units (OUs), or AWS accounts . After a successful association, the configuration policy takes effect in the specified targets. For more information, see Creating and associating Security Hub configuration policies in the Security Hub User Guide .
CloudformationResource: AWS::SecurityHub::PolicyAssociation
ExampleMetadata: fixture=_generated