Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
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
- data ReplaceIamInstanceProfileAssociation = ReplaceIamInstanceProfileAssociation' {}
- newReplaceIamInstanceProfileAssociation :: IamInstanceProfileSpecification -> Text -> ReplaceIamInstanceProfileAssociation
- replaceIamInstanceProfileAssociation_iamInstanceProfile :: Lens' ReplaceIamInstanceProfileAssociation IamInstanceProfileSpecification
- replaceIamInstanceProfileAssociation_associationId :: Lens' ReplaceIamInstanceProfileAssociation Text
- data ReplaceIamInstanceProfileAssociationResponse = ReplaceIamInstanceProfileAssociationResponse' {}
- newReplaceIamInstanceProfileAssociationResponse :: Int -> ReplaceIamInstanceProfileAssociationResponse
- replaceIamInstanceProfileAssociationResponse_iamInstanceProfileAssociation :: Lens' ReplaceIamInstanceProfileAssociationResponse (Maybe IamInstanceProfileAssociation)
- replaceIamInstanceProfileAssociationResponse_httpStatus :: Lens' ReplaceIamInstanceProfileAssociationResponse Int
Creating a Request
data ReplaceIamInstanceProfileAssociation Source #
See: newReplaceIamInstanceProfileAssociation
smart constructor.
ReplaceIamInstanceProfileAssociation' | |
|
Instances
newReplaceIamInstanceProfileAssociation Source #
Create a value of ReplaceIamInstanceProfileAssociation
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:
ReplaceIamInstanceProfileAssociation
, replaceIamInstanceProfileAssociation_iamInstanceProfile
- The IAM instance profile.
ReplaceIamInstanceProfileAssociation
, replaceIamInstanceProfileAssociation_associationId
- The ID of the existing IAM instance profile association.
Request Lenses
replaceIamInstanceProfileAssociation_iamInstanceProfile :: Lens' ReplaceIamInstanceProfileAssociation IamInstanceProfileSpecification Source #
The IAM instance profile.
replaceIamInstanceProfileAssociation_associationId :: Lens' ReplaceIamInstanceProfileAssociation Text Source #
The ID of the existing IAM instance profile association.
Destructuring the Response
data ReplaceIamInstanceProfileAssociationResponse Source #
See: newReplaceIamInstanceProfileAssociationResponse
smart constructor.
ReplaceIamInstanceProfileAssociationResponse' | |
|
Instances
newReplaceIamInstanceProfileAssociationResponse Source #
:: Int |
|
-> ReplaceIamInstanceProfileAssociationResponse |
Create a value of ReplaceIamInstanceProfileAssociationResponse
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:iamInstanceProfileAssociation:ReplaceIamInstanceProfileAssociationResponse'
, replaceIamInstanceProfileAssociationResponse_iamInstanceProfileAssociation
- Information about the IAM instance profile association.
$sel:httpStatus:ReplaceIamInstanceProfileAssociationResponse'
, replaceIamInstanceProfileAssociationResponse_httpStatus
- The response's http status code.
Response Lenses
replaceIamInstanceProfileAssociationResponse_iamInstanceProfileAssociation :: Lens' ReplaceIamInstanceProfileAssociationResponse (Maybe IamInstanceProfileAssociation) Source #
Information about the IAM instance profile association.
replaceIamInstanceProfileAssociationResponse_httpStatus :: Lens' ReplaceIamInstanceProfileAssociationResponse Int Source #
The response's http status code.