EC2 / Client / get_vpc_resources_blocking_encryption_enforcement

get_vpc_resources_blocking_encryption_enforcement

EC2.Client.get_vpc_resources_blocking_encryption_enforcement(**kwargs)

Gets information about resources in a VPC that are blocking encryption enforcement.

For more information, see Enforce VPC encryption in transit in the Amazon VPC User Guide.

See also: AWS API Documentation

Request Syntax

response = client.get_vpc_resources_blocking_encryption_enforcement(
    VpcId='string',
    MaxResults=123,
    NextToken='string',
    DryRun=True|False
)
Parameters:
  • VpcId (string) –

    [REQUIRED]

    The ID of the VPC to check for resources blocking encryption enforcement.

  • MaxResults (integer) – The maximum number of items to return for this request. To get the next page of items, make another request with the token returned in the output. For more information, see Pagination.

  • NextToken (string) – The token returned from a previous paginated request. Pagination continues from the end of the items returned by the previous request.

  • DryRun (boolean) – Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

Return type:

dict

Returns:

Response Syntax

{
    'NonCompliantResources': [
        {
            'Id': 'string',
            'Type': 'string',
            'Description': 'string',
            'IsExcludable': True|False
        },
    ],
    'NextToken': 'string'
}

Response Structure

  • (dict) –

    • NonCompliantResources (list) –

      Information about resources that are blocking encryption enforcement.

      • (dict) –

        Describes a resource that is not compliant with VPC encryption requirements.

        For more information, see Enforce VPC encryption in transit in the Amazon VPC User Guide.

        • Id (string) –

          The ID of the non-compliant resource.

        • Type (string) –

          The type of the non-compliant resource.

        • Description (string) –

          A description of the non-compliant resource.

        • IsExcludable (boolean) –

          Indicates whether the resource can be excluded from encryption enforcement.

    • NextToken (string) –

      The token to include in another request to get the next page of items. This value is null when there are no more items to return.