:doc:`EC2 <../../ec2>` / Client / get_vpc_resources_blocking_encryption_enforcement

*************************************************
get_vpc_resources_blocking_encryption_enforcement
*************************************************



.. py:method:: 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 <https://docs.aws.amazon.com/vpc/latest/userguide/vpc-encryption-controls.html>`__ in the *Amazon VPC User Guide*.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/GetVpcResourcesBlockingEncryptionEnforcement>`_  


  **Request Syntax**
  ::

    response = client.get_vpc_resources_blocking_encryption_enforcement(
        VpcId='string',
        MaxResults=123,
        NextToken='string',
        DryRun=True|False
    )
    
  :type VpcId: string
  :param VpcId: **[REQUIRED]** 

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

    

  
  :type MaxResults: integer
  :param MaxResults: 

    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 <https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination>`__.

    

  
  :type NextToken: string
  :param NextToken: 

    The token returned from a previous paginated request. Pagination continues from the end of the items returned by the previous request.

    

  
  :type DryRun: boolean
  :param DryRun: 

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

    

  
  
  :rtype: 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 <https://docs.aws.amazon.com/vpc/latest/userguide/vpc-encryption-controls.html>`__ 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.

        
  