| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.ServiceCatalog.AcceptPortfolioShare
Description
Accepts an offer to share the specified portfolio.
Synopsis
- data AcceptPortfolioShare = AcceptPortfolioShare' {}
- newAcceptPortfolioShare :: Text -> AcceptPortfolioShare
- acceptPortfolioShare_acceptLanguage :: Lens' AcceptPortfolioShare (Maybe Text)
- acceptPortfolioShare_portfolioShareType :: Lens' AcceptPortfolioShare (Maybe PortfolioShareType)
- 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.
Constructors
| AcceptPortfolioShare' | |
Fields
| |
Instances
newAcceptPortfolioShare Source #
Arguments
| :: Text | |
| -> AcceptPortfolioShare |
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:acceptLanguage:AcceptPortfolioShare', acceptPortfolioShare_acceptLanguage - The language code.
en- English (default)jp- Japanesezh- Chinese
$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
AcceptPortfolioShare, acceptPortfolioShare_portfolioId - The portfolio identifier.
Request Lenses
acceptPortfolioShare_acceptLanguage :: Lens' AcceptPortfolioShare (Maybe Text) Source #
The language code.
en- English (default)jp- Japanesezh- Chinese
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_portfolioId :: Lens' AcceptPortfolioShare Text Source #
The portfolio identifier.
Destructuring the Response
data AcceptPortfolioShareResponse Source #
See: newAcceptPortfolioShareResponse smart constructor.
Constructors
| AcceptPortfolioShareResponse' | |
Fields
| |
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.