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 |
Updates the specified portfolio share. You can use this API to enable or disable TagOptions sharing for an existing portfolio share.
The portfolio share cannot be updated if the CreatePortfolioShare
operation is IN_PROGRESS
, as the share is not available to recipient
entities. In this case, you must wait for the portfolio share to be
COMPLETED.
You must provide the accountId
or organization node in the input, but
not both.
If the portfolio is shared to both an external account and an
organization node, and both shares need to be updated, you must invoke
UpdatePortfolioShare
separately for each share type.
This API cannot be used for removing the portfolio share. You must use
DeletePortfolioShare
API for that action.
Synopsis
- data UpdatePortfolioShare = UpdatePortfolioShare' {}
- newUpdatePortfolioShare :: Text -> UpdatePortfolioShare
- updatePortfolioShare_accountId :: Lens' UpdatePortfolioShare (Maybe Text)
- updatePortfolioShare_shareTagOptions :: Lens' UpdatePortfolioShare (Maybe Bool)
- updatePortfolioShare_acceptLanguage :: Lens' UpdatePortfolioShare (Maybe Text)
- updatePortfolioShare_organizationNode :: Lens' UpdatePortfolioShare (Maybe OrganizationNode)
- updatePortfolioShare_portfolioId :: Lens' UpdatePortfolioShare Text
- data UpdatePortfolioShareResponse = UpdatePortfolioShareResponse' {}
- newUpdatePortfolioShareResponse :: Int -> UpdatePortfolioShareResponse
- updatePortfolioShareResponse_status :: Lens' UpdatePortfolioShareResponse (Maybe ShareStatus)
- updatePortfolioShareResponse_portfolioShareToken :: Lens' UpdatePortfolioShareResponse (Maybe Text)
- updatePortfolioShareResponse_httpStatus :: Lens' UpdatePortfolioShareResponse Int
Creating a Request
data UpdatePortfolioShare Source #
See: newUpdatePortfolioShare
smart constructor.
UpdatePortfolioShare' | |
|
Instances
newUpdatePortfolioShare Source #
Create a value of UpdatePortfolioShare
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:UpdatePortfolioShare'
, updatePortfolioShare_accountId
- The AWS Account Id of the recipient account. This field is required when
updating an external account to account type share.
$sel:shareTagOptions:UpdatePortfolioShare'
, updatePortfolioShare_shareTagOptions
- A flag to enable or disable TagOptions sharing for the portfolio share.
If this field is not provided, the current state of TagOptions sharing
on the portfolio share will not be modified.
$sel:acceptLanguage:UpdatePortfolioShare'
, updatePortfolioShare_acceptLanguage
- The language code.
en
- English (default)jp
- Japanesezh
- Chinese
$sel:organizationNode:UpdatePortfolioShare'
, updatePortfolioShare_organizationNode
- Undocumented member.
$sel:portfolioId:UpdatePortfolioShare'
, updatePortfolioShare_portfolioId
- The unique identifier of the portfolio for which the share will be
updated.
Request Lenses
updatePortfolioShare_accountId :: Lens' UpdatePortfolioShare (Maybe Text) Source #
The AWS Account Id of the recipient account. This field is required when updating an external account to account type share.
updatePortfolioShare_shareTagOptions :: Lens' UpdatePortfolioShare (Maybe Bool) Source #
A flag to enable or disable TagOptions sharing for the portfolio share. If this field is not provided, the current state of TagOptions sharing on the portfolio share will not be modified.
updatePortfolioShare_acceptLanguage :: Lens' UpdatePortfolioShare (Maybe Text) Source #
The language code.
en
- English (default)jp
- Japanesezh
- Chinese
updatePortfolioShare_organizationNode :: Lens' UpdatePortfolioShare (Maybe OrganizationNode) Source #
Undocumented member.
updatePortfolioShare_portfolioId :: Lens' UpdatePortfolioShare Text Source #
The unique identifier of the portfolio for which the share will be updated.
Destructuring the Response
data UpdatePortfolioShareResponse Source #
See: newUpdatePortfolioShareResponse
smart constructor.
UpdatePortfolioShareResponse' | |
|
Instances
newUpdatePortfolioShareResponse Source #
Create a value of UpdatePortfolioShareResponse
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:status:UpdatePortfolioShareResponse'
, updatePortfolioShareResponse_status
- The status of UpdatePortfolioShare
operation. You can also obtain the
operation status using DescribePortfolioShareStatus
API.
$sel:portfolioShareToken:UpdatePortfolioShareResponse'
, updatePortfolioShareResponse_portfolioShareToken
- The token that tracks the status of the UpdatePortfolioShare
operation
for external account to account or organizational type sharing.
$sel:httpStatus:UpdatePortfolioShareResponse'
, updatePortfolioShareResponse_httpStatus
- The response's http status code.
Response Lenses
updatePortfolioShareResponse_status :: Lens' UpdatePortfolioShareResponse (Maybe ShareStatus) Source #
The status of UpdatePortfolioShare
operation. You can also obtain the
operation status using DescribePortfolioShareStatus
API.
updatePortfolioShareResponse_portfolioShareToken :: Lens' UpdatePortfolioShareResponse (Maybe Text) Source #
The token that tracks the status of the UpdatePortfolioShare
operation
for external account to account or organizational type sharing.
updatePortfolioShareResponse_httpStatus :: Lens' UpdatePortfolioShareResponse Int Source #
The response's http status code.