GenericService.reference constructor

GenericService.reference(
  1. String urn
)

Creates a typed reference to an existing GenericService resource.

Implementation

GenericService.reference(String urn)
  : super(
      'gcp:monitoring/genericService:GenericService',
      pulumi.parseUrn(urn).urnName,
      const <String, pulumi.Input<dynamic>>{},
      pulumi.CustomResourceOptions(urn: pulumi.input(urn)),
      isResourceReference: true,
    ) {
  basicService = registerOutput<GenericServiceBasicService?>('basicService', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return GenericServiceBasicService.fromMap((guardedValue as Map).cast<String, dynamic>()); });
  deletionPolicy = registerOutput<String>('deletionPolicy');
  displayName = registerOutput<String?>('displayName');
  this.name = registerOutput<String>('name');
  project = registerOutput<String>('project');
  serviceId = registerOutput<String>('serviceId');
  telemetries = registerOutput<List<GenericServiceTelemetry>>('telemetries', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return pulumi.Input.decodeList<GenericServiceTelemetry>(guardedValue, (value) => GenericServiceTelemetry.fromMap((value as Map).cast<String, dynamic>())); });
  userLabels = registerOutput<Map<String, String>?>('userLabels', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return (guardedValue as Map).cast<String, String>(); });
}