Skip to content

get_field_level_encryption_profile_config async

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

Get the field-level encryption profile configuration information.

Parameters:

  • id (string) –

    Get the ID for the field-level encryption profile configuration information.

Raises:

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

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

    Raises:
        capo_cloudfront.errors.access_denied.AccessDenied: <p>Access denied.</p>
        capo_cloudfront.errors.no_such_field_level_encryption_profile.NoSuchFieldLevelEncryptionProfile: <p>The specified profile 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_profile_config_request.GetFieldLevelEncryptionProfileConfigRequest]",
    ) -> AsyncOperationResponse[
        "capo_cloudfront.types.get_field_level_encryption_profile_config_result.GetFieldLevelEncryptionProfileConfigResult"
    ]:
        import capo_cloudfront._operations.cloudfront2020_05_31.get_field_level_encryption_profile_config

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

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("GetFieldLevelEncryptionProfileConfig")
    )
    input_: capo_cloudfront.types.get_field_level_encryption_profile_config_request.GetFieldLevelEncryptionProfileConfigRequest = {
        "id": id
    }

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