NetworkSecurityManagerCustomerAPI / Client / list_resource_associations

list_resource_associations

NetworkSecurityManagerCustomerAPI.Client.list_resource_associations(**kwargs)

Lists the resources associated with the specified resource.

See also: AWS API Documentation

Request Syntax

response = client.list_resource_associations(
    resourceIdentifier='string',
    maxResults=123,
    nextToken='string'
)
Parameters:
  • resourceIdentifier (string) –

    [REQUIRED]

    The identifier of the resource to list associations for. This is the resource’s Amazon Resource Name (ARN).

  • maxResults (integer) – The maximum number of results to return in a single call. Valid range: 1-100. To retrieve the remaining results, use the returned nextToken value in a subsequent call.

  • nextToken (string) – The token for the next page of results. To retrieve the next page, call the operation again and provide this value. When there are no more results, this value is null.

Return type:

dict

Returns:

Response Syntax

{
    'nextToken': 'string',
    'resourceAssociations': [
        {
            'arn': 'string',
            'resourceType': 'Rule'|'Template'|'Policy'|'Deployment'|'Scope'
        },
    ]
}

Response Structure

  • (dict) –

    • nextToken (string) –

      The token for the next page of results. To retrieve the next page, call the operation again and provide this value. When there are no more results, this value is null.

    • resourceAssociations (list) –

      The list of resource associations.

      • (dict) –

        Describes an association between a resource and another entity.

        • arn (string) –

          The ARN of the associated resource.

        • resourceType (string) –

          The type of the associated resource, such as Policy, Template, or Deployment.

Exceptions

  • NetworkSecurityManagerCustomerAPI.Client.exceptions.ValidationException

  • NetworkSecurityManagerCustomerAPI.Client.exceptions.InternalServerException

  • NetworkSecurityManagerCustomerAPI.Client.exceptions.AccessDeniedException

  • NetworkSecurityManagerCustomerAPI.Client.exceptions.ThrottlingException