Copyright | (c) 2013-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Associates the specified principal ARN with the specified portfolio.
- 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 to use for this operation. Supported language codes are as follows: "en" (English) "jp" (Japanese) "zh" (Chinese) If no code is specified, "en" is used as the default.aPortfolioId
- The portfolio identifier.aPrincipalARN
- The ARN representing the principal (IAM user, role, or group).aPrincipalType
- The principal type. Must beIAM
data AssociatePrincipalWithPortfolio Source #
See: associatePrincipalWithPortfolio
smart constructor.
Request Lenses
aAcceptLanguage :: Lens' AssociatePrincipalWithPortfolio (Maybe Text) Source #
The language code to use for this operation. Supported language codes are as follows: "en" (English) "jp" (Japanese) "zh" (Chinese) If no code is specified, "en" is used as the default.
aPortfolioId :: Lens' AssociatePrincipalWithPortfolio Text Source #
The portfolio identifier.
aPrincipalARN :: Lens' AssociatePrincipalWithPortfolio Text Source #
The ARN representing the principal (IAM user, role, or group).
aPrincipalType :: Lens' AssociatePrincipalWithPortfolio PrincipalType Source #
The principal type. Must be 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.
Response Lenses
apwprsResponseStatus :: Lens' AssociatePrincipalWithPortfolioResponse Int Source #
- - | The response status code.