zoneFromId function
Returns the zone within a provided resource's id, resource URI, self link, or full resource name.
For more information about using provider-defined functions with Terraform see the official documentation.
Example Usage
Signature
zone_from_id(id string) string
args Arguments passed to this invoke. Arguments for zoneFromId.
id Value for the id invoke input.
options Invoke options controlling this call.
Implementation
Future<String> zoneFromId(
pulumi.Input<String> id,
{
pulumi.InvokeOptions? options,
}) async {
final deployment = pulumi.Deployment.instance;
final value = await deployment.invokeSingle<dynamic>(
'gcp:index/zoneFromId:zoneFromId',
ZoneFromIdArgs(id: id, ).toMap(),
options: pulumi.toDeploymentInvokeOptions(options),
);
return value as String;
}