WorkforcePool.reference constructor
WorkforcePool.reference(
- String urn
Creates a typed reference to an existing WorkforcePool resource.
Implementation
WorkforcePool.reference(String urn)
: super(
'gcp:iam/workforcePool:WorkforcePool',
pulumi.parseUrn(urn).urnName,
const <String, pulumi.Input<dynamic>>{},
pulumi.CustomResourceOptions(urn: pulumi.input(urn)),
isResourceReference: true,
) {
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');
}