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 |
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.
Synopsis
- data DeletePortfolioShare = DeletePortfolioShare' {}
- newDeletePortfolioShare :: Text -> DeletePortfolioShare
- deletePortfolioShare_accountId :: Lens' DeletePortfolioShare (Maybe Text)
- deletePortfolioShare_acceptLanguage :: Lens' DeletePortfolioShare (Maybe Text)
- deletePortfolioShare_organizationNode :: Lens' DeletePortfolioShare (Maybe OrganizationNode)
- deletePortfolioShare_portfolioId :: Lens' DeletePortfolioShare Text
- data DeletePortfolioShareResponse = DeletePortfolioShareResponse' {}
- newDeletePortfolioShareResponse :: Int -> DeletePortfolioShareResponse
- deletePortfolioShareResponse_portfolioShareToken :: Lens' DeletePortfolioShareResponse (Maybe Text)
- deletePortfolioShareResponse_httpStatus :: Lens' DeletePortfolioShareResponse Int
Creating a Request
data DeletePortfolioShare Source #
See: newDeletePortfolioShare
smart constructor.
DeletePortfolioShare' | |
|
Instances
newDeletePortfolioShare Source #
Create a value of DeletePortfolioShare
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:accountId:DeletePortfolioShare'
, deletePortfolioShare_accountId
- The AWS account ID.
$sel:acceptLanguage:DeletePortfolioShare'
, deletePortfolioShare_acceptLanguage
- The language code.
en
- English (default)jp
- Japanesezh
- Chinese
$sel:organizationNode:DeletePortfolioShare'
, deletePortfolioShare_organizationNode
- The organization node to whom you are going to stop sharing.
$sel:portfolioId:DeletePortfolioShare'
, deletePortfolioShare_portfolioId
- The portfolio identifier.
Request Lenses
deletePortfolioShare_accountId :: Lens' DeletePortfolioShare (Maybe Text) Source #
The AWS account ID.
deletePortfolioShare_acceptLanguage :: Lens' DeletePortfolioShare (Maybe Text) Source #
The language code.
en
- English (default)jp
- Japanesezh
- Chinese
deletePortfolioShare_organizationNode :: Lens' DeletePortfolioShare (Maybe OrganizationNode) Source #
The organization node to whom you are going to stop sharing.
deletePortfolioShare_portfolioId :: Lens' DeletePortfolioShare Text Source #
The portfolio identifier.
Destructuring the Response
data DeletePortfolioShareResponse Source #
See: newDeletePortfolioShareResponse
smart constructor.
DeletePortfolioShareResponse' | |
|
Instances
newDeletePortfolioShareResponse Source #
Create a value of DeletePortfolioShareResponse
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:portfolioShareToken:DeletePortfolioShareResponse'
, deletePortfolioShareResponse_portfolioShareToken
- The portfolio share unique identifier. This will only be returned if
delete is made to an organization node.
$sel:httpStatus:DeletePortfolioShareResponse'
, deletePortfolioShareResponse_httpStatus
- The response's http status code.
Response Lenses
deletePortfolioShareResponse_portfolioShareToken :: Lens' DeletePortfolioShareResponse (Maybe Text) Source #
The portfolio share unique identifier. This will only be returned if delete is made to an organization node.
deletePortfolioShareResponse_httpStatus :: Lens' DeletePortfolioShareResponse Int Source #
The response's http status code.