PartnerCentralSellingAPI / Client / disassociate_opportunity
disassociate_opportunity#
- PartnerCentralSellingAPI.Client.disassociate_opportunity(**kwargs)#
Allows you to remove an existing association between an
Opportunity
and related entities such as a Partner Solution, Amazon Web Services product, or an Amazon Web Services Marketplace offer. This operation is the counterpart toAssociateOpportunity
, and it provides flexibility to manage associations as business needs change.Use this operation to update the associations of an
Opportunity
due to changes in the related entities, or if an association was made in error. Ensuring accurate associations helps maintain clarity and accuracy to track and manage business opportunities. When you replace an entity, first attach the new entity and then disassociate the one to be removed, especially if it’s the last remaining related entity that’s required.See also: AWS API Documentation
Request Syntax
response = client.disassociate_opportunity( Catalog='string', OpportunityIdentifier='string', RelatedEntityIdentifier='string', RelatedEntityType='Solutions'|'AwsProducts'|'AwsMarketplaceOffers' )
- Parameters:
Catalog (string) –
[REQUIRED]
Specifies the catalog associated with the request. This field takes a string value from a predefined list:
AWS
orSandbox
. The catalog determines which environment the opportunity disassociation is made in. UseAWS
to disassociate opportunities in the Amazon Web Services catalog, andSandbox
to test in a secure and isolated environment.OpportunityIdentifier (string) –
[REQUIRED]
The opportunity’s unique identifier for when you want to disassociate it from related entities. This identifier is crucial to ensure the correct opportunity is updated, especially in environments with numerous opportunities.
Validation: Ensure that the identifier provided corresponds to an existing opportunity in the Amazon Web Services system because incorrect identifiers result in an error and no changes are made.
RelatedEntityIdentifier (string) –
[REQUIRED]
The related entity’s identifier that you want to disassociate from the opportunity. Depending on the type of entity, this could be a simple identifier or an Amazon Resource Name (ARN) for entities managed through Amazon Web Services Marketplace.
For Amazon Web Services Marketplace entities, use the Amazon Web Services Marketplace API to obtain the necessary ARNs. For guidance on retrieving these ARNs, refer to Amazon Web Services Marketplace Catalog API .
Validation: Ensure the identifier or ARN is valid and corresponds to an existing related entity. An incorrect or invalid identifier results in an error.
RelatedEntityType (string) –
[REQUIRED]
The type of the entity that you’re disassociating from the opportunity. When you specify the entity type, it helps the system correctly process the disassociation request and ensures that the right connections are removed.
Examples of entity types include Partner Solution, Amazon Web Services product, and Amazon Web Services Marketplace offer. Ensure that the value matches one of the expected entity types.
Validation: Provide a valid entity type to ensure successful disassociation. Invalid or incorrect entity types result in an error.
- Returns:
None
Exceptions
PartnerCentralSellingAPI.Client.exceptions.ThrottlingException
PartnerCentralSellingAPI.Client.exceptions.AccessDeniedException
PartnerCentralSellingAPI.Client.exceptions.InternalServerException
PartnerCentralSellingAPI.Client.exceptions.ValidationException
PartnerCentralSellingAPI.Client.exceptions.ResourceNotFoundException