ServiceLbPolicy constructor
ServiceLbPolicy(
- String name, {
- ServiceLbPolicyArgs? args,
- CustomResourceOptions? options,
Creates a new ServiceLbPolicy.
name The Pulumi resource name.
args Arguments used to configure this ServiceLbPolicy. The set of arguments for ServiceLbPolicy.
options Resource options controlling this resource's behavior.
Implementation
ServiceLbPolicy(
String name, {
ServiceLbPolicyArgs? args,
pulumi.CustomResourceOptions? options,
}) : super(
'google-native:networkservices/v1beta1:ServiceLbPolicy',
name,
pulumi.Input.mapToInputs(args?.toMap() ?? const {}),
options ?? pulumi.CustomResourceOptions(),
) {
autoCapacityDrain = registerOutput<ServiceLbPolicyAutoCapacityDrainResponse>('autoCapacityDrain', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return ServiceLbPolicyAutoCapacityDrainResponse.fromMap((guardedValue as Map).cast<String, dynamic>()); });
createTime = registerOutput<String>('createTime');
description = registerOutput<String>('description');
failoverConfig = registerOutput<ServiceLbPolicyFailoverConfigResponse>('failoverConfig', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return ServiceLbPolicyFailoverConfigResponse.fromMap((guardedValue as Map).cast<String, dynamic>()); });
labels = registerOutput<Map<String, String>>('labels');
loadBalancingAlgorithm = registerOutput<String>('loadBalancingAlgorithm');
location = registerOutput<String>('location');
this.name = registerOutput<String>('name');
project = registerOutput<String>('project');
serviceLbPolicyId = registerOutput<String>('serviceLbPolicyId');
updateTime = registerOutput<String>('updateTime');
}