ForwardingRule constructor
ForwardingRule(
- String name, {
- ForwardingRuleArgs? args,
- CustomResourceOptions? options,
Creates a new ForwardingRule.
name The Pulumi resource name.
args Arguments used to configure this ForwardingRule. The set of arguments for ForwardingRule.
options Resource options controlling this resource's behavior.
Implementation
ForwardingRule(
String name, {
ForwardingRuleArgs? args,
pulumi.CustomResourceOptions? options,
}) : super(
'gcp:compute/forwardingRule:ForwardingRule',
name,
pulumi.Input.mapToInputs(args?.toMap() ?? const {}),
pulumi.CustomResourceOptions(version: '9.36.1').merge(options),
additionalSecretOutputs: const ['effectiveLabels', 'pulumiLabels'],
) {
allPorts = registerOutput<bool?>('allPorts');
allowGlobalAccess = registerOutput<bool?>('allowGlobalAccess');
allowPscGlobalAccess = registerOutput<bool?>('allowPscGlobalAccess');
backendService = registerOutput<String?>('backendService');
baseForwardingRule = registerOutput<String>('baseForwardingRule');
creationTimestamp = registerOutput<String>('creationTimestamp');
deletionPolicy = registerOutput<String>('deletionPolicy');
description = registerOutput<String?>('description');
effectiveLabels = registerOutput<Map<String, String>>('effectiveLabels', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return (guardedValue as Map).cast<String, String>(); }, isSecret: true);
forwardingRuleId = registerOutput<int>('forwardingRuleId');
ipAddress = registerOutput<String>('ipAddress');
ipCollection = registerOutput<String?>('ipCollection');
ipProtocol = registerOutput<String>('ipProtocol');
ipVersion = registerOutput<String>('ipVersion');
isMirroringCollector = registerOutput<bool?>('isMirroringCollector');
labelFingerprint = registerOutput<String>('labelFingerprint');
labels = registerOutput<Map<String, String>?>('labels', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return (guardedValue as Map).cast<String, String>(); });
loadBalancingScheme = registerOutput<String?>('loadBalancingScheme');
this.name = registerOutput<String>('name');
network = registerOutput<String>('network');
networkTier = registerOutput<String>('networkTier');
noAutomateDnsZone = registerOutput<bool?>('noAutomateDnsZone');
portRange = registerOutput<String>('portRange');
ports = registerOutput<List<String>?>('ports', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return (guardedValue as List).cast<String>(); });
project = registerOutput<String>('project');
pscConnectionId = registerOutput<String>('pscConnectionId');
pscConnectionStatus = registerOutput<String>('pscConnectionStatus');
pulumiLabels = registerOutput<Map<String, String>>('pulumiLabels', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return (guardedValue as Map).cast<String, String>(); }, isSecret: true);
recreateClosedPsc = registerOutput<bool?>('recreateClosedPsc');
region = registerOutput<String>('region');
selfLink = registerOutput<String>('selfLink');
serviceDirectoryRegistrations = registerOutput<ForwardingRuleServiceDirectoryRegistrations>('serviceDirectoryRegistrations', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return ForwardingRuleServiceDirectoryRegistrations.fromMap((guardedValue as Map).cast<String, dynamic>()); });
serviceLabel = registerOutput<String?>('serviceLabel');
serviceName = registerOutput<String>('serviceName');
sourceIpRanges = registerOutput<List<String>?>('sourceIpRanges', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return (guardedValue as List).cast<String>(); });
subnetwork = registerOutput<String>('subnetwork');
target = registerOutput<String?>('target');
}