userAgent function
Formats a User-Agent product for use with the userAgent argument in the provider block.
> Functions cannot be used in the terraform block, meaning this utility cannot be used with the providerMeta userAgent argument.
Signature
user_agent(product_name string, product_version string, comment string) string
args Arguments passed to this invoke. Arguments for userAgent.
productName Value for the productName invoke input.
productVersion Value for the productVersion invoke input.
comment Value for the comment invoke input.
options Invoke options controlling this call.
Implementation
Future<String> userAgent(
pulumi.Input<String> productName,
pulumi.Input<String> productVersion,
pulumi.Input<String> comment,
{
pulumi.InvokeOptions? options,
}) async {
final deployment = pulumi.Deployment.instance;
final value = await deployment.invokeSingle<dynamic>(
'aws:index/userAgent:userAgent',
UserAgentArgs(productName: productName, productVersion: productVersion, comment: comment, ).toMap(),
options: pulumi.toDeploymentInvokeOptions(options),
);
return value as String;
}