Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Deletes 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.
Synopsis
- data DeletePortfolio = DeletePortfolio' {
- acceptLanguage :: Maybe Text
- id :: Text
- newDeletePortfolio :: Text -> DeletePortfolio
- deletePortfolio_acceptLanguage :: Lens' DeletePortfolio (Maybe Text)
- deletePortfolio_id :: Lens' DeletePortfolio Text
- data DeletePortfolioResponse = DeletePortfolioResponse' {
- httpStatus :: Int
- newDeletePortfolioResponse :: Int -> DeletePortfolioResponse
- deletePortfolioResponse_httpStatus :: Lens' DeletePortfolioResponse Int
Creating a Request
data DeletePortfolio Source #
See: newDeletePortfolio
smart constructor.
DeletePortfolio' | |
|
Instances
Create a value of DeletePortfolio
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:acceptLanguage:DeletePortfolio'
, deletePortfolio_acceptLanguage
- The language code.
en
- English (default)jp
- Japanesezh
- Chinese
$sel:id:DeletePortfolio'
, deletePortfolio_id
- The portfolio identifier.
Request Lenses
deletePortfolio_acceptLanguage :: Lens' DeletePortfolio (Maybe Text) Source #
The language code.
en
- English (default)jp
- Japanesezh
- Chinese
deletePortfolio_id :: Lens' DeletePortfolio Text Source #
The portfolio identifier.
Destructuring the Response
data DeletePortfolioResponse Source #
See: newDeletePortfolioResponse
smart constructor.
DeletePortfolioResponse' | |
|
Instances
newDeletePortfolioResponse Source #
Create a value of DeletePortfolioResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:httpStatus:DeletePortfolioResponse'
, deletePortfolioResponse_httpStatus
- The response's http status code.
Response Lenses
deletePortfolioResponse_httpStatus :: Lens' DeletePortfolioResponse Int Source #
The response's http status code.