Skip to content

get_field_level_encryption async

get_field_level_encryption(
    id: string, *, config_overrides: Optional[AsyncCloudFrontClientConfig] = None
) -> GetFieldLevelEncryptionResult

Get the field-level encryption configuration information.

Parameters:

  • id (string) –

    Request the ID for the field-level encryption configuration information.

Raises:

Source code in docs_src/capo_cloudfront/_services/async_cloud_front.py
async def get_field_level_encryption(
    self,
    id: "capo_cloudfront.types.string.string",
    *,
    config_overrides: Optional[AsyncCloudFrontClientConfig] = None,
) -> "capo_cloudfront.types.get_field_level_encryption_result.GetFieldLevelEncryptionResult":
    """<p>Get the field-level encryption configuration information.</p>

    Args:
        id: <p>Request the ID for the field-level encryption configuration information.</p>

    Raises:
        capo_cloudfront.errors.access_denied.AccessDenied: <p>Access denied.</p>
        capo_cloudfront.errors.no_such_field_level_encryption_config.NoSuchFieldLevelEncryptionConfig: <p>The specified configuration for field-level encryption doesn't exist.</p>
        capo_cloudfront.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_cloudfront.types.get_field_level_encryption_request.GetFieldLevelEncryptionRequest]",
    ) -> AsyncOperationResponse[
        "capo_cloudfront.types.get_field_level_encryption_result.GetFieldLevelEncryptionResult"
    ]:
        import capo_cloudfront._operations.cloudfront2020_05_31.get_field_level_encryption

        (
            output,
            http_response,
        ) = await capo_cloudfront._operations.cloudfront2020_05_31.get_field_level_encryption.async_get_field_level_encryption(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("GetFieldLevelEncryption")
    )
    input_: capo_cloudfront.types.get_field_level_encryption_request.GetFieldLevelEncryptionRequest = {
        "id": id
    }

    response = await aexecute_pipeline(
        AsyncOperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    await response.response.aclose()
    return response.output