projectFromId function
Returns the project 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
project_from_id(id string) string
args Arguments passed to this invoke. Arguments for projectFromId.
id Value for the id invoke input.
options Invoke options controlling this call.
Implementation
Future<String> projectFromId(
pulumi.Input<String> id,
{
pulumi.InvokeOptions? options,
}) async {
final deployment = pulumi.Deployment.instance;
final value = await deployment.invokeSingle<dynamic>(
'gcp:index/projectFromId:projectFromId',
ProjectFromIdArgs(id: id, ).toMap(),
options: pulumi.toDeploymentInvokeOptions(options),
);
return value as String;
}