Skip to content

get_vpc_resources_blocking_encryption_enforcement

get_vpc_resources_blocking_encryption_enforcement(
    *,
    config_overrides: Optional[EC2ClientConfig] = None,
    vpc_id: Optional[VpcId] = None,
    max_results: Optional[
        GetVpcResourcesBlockingEncryptionEnforcementMaxResults
    ] = None,
    next_token: Optional[String] = None,
    dry_run: Optional[Boolean] = None,
) -> GetVpcResourcesBlockingEncryptionEnforcementResult

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.

Parameters:

  • vpc_id (Optional[VpcId], default: None ) –

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

  • max_results (Optional[GetVpcResourcesBlockingEncryptionEnforcementMaxResults], default: None ) –

    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.

  • next_token (Optional[String], default: None ) –

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

  • dry_run (Optional[Boolean], default: None ) –

    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.

Raises:

Source code in docs_src/capo_ec2/_services/ec2.py
def get_vpc_resources_blocking_encryption_enforcement(
    self,
    *,
    config_overrides: Optional[EC2ClientConfig] = None,
    vpc_id: Optional["capo_ec2.types.vpc_id.VpcId"] = None,
    max_results: Optional[
        "capo_ec2.types.get_vpc_resources_blocking_encryption_enforcement_max_results.GetVpcResourcesBlockingEncryptionEnforcementMaxResults"
    ] = None,
    next_token: Optional["capo_ec2.types.string.String"] = None,
    dry_run: Optional["capo_ec2.types.boolean.Boolean"] = None,
) -> "capo_ec2.types.get_vpc_resources_blocking_encryption_enforcement_result.GetVpcResourcesBlockingEncryptionEnforcementResult":
    """<p>Gets information about resources in a VPC that are blocking encryption enforcement.</p> <p>For more information, see <a href="https://docs.aws.amazon.com/vpc/latest/userguide/vpc-encryption-controls.html">Enforce VPC encryption in transit</a> in the <i>Amazon VPC User Guide</i>.</p>

    Args:
        vpc_id: <p>The ID of the VPC to check for resources blocking encryption enforcement.</p>
        max_results: <p>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 <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination">Pagination</a>.</p>
        next_token: <p>The token returned from a previous paginated request. Pagination continues from the end of the items returned by the previous request.</p>
        dry_run: <p>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 <code>DryRunOperation</code>. Otherwise, it is <code>UnauthorizedOperation</code>.</p>

    Raises:
        capo_ec2.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    def _handler(
        req: "OperationRequest[capo_ec2.types.get_vpc_resources_blocking_encryption_enforcement_request.GetVpcResourcesBlockingEncryptionEnforcementRequest]",
    ) -> OperationResponse[
        "capo_ec2.types.get_vpc_resources_blocking_encryption_enforcement_result.GetVpcResourcesBlockingEncryptionEnforcementResult"
    ]:
        import capo_ec2._operations.amazon_ec2.get_vpc_resources_blocking_encryption_enforcement

        output, http_response = (
            capo_ec2._operations.amazon_ec2.get_vpc_resources_blocking_encryption_enforcement.get_vpc_resources_blocking_encryption_enforcement(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides,
        OperationLogging("GetVpcResourcesBlockingEncryptionEnforcement"),
    )
    input_: capo_ec2.types.get_vpc_resources_blocking_encryption_enforcement_request.GetVpcResourcesBlockingEncryptionEnforcementRequest = {}
    if vpc_id is not None:
        input_["vpc_id"] = vpc_id
    if max_results is not None:
        input_["max_results"] = max_results
    if next_token is not None:
        input_["next_token"] = next_token
    if dry_run is not None:
        input_["dry_run"] = dry_run

    response = execute_pipeline(
        OperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    response.response.close()
    return response.output