startAssociationsOnce method
Use this API action to run an association immediately and only one time. This action can be helpful when troubleshooting associations.
May throw InvalidAssociation. May throw AssociationDoesNotExist.
Parameter associationIds
:
The association IDs that you want to run immediately and only one time.
Implementation
Future<void> startAssociationsOnce({
required List<String> associationIds,
}) async {
ArgumentError.checkNotNull(associationIds, 'associationIds');
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'AmazonSSM.StartAssociationsOnce'
};
await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'AssociationIds': associationIds,
},
);
}