1. Packages
  2. AWS Cloud Control
  3. API Docs
  4. securityhub
  5. getPolicyAssociation

We recommend new projects start with resources from the AWS provider.

AWS Cloud Control v1.27.0 published on Monday, Apr 14, 2025 by Pulumi

aws-native.securityhub.getPolicyAssociation

Explore with Pulumi AI

We recommend new projects start with resources from the AWS provider.

AWS Cloud Control v1.27.0 published on Monday, Apr 14, 2025 by Pulumi

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.

Using getPolicyAssociation

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function getPolicyAssociation(args: GetPolicyAssociationArgs, opts?: InvokeOptions): Promise<GetPolicyAssociationResult>
function getPolicyAssociationOutput(args: GetPolicyAssociationOutputArgs, opts?: InvokeOptions): Output<GetPolicyAssociationResult>
Copy
def get_policy_association(association_identifier: Optional[str] = None,
                           opts: Optional[InvokeOptions] = None) -> GetPolicyAssociationResult
def get_policy_association_output(association_identifier: Optional[pulumi.Input[str]] = None,
                           opts: Optional[InvokeOptions] = None) -> Output[GetPolicyAssociationResult]
Copy
func LookupPolicyAssociation(ctx *Context, args *LookupPolicyAssociationArgs, opts ...InvokeOption) (*LookupPolicyAssociationResult, error)
func LookupPolicyAssociationOutput(ctx *Context, args *LookupPolicyAssociationOutputArgs, opts ...InvokeOption) LookupPolicyAssociationResultOutput
Copy

> Note: This function is named LookupPolicyAssociation in the Go SDK.

public static class GetPolicyAssociation 
{
    public static Task<GetPolicyAssociationResult> InvokeAsync(GetPolicyAssociationArgs args, InvokeOptions? opts = null)
    public static Output<GetPolicyAssociationResult> Invoke(GetPolicyAssociationInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetPolicyAssociationResult> getPolicyAssociation(GetPolicyAssociationArgs args, InvokeOptions options)
public static Output<GetPolicyAssociationResult> getPolicyAssociation(GetPolicyAssociationArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: aws-native:securityhub:getPolicyAssociation
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

AssociationIdentifier This property is required. string
A unique identifier to indicates if the target has an association
AssociationIdentifier This property is required. string
A unique identifier to indicates if the target has an association
associationIdentifier This property is required. String
A unique identifier to indicates if the target has an association
associationIdentifier This property is required. string
A unique identifier to indicates if the target has an association
association_identifier This property is required. str
A unique identifier to indicates if the target has an association
associationIdentifier This property is required. String
A unique identifier to indicates if the target has an association

getPolicyAssociation Result

The following output properties are available:

AssociationIdentifier string
A unique identifier to indicates if the target has an association
AssociationStatus Pulumi.AwsNative.SecurityHub.PolicyAssociationAssociationStatus
The current status of the association between the specified target and the configuration
AssociationStatusMessage string
An explanation for a FAILED value for AssociationStatus
AssociationType Pulumi.AwsNative.SecurityHub.PolicyAssociationAssociationType
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
ConfigurationPolicyId string
The universally unique identifier (UUID) of the configuration policy or a value of SELF_MANAGED_SECURITY_HUB for a self-managed configuration
UpdatedAt string
The date and time, in UTC and ISO 8601 format, that the configuration policy association was last updated
AssociationIdentifier string
A unique identifier to indicates if the target has an association
AssociationStatus PolicyAssociationAssociationStatus
The current status of the association between the specified target and the configuration
AssociationStatusMessage string
An explanation for a FAILED value for AssociationStatus
AssociationType PolicyAssociationAssociationType
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
ConfigurationPolicyId string
The universally unique identifier (UUID) of the configuration policy or a value of SELF_MANAGED_SECURITY_HUB for a self-managed configuration
UpdatedAt string
The date and time, in UTC and ISO 8601 format, that the configuration policy association was last updated
associationIdentifier String
A unique identifier to indicates if the target has an association
associationStatus PolicyAssociationAssociationStatus
The current status of the association between the specified target and the configuration
associationStatusMessage String
An explanation for a FAILED value for AssociationStatus
associationType PolicyAssociationAssociationType
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
configurationPolicyId String
The universally unique identifier (UUID) of the configuration policy or a value of SELF_MANAGED_SECURITY_HUB for a self-managed configuration
updatedAt String
The date and time, in UTC and ISO 8601 format, that the configuration policy association was last updated
associationIdentifier string
A unique identifier to indicates if the target has an association
associationStatus PolicyAssociationAssociationStatus
The current status of the association between the specified target and the configuration
associationStatusMessage string
An explanation for a FAILED value for AssociationStatus
associationType PolicyAssociationAssociationType
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
configurationPolicyId string
The universally unique identifier (UUID) of the configuration policy or a value of SELF_MANAGED_SECURITY_HUB for a self-managed configuration
updatedAt string
The date and time, in UTC and ISO 8601 format, that the configuration policy association was last updated
association_identifier str
A unique identifier to indicates if the target has an association
association_status PolicyAssociationAssociationStatus
The current status of the association between the specified target and the configuration
association_status_message str
An explanation for a FAILED value for AssociationStatus
association_type PolicyAssociationAssociationType
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
configuration_policy_id str
The universally unique identifier (UUID) of the configuration policy or a value of SELF_MANAGED_SECURITY_HUB for a self-managed configuration
updated_at str
The date and time, in UTC and ISO 8601 format, that the configuration policy association was last updated
associationIdentifier String
A unique identifier to indicates if the target has an association
associationStatus "SUCCESS" | "PENDING" | "FAILED"
The current status of the association between the specified target and the configuration
associationStatusMessage String
An explanation for a FAILED value for AssociationStatus
associationType "APPLIED" | "INHERITED"
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
configurationPolicyId String
The universally unique identifier (UUID) of the configuration policy or a value of SELF_MANAGED_SECURITY_HUB for a self-managed configuration
updatedAt String
The date and time, in UTC and ISO 8601 format, that the configuration policy association was last updated

Supporting Types

PolicyAssociationAssociationStatus

PolicyAssociationAssociationType

Package Details

Repository
AWS Native pulumi/pulumi-aws-native
License
Apache-2.0

We recommend new projects start with resources from the AWS provider.

AWS Cloud Control v1.27.0 published on Monday, Apr 14, 2025 by Pulumi