createDomainName method
Creates a custom DomainName object.
May throw AccessDeniedException.
May throw BadRequestException.
May throw InternalFailureException.
Parameter certificateArn :
The Amazon Resource Name (ARN) of the certificate. This can be an
Certificate Manager (ACM) certificate or an Identity and Access Management
(IAM) server certificate.
Parameter domainName :
The domain name.
Parameter description :
A description of the DomainName.
Implementation
Future<CreateDomainNameResponse> createDomainName({
required String certificateArn,
required String domainName,
String? description,
Map<String, String>? tags,
}) async {
final $payload = <String, dynamic>{
'certificateArn': certificateArn,
'domainName': domainName,
if (description != null) 'description': description,
if (tags != null) 'tags': tags,
};
final response = await _protocol.send(
payload: $payload,
method: 'POST',
requestUri: '/v1/domainnames',
exceptionFnMap: _exceptionFns,
);
return CreateDomainNameResponse.fromJson(response);
}