Smaws_Client_ServiceCatalog.DeletePortfolioDeletes the specified portfolio.
You cannot delete a portfolio if it was shared with you or if it has associated products, users, constraints, or shared accounts.
A delegated admin is authorized to invoke this command.
val error_to_string :
[ Smaws_Lib.Protocols.AwsJson.error
| `InvalidParametersException of Types.invalid_parameters_exception
| `ResourceInUseException of Types.resource_in_use_exception
| `ResourceNotFoundException of Types.resource_not_found_exception
| `TagOptionNotMigratedException of Types.tag_option_not_migrated_exception ] ->
stringval request :
'http_type Smaws_Lib.Context.t ->
Types.delete_portfolio_input ->
(Types.delete_portfolio_output,
[> Smaws_Lib.Protocols.AwsJson.error
| `InvalidParametersException of Types.invalid_parameters_exception
| `ResourceInUseException of Types.resource_in_use_exception
| `ResourceNotFoundException of Types.resource_not_found_exception
| `TagOptionNotMigratedException of Types.tag_option_not_migrated_exception ])
Stdlib.resultval request_with_metadata :
'http_type Smaws_Lib.Context.t ->
Types.delete_portfolio_input ->
(Types.delete_portfolio_output Smaws_Lib.Response.t,
[> Smaws_Lib.Protocols.AwsJson.error
| `InvalidParametersException of Types.invalid_parameters_exception
| `ResourceInUseException of Types.resource_in_use_exception
| `ResourceNotFoundException of Types.resource_not_found_exception
| `TagOptionNotMigratedException of Types.tag_option_not_migrated_exception ]
* Smaws_Lib.Response.metadata)
Stdlib.result