associate_ops_item_related_item
async
¶
associate_ops_item_related_item(
ops_item_id: OpsItemId,
association_type: OpsItemRelatedItemAssociationType,
resource_type: OpsItemRelatedItemAssociationResourceType,
resource_uri: OpsItemRelatedItemAssociationResourceUri,
*,
config_overrides: Optional[AsyncSSMClientConfig] = None,
) -> AssociateOpsItemRelatedItemResponse
Associates a related item to a Systems Manager OpsCenter OpsItem. For example, you can associate an Incident Manager incident or analysis with an OpsItem. Incident Manager and OpsCenter are tools in Amazon Web Services Systems Manager.
Parameters:
-
ops_item_id(OpsItemId) –The ID of the OpsItem to which you want to associate a resource as a related item.
-
association_type(OpsItemRelatedItemAssociationType) –The type of association that you want to create between an OpsItem and a resource. OpsCenter supports
IsParentOfandRelatesToassociation types. -
resource_type(OpsItemRelatedItemAssociationResourceType) –The type of resource that you want to associate with an OpsItem. OpsCenter supports the following types:
AWS::SSMIncidents::IncidentRecord: an Incident Manager incident.AWS::SSM::Document: a Systems Manager (SSM) document. -
resource_uri(OpsItemRelatedItemAssociationResourceUri) –The Amazon Resource Name (ARN) of the Amazon Web Services resource that you want to associate with the OpsItem.
Raises:
-
InternalServerError–An error occurred on the server side.
-
OpsItemConflictException–The specified OpsItem is in the process of being deleted.
-
OpsItemInvalidParameterException–A specified parameter argument isn't valid. Verify the available arguments and try again.
-
OpsItemLimitExceededException–The request caused OpsItems to exceed one or more quotas.
-
OpsItemNotFoundException–The specified OpsItem ID doesn't exist. Verify the ID and try again.
-
OpsItemRelatedItemAlreadyExistsException–The Amazon Resource Name (ARN) is already associated with the OpsItem.
-
UnknownServiceError–The service returned an error code this client does not model.