Copyright | (c) 2013-2018 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 |
Language | Haskell2010 |
Creates a portfolio.
- createPortfolio :: Text -> Text -> Text -> CreatePortfolio
- data CreatePortfolio
- creAcceptLanguage :: Lens' CreatePortfolio (Maybe Text)
- creDescription :: Lens' CreatePortfolio (Maybe Text)
- creTags :: Lens' CreatePortfolio [Tag]
- creDisplayName :: Lens' CreatePortfolio Text
- creProviderName :: Lens' CreatePortfolio Text
- creIdempotencyToken :: Lens' CreatePortfolio Text
- createPortfolioResponse :: Int -> CreatePortfolioResponse
- data CreatePortfolioResponse
- crsPortfolioDetail :: Lens' CreatePortfolioResponse (Maybe PortfolioDetail)
- crsTags :: Lens' CreatePortfolioResponse [Tag]
- crsResponseStatus :: Lens' CreatePortfolioResponse Int
Creating a Request
Creates a value of CreatePortfolio
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
creAcceptLanguage
- The language code. *en
- English (default) *jp
- Japanese *zh
- ChinesecreDescription
- The description of the portfolio.creTags
- One or more tags.creDisplayName
- The name to use for display purposes.creProviderName
- The name of the portfolio provider.creIdempotencyToken
- 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.
data CreatePortfolio Source #
See: createPortfolio
smart constructor.
Request Lenses
creAcceptLanguage :: Lens' CreatePortfolio (Maybe Text) Source #
The language code. * en
- English (default) * jp
- Japanese * zh
- Chinese
creDescription :: Lens' CreatePortfolio (Maybe Text) Source #
The description of the portfolio.
creDisplayName :: Lens' CreatePortfolio Text Source #
The name to use for display purposes.
creProviderName :: Lens' CreatePortfolio Text Source #
The name of the portfolio provider.
creIdempotencyToken :: 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
createPortfolioResponse Source #
Creates a value of CreatePortfolioResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
crsPortfolioDetail
- Information about the portfolio.crsTags
- Information about the tags associated with the portfolio.crsResponseStatus
- -- | The response status code.
data CreatePortfolioResponse Source #
See: createPortfolioResponse
smart constructor.
Response Lenses
crsPortfolioDetail :: Lens' CreatePortfolioResponse (Maybe PortfolioDetail) Source #
Information about the portfolio.
crsTags :: Lens' CreatePortfolioResponse [Tag] Source #
Information about the tags associated with the portfolio.
crsResponseStatus :: Lens' CreatePortfolioResponse Int Source #
- - | The response status code.