Device constructor

Device(
  1. String name, {
  2. DeviceArgs? args,
  3. CustomResourceOptions? options,
})

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

Implementation

Device(
  String name, {
  DeviceArgs? args,
  pulumi.CustomResourceOptions? options,
}) : super(
        'aws:networkmanager/device:Device',
        name,
        pulumi.Input.mapToInputs(args?.toMap() ?? const {}),
        pulumi.CustomResourceOptions(version: '7.44.0').merge(options),
      ) {
  arn = registerOutput<String>('arn');
  awsLocation = registerOutput<DeviceAwsLocation?>('awsLocation', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return DeviceAwsLocation.fromMap((guardedValue as Map).cast<String, dynamic>()); });
  description = registerOutput<String?>('description');
  globalNetworkId = registerOutput<String>('globalNetworkId');
  location = registerOutput<DeviceLocation?>('location', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return DeviceLocation.fromMap((guardedValue as Map).cast<String, dynamic>()); });
  model = registerOutput<String?>('model');
  serialNumber = registerOutput<String?>('serialNumber');
  siteId = registerOutput<String?>('siteId');
  tags = registerOutput<Map<String, String>?>('tags', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return (guardedValue as Map).cast<String, String>(); });
  tagsAll = registerOutput<Map<String, String>>('tagsAll', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return (guardedValue as Map).cast<String, String>(); });
  type = registerOutput<String?>('type');
  vendor = registerOutput<String?>('vendor');
}