CmdID

CmdID / aws / aws shield

aws shield list-protections

Retrieves Protection objects for the account. AWS CLI reference

1 example 3 options Its page in the AWS CLI reference

Opens CmdID with your command. It is read in your browser and sent nowhere.

Examples

from aws-cli, each command read by CmdID

To retrieve protection summaries from AWS Shield Advanced

The following list-protections example retrieves summaries of the protections that are enabled for the account.

aws shield list-protectionsIdentify
Its output
{
    "Protections": [
        {
            "Id": "a1b2c3d4-5678-90ab-cdef-EXAMPLE11111",
            "Name": "Protection for CloudFront distribution",
            "ResourceArn": "arn:aws:cloudfront::123456789012:distribution/E198WC25FXOWY8"
        }
    ]
}

For more information, see Specify Your Resources to Protect in the AWS Shield Advanced Developer Guide.

Options

3 in the AWS CLI reference
--inclusion-filtersNarrows the set of protections that the call retrieves.
--max-resultsThe greatest number of objects that you want Shield Advanced to return to the list request.
--next-tokenWhen you request a list of objects from Shield Advanced, if the response does not include all of the remaining available objects, Shield Advanced includes a NextToken value in the response.