AWS::SecurityHub::PolicyAssociationThe AWS::SecurityHub::PolicyAssociation resource represents the AWS Security Hub Central Configuration Policy associations in your Target. Only the AWS Security Hub delegated administrator can create the resouce from the home region.
3 configurable properties. 3 required. Click a row to see details.
| Property | Type | Flags |
|---|---|---|
ConfigurationPolicyId | string | Required |
TargetId | string | RequiredCreate-only |
TargetType | string | RequiredCreate-only |
Values returned after the resource is created. Access these with Fn::GetAtt.
| Attribute | Type | Description |
|---|---|---|
AssociationIdentifier | string | A unique identifier to indicates if the target has an association |
AssociationStatus | string | The current status of the association between the specified target and the configuration |
AssociationStatusMessage | string | An explanation for a FAILED value for AssociationStatus |
AssociationType | string | 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 |
UpdatedAt | string | The date and time, in UTC and ISO 8601 format, that the configuration policy association was last updated |
A minimal template with required properties and common optional ones.
AWSTemplateFormatVersion: "2010-09-09"
Description: Sample template for AWS::SecurityHub::PolicyAssociation
Resources:
MyResource:
Type: AWS::SecurityHub::PolicyAssociation
Properties:
TargetId: "my-targetid"
TargetType: "ACCOUNT"
ConfigurationPolicyId: "my-configurationpolicyid"Permissions CloudFormation needs in your IAM role to manage this resource.
securityhub:StartConfigurationPolicyAssociationsecurityhub:GetConfigurationPolicyAssociationsecurityhub:GetConfigurationPolicyAssociationsecurityhub:GetConfigurationPolicyAssociationsecurityhub:StartConfigurationPolicyAssociationsecurityhub:GetConfigurationPolicyAssociationsecurityhub:StartConfigurationPolicyDisassociationsecurityhub:GetConfigurationPolicyAssociationsecurityhub:ListConfigurationPolicyAssociationsOur bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.
Subscribe to NewsletterAssociationIdentifierThese properties cannot be changed after the resource is created. Updating them triggers a replacement.
TargetIdTargetType