Skip to content

disassociate_service_action_from_provisioning_artifact

disassociate_service_action_from_provisioning_artifact(
    product_id: Id,
    provisioning_artifact_id: Id,
    service_action_id: Id,
    *,
    config_overrides: Optional[ServiceCatalogClientConfig] = None,
    accept_language: Optional[AcceptLanguage] = None,
    idempotency_token: Optional[IdempotencyToken] = None,
) -> DisassociateServiceActionFromProvisioningArtifactOutput

Disassociates the specified self-service action association from the specified provisioning artifact.

Parameters:

  • product_id (Id) –

    The product identifier. For example, prod-abcdzk7xy33qa.

  • provisioning_artifact_id (Id) –

    The identifier of the provisioning artifact. For example, pa-4abcdjnxjj6ne.

  • service_action_id (Id) –

    The self-service action identifier. For example, act-fs7abcd89wxyz.

  • accept_language (Optional[AcceptLanguage], default: None ) –

    The language code.

    • jp - Japanese

    • zh - Chinese

  • idempotency_token (Optional[IdempotencyToken], default: None ) –

    A unique identifier that you provide to ensure idempotency. If multiple requests from the same Amazon Web Services account use the same idempotency token, the same response is returned for each repeated request.

Raises:

Source code in docs_src/capo_service_catalog/_services/service_catalog.py
def disassociate_service_action_from_provisioning_artifact(
    self,
    product_id: "capo_service_catalog.types.id.Id",
    provisioning_artifact_id: "capo_service_catalog.types.id.Id",
    service_action_id: "capo_service_catalog.types.id.Id",
    *,
    config_overrides: Optional[ServiceCatalogClientConfig] = None,
    accept_language: Optional[
        "capo_service_catalog.types.accept_language.AcceptLanguage"
    ] = None,
    idempotency_token: Optional[
        "capo_service_catalog.types.idempotency_token.IdempotencyToken"
    ] = None,
) -> "capo_service_catalog.types.disassociate_service_action_from_provisioning_artifact_output.DisassociateServiceActionFromProvisioningArtifactOutput":
    """<p>Disassociates the specified self-service action association from the specified provisioning artifact.</p>

    Args:
        product_id: <p>The product identifier. For example, <code>prod-abcdzk7xy33qa</code>.</p>
        provisioning_artifact_id: <p>The identifier of the provisioning artifact. For example, <code>pa-4abcdjnxjj6ne</code>.</p>
        service_action_id: <p>The self-service action identifier. For example, <code>act-fs7abcd89wxyz</code>.</p>
        accept_language: <p>The language code.</p> <ul> <li> <p> <code>jp</code> - Japanese</p> </li> <li> <p> <code>zh</code> - Chinese</p> </li> </ul>
        idempotency_token: <p>A unique identifier that you provide to ensure idempotency. If multiple requests from the same Amazon Web Services account use the same idempotency token, the same response is returned for each repeated request. </p>

    Raises:
        capo_service_catalog.errors.invalid_parameters_exception.InvalidParametersException: <p>One or more parameters provided to the operation are not valid.</p>
        capo_service_catalog.errors.resource_not_found_exception.ResourceNotFoundException: <p>The specified resource was not found.</p>
        capo_service_catalog.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    def _handler(
        req: "OperationRequest[capo_service_catalog.types.disassociate_service_action_from_provisioning_artifact_input.DisassociateServiceActionFromProvisioningArtifactInput]",
    ) -> OperationResponse[
        "capo_service_catalog.types.disassociate_service_action_from_provisioning_artifact_output.DisassociateServiceActionFromProvisioningArtifactOutput"
    ]:
        import capo_service_catalog._operations.aws242_service_catalog_service.disassociate_service_action_from_provisioning_artifact

        output, http_response = (
            capo_service_catalog._operations.aws242_service_catalog_service.disassociate_service_action_from_provisioning_artifact.disassociate_service_action_from_provisioning_artifact(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides,
        OperationLogging("DisassociateServiceActionFromProvisioningArtifact"),
    )
    input_: capo_service_catalog.types.disassociate_service_action_from_provisioning_artifact_input.DisassociateServiceActionFromProvisioningArtifactInput = {
        "product_id": product_id,
        "provisioning_artifact_id": provisioning_artifact_id,
        "service_action_id": service_action_id,
    }
    if accept_language is not None:
        input_["accept_language"] = accept_language
    if idempotency_token is None:
        idempotency_token = str(uuid.uuid4())
    input_["idempotency_token"] = idempotency_token

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