WorkforcePool constructor
WorkforcePool(
- String name, {
- WorkforcePoolArgs? args,
- CustomResourceOptions? options,
Creates a new WorkforcePool.
name The Pulumi resource name.
args Arguments used to configure this WorkforcePool. The set of arguments for WorkforcePool.
options Resource options controlling this resource's behavior.
Implementation
WorkforcePool(
String name, {
WorkforcePoolArgs? args,
pulumi.CustomResourceOptions? options,
}) : super(
'gcp:iam/workforcePool:WorkforcePool',
name,
pulumi.Input.mapToInputs(args?.toMap() ?? const {}),
pulumi.CustomResourceOptions(version: '9.36.1').merge(options),
) {
accessRestrictions = registerOutput<WorkforcePoolAccessRestrictions?>('accessRestrictions', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return WorkforcePoolAccessRestrictions.fromMap((guardedValue as Map).cast<String, dynamic>()); });
deletionPolicy = registerOutput<String>('deletionPolicy');
description = registerOutput<String?>('description');
disabled = registerOutput<bool?>('disabled');
displayName = registerOutput<String?>('displayName');
location = registerOutput<String>('location');
this.name = registerOutput<String>('name');
parent = registerOutput<String>('parent');
sessionDuration = registerOutput<String?>('sessionDuration');
state = registerOutput<String>('state');
workforcePoolId = registerOutput<String>('workforcePoolId');
}