updateCompanyNetworkConfiguration method
Updates the company network configuration for the fleet.
May throw UnauthorizedException. May throw InternalServerErrorException. May throw InvalidRequestException. May throw ResourceNotFoundException. May throw TooManyRequestsException.
Parameter fleetArn
:
The ARN of the fleet.
Parameter securityGroupIds
:
The security groups associated with access to the provided subnets.
Parameter subnetIds
:
The subnets used for X-ENI connections from Amazon WorkLink rendering
containers.
Parameter vpcId
:
The VPC with connectivity to associated websites.
Implementation
Future<void> updateCompanyNetworkConfiguration({
required String fleetArn,
required List<String> securityGroupIds,
required List<String> subnetIds,
required String vpcId,
}) async {
ArgumentError.checkNotNull(fleetArn, 'fleetArn');
_s.validateStringLength(
'fleetArn',
fleetArn,
20,
2048,
isRequired: true,
);
ArgumentError.checkNotNull(securityGroupIds, 'securityGroupIds');
ArgumentError.checkNotNull(subnetIds, 'subnetIds');
ArgumentError.checkNotNull(vpcId, 'vpcId');
final $payload = <String, dynamic>{
'FleetArn': fleetArn,
'SecurityGroupIds': securityGroupIds,
'SubnetIds': subnetIds,
'VpcId': vpcId,
};
final response = await _protocol.send(
payload: $payload,
method: 'POST',
requestUri: '/updateCompanyNetworkConfiguration',
exceptionFnMap: _exceptionFns,
);
}