updateDomainEndpointOptions method

Future<UpdateDomainEndpointOptionsResponse> updateDomainEndpointOptions({
  1. required DomainEndpointOptions domainEndpointOptions,
  2. required String domainName,
})

Updates the domain's endpoint options, specifically whether all requests to the domain must arrive over HTTPS. For more information, see Configuring Domain Endpoint Options in the Amazon CloudSearch Developer Guide.

May throw BaseException. May throw InternalException. May throw InvalidTypeException. May throw LimitExceededException. May throw ResourceNotFoundException. May throw DisabledOperationException. May throw ValidationException.

Parameter domainEndpointOptions : Whether to require that all requests to the domain arrive over HTTPS. We recommend Policy-Min-TLS-1-2-2019-07 for TLSSecurityPolicy. For compatibility with older clients, the default is Policy-Min-TLS-1-0-2019-07.

Parameter domainName : A string that represents the name of a domain.

Implementation

Future<UpdateDomainEndpointOptionsResponse> updateDomainEndpointOptions({
  required DomainEndpointOptions domainEndpointOptions,
  required String domainName,
}) async {
  ArgumentError.checkNotNull(domainEndpointOptions, 'domainEndpointOptions');
  ArgumentError.checkNotNull(domainName, 'domainName');
  _s.validateStringLength(
    'domainName',
    domainName,
    3,
    28,
    isRequired: true,
  );
  final $request = <String, dynamic>{};
  $request['DomainEndpointOptions'] = domainEndpointOptions;
  $request['DomainName'] = domainName;
  final $result = await _protocol.send(
    $request,
    action: 'UpdateDomainEndpointOptions',
    version: '2013-01-01',
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    shape: shapes['UpdateDomainEndpointOptionsRequest'],
    shapes: shapes,
    resultWrapper: 'UpdateDomainEndpointOptionsResult',
  );
  return UpdateDomainEndpointOptionsResponse.fromXml($result);
}