CloudFormation / Client / describe_resource_scan

describe_resource_scan#

CloudFormation.Client.describe_resource_scan(**kwargs)#

Describes details of a resource scan.

See also: AWS API Documentation

Request Syntax

response = client.describe_resource_scan(
    ResourceScanId='string'
)
Parameters:

ResourceScanId (string) –

[REQUIRED]

The Amazon Resource Name (ARN) of the resource scan.

Return type:

dict

Returns:

Response Syntax

{
    'ResourceScanId': 'string',
    'Status': 'IN_PROGRESS'|'FAILED'|'COMPLETE'|'EXPIRED',
    'StatusReason': 'string',
    'StartTime': datetime(2015, 1, 1),
    'EndTime': datetime(2015, 1, 1),
    'PercentageCompleted': 123.0,
    'ResourceTypes': [
        'string',
    ],
    'ResourcesScanned': 123,
    'ResourcesRead': 123
}

Response Structure

  • (dict) –

    • ResourceScanId (string) –

      The Amazon Resource Name (ARN) of the resource scan. The format is arn:${Partition}:cloudformation:${Region}:${Account}:resourceScan/${Id}. An example is ``arn:aws:cloudformation:us-east-1:123456789012:resourceScan/f5b490f7-7ed4-428a-aa06-31ff25db0772 ``.

    • Status (string) –

      Status of the resource scan.

      INPROGRESS

      The resource scan is still in progress.

      COMPLETE

      The resource scan is complete.

      EXPIRED

      The resource scan has expired.

      FAILED

      The resource scan has failed.

    • StatusReason (string) –

      The reason for the resource scan status, providing more information if a failure happened.

    • StartTime (datetime) –

      The time that the resource scan was started.

    • EndTime (datetime) –

      The time that the resource scan was finished.

    • PercentageCompleted (float) –

      The percentage of the resource scan that has been completed.

    • ResourceTypes (list) –

      The list of resource types for the specified scan. Resource types are only available for scans with a Status set to COMPLETE or ``FAILED ``.

      • (string) –

    • ResourcesScanned (integer) –

      The number of resources that were listed. This is only available for scans with a Status set to COMPLETE, EXPIRED, or ``FAILED ``.

    • ResourcesRead (integer) –

      The number of resources that were read. This is only available for scans with a Status set to COMPLETE, EXPIRED, or ``FAILED ``.

      Note

      This field may be 0 if the resource scan failed with a ResourceScanLimitExceededException.

Exceptions