Assurance / Client / list_control_resources

list_control_resources

Assurance.Client.list_control_resources(**kwargs)

Lists the resources that are in scope for the automated evaluation of a control. If no resource types apply to the control, the list is empty.

See also: AWS API Documentation

Request Syntax

response = client.list_control_resources(
    environmentArn='string',
    framework='string',
    frameworkVersion='string',
    controlId='string',
    project='string',
    maxResults=123,
    nextToken='string'
)
Parameters:
  • environmentArn (string) –

    [REQUIRED]

    The Amazon Resource Name (ARN) of this governance environment.

  • framework (string) –

    [REQUIRED]

    The name of the compliance framework.

  • frameworkVersion (string) –

    [REQUIRED]

    The version of the compliance framework.

  • controlId (string) –

    [REQUIRED]

    The identifier of the control.

  • project (string) – Optional project scope. When provided, only resources that match the project’s resource filters are considered. When omitted, all of the environment’s resources are considered.

  • maxResults (integer) – The maximum number of results to return on one page. The default is 50. If more results are available, use the nextToken value from the response to get the next page.

  • nextToken (string) – The pagination token returned by a previous request. Use it to retrieve the next page of results.

Return type:

dict

Returns:

Response Syntax

{
    'resources': [
        {
            'resourceIdentifier': 'string',
            'resourceType': 'string',
            'accountId': 'string',
            'region': 'string'
        },
    ],
    'nextToken': 'string'
}

Response Structure

  • (dict) –

    • resources (list) –

      The discovered resources that are in scope for the control.

      • (dict) –

        A resource that is in scope for an environment, project, or control, as returned by ListDiscoveredResources and ListControlResources.

        • resourceIdentifier (string) –

          The identifier (typically the ARN) of the resource.

        • resourceType (string) –

          The resource type, in lowercase service:type form (for example, s3:bucket). This is the form that resourcetype: filters use.

        • accountId (string) –

          The AWS account the resource belongs to.

        • region (string) –

          The AWS Region that the resource is in. The value is global for global resources such as IAM.

    • nextToken (string) –

      The pagination token for the next page of results. If the value is null, there are no more results to return.

Exceptions