Skip to content

update_attribute_group

update_attribute_group(
    attribute_group: AttributeGroupSpecifier,
    *,
    config_overrides: Optional[ServiceCatalogAppRegistryClientConfig] = None,
    name: Optional[Name] = None,
    description: Optional[Description] = None,
    attributes: Optional[Attributes] = None,
) -> UpdateAttributeGroupResponse

Updates an existing attribute group with new details.

Parameters:

  • attribute_group (AttributeGroupSpecifier) –

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

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

    Deprecated: The new name of the attribute group. The name must be unique in the region in which you are updating the attribute group. Please do not use this field as we have stopped supporting name updates.

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

    The description of the attribute group that the user provides.

  • attributes (Optional[Attributes], default: None ) –

    A JSON string in the form of nested key-value pairs that represent the attributes in the group and describes an application and its components.

Raises:

Source code in docs_src/capo_service_catalog_appregistry/_services/service_catalog_app_registry.py
def update_attribute_group(
    self,
    attribute_group: "capo_service_catalog_appregistry.types.attribute_group_specifier.AttributeGroupSpecifier",
    *,
    config_overrides: Optional[ServiceCatalogAppRegistryClientConfig] = None,
    name: Optional["capo_service_catalog_appregistry.types.name.Name"] = None,
    description: Optional[
        "capo_service_catalog_appregistry.types.description.Description"
    ] = None,
    attributes: Optional[
        "capo_service_catalog_appregistry.types.attributes.Attributes"
    ] = None,
) -> "capo_service_catalog_appregistry.types.update_attribute_group_response.UpdateAttributeGroupResponse":
    """<p>Updates an existing attribute group with new details. </p>

    Args:
        attribute_group: <p> The name, ID, or ARN of the attribute group that holds the attributes to describe the application. </p>
        name: <p>Deprecated: The new name of the attribute group. The name must be unique in the region in which you are updating the attribute group. Please do not use this field as we have stopped supporting name updates.</p>
        description: <p>The description of the attribute group that the user provides.</p>
        attributes: <p>A JSON string in the form of nested key-value pairs that represent the attributes in the group and describes an application and its components.</p>

    Raises:
        capo_service_catalog_appregistry.errors.conflict_exception.ConflictException: <p>There was a conflict when processing the request (for example, a resource with the given name already exists within the account).</p>
        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.update_attribute_group_request.UpdateAttributeGroupRequest]",
    ) -> OperationResponse[
        "capo_service_catalog_appregistry.types.update_attribute_group_response.UpdateAttributeGroupResponse"
    ]:
        import capo_service_catalog_appregistry._operations.aws242_app_registry.update_attribute_group

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

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("UpdateAttributeGroup")
    )
    input_: capo_service_catalog_appregistry.types.update_attribute_group_request.UpdateAttributeGroupRequest = {
        "attribute_group": attribute_group
    }
    if name is not None:
        input_["name"] = name
    if description is not None:
        input_["description"] = description
    if attributes is not None:
        input_["attributes"] = attributes

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