Skip to content

get_field_level_encryption_profile_config

get_field_level_encryption_profile_config(
    id: string, *, config_overrides: Optional[CloudFrontClientConfig] = 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/cloud_front.py
def get_field_level_encryption_profile_config(
    self,
    id: "capo_cloudfront.types.string.string",
    *,
    config_overrides: Optional[CloudFrontClientConfig] = 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.
    """

    def _handler(
        req: "OperationRequest[capo_cloudfront.types.get_field_level_encryption_profile_config_request.GetFieldLevelEncryptionProfileConfigRequest]",
    ) -> OperationResponse[
        "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 = (
            capo_cloudfront._operations.cloudfront2020_05_31.get_field_level_encryption_profile_config.get_field_level_encryption_profile_config(
                req.options, req.input
            )
        )
        return OperationResponse(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 = execute_pipeline(
        OperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    response.response.close()
    return response.output