disassociateProductFromPortfolio method
Disassociates the specified product from the specified portfolio.
A delegated admin is authorized to invoke this command.
May throw InvalidParametersException.
May throw ResourceInUseException.
May throw ResourceNotFoundException.
Parameter portfolioId :
The portfolio identifier.
Parameter productId :
The product identifier.
Parameter acceptLanguage :
The language code.
-
jp- Japanese -
zh- Chinese
Implementation
Future<void> disassociateProductFromPortfolio({
required String portfolioId,
required String productId,
String? acceptLanguage,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target':
'AWS242ServiceCatalogService.DisassociateProductFromPortfolio'
};
await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'PortfolioId': portfolioId,
'ProductId': productId,
if (acceptLanguage != null) 'AcceptLanguage': acceptLanguage,
},
);
}