Skip to content

create_environment_blueprint async

create_environment_blueprint(
    domain_identifier: DomainId,
    name: EnvironmentBlueprintName,
    provisioning_properties: ProvisioningProperties,
    *,
    config_overrides: Optional[AsyncDataZoneClientConfig] = None,
    description: Optional[Description] = None,
    user_parameters: Optional[CustomParameterList] = None,
    blueprint_category: Optional[BlueprintCategory] = None,
) -> CreateEnvironmentBlueprintOutput

Creates a Amazon DataZone blueprint.

Parameters:

  • domain_identifier (DomainId) –

    The identifier of the domain in which this blueprint is created.

  • name (EnvironmentBlueprintName) –

    The name of this Amazon DataZone blueprint.

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

    The description of the Amazon DataZone blueprint.

  • provisioning_properties (ProvisioningProperties) –

    The provisioning properties of this Amazon DataZone blueprint.

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

    The user parameters of this Amazon DataZone blueprint.

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

    The category of the Amazon DataZone blueprint. The only valid value is TOOLING, which creates a blueprint that provisions the tooling resources of a project.

Raises:

Source code in docs_src/capo_datazone/_services/async_data_zone.py
async def create_environment_blueprint(
    self,
    domain_identifier: "capo_datazone.types.domain_id.DomainId",
    name: "capo_datazone.types.environment_blueprint_name.EnvironmentBlueprintName",
    provisioning_properties: "capo_datazone.types.provisioning_properties.ProvisioningProperties",
    *,
    config_overrides: Optional[AsyncDataZoneClientConfig] = None,
    description: Optional["capo_datazone.types.description.Description"] = 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.create_environment_blueprint_output.CreateEnvironmentBlueprintOutput":
    """<p>Creates a Amazon DataZone blueprint.</p>

    Args:
        domain_identifier: <p>The identifier of the domain in which this blueprint is created.</p>
        name: <p>The name of this Amazon DataZone blueprint.</p>
        description: <p>The description of the Amazon DataZone blueprint.</p>
        provisioning_properties: <p>The provisioning properties of this Amazon DataZone blueprint.</p>
        user_parameters: <p>The user parameters of this Amazon DataZone blueprint.</p>
        blueprint_category: <p>The category of the Amazon DataZone blueprint. The only valid value is <code>TOOLING</code>, which creates a blueprint that provisions the tooling resources of a project.</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.create_environment_blueprint_input.CreateEnvironmentBlueprintInput]",
    ) -> AsyncOperationResponse[
        "capo_datazone.types.create_environment_blueprint_output.CreateEnvironmentBlueprintOutput"
    ]:
        import capo_datazone._operations.data_zone.create_environment_blueprint

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

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

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

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

        return capo_datazone.types.create_environment_blueprint_output.redact_sensitive(
            output
        )

    interceptors_, options_ = self.operation_options(
        config_overrides,
        OperationLogging(
            "CreateEnvironmentBlueprint",
            redact_input=_redact_input,
            redact_output=_redact_output,
        ),
    )
    input_: capo_datazone.types.create_environment_blueprint_input.CreateEnvironmentBlueprintInput = {
        "domain_identifier": domain_identifier,
        "name": name,
        "provisioning_properties": provisioning_properties,
    }
    if description is not None:
        input_["description"] = description
    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