CustomService constructor

CustomService(
  1. String name, {
  2. CustomServiceArgs? args,
  3. CustomResourceOptions? options,
})

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

Implementation

CustomService(
  String name, {
  CustomServiceArgs? args,
  pulumi.CustomResourceOptions? options,
}) : super(
        'gcp:monitoring/customService:CustomService',
        name,
        pulumi.Input.mapToInputs(args?.toMap() ?? const {}),
        pulumi.CustomResourceOptions(version: '9.36.1').merge(options),
      ) {
  deletionPolicy = registerOutput<String>('deletionPolicy');
  displayName = registerOutput<String?>('displayName');
  this.name = registerOutput<String>('name');
  project = registerOutput<String>('project');
  serviceId = registerOutput<String>('serviceId');
  telemetry = registerOutput<CustomServiceTelemetry?>('telemetry', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return CustomServiceTelemetry.fromMap((guardedValue 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>(); });
}