DevicePool constructor
DevicePool(
- String name, {
- DevicePoolArgs? args,
- CustomResourceOptions? options,
Creates a new DevicePool.
name The Pulumi resource name.
args Arguments used to configure this DevicePool. The set of arguments for DevicePool.
options Resource options controlling this resource's behavior.
Implementation
DevicePool(
String name, {
DevicePoolArgs? args,
pulumi.CustomResourceOptions? options,
}) : super(
'aws:devicefarm/devicePool:DevicePool',
name,
pulumi.Input.mapToInputs(args?.toMap() ?? const {}),
pulumi.CustomResourceOptions(version: '7.44.0').merge(options),
) {
arn = registerOutput<String>('arn');
description = registerOutput<String?>('description');
maxDevices = registerOutput<int?>('maxDevices');
this.name = registerOutput<String>('name');
projectArn = registerOutput<String>('projectArn');
region = registerOutput<String>('region');
rules = registerOutput<List<DevicePoolRule>>('rules', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return pulumi.Input.decodeList<DevicePoolRule>(guardedValue, (value) => DevicePoolRule.fromMap((value as Map).cast<String, dynamic>())); });
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');
}