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 |
Associates an IAM instance profile with a running or stopped instance. You cannot associate more than one IAM instance profile with an instance.
- associateIAMInstanceProfile :: IAMInstanceProfileSpecification -> Text -> AssociateIAMInstanceProfile
- data AssociateIAMInstanceProfile
- aiapIAMInstanceProfile :: Lens' AssociateIAMInstanceProfile IAMInstanceProfileSpecification
- aiapInstanceId :: Lens' AssociateIAMInstanceProfile Text
- associateIAMInstanceProfileResponse :: Int -> AssociateIAMInstanceProfileResponse
- data AssociateIAMInstanceProfileResponse
- aiaprsIAMInstanceProfileAssociation :: Lens' AssociateIAMInstanceProfileResponse (Maybe IAMInstanceProfileAssociation)
- aiaprsResponseStatus :: Lens' AssociateIAMInstanceProfileResponse Int
Creating a Request
associateIAMInstanceProfile Source #
Creates a value of AssociateIAMInstanceProfile
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
aiapIAMInstanceProfile
- The IAM instance profile.aiapInstanceId
- The ID of the instance.
data AssociateIAMInstanceProfile Source #
See: associateIAMInstanceProfile
smart constructor.
Request Lenses
aiapIAMInstanceProfile :: Lens' AssociateIAMInstanceProfile IAMInstanceProfileSpecification Source #
The IAM instance profile.
aiapInstanceId :: Lens' AssociateIAMInstanceProfile Text Source #
The ID of the instance.
Destructuring the Response
associateIAMInstanceProfileResponse Source #
Creates a value of AssociateIAMInstanceProfileResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
aiaprsIAMInstanceProfileAssociation
- Information about the IAM instance profile association.aiaprsResponseStatus
- -- | The response status code.
data AssociateIAMInstanceProfileResponse Source #
See: associateIAMInstanceProfileResponse
smart constructor.
Response Lenses
aiaprsIAMInstanceProfileAssociation :: Lens' AssociateIAMInstanceProfileResponse (Maybe IAMInstanceProfileAssociation) Source #
Information about the IAM instance profile association.
aiaprsResponseStatus :: Lens' AssociateIAMInstanceProfileResponse Int Source #
- - | The response status code.