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 |
Accepts an offer to share the specified portfolio.
Synopsis
- data AcceptPortfolioShare = AcceptPortfolioShare' {}
- newAcceptPortfolioShare :: Text -> AcceptPortfolioShare
- acceptPortfolioShare_portfolioShareType :: Lens' AcceptPortfolioShare (Maybe PortfolioShareType)
- acceptPortfolioShare_acceptLanguage :: Lens' AcceptPortfolioShare (Maybe Text)
- acceptPortfolioShare_portfolioId :: Lens' AcceptPortfolioShare Text
- data AcceptPortfolioShareResponse = AcceptPortfolioShareResponse' {
- httpStatus :: Int
- newAcceptPortfolioShareResponse :: Int -> AcceptPortfolioShareResponse
- acceptPortfolioShareResponse_httpStatus :: Lens' AcceptPortfolioShareResponse Int
Creating a Request
data AcceptPortfolioShare Source #
See: newAcceptPortfolioShare
smart constructor.
AcceptPortfolioShare' | |
|
Instances
newAcceptPortfolioShare Source #
Create a value of AcceptPortfolioShare
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:portfolioShareType:AcceptPortfolioShare'
, acceptPortfolioShare_portfolioShareType
- The type of shared portfolios to accept. The default is to accept
imported portfolios.
AWS_ORGANIZATIONS
- Accept portfolios shared by the management account of your organization.IMPORTED
- Accept imported portfolios.AWS_SERVICECATALOG
- Not supported. (Throws ResourceNotFoundException.)
For example,
aws servicecatalog accept-portfolio-share --portfolio-id "port-2qwzkwxt3y5fk" --portfolio-share-type AWS_ORGANIZATIONS
$sel:acceptLanguage:AcceptPortfolioShare'
, acceptPortfolioShare_acceptLanguage
- The language code.
en
- English (default)jp
- Japanesezh
- Chinese
$sel:portfolioId:AcceptPortfolioShare'
, acceptPortfolioShare_portfolioId
- The portfolio identifier.
Request Lenses
acceptPortfolioShare_portfolioShareType :: Lens' AcceptPortfolioShare (Maybe PortfolioShareType) Source #
The type of shared portfolios to accept. The default is to accept imported portfolios.
AWS_ORGANIZATIONS
- Accept portfolios shared by the management account of your organization.IMPORTED
- Accept imported portfolios.AWS_SERVICECATALOG
- Not supported. (Throws ResourceNotFoundException.)
For example,
aws servicecatalog accept-portfolio-share --portfolio-id "port-2qwzkwxt3y5fk" --portfolio-share-type AWS_ORGANIZATIONS
acceptPortfolioShare_acceptLanguage :: Lens' AcceptPortfolioShare (Maybe Text) Source #
The language code.
en
- English (default)jp
- Japanesezh
- Chinese
acceptPortfolioShare_portfolioId :: Lens' AcceptPortfolioShare Text Source #
The portfolio identifier.
Destructuring the Response
data AcceptPortfolioShareResponse Source #
See: newAcceptPortfolioShareResponse
smart constructor.
AcceptPortfolioShareResponse' | |
|
Instances
newAcceptPortfolioShareResponse Source #
Create a value of AcceptPortfolioShareResponse
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:AcceptPortfolioShareResponse'
, acceptPortfolioShareResponse_httpStatus
- The response's http status code.
Response Lenses
acceptPortfolioShareResponse_httpStatus :: Lens' AcceptPortfolioShareResponse Int Source #
The response's http status code.