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 |
Adds the specified IAM role to the specified instance profile. An instance profile can contain only one role, and this limit cannot be increased.
For more information about roles, go to Working with Roles . For more information about instance profiles, go to About Instance Profiles .
- addRoleToInstanceProfile :: Text -> Text -> AddRoleToInstanceProfile
- data AddRoleToInstanceProfile
- artipInstanceProfileName :: Lens' AddRoleToInstanceProfile Text
- artipRoleName :: Lens' AddRoleToInstanceProfile Text
- addRoleToInstanceProfileResponse :: AddRoleToInstanceProfileResponse
- data AddRoleToInstanceProfileResponse
Creating a Request
addRoleToInstanceProfile Source #
Creates a value of AddRoleToInstanceProfile
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
artipInstanceProfileName
- The name of the instance profile to update. This parameter allows (per its regex pattern ) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-artipRoleName
- The name of the role to add. This parameter allows (per its regex pattern ) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: _+=,.@-
data AddRoleToInstanceProfile Source #
See: addRoleToInstanceProfile
smart constructor.
Request Lenses
artipInstanceProfileName :: Lens' AddRoleToInstanceProfile Text Source #
The name of the instance profile to update. This parameter allows (per its regex pattern ) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-
artipRoleName :: Lens' AddRoleToInstanceProfile Text Source #
The name of the role to add. This parameter allows (per its regex pattern ) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: _+=,.@-
Destructuring the Response
addRoleToInstanceProfileResponse :: AddRoleToInstanceProfileResponse Source #
Creates a value of AddRoleToInstanceProfileResponse
with the minimum fields required to make a request.
data AddRoleToInstanceProfileResponse Source #
See: addRoleToInstanceProfileResponse
smart constructor.