AWS Fundamentals Logo
AWS Fundamentals
AWS::SecurityHub::PolicyAssociation

SecurityHub PolicyAssociation

The 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.

Properties

3 configurable properties. 3 required. Click a row to see details.

Filter:
PropertyTypeFlags
ConfigurationPolicyId
string
Required
TargetId
string
RequiredCreate-only
TargetType
string
RequiredCreate-only

Return Values

Values returned after the resource is created. Access these with Fn::GetAtt.

AttributeTypeDescription
AssociationIdentifierstringA unique identifier to indicates if the target has an association
AssociationStatusstringThe current status of the association between the specified target and the configuration
AssociationStatusMessagestringAn explanation for a FAILED value for AssociationStatus
AssociationTypestringIndicates whether the association between the specified target and the configuration was directly applied by the Security Hub delegated administrator or inherited from a parent
UpdatedAtstringThe date and time, in UTC and ISO 8601 format, that the configuration policy association was last updated

Sample CloudFormation Template

A minimal template with required properties and common optional ones.

template.yaml
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"

Required IAM Permissions

Permissions CloudFormation needs in your IAM role to manage this resource.

create

securityhub:StartConfigurationPolicyAssociationsecurityhub:GetConfigurationPolicyAssociation

read

securityhub:GetConfigurationPolicyAssociationsecurityhub:GetConfigurationPolicyAssociation

update

securityhub:StartConfigurationPolicyAssociationsecurityhub:GetConfigurationPolicyAssociation

delete

securityhub:StartConfigurationPolicyDisassociationsecurityhub:GetConfigurationPolicyAssociation

list

securityhub:ListConfigurationPolicyAssociations

Learn AWS the Practical Way

Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.

Subscribe to Newsletter

Quick Facts

ServiceSecurityHub
Properties8
Required3
TaggingNot supported
Primary IDAssociationIdentifier

Supported Operations

CreateReadUpdateDeleteList

Immutable After Creation

These properties cannot be changed after the resource is created. Updating them triggers a replacement.

TargetIdTargetType

External Links