Skip to content

list_environment_profiles

list_environment_profiles(
    domain_identifier: DomainId,
    *,
    config_overrides: Optional[DataZoneClientConfig] = None,
    aws_account_id: Optional[AwsAccountId] = None,
    aws_account_region: Optional[AwsRegion] = None,
    environment_blueprint_identifier: Optional[EnvironmentBlueprintId] = None,
    project_identifier: Optional[ProjectId] = None,
    name: Optional[EnvironmentProfileName] = None,
    next_token: Optional[PaginationToken] = None,
    max_results: Optional[MaxResults] = None,
) -> ListEnvironmentProfilesOutput

Lists Amazon DataZone environment profiles.

Parameters:

  • domain_identifier (DomainId) –

    The identifier of the Amazon DataZone domain.

  • aws_account_id (Optional[AwsAccountId], default: None ) –

    The identifier of the Amazon Web Services account where you want to list environment profiles.

  • aws_account_region (Optional[AwsRegion], default: None ) –

    The Amazon Web Services region where you want to list environment profiles.

  • environment_blueprint_identifier (Optional[EnvironmentBlueprintId], default: None ) –

    The identifier of the blueprint that was used to create the environment profiles that you want to list.

  • project_identifier (Optional[ProjectId], default: None ) –

    The identifier of the Amazon DataZone project.

  • name (Optional[EnvironmentProfileName], default: None ) –

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

    When the number of environment profiles is greater than the default value for the MaxResults parameter, or if you explicitly specify a value for MaxResults that is less than the number of environment profiles, the response includes a pagination token named NextToken. You can specify this NextToken value in a subsequent call to ListEnvironmentProfiles to list the next set of environment profiles.

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

    The maximum number of environment profiles to return in a single call to ListEnvironmentProfiles. When the number of environment profiles to be listed is greater than the value of MaxResults, the response contains a NextToken value that you can use in a subsequent call to ListEnvironmentProfiles to list the next set of environment profiles.

Raises:

Source code in docs_src/capo_datazone/_services/data_zone.py
def list_environment_profiles(
    self,
    domain_identifier: "capo_datazone.types.domain_id.DomainId",
    *,
    config_overrides: Optional[DataZoneClientConfig] = None,
    aws_account_id: Optional[
        "capo_datazone.types.aws_account_id.AwsAccountId"
    ] = None,
    aws_account_region: Optional["capo_datazone.types.aws_region.AwsRegion"] = None,
    environment_blueprint_identifier: Optional[
        "capo_datazone.types.environment_blueprint_id.EnvironmentBlueprintId"
    ] = None,
    project_identifier: Optional["capo_datazone.types.project_id.ProjectId"] = None,
    name: Optional[
        "capo_datazone.types.environment_profile_name.EnvironmentProfileName"
    ] = None,
    next_token: Optional[
        "capo_datazone.types.pagination_token.PaginationToken"
    ] = None,
    max_results: Optional["capo_datazone.types.max_results.MaxResults"] = None,
) -> "capo_datazone.types.list_environment_profiles_output.ListEnvironmentProfilesOutput":
    """<p>Lists Amazon DataZone environment profiles.</p>

    Args:
        domain_identifier: <p>The identifier of the Amazon DataZone domain.</p>
        aws_account_id: <p>The identifier of the Amazon Web Services account where you want to list environment profiles.</p>
        aws_account_region: <p>The Amazon Web Services region where you want to list environment profiles.</p>
        environment_blueprint_identifier: <p>The identifier of the blueprint that was used to create the environment profiles that you want to list.</p>
        project_identifier: <p>The identifier of the Amazon DataZone project.</p>
        name: <p/>
        next_token: <p>When the number of environment profiles is greater than the default value for the <code>MaxResults</code> parameter, or if you explicitly specify a value for <code>MaxResults</code> that is less than the number of environment profiles, the response includes a pagination token named <code>NextToken</code>. You can specify this <code>NextToken</code> value in a subsequent call to <code>ListEnvironmentProfiles</code> to list the next set of environment profiles.</p>
        max_results: <p>The maximum number of environment profiles to return in a single call to <code>ListEnvironmentProfiles</code>. When the number of environment profiles to be listed is greater than the value of <code>MaxResults</code>, the response contains a <code>NextToken</code> value that you can use in a subsequent call to <code>ListEnvironmentProfiles</code> to list the next set of environment profiles.</p>

    Raises:
        capo_datazone.errors.access_denied_exception.AccessDeniedException: <p>You do not have sufficient access to perform this action.</p>
        capo_datazone.errors.throttling_exception.ThrottlingException: <p>The request was denied due to request throttling.</p>
        capo_datazone.errors.unauthorized_exception.UnauthorizedException: <p>You do not have permission to perform this action.</p>
        capo_datazone.errors.internal_server_exception.InternalServerException: <p>The request has failed because of an unknown error, exception or failure.</p>
        capo_datazone.errors.validation_exception.ValidationException: <p>The input fails to satisfy the constraints specified by the Amazon Web Services service.</p>
        capo_datazone.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    def _handler(
        req: "OperationRequest[capo_datazone.types.list_environment_profiles_input.ListEnvironmentProfilesInput]",
    ) -> OperationResponse[
        "capo_datazone.types.list_environment_profiles_output.ListEnvironmentProfilesOutput"
    ]:
        import capo_datazone._operations.data_zone.list_environment_profiles

        output, http_response = (
            capo_datazone._operations.data_zone.list_environment_profiles.list_environment_profiles(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    def _redact_input(
        input_: "capo_datazone.types.list_environment_profiles_input.ListEnvironmentProfilesInput",
    ) -> dict[str, Any]:
        import capo_datazone.types.list_environment_profiles_input

        return capo_datazone.types.list_environment_profiles_input.redact_sensitive(
            input_
        )

    def _redact_output(
        output: "capo_datazone.types.list_environment_profiles_output.ListEnvironmentProfilesOutput",
    ) -> dict[str, Any]:
        import capo_datazone.types.list_environment_profiles_output

        return (
            capo_datazone.types.list_environment_profiles_output.redact_sensitive(
                output
            )
        )

    interceptors_, options_ = self.operation_options(
        config_overrides,
        OperationLogging(
            "ListEnvironmentProfiles",
            redact_input=_redact_input,
            redact_output=_redact_output,
        ),
    )
    input_: capo_datazone.types.list_environment_profiles_input.ListEnvironmentProfilesInput = {
        "domain_identifier": domain_identifier
    }
    if aws_account_id is not None:
        input_["aws_account_id"] = aws_account_id
    if aws_account_region is not None:
        input_["aws_account_region"] = aws_account_region
    if environment_blueprint_identifier is not None:
        input_["environment_blueprint_identifier"] = (
            environment_blueprint_identifier
        )
    if project_identifier is not None:
        input_["project_identifier"] = project_identifier
    if name is not None:
        input_["name"] = name
    if next_token is not None:
        input_["next_token"] = next_token
    if max_results is not None:
        input_["max_results"] = max_results

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