ConnectivityTest constructor

ConnectivityTest(
  1. String name, {
  2. ConnectivityTestArgs? args,
  3. CustomResourceOptions? options,
})

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

Implementation

ConnectivityTest(
  String name, {
  ConnectivityTestArgs? args,
  pulumi.CustomResourceOptions? options,
}) : super(
        'gcp:networkmanagement/connectivityTest:ConnectivityTest',
        name,
        pulumi.Input.mapToInputs(args?.toMap() ?? const {}),
        pulumi.CustomResourceOptions(version: '9.36.1').merge(options),
        additionalSecretOutputs: const ['effectiveLabels', 'pulumiLabels'],
      ) {
  bypassFirewallChecks = registerOutput<bool?>('bypassFirewallChecks');
  deletionPolicy = registerOutput<String>('deletionPolicy');
  description = registerOutput<String?>('description');
  destination = registerOutput<ConnectivityTestDestination>('destination', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return ConnectivityTestDestination.fromMap((guardedValue as Map).cast<String, dynamic>()); });
  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);
  labels = registerOutput<Map<String, String>?>('labels', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return (guardedValue as Map).cast<String, String>(); });
  this.name = registerOutput<String>('name');
  project = registerOutput<String>('project');
  protocol = registerOutput<String?>('protocol');
  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);
  relatedProjects = registerOutput<List<String>?>('relatedProjects', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return (guardedValue as List).cast<String>(); });
  roundTrip = registerOutput<bool?>('roundTrip');
  source = registerOutput<ConnectivityTestSource>('source', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return ConnectivityTestSource.fromMap((guardedValue as Map).cast<String, dynamic>()); });
}