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 |
Associates the specified principal ARN with the specified portfolio.
Synopsis
- associatePrincipalWithPortfolio :: Text -> Text -> PrincipalType -> AssociatePrincipalWithPortfolio
- data AssociatePrincipalWithPortfolio
- aAcceptLanguage :: Lens' AssociatePrincipalWithPortfolio (Maybe Text)
- aPortfolioId :: Lens' AssociatePrincipalWithPortfolio Text
- aPrincipalARN :: Lens' AssociatePrincipalWithPortfolio Text
- aPrincipalType :: Lens' AssociatePrincipalWithPortfolio PrincipalType
- associatePrincipalWithPortfolioResponse :: Int -> AssociatePrincipalWithPortfolioResponse
- data AssociatePrincipalWithPortfolioResponse
- apwprsResponseStatus :: Lens' AssociatePrincipalWithPortfolioResponse Int
Creating a Request
associatePrincipalWithPortfolio Source #
Creates a value of AssociatePrincipalWithPortfolio
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
aAcceptLanguage
- The language code. *en
- English (default) *jp
- Japanese *zh
- ChineseaPortfolioId
- The portfolio identifier.aPrincipalARN
- The ARN of the principal (IAM user, role, or group).aPrincipalType
- The principal type. The supported value isIAM
.
data AssociatePrincipalWithPortfolio Source #
See: associatePrincipalWithPortfolio
smart constructor.
Instances
Request Lenses
aAcceptLanguage :: Lens' AssociatePrincipalWithPortfolio (Maybe Text) Source #
The language code. * en
- English (default) * jp
- Japanese * zh
- Chinese
aPortfolioId :: Lens' AssociatePrincipalWithPortfolio Text Source #
The portfolio identifier.
aPrincipalARN :: Lens' AssociatePrincipalWithPortfolio Text Source #
The ARN of the principal (IAM user, role, or group).
aPrincipalType :: Lens' AssociatePrincipalWithPortfolio PrincipalType Source #
The principal type. The supported value is IAM
.
Destructuring the Response
associatePrincipalWithPortfolioResponse Source #
Creates a value of AssociatePrincipalWithPortfolioResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
apwprsResponseStatus
- -- | The response status code.
data AssociatePrincipalWithPortfolioResponse Source #
See: associatePrincipalWithPortfolioResponse
smart constructor.
Instances
Response Lenses
apwprsResponseStatus :: Lens' AssociatePrincipalWithPortfolioResponse Int Source #
- - | The response status code.