createSignalMap method
Initiates the creation of a new signal map. Will discover a new mediaResourceMap based on the provided discoveryEntryPointArn.
May throw BadRequestException.
May throw ConflictException.
May throw ForbiddenException.
May throw InternalServerErrorException.
May throw NotFoundException.
May throw TooManyRequestsException.
Parameter discoveryEntryPointArn :
A top-level supported AWS resource ARN to discovery a signal map from.
Parameter name :
A resource's name. Names must be unique within the scope of a resource
type in a specific region.
Parameter description :
A resource's optional description.
Parameter requestId :
An ID that you assign to a create request. This ID ensures idempotency
when creating resources.
Implementation
Future<CreateSignalMapResponse> createSignalMap({
required String discoveryEntryPointArn,
required String name,
List<String>? cloudWatchAlarmTemplateGroupIdentifiers,
String? description,
List<String>? eventBridgeRuleTemplateGroupIdentifiers,
String? requestId,
Map<String, String>? tags,
}) async {
final $payload = <String, dynamic>{
'discoveryEntryPointArn': discoveryEntryPointArn,
'name': name,
if (cloudWatchAlarmTemplateGroupIdentifiers != null)
'cloudWatchAlarmTemplateGroupIdentifiers':
cloudWatchAlarmTemplateGroupIdentifiers,
if (description != null) 'description': description,
if (eventBridgeRuleTemplateGroupIdentifiers != null)
'eventBridgeRuleTemplateGroupIdentifiers':
eventBridgeRuleTemplateGroupIdentifiers,
'requestId': requestId ?? _s.generateIdempotencyToken(),
if (tags != null) 'tags': tags,
};
final response = await _protocol.send(
payload: $payload,
method: 'POST',
requestUri: '/prod/signal-maps',
exceptionFnMap: _exceptionFns,
);
return CreateSignalMapResponse.fromJson(response);
}