CloudFormation / Client / start_resource_scan

start_resource_scan#

CloudFormation.Client.start_resource_scan(**kwargs)#

Starts a scan of the resources in this account in this Region. You can the status of a scan using the ListResourceScans API action.

See also: AWS API Documentation

Request Syntax

response = client.start_resource_scan(
    ClientRequestToken='string'
)
Parameters:

ClientRequestToken (string) – A unique identifier for this StartResourceScan request. Specify this token if you plan to retry requests so that CloudFormation knows that you’re not attempting to start a new resource scan.

Return type:

dict

Returns:

Response Syntax

{
    'ResourceScanId': 'string'
}

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 ``.

Exceptions

  • CloudFormation.Client.exceptions.ResourceScanInProgressException

  • CloudFormation.Client.exceptions.ResourceScanLimitExceededException