We recommend new projects start with resources from the AWS provider.
aws-native.securityhub.getPolicyAssociation
Explore with Pulumi AI
We recommend new projects start with resources from the AWS provider.
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>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]func LookupPolicyAssociation(ctx *Context, args *LookupPolicyAssociationArgs, opts ...InvokeOption) (*LookupPolicyAssociationResult, error)
func LookupPolicyAssociationOutput(ctx *Context, args *LookupPolicyAssociationOutputArgs, opts ...InvokeOption) LookupPolicyAssociationResultOutput> 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)
}public static CompletableFuture<GetPolicyAssociationResult> getPolicyAssociation(GetPolicyAssociationArgs args, InvokeOptions options)
public static Output<GetPolicyAssociationResult> getPolicyAssociation(GetPolicyAssociationArgs args, InvokeOptions options)
fn::invoke:
  function: aws-native:securityhub:getPolicyAssociation
  arguments:
    # arguments dictionaryThe following arguments are supported:
- AssociationIdentifier string
- A unique identifier to indicates if the target has an association
- AssociationIdentifier string
- A unique identifier to indicates if the target has an association
- associationIdentifier String
- A unique identifier to indicates if the target has an association
- associationIdentifier string
- A unique identifier to indicates if the target has an association
- association_identifier str
- A unique identifier to indicates if the target has an association
- associationIdentifier 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.Aws Native. Security Hub. Policy Association Association Status 
- The current status of the association between the specified target and the configuration
- AssociationStatus stringMessage 
- An explanation for a FAILED value for AssociationStatus
- AssociationType Pulumi.Aws Native. Security Hub. Policy Association Association Type 
- 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
- ConfigurationPolicy stringId 
- 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 PolicyAssociation Association Status 
- The current status of the association between the specified target and the configuration
- AssociationStatus stringMessage 
- An explanation for a FAILED value for AssociationStatus
- AssociationType PolicyAssociation Association Type 
- 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
- ConfigurationPolicy stringId 
- 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 PolicyAssociation Association Status 
- The current status of the association between the specified target and the configuration
- associationStatus StringMessage 
- An explanation for a FAILED value for AssociationStatus
- associationType PolicyAssociation Association Type 
- 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
- configurationPolicy StringId 
- 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 PolicyAssociation Association Status 
- The current status of the association between the specified target and the configuration
- associationStatus stringMessage 
- An explanation for a FAILED value for AssociationStatus
- associationType PolicyAssociation Association Type 
- 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
- configurationPolicy stringId 
- 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 PolicyAssociation Association Status 
- The current status of the association between the specified target and the configuration
- association_status_ strmessage 
- An explanation for a FAILED value for AssociationStatus
- association_type PolicyAssociation Association Type 
- 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_ strid 
- 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
- associationStatus StringMessage 
- 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
- configurationPolicy StringId 
- 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.