Skip to content

update_project_profile async

update_project_profile(
    domain_identifier: DomainId,
    identifier: ProjectProfileId,
    *,
    config_overrides: Optional[AsyncDataZoneClientConfig] = None,
    name: Optional[ProjectProfileName] = None,
    description: Optional[Description] = None,
    status: Optional[Status] = None,
    project_resource_tags: Optional[ProjectResourceTagParameters] = None,
    allow_custom_project_resource_tags: Optional[bool] = None,
    project_resource_tags_description: Optional[Description] = None,
    environment_configurations: Optional[EnvironmentConfigurationsList] = None,
    domain_unit_identifier: Optional[DomainUnitId] = None,
) -> UpdateProjectProfileOutput

Updates a project profile.

Parameters:

  • domain_identifier (DomainId) –

    The ID of the domain where a project profile is to be updated.

  • identifier (ProjectProfileId) –

    The ID of a project profile that is to be updated.

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

    The name of a project profile.

  • description (Optional[Description], default: None ) –

    The description of a project profile.

  • status (Optional[Status], default: None ) –

    The status of a project profile.

  • project_resource_tags (Optional[ProjectResourceTagParameters], default: None ) –

    The resource tags of the project profile.

  • allow_custom_project_resource_tags (Optional[bool], default: None ) –

    Specifies whether custom project resource tags are supported.

  • project_resource_tags_description (Optional[Description], default: None ) –

    Field viewable through the UI that provides a project user with the allowed resource tag specifications.

  • environment_configurations (Optional[EnvironmentConfigurationsList], default: None ) –

    The environment configurations of a project profile.

  • domain_unit_identifier (Optional[DomainUnitId], default: None ) –

    The ID of the domain unit where a project profile is to be updated.

Raises:

Source code in docs_src/capo_datazone/_services/async_data_zone.py
async def update_project_profile(
    self,
    domain_identifier: "capo_datazone.types.domain_id.DomainId",
    identifier: "capo_datazone.types.project_profile_id.ProjectProfileId",
    *,
    config_overrides: Optional[AsyncDataZoneClientConfig] = None,
    name: Optional[
        "capo_datazone.types.project_profile_name.ProjectProfileName"
    ] = None,
    description: Optional["capo_datazone.types.description.Description"] = None,
    status: Optional["capo_datazone.types.status.Status"] = None,
    project_resource_tags: Optional[
        "capo_datazone.types.project_resource_tag_parameters.ProjectResourceTagParameters"
    ] = None,
    allow_custom_project_resource_tags: Optional[bool] = None,
    project_resource_tags_description: Optional[
        "capo_datazone.types.description.Description"
    ] = None,
    environment_configurations: Optional[
        "capo_datazone.types.environment_configurations_list.EnvironmentConfigurationsList"
    ] = None,
    domain_unit_identifier: Optional[
        "capo_datazone.types.domain_unit_id.DomainUnitId"
    ] = None,
) -> "capo_datazone.types.update_project_profile_output.UpdateProjectProfileOutput":
    """<p>Updates a project profile.</p>

    Args:
        domain_identifier: <p>The ID of the domain where a project profile is to be updated.</p>
        identifier: <p>The ID of a project profile that is to be updated.</p>
        name: <p>The name of a project profile.</p>
        description: <p>The description of a project profile.</p>
        status: <p>The status of a project profile.</p>
        project_resource_tags: <p>The resource tags of the project profile.</p>
        allow_custom_project_resource_tags: <p>Specifies whether custom project resource tags are supported.</p>
        project_resource_tags_description: <p>Field viewable through the UI that provides a project user with the allowed resource tag specifications.</p>
        environment_configurations: <p>The environment configurations of a project profile.</p>
        domain_unit_identifier: <p>The ID of the domain unit where a project profile is to be updated.</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.conflict_exception.ConflictException: <p>There is a conflict while performing 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.resource_not_found_exception.ResourceNotFoundException: <p>The specified resource cannot be found.</p>
        capo_datazone.errors.service_quota_exceeded_exception.ServiceQuotaExceededException: <p>The request has exceeded the specified service quota.</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.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_datazone.types.update_project_profile_input.UpdateProjectProfileInput]",
    ) -> AsyncOperationResponse[
        "capo_datazone.types.update_project_profile_output.UpdateProjectProfileOutput"
    ]:
        import capo_datazone._operations.data_zone.update_project_profile

        (
            output,
            http_response,
        ) = await capo_datazone._operations.data_zone.update_project_profile.async_update_project_profile(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

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

        return capo_datazone.types.update_project_profile_input.redact_sensitive(
            input_
        )

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

        return capo_datazone.types.update_project_profile_output.redact_sensitive(
            output
        )

    interceptors_, options_ = self.operation_options(
        config_overrides,
        OperationLogging(
            "UpdateProjectProfile",
            redact_input=_redact_input,
            redact_output=_redact_output,
        ),
    )
    input_: capo_datazone.types.update_project_profile_input.UpdateProjectProfileInput = {
        "domain_identifier": domain_identifier,
        "identifier": identifier,
    }
    if name is not None:
        input_["name"] = name
    if description is not None:
        input_["description"] = description
    if status is not None:
        input_["status"] = status
    if project_resource_tags is not None:
        input_["project_resource_tags"] = project_resource_tags
    if allow_custom_project_resource_tags is not None:
        input_["allow_custom_project_resource_tags"] = (
            allow_custom_project_resource_tags
        )
    if project_resource_tags_description is not None:
        input_["project_resource_tags_description"] = (
            project_resource_tags_description
        )
    if environment_configurations is not None:
        input_["environment_configurations"] = environment_configurations
    if domain_unit_identifier is not None:
        input_["domain_unit_identifier"] = domain_unit_identifier

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