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 |
Replaces an IAM instance profile for the specified running instance. You can use this action to change the IAM instance profile that's associated with an instance without having to disassociate the existing IAM instance profile first.
Use DescribeIamInstanceProfileAssociations
to get the association ID.
Synopsis
- replaceIAMInstanceProfileAssociation :: IAMInstanceProfileSpecification -> Text -> ReplaceIAMInstanceProfileAssociation
- data ReplaceIAMInstanceProfileAssociation
- riapaIAMInstanceProfile :: Lens' ReplaceIAMInstanceProfileAssociation IAMInstanceProfileSpecification
- riapaAssociationId :: Lens' ReplaceIAMInstanceProfileAssociation Text
- replaceIAMInstanceProfileAssociationResponse :: Int -> ReplaceIAMInstanceProfileAssociationResponse
- data ReplaceIAMInstanceProfileAssociationResponse
- riaparsIAMInstanceProfileAssociation :: Lens' ReplaceIAMInstanceProfileAssociationResponse (Maybe IAMInstanceProfileAssociation)
- riaparsResponseStatus :: Lens' ReplaceIAMInstanceProfileAssociationResponse Int
Creating a Request
replaceIAMInstanceProfileAssociation Source #
Creates a value of ReplaceIAMInstanceProfileAssociation
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
riapaIAMInstanceProfile
- The IAM instance profile.riapaAssociationId
- The ID of the existing IAM instance profile association.
data ReplaceIAMInstanceProfileAssociation Source #
See: replaceIAMInstanceProfileAssociation
smart constructor.
Instances
Request Lenses
riapaIAMInstanceProfile :: Lens' ReplaceIAMInstanceProfileAssociation IAMInstanceProfileSpecification Source #
The IAM instance profile.
riapaAssociationId :: Lens' ReplaceIAMInstanceProfileAssociation Text Source #
The ID of the existing IAM instance profile association.
Destructuring the Response
replaceIAMInstanceProfileAssociationResponse Source #
Creates a value of ReplaceIAMInstanceProfileAssociationResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
riaparsIAMInstanceProfileAssociation
- Information about the IAM instance profile association.riaparsResponseStatus
- -- | The response status code.
data ReplaceIAMInstanceProfileAssociationResponse Source #
See: replaceIAMInstanceProfileAssociationResponse
smart constructor.
Instances
Response Lenses
riaparsIAMInstanceProfileAssociation :: Lens' ReplaceIAMInstanceProfileAssociationResponse (Maybe IAMInstanceProfileAssociation) Source #
Information about the IAM instance profile association.
riaparsResponseStatus :: Lens' ReplaceIAMInstanceProfileAssociationResponse Int Source #
- - | The response status code.