ServiceCatalog / Client / delete_portfolio_share
delete_portfolio_share#
- ServiceCatalog.Client.delete_portfolio_share(**kwargs)#
Stops sharing the specified portfolio with the specified account or organization node. Shares to an organization node can only be deleted by the management account of an organization or by a delegated administrator.
Note that if a delegated admin is de-registered, portfolio shares created from that account are removed.
See also: AWS API Documentation
Request Syntax
response = client.delete_portfolio_share( AcceptLanguage='string', PortfolioId='string', AccountId='string', OrganizationNode={ 'Type': 'ORGANIZATION'|'ORGANIZATIONAL_UNIT'|'ACCOUNT', 'Value': 'string' } )
- Parameters:
AcceptLanguage (string) –
The language code.
en
- English (default)jp
- Japanesezh
- Chinese
PortfolioId (string) –
[REQUIRED]
The portfolio identifier.
AccountId (string) – The Amazon Web Services account ID.
OrganizationNode (dict) –
The organization node to whom you are going to stop sharing.
Type (string) –
The organization node type.
Value (string) –
The identifier of the organization node.
- Return type:
dict
- Returns:
Response Syntax
{ 'PortfolioShareToken': 'string' }
Response Structure
(dict) –
PortfolioShareToken (string) –
The portfolio share unique identifier. This will only be returned if delete is made to an organization node.
Exceptions
ServiceCatalog.Client.exceptions.ResourceNotFoundException
ServiceCatalog.Client.exceptions.InvalidParametersException
ServiceCatalog.Client.exceptions.OperationNotSupportedException
ServiceCatalog.Client.exceptions.InvalidStateException