deleteThemeAlias method
Deletes the version of the theme that the specified theme alias points to. If you provide a specific alias, you delete the version of the theme that the alias points to.
May throw ConflictException. May throw InvalidParameterValueException. May throw ResourceNotFoundException. May throw ThrottlingException. May throw UnsupportedUserEditionException. May throw InternalFailureException.
Parameter aliasName
:
The unique name for the theme alias to delete.
Parameter awsAccountId
:
The ID of the AWS account that contains the theme alias to delete.
Parameter themeId
:
The ID for the theme that the specified alias is for.
Implementation
Future<DeleteThemeAliasResponse> deleteThemeAlias({
required String aliasName,
required String awsAccountId,
required String themeId,
}) 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(themeId, 'themeId');
_s.validateStringLength(
'themeId',
themeId,
1,
2048,
isRequired: true,
);
final response = await _protocol.send(
payload: null,
method: 'DELETE',
requestUri:
'/accounts/${Uri.encodeComponent(awsAccountId)}/themes/${Uri.encodeComponent(themeId)}/aliases/${Uri.encodeComponent(aliasName)}',
exceptionFnMap: _exceptionFns,
);
return DeleteThemeAliasResponse.fromJson(response);
}