Skip to content

list_field_level_encryption_profiles

list_field_level_encryption_profiles(
    *,
    config_overrides: Optional[CloudFrontClientConfig] = None,
    marker: Optional[string] = None,
    max_items: Optional[integer] = None,
) -> ListFieldLevelEncryptionProfilesResult

Request a list of field-level encryption profiles that have been created in CloudFront for this account.

Parameters:

  • marker (Optional[string], default: None ) –

    Use this when paginating results to indicate where to begin in your list of profiles. The results include profiles in the list that occur after the marker. To get the next page of results, set the Marker to the value of the NextMarker from the current page's response (which is also the ID of the last profile on that page).

  • max_items (Optional[integer], default: None ) –

    The maximum number of field-level encryption profiles you want in the response body.

Raises:

Source code in docs_src/capo_cloudfront/_services/cloud_front.py
def list_field_level_encryption_profiles(
    self,
    *,
    config_overrides: Optional[CloudFrontClientConfig] = None,
    marker: Optional["capo_cloudfront.types.string.string"] = None,
    max_items: Optional["capo_cloudfront.types.integer.integer"] = None,
) -> "capo_cloudfront.types.list_field_level_encryption_profiles_result.ListFieldLevelEncryptionProfilesResult":
    """<p>Request a list of field-level encryption profiles that have been created in CloudFront for this account.</p>

    Args:
        marker: <p>Use this when paginating results to indicate where to begin in your list of profiles. The results include profiles in the list that occur after the marker. To get the next page of results, set the <code>Marker</code> to the value of the <code>NextMarker</code> from the current page's response (which is also the ID of the last profile on that page).</p>
        max_items: <p>The maximum number of field-level encryption profiles you want in the response body. </p>

    Raises:
        capo_cloudfront.errors.invalid_argument.InvalidArgument: <p>An argument is invalid.</p>
        capo_cloudfront.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    def _handler(
        req: "OperationRequest[capo_cloudfront.types.list_field_level_encryption_profiles_request.ListFieldLevelEncryptionProfilesRequest]",
    ) -> OperationResponse[
        "capo_cloudfront.types.list_field_level_encryption_profiles_result.ListFieldLevelEncryptionProfilesResult"
    ]:
        import capo_cloudfront._operations.cloudfront2020_05_31.list_field_level_encryption_profiles

        output, http_response = (
            capo_cloudfront._operations.cloudfront2020_05_31.list_field_level_encryption_profiles.list_field_level_encryption_profiles(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("ListFieldLevelEncryptionProfiles")
    )
    input_: capo_cloudfront.types.list_field_level_encryption_profiles_request.ListFieldLevelEncryptionProfilesRequest = {}
    if marker is not None:
        input_["marker"] = marker
    if max_items is not None:
        input_["max_items"] = max_items

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