ServiceAttachment constructor
ServiceAttachment(
- String name, {
- ServiceAttachmentArgs? args,
- CustomResourceOptions? options,
Creates a new ServiceAttachment.
name The Pulumi resource name.
args Arguments used to configure this ServiceAttachment. The set of arguments for ServiceAttachment.
options Resource options controlling this resource's behavior.
Implementation
ServiceAttachment(
String name, {
ServiceAttachmentArgs? args,
pulumi.CustomResourceOptions? options,
}) : super(
'gcp:compute/serviceAttachment:ServiceAttachment',
name,
pulumi.Input.mapToInputs(args?.toMap() ?? const {}),
pulumi.CustomResourceOptions(version: '9.36.1').merge(options),
) {
connectedEndpoints = registerOutput<List<ServiceAttachmentConnectedEndpoint>>('connectedEndpoints', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return pulumi.Input.decodeList<ServiceAttachmentConnectedEndpoint>(guardedValue, (value) => ServiceAttachmentConnectedEndpoint.fromMap((value as Map).cast<String, dynamic>())); });
connectionPreference = registerOutput<String>('connectionPreference');
consumerAcceptLists = registerOutput<List<ServiceAttachmentConsumerAcceptList>?>('consumerAcceptLists', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return pulumi.Input.decodeList<ServiceAttachmentConsumerAcceptList>(guardedValue, (value) => ServiceAttachmentConsumerAcceptList.fromMap((value as Map).cast<String, dynamic>())); });
consumerRejectLists = registerOutput<List<String>?>('consumerRejectLists', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return (guardedValue as List).cast<String>(); });
deletionPolicy = registerOutput<String>('deletionPolicy');
description = registerOutput<String?>('description');
domainNames = registerOutput<List<String>?>('domainNames', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return (guardedValue as List).cast<String>(); });
enableProxyProtocol = registerOutput<bool>('enableProxyProtocol');
fingerprint = registerOutput<String>('fingerprint');
this.name = registerOutput<String>('name');
natSubnets = registerOutput<List<String>>('natSubnets', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return (guardedValue as List).cast<String>(); });
project = registerOutput<String>('project');
propagatedConnectionLimit = registerOutput<int>('propagatedConnectionLimit');
pscServiceAttachmentIds = registerOutput<List<ServiceAttachmentPscServiceAttachmentId>>('pscServiceAttachmentIds', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return pulumi.Input.decodeList<ServiceAttachmentPscServiceAttachmentId>(guardedValue, (value) => ServiceAttachmentPscServiceAttachmentId.fromMap((value as Map).cast<String, dynamic>())); });
reconcileConnections = registerOutput<bool>('reconcileConnections');
region = registerOutput<String>('region');
selfLink = registerOutput<String>('selfLink');
sendPropagatedConnectionLimitIfZero = registerOutput<bool?>('sendPropagatedConnectionLimitIfZero');
showNatIps = registerOutput<bool?>('showNatIps');
targetService = registerOutput<String>('targetService');
tunnelingConfig = registerOutput<ServiceAttachmentTunnelingConfig?>('tunnelingConfig', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return ServiceAttachmentTunnelingConfig.fromMap((guardedValue as Map).cast<String, dynamic>()); });
}