Skip to content

disassociate_attribute_group

disassociate_attribute_group(
    application: ApplicationSpecifier,
    attribute_group: AttributeGroupSpecifier,
    *,
    config_overrides: Optional[ServiceCatalogAppRegistryClientConfig] = None,
) -> DisassociateAttributeGroupResponse

Disassociates an attribute group from an application to remove the extra attributes contained in the attribute group from the application's metadata. This operation reverts AssociateAttributeGroup.

Parameters:

  • application (ApplicationSpecifier) –

    The name, ID, or ARN of the application.

  • attribute_group (AttributeGroupSpecifier) –

    The name, ID, or ARN of the attribute group that holds the attributes to describe the application.

Raises:

Source code in docs_src/capo_service_catalog_appregistry/_services/service_catalog_app_registry.py
def disassociate_attribute_group(
    self,
    application: "capo_service_catalog_appregistry.types.application_specifier.ApplicationSpecifier",
    attribute_group: "capo_service_catalog_appregistry.types.attribute_group_specifier.AttributeGroupSpecifier",
    *,
    config_overrides: Optional[ServiceCatalogAppRegistryClientConfig] = None,
) -> "capo_service_catalog_appregistry.types.disassociate_attribute_group_response.DisassociateAttributeGroupResponse":
    """<p>Disassociates an attribute group from an application to remove the extra attributes contained in the attribute group from the application's metadata. This operation reverts <code>AssociateAttributeGroup</code>.</p>

    Args:
        application: <p> The name, ID, or ARN of the application. </p>
        attribute_group: <p> The name, ID, or ARN of the attribute group that holds the attributes to describe the application. </p>

    Raises:
        capo_service_catalog_appregistry.errors.internal_server_exception.InternalServerException: <p>The service is experiencing internal problems.</p>
        capo_service_catalog_appregistry.errors.resource_not_found_exception.ResourceNotFoundException: <p>The specified resource does not exist.</p>
        capo_service_catalog_appregistry.errors.validation_exception.ValidationException: <p>The request has invalid or missing parameters.</p>
        capo_service_catalog_appregistry.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    def _handler(
        req: "OperationRequest[capo_service_catalog_appregistry.types.disassociate_attribute_group_request.DisassociateAttributeGroupRequest]",
    ) -> OperationResponse[
        "capo_service_catalog_appregistry.types.disassociate_attribute_group_response.DisassociateAttributeGroupResponse"
    ]:
        import capo_service_catalog_appregistry._operations.aws242_app_registry.disassociate_attribute_group

        output, http_response = (
            capo_service_catalog_appregistry._operations.aws242_app_registry.disassociate_attribute_group.disassociate_attribute_group(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("DisassociateAttributeGroup")
    )
    input_: capo_service_catalog_appregistry.types.disassociate_attribute_group_request.DisassociateAttributeGroupRequest = {
        "application": application,
        "attribute_group": attribute_group,
    }

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