updateVPCEConfiguration method
Updates information about an Amazon Virtual Private Cloud (VPC) endpoint configuration.
May throw ArgumentException. May throw NotFoundException. May throw ServiceAccountException. May throw InvalidOperationException.
Parameter arn
:
The Amazon Resource Name (ARN) of the VPC endpoint configuration you want
to update.
Parameter serviceDnsName
:
The DNS (domain) name used to connect to your private service in your VPC.
The DNS name must not already be in use on the internet.
Parameter vpceConfigurationDescription
:
An optional description that provides details about your VPC endpoint
configuration.
Parameter vpceConfigurationName
:
The friendly name you give to your VPC endpoint configuration to manage
your configurations more easily.
Parameter vpceServiceName
:
The name of the VPC endpoint service running in your AWS account that you
want Device Farm to test.
Implementation
Future<UpdateVPCEConfigurationResult> updateVPCEConfiguration({
required String arn,
String? serviceDnsName,
String? vpceConfigurationDescription,
String? vpceConfigurationName,
String? vpceServiceName,
}) async {
ArgumentError.checkNotNull(arn, 'arn');
_s.validateStringLength(
'arn',
arn,
32,
1011,
isRequired: true,
);
_s.validateStringLength(
'serviceDnsName',
serviceDnsName,
0,
2048,
);
_s.validateStringLength(
'vpceConfigurationDescription',
vpceConfigurationDescription,
0,
2048,
);
_s.validateStringLength(
'vpceConfigurationName',
vpceConfigurationName,
0,
1024,
);
_s.validateStringLength(
'vpceServiceName',
vpceServiceName,
0,
2048,
);
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'DeviceFarm_20150623.UpdateVPCEConfiguration'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'arn': arn,
if (serviceDnsName != null) 'serviceDnsName': serviceDnsName,
if (vpceConfigurationDescription != null)
'vpceConfigurationDescription': vpceConfigurationDescription,
if (vpceConfigurationName != null)
'vpceConfigurationName': vpceConfigurationName,
if (vpceServiceName != null) 'vpceServiceName': vpceServiceName,
},
);
return UpdateVPCEConfigurationResult.fromJson(jsonResponse.body);
}