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 |
Associates the specified principal ARN with the specified portfolio.
Synopsis
- data AssociatePrincipalWithPortfolio = AssociatePrincipalWithPortfolio' {}
- newAssociatePrincipalWithPortfolio :: Text -> Text -> PrincipalType -> AssociatePrincipalWithPortfolio
- associatePrincipalWithPortfolio_acceptLanguage :: Lens' AssociatePrincipalWithPortfolio (Maybe Text)
- associatePrincipalWithPortfolio_portfolioId :: Lens' AssociatePrincipalWithPortfolio Text
- associatePrincipalWithPortfolio_principalARN :: Lens' AssociatePrincipalWithPortfolio Text
- associatePrincipalWithPortfolio_principalType :: Lens' AssociatePrincipalWithPortfolio PrincipalType
- data AssociatePrincipalWithPortfolioResponse = AssociatePrincipalWithPortfolioResponse' {
- httpStatus :: Int
- newAssociatePrincipalWithPortfolioResponse :: Int -> AssociatePrincipalWithPortfolioResponse
- associatePrincipalWithPortfolioResponse_httpStatus :: Lens' AssociatePrincipalWithPortfolioResponse Int
Creating a Request
data AssociatePrincipalWithPortfolio Source #
See: newAssociatePrincipalWithPortfolio
smart constructor.
AssociatePrincipalWithPortfolio' | |
|
Instances
newAssociatePrincipalWithPortfolio Source #
Create a value of AssociatePrincipalWithPortfolio
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:AssociatePrincipalWithPortfolio'
, associatePrincipalWithPortfolio_acceptLanguage
- The language code.
en
- English (default)jp
- Japanesezh
- Chinese
$sel:portfolioId:AssociatePrincipalWithPortfolio'
, associatePrincipalWithPortfolio_portfolioId
- The portfolio identifier.
$sel:principalARN:AssociatePrincipalWithPortfolio'
, associatePrincipalWithPortfolio_principalARN
- The ARN of the principal (IAM user, role, or group).
$sel:principalType:AssociatePrincipalWithPortfolio'
, associatePrincipalWithPortfolio_principalType
- The principal type. The supported value is IAM
.
Request Lenses
associatePrincipalWithPortfolio_acceptLanguage :: Lens' AssociatePrincipalWithPortfolio (Maybe Text) Source #
The language code.
en
- English (default)jp
- Japanesezh
- Chinese
associatePrincipalWithPortfolio_portfolioId :: Lens' AssociatePrincipalWithPortfolio Text Source #
The portfolio identifier.
associatePrincipalWithPortfolio_principalARN :: Lens' AssociatePrincipalWithPortfolio Text Source #
The ARN of the principal (IAM user, role, or group).
associatePrincipalWithPortfolio_principalType :: Lens' AssociatePrincipalWithPortfolio PrincipalType Source #
The principal type. The supported value is IAM
.
Destructuring the Response
data AssociatePrincipalWithPortfolioResponse Source #
See: newAssociatePrincipalWithPortfolioResponse
smart constructor.
AssociatePrincipalWithPortfolioResponse' | |
|
Instances
Eq AssociatePrincipalWithPortfolioResponse Source # | |
Read AssociatePrincipalWithPortfolioResponse Source # | |
Show AssociatePrincipalWithPortfolioResponse Source # | |
Generic AssociatePrincipalWithPortfolioResponse Source # | |
Defined in Amazonka.ServiceCatalog.AssociatePrincipalWithPortfolio type Rep AssociatePrincipalWithPortfolioResponse :: Type -> Type # | |
NFData AssociatePrincipalWithPortfolioResponse Source # | |
type Rep AssociatePrincipalWithPortfolioResponse Source # | |
Defined in Amazonka.ServiceCatalog.AssociatePrincipalWithPortfolio type Rep AssociatePrincipalWithPortfolioResponse = D1 ('MetaData "AssociatePrincipalWithPortfolioResponse" "Amazonka.ServiceCatalog.AssociatePrincipalWithPortfolio" "libZSservicesZSamazonka-servicecatalogZSamazonka-servicecatalog" 'False) (C1 ('MetaCons "AssociatePrincipalWithPortfolioResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) |
newAssociatePrincipalWithPortfolioResponse Source #
Create a value of AssociatePrincipalWithPortfolioResponse
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:httpStatus:AssociatePrincipalWithPortfolioResponse'
, associatePrincipalWithPortfolioResponse_httpStatus
- The response's http status code.
Response Lenses
associatePrincipalWithPortfolioResponse_httpStatus :: Lens' AssociatePrincipalWithPortfolioResponse Int Source #
The response's http status code.