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 |
Creates a portfolio.
A delegated admin is authorized to invoke this command.
Synopsis
- data CreatePortfolio = CreatePortfolio' {
- acceptLanguage :: Maybe Text
- description :: Maybe Text
- tags :: Maybe [Tag]
- displayName :: Text
- providerName :: Text
- idempotencyToken :: Text
- newCreatePortfolio :: Text -> Text -> Text -> CreatePortfolio
- createPortfolio_acceptLanguage :: Lens' CreatePortfolio (Maybe Text)
- createPortfolio_description :: Lens' CreatePortfolio (Maybe Text)
- createPortfolio_tags :: Lens' CreatePortfolio (Maybe [Tag])
- createPortfolio_displayName :: Lens' CreatePortfolio Text
- createPortfolio_providerName :: Lens' CreatePortfolio Text
- createPortfolio_idempotencyToken :: Lens' CreatePortfolio Text
- data CreatePortfolioResponse = CreatePortfolioResponse' {
- portfolioDetail :: Maybe PortfolioDetail
- tags :: Maybe [Tag]
- httpStatus :: Int
- newCreatePortfolioResponse :: Int -> CreatePortfolioResponse
- createPortfolioResponse_portfolioDetail :: Lens' CreatePortfolioResponse (Maybe PortfolioDetail)
- createPortfolioResponse_tags :: Lens' CreatePortfolioResponse (Maybe [Tag])
- createPortfolioResponse_httpStatus :: Lens' CreatePortfolioResponse Int
Creating a Request
data CreatePortfolio Source #
See: newCreatePortfolio
smart constructor.
CreatePortfolio' | |
|
Instances
:: Text | |
-> Text | |
-> Text | |
-> CreatePortfolio |
Create a value of CreatePortfolio
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:CreatePortfolio'
, createPortfolio_acceptLanguage
- The language code.
en
- English (default)jp
- Japanesezh
- Chinese
$sel:description:CreatePortfolio'
, createPortfolio_description
- The description of the portfolio.
$sel:tags:CreatePortfolio'
, createPortfolio_tags
- One or more tags.
$sel:displayName:CreatePortfolio'
, createPortfolio_displayName
- The name to use for display purposes.
$sel:providerName:CreatePortfolio'
, createPortfolio_providerName
- The name of the portfolio provider.
$sel:idempotencyToken:CreatePortfolio'
, createPortfolio_idempotencyToken
- A unique identifier that you provide to ensure idempotency. If multiple
requests differ only by the idempotency token, the same response is
returned for each repeated request.
Request Lenses
createPortfolio_acceptLanguage :: Lens' CreatePortfolio (Maybe Text) Source #
The language code.
en
- English (default)jp
- Japanesezh
- Chinese
createPortfolio_description :: Lens' CreatePortfolio (Maybe Text) Source #
The description of the portfolio.
createPortfolio_tags :: Lens' CreatePortfolio (Maybe [Tag]) Source #
One or more tags.
createPortfolio_displayName :: Lens' CreatePortfolio Text Source #
The name to use for display purposes.
createPortfolio_providerName :: Lens' CreatePortfolio Text Source #
The name of the portfolio provider.
createPortfolio_idempotencyToken :: Lens' CreatePortfolio Text Source #
A unique identifier that you provide to ensure idempotency. If multiple requests differ only by the idempotency token, the same response is returned for each repeated request.
Destructuring the Response
data CreatePortfolioResponse Source #
See: newCreatePortfolioResponse
smart constructor.
CreatePortfolioResponse' | |
|
Instances
newCreatePortfolioResponse Source #
Create a value of CreatePortfolioResponse
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:portfolioDetail:CreatePortfolioResponse'
, createPortfolioResponse_portfolioDetail
- Information about the portfolio.
$sel:tags:CreatePortfolio'
, createPortfolioResponse_tags
- Information about the tags associated with the portfolio.
$sel:httpStatus:CreatePortfolioResponse'
, createPortfolioResponse_httpStatus
- The response's http status code.
Response Lenses
createPortfolioResponse_portfolioDetail :: Lens' CreatePortfolioResponse (Maybe PortfolioDetail) Source #
Information about the portfolio.
createPortfolioResponse_tags :: Lens' CreatePortfolioResponse (Maybe [Tag]) Source #
Information about the tags associated with the portfolio.
createPortfolioResponse_httpStatus :: Lens' CreatePortfolioResponse Int Source #
The response's http status code.