ServiceConfig constructor

ServiceConfig(
  1. String name, {
  2. ServiceConfigArgs? args,
  3. CustomResourceOptions? options,
})

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

Implementation

ServiceConfig(
  String name, {
  ServiceConfigArgs? args,
  pulumi.CustomResourceOptions? options,
}) : super(
        'docker:index/serviceConfig:ServiceConfig',
        name,
        pulumi.Input.mapToInputs(args?.toMap() ?? const {}),
        pulumi.CustomResourceOptions(version: '5.2.0').merge(options),
      ) {
  data = registerOutput<String?>('data');
  dataRaw = registerOutput<String?>('dataRaw');
  labels = registerOutput<List<ServiceConfigLabel>?>('labels', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return pulumi.Input.decodeList<ServiceConfigLabel>(guardedValue, (value) => ServiceConfigLabel.fromMap((value as Map).cast<String, dynamic>())); });
  this.name = registerOutput<String>('name');
}