NetworkAttachment constructor

NetworkAttachment(
  1. String name, {
  2. NetworkAttachmentArgs? args,
  3. CustomResourceOptions? options,
})

Creates a new NetworkAttachment. name The Pulumi resource name. args Arguments used to configure this NetworkAttachment. The set of arguments for NetworkAttachment. options Resource options controlling this resource's behavior.

Implementation

NetworkAttachment(
  String name, {
  NetworkAttachmentArgs? args,
  pulumi.CustomResourceOptions? options,
}) : super(
        'gcp:compute/networkAttachment:NetworkAttachment',
        name,
        pulumi.Input.mapToInputs(args?.toMap() ?? const {}),
        pulumi.CustomResourceOptions(version: '9.36.1').merge(options),
      ) {
  connectionEndpoints = registerOutput<List<NetworkAttachmentConnectionEndpoint>>('connectionEndpoints', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return pulumi.Input.decodeList<NetworkAttachmentConnectionEndpoint>(guardedValue, (value) => NetworkAttachmentConnectionEndpoint.fromMap((value as Map).cast<String, dynamic>())); });
  connectionPreference = registerOutput<String>('connectionPreference');
  creationTimestamp = registerOutput<String>('creationTimestamp');
  deletionPolicy = registerOutput<String>('deletionPolicy');
  description = registerOutput<String?>('description');
  fingerprint = registerOutput<String>('fingerprint');
  kind = registerOutput<String>('kind');
  this.name = registerOutput<String>('name');
  network = registerOutput<String>('network');
  producerAcceptLists = registerOutput<List<String>?>('producerAcceptLists', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return (guardedValue as List).cast<String>(); });
  producerRejectLists = registerOutput<List<String>?>('producerRejectLists', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return (guardedValue as List).cast<String>(); });
  project = registerOutput<String>('project');
  region = registerOutput<String>('region');
  selfLink = registerOutput<String>('selfLink');
  selfLinkWithId = registerOutput<String>('selfLinkWithId');
  subnetworks = registerOutput<List<String>>('subnetworks', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return (guardedValue as List).cast<String>(); });
}