prehistoric-sandwich-7272
02/21/2023, 5:44 PM// GcpPermissionsArgs The set of arguments for creating a GcpPermissions component resource.
type GcpPermissionsArgs struct {
Project string `pulumi:"project"`
GcpServiceAccountName string `pulumi:"gcpServiceAccountName"`
GcpPermissions []string `pulumi:"gcpPermissions"`
}
GcpPermissions
is an array of strings ([]string).
The packages is generating the Typescript code, making the args as follows:
/**
* The set of arguments for constructing a GcpPermissions resource.
*/
export interface GcpPermissionsArgs {
/**
* Array of GCP permissions.
*/
gcpPermissions: pulumi.Input<pulumi.Input<{
[key: string]: pulumi.Input<string>;
}>[]>;
/**
* Wanted name for the new service account.
*/
gcpServiceAccountName: pulumi.Input<string>;
/**
* Pulumi project's name.
*/
project: pulumi.Input<string>;
}
Making the gcpPermissions
argument be an array of key value variables.
Actual result should have been something like:
gcpPermissions: pulumi.Input<string>[];
What am I doing wrong? how can I solve this?billowy-army-68599
02/21/2023, 6:01 PMpulumi.StringArrayInput
prehistoric-sandwich-7272
02/22/2023, 8:25 AM