deleteTemplateAlias method
Deletes the item that the specified template alias points to. If you provide a specific alias, you delete the version of the template that the alias points to.
May throw ThrottlingException. May throw ResourceNotFoundException. May throw UnsupportedUserEditionException. May throw ConflictException. May throw InternalFailureException.
Parameter aliasName
:
The name for the template alias. To delete a specific alias, you delete
the version that the alias points to. You can specify the alias name, or
specify the latest version of the template by providing the keyword
$LATEST
in the AliasName
parameter.
Parameter awsAccountId
:
The ID of the AWS account that contains the item to delete.
Parameter templateId
:
The ID for the template that the specified alias is for.
Implementation
Future<DeleteTemplateAliasResponse> deleteTemplateAlias({
required String aliasName,
required String awsAccountId,
required String templateId,
}) async {
ArgumentError.checkNotNull(aliasName, 'aliasName');
_s.validateStringLength(
'aliasName',
aliasName,
1,
2048,
isRequired: true,
);
ArgumentError.checkNotNull(awsAccountId, 'awsAccountId');
_s.validateStringLength(
'awsAccountId',
awsAccountId,
12,
12,
isRequired: true,
);
ArgumentError.checkNotNull(templateId, 'templateId');
_s.validateStringLength(
'templateId',
templateId,
1,
2048,
isRequired: true,
);
final response = await _protocol.send(
payload: null,
method: 'DELETE',
requestUri:
'/accounts/${Uri.encodeComponent(awsAccountId)}/templates/${Uri.encodeComponent(templateId)}/aliases/${Uri.encodeComponent(aliasName)}',
exceptionFnMap: _exceptionFns,
);
return DeleteTemplateAliasResponse.fromJson(response);
}