createCloudFormationTemplate method

Future<CreateCloudFormationTemplateResponse> createCloudFormationTemplate({
  1. required String applicationId,
  2. String? semanticVersion,
})

Creates an AWS CloudFormation template.

May throw NotFoundException. May throw TooManyRequestsException. May throw BadRequestException. May throw InternalServerErrorException. May throw ForbiddenException.

Parameter applicationId : The Amazon Resource Name (ARN) of the application.

Parameter semanticVersion : The semantic version of the application:

https://semver.org/

Implementation

Future<CreateCloudFormationTemplateResponse> createCloudFormationTemplate({
  required String applicationId,
  String? semanticVersion,
}) async {
  ArgumentError.checkNotNull(applicationId, 'applicationId');
  final $payload = <String, dynamic>{
    if (semanticVersion != null) 'semanticVersion': semanticVersion,
  };
  final response = await _protocol.send(
    payload: $payload,
    method: 'POST',
    requestUri:
        '/applications/${Uri.encodeComponent(applicationId)}/templates',
    exceptionFnMap: _exceptionFns,
  );
  return CreateCloudFormationTemplateResponse.fromJson(response);
}