Copyright | (c) 2013-2017 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 new 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 text description of the portfolio.creTags
- Tags to associate with the new portfolio.creDisplayName
- The name to use for display purposes.creProviderName
- The name of the portfolio provider.creIdempotencyToken
- A token to disambiguate duplicate requests. You can use the same input in multiple requests, provided that you also specify a different idempotency token for each 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 text 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 token to disambiguate duplicate requests. You can use the same input in multiple requests, provided that you also specify a different idempotency token for each 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
- The resulting detailed portfolio information.crsTags
- Tags successfully associated with the new portfolio.crsResponseStatus
- -- | The response status code.
data CreatePortfolioResponse Source #
See: createPortfolioResponse
smart constructor.
Response Lenses
crsPortfolioDetail :: Lens' CreatePortfolioResponse (Maybe PortfolioDetail) Source #
The resulting detailed portfolio information.
crsTags :: Lens' CreatePortfolioResponse [Tag] Source #
Tags successfully associated with the new portfolio.
crsResponseStatus :: Lens' CreatePortfolioResponse Int Source #
- - | The response status code.