Skip to content

update_environment_blueprint async

update_environment_blueprint(
    domain_identifier: DomainId,
    identifier: EnvironmentBlueprintId,
    *,
    config_overrides: Optional[AsyncDataZoneClientConfig] = None,
    description: Optional[str] = None,
    provisioning_properties: Optional[ProvisioningProperties] = None,
    user_parameters: Optional[CustomParameterList] = None,
    blueprint_category: Optional[BlueprintCategory] = None,
) -> UpdateEnvironmentBlueprintOutput

Updates an environment blueprint in Amazon DataZone.

Parameters:

  • domain_identifier (DomainId) –

    The identifier of the Amazon DataZone domain in which an environment blueprint is to be updated.

  • identifier (EnvironmentBlueprintId) –

    The identifier of the environment blueprint to be updated.

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

    The description to be updated as part of the UpdateEnvironmentBlueprint action.

  • provisioning_properties (Optional[ProvisioningProperties], default: None ) –

    The provisioning properties to be updated as part of the UpdateEnvironmentBlueprint action.

  • user_parameters (Optional[CustomParameterList], default: None ) –

    The user parameters to be updated as part of the UpdateEnvironmentBlueprint action.

  • blueprint_category (Optional[BlueprintCategory], default: None ) –

    The category to update. The only valid value is TOOLING.

Raises:

Source code in docs_src/capo_datazone/_services/async_data_zone.py
async def update_environment_blueprint(
    self,
    domain_identifier: "capo_datazone.types.domain_id.DomainId",
    identifier: "capo_datazone.types.environment_blueprint_id.EnvironmentBlueprintId",
    *,
    config_overrides: Optional[AsyncDataZoneClientConfig] = None,
    description: Optional[str] = None,
    provisioning_properties: Optional[
        "capo_datazone.types.provisioning_properties.ProvisioningProperties"
    ] = None,
    user_parameters: Optional[
        "capo_datazone.types.custom_parameter_list.CustomParameterList"
    ] = None,
    blueprint_category: Optional[
        "capo_datazone.types.blueprint_category.BlueprintCategory"
    ] = None,
) -> "capo_datazone.types.update_environment_blueprint_output.UpdateEnvironmentBlueprintOutput":
    """<p>Updates an environment blueprint in Amazon DataZone.</p>

    Args:
        domain_identifier: <p>The identifier of the Amazon DataZone domain in which an environment blueprint is to be updated.</p>
        identifier: <p>The identifier of the environment blueprint to be updated.</p>
        description: <p>The description to be updated as part of the <code>UpdateEnvironmentBlueprint</code> action.</p>
        provisioning_properties: <p>The provisioning properties to be updated as part of the <code>UpdateEnvironmentBlueprint</code> action.</p>
        user_parameters: <p>The user parameters to be updated as part of the <code>UpdateEnvironmentBlueprint</code> action.</p>
        blueprint_category: <p>The category to update. The only valid value is <code>TOOLING</code>.</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_environment_blueprint_input.UpdateEnvironmentBlueprintInput]",
    ) -> AsyncOperationResponse[
        "capo_datazone.types.update_environment_blueprint_output.UpdateEnvironmentBlueprintOutput"
    ]:
        import capo_datazone._operations.data_zone.update_environment_blueprint

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

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

        return (
            capo_datazone.types.update_environment_blueprint_input.redact_sensitive(
                input_
            )
        )

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

        return capo_datazone.types.update_environment_blueprint_output.redact_sensitive(
            output
        )

    interceptors_, options_ = self.operation_options(
        config_overrides,
        OperationLogging(
            "UpdateEnvironmentBlueprint",
            redact_input=_redact_input,
            redact_output=_redact_output,
        ),
    )
    input_: capo_datazone.types.update_environment_blueprint_input.UpdateEnvironmentBlueprintInput = {
        "domain_identifier": domain_identifier,
        "identifier": identifier,
    }
    if description is not None:
        input_["description"] = description
    if provisioning_properties is not None:
        input_["provisioning_properties"] = provisioning_properties
    if user_parameters is not None:
        input_["user_parameters"] = user_parameters
    if blueprint_category is not None:
        input_["blueprint_category"] = blueprint_category

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