Documentation ¶
Index ¶
- type Function
- type FunctionArgs
- type FunctionArray
- type FunctionArrayInput
- type FunctionArrayOutput
- type FunctionEventTrigger
- type FunctionEventTriggerArgs
- func (FunctionEventTriggerArgs) ElementType() reflect.Type
- func (i FunctionEventTriggerArgs) ToFunctionEventTriggerOutput() FunctionEventTriggerOutput
- func (i FunctionEventTriggerArgs) ToFunctionEventTriggerOutputWithContext(ctx context.Context) FunctionEventTriggerOutput
- func (i FunctionEventTriggerArgs) ToFunctionEventTriggerPtrOutput() FunctionEventTriggerPtrOutput
- func (i FunctionEventTriggerArgs) ToFunctionEventTriggerPtrOutputWithContext(ctx context.Context) FunctionEventTriggerPtrOutput
- type FunctionEventTriggerFailurePolicy
- type FunctionEventTriggerFailurePolicyArgs
- func (FunctionEventTriggerFailurePolicyArgs) ElementType() reflect.Type
- func (i FunctionEventTriggerFailurePolicyArgs) ToFunctionEventTriggerFailurePolicyOutput() FunctionEventTriggerFailurePolicyOutput
- func (i FunctionEventTriggerFailurePolicyArgs) ToFunctionEventTriggerFailurePolicyOutputWithContext(ctx context.Context) FunctionEventTriggerFailurePolicyOutput
- func (i FunctionEventTriggerFailurePolicyArgs) ToFunctionEventTriggerFailurePolicyPtrOutput() FunctionEventTriggerFailurePolicyPtrOutput
- func (i FunctionEventTriggerFailurePolicyArgs) ToFunctionEventTriggerFailurePolicyPtrOutputWithContext(ctx context.Context) FunctionEventTriggerFailurePolicyPtrOutput
- type FunctionEventTriggerFailurePolicyInput
- type FunctionEventTriggerFailurePolicyOutput
- func (FunctionEventTriggerFailurePolicyOutput) ElementType() reflect.Type
- func (o FunctionEventTriggerFailurePolicyOutput) Retry() pulumi.BoolOutput
- func (o FunctionEventTriggerFailurePolicyOutput) ToFunctionEventTriggerFailurePolicyOutput() FunctionEventTriggerFailurePolicyOutput
- func (o FunctionEventTriggerFailurePolicyOutput) ToFunctionEventTriggerFailurePolicyOutputWithContext(ctx context.Context) FunctionEventTriggerFailurePolicyOutput
- func (o FunctionEventTriggerFailurePolicyOutput) ToFunctionEventTriggerFailurePolicyPtrOutput() FunctionEventTriggerFailurePolicyPtrOutput
- func (o FunctionEventTriggerFailurePolicyOutput) ToFunctionEventTriggerFailurePolicyPtrOutputWithContext(ctx context.Context) FunctionEventTriggerFailurePolicyPtrOutput
- type FunctionEventTriggerFailurePolicyPtrInput
- type FunctionEventTriggerFailurePolicyPtrOutput
- func (o FunctionEventTriggerFailurePolicyPtrOutput) Elem() FunctionEventTriggerFailurePolicyOutput
- func (FunctionEventTriggerFailurePolicyPtrOutput) ElementType() reflect.Type
- func (o FunctionEventTriggerFailurePolicyPtrOutput) Retry() pulumi.BoolPtrOutput
- func (o FunctionEventTriggerFailurePolicyPtrOutput) ToFunctionEventTriggerFailurePolicyPtrOutput() FunctionEventTriggerFailurePolicyPtrOutput
- func (o FunctionEventTriggerFailurePolicyPtrOutput) ToFunctionEventTriggerFailurePolicyPtrOutputWithContext(ctx context.Context) FunctionEventTriggerFailurePolicyPtrOutput
- type FunctionEventTriggerInput
- type FunctionEventTriggerOutput
- func (FunctionEventTriggerOutput) ElementType() reflect.Type
- func (o FunctionEventTriggerOutput) EventType() pulumi.StringOutput
- func (o FunctionEventTriggerOutput) FailurePolicy() FunctionEventTriggerFailurePolicyPtrOutput
- func (o FunctionEventTriggerOutput) Resource() pulumi.StringOutput
- func (o FunctionEventTriggerOutput) ToFunctionEventTriggerOutput() FunctionEventTriggerOutput
- func (o FunctionEventTriggerOutput) ToFunctionEventTriggerOutputWithContext(ctx context.Context) FunctionEventTriggerOutput
- func (o FunctionEventTriggerOutput) ToFunctionEventTriggerPtrOutput() FunctionEventTriggerPtrOutput
- func (o FunctionEventTriggerOutput) ToFunctionEventTriggerPtrOutputWithContext(ctx context.Context) FunctionEventTriggerPtrOutput
- type FunctionEventTriggerPtrInput
- type FunctionEventTriggerPtrOutput
- func (o FunctionEventTriggerPtrOutput) Elem() FunctionEventTriggerOutput
- func (FunctionEventTriggerPtrOutput) ElementType() reflect.Type
- func (o FunctionEventTriggerPtrOutput) EventType() pulumi.StringPtrOutput
- func (o FunctionEventTriggerPtrOutput) FailurePolicy() FunctionEventTriggerFailurePolicyPtrOutput
- func (o FunctionEventTriggerPtrOutput) Resource() pulumi.StringPtrOutput
- func (o FunctionEventTriggerPtrOutput) ToFunctionEventTriggerPtrOutput() FunctionEventTriggerPtrOutput
- func (o FunctionEventTriggerPtrOutput) ToFunctionEventTriggerPtrOutputWithContext(ctx context.Context) FunctionEventTriggerPtrOutput
- type FunctionIamBinding
- type FunctionIamBindingArgs
- type FunctionIamBindingArray
- type FunctionIamBindingArrayInput
- type FunctionIamBindingArrayOutput
- func (FunctionIamBindingArrayOutput) ElementType() reflect.Type
- func (o FunctionIamBindingArrayOutput) Index(i pulumi.IntInput) FunctionIamBindingOutput
- func (o FunctionIamBindingArrayOutput) ToFunctionIamBindingArrayOutput() FunctionIamBindingArrayOutput
- func (o FunctionIamBindingArrayOutput) ToFunctionIamBindingArrayOutputWithContext(ctx context.Context) FunctionIamBindingArrayOutput
- type FunctionIamBindingCondition
- type FunctionIamBindingConditionArgs
- func (FunctionIamBindingConditionArgs) ElementType() reflect.Type
- func (i FunctionIamBindingConditionArgs) ToFunctionIamBindingConditionOutput() FunctionIamBindingConditionOutput
- func (i FunctionIamBindingConditionArgs) ToFunctionIamBindingConditionOutputWithContext(ctx context.Context) FunctionIamBindingConditionOutput
- func (i FunctionIamBindingConditionArgs) ToFunctionIamBindingConditionPtrOutput() FunctionIamBindingConditionPtrOutput
- func (i FunctionIamBindingConditionArgs) ToFunctionIamBindingConditionPtrOutputWithContext(ctx context.Context) FunctionIamBindingConditionPtrOutput
- type FunctionIamBindingConditionInput
- type FunctionIamBindingConditionOutput
- func (o FunctionIamBindingConditionOutput) Description() pulumi.StringPtrOutput
- func (FunctionIamBindingConditionOutput) ElementType() reflect.Type
- func (o FunctionIamBindingConditionOutput) Expression() pulumi.StringOutput
- func (o FunctionIamBindingConditionOutput) Title() pulumi.StringOutput
- func (o FunctionIamBindingConditionOutput) ToFunctionIamBindingConditionOutput() FunctionIamBindingConditionOutput
- func (o FunctionIamBindingConditionOutput) ToFunctionIamBindingConditionOutputWithContext(ctx context.Context) FunctionIamBindingConditionOutput
- func (o FunctionIamBindingConditionOutput) ToFunctionIamBindingConditionPtrOutput() FunctionIamBindingConditionPtrOutput
- func (o FunctionIamBindingConditionOutput) ToFunctionIamBindingConditionPtrOutputWithContext(ctx context.Context) FunctionIamBindingConditionPtrOutput
- type FunctionIamBindingConditionPtrInput
- type FunctionIamBindingConditionPtrOutput
- func (o FunctionIamBindingConditionPtrOutput) Description() pulumi.StringPtrOutput
- func (o FunctionIamBindingConditionPtrOutput) Elem() FunctionIamBindingConditionOutput
- func (FunctionIamBindingConditionPtrOutput) ElementType() reflect.Type
- func (o FunctionIamBindingConditionPtrOutput) Expression() pulumi.StringPtrOutput
- func (o FunctionIamBindingConditionPtrOutput) Title() pulumi.StringPtrOutput
- func (o FunctionIamBindingConditionPtrOutput) ToFunctionIamBindingConditionPtrOutput() FunctionIamBindingConditionPtrOutput
- func (o FunctionIamBindingConditionPtrOutput) ToFunctionIamBindingConditionPtrOutputWithContext(ctx context.Context) FunctionIamBindingConditionPtrOutput
- type FunctionIamBindingInput
- type FunctionIamBindingMap
- type FunctionIamBindingMapInput
- type FunctionIamBindingMapOutput
- func (FunctionIamBindingMapOutput) ElementType() reflect.Type
- func (o FunctionIamBindingMapOutput) MapIndex(k pulumi.StringInput) FunctionIamBindingOutput
- func (o FunctionIamBindingMapOutput) ToFunctionIamBindingMapOutput() FunctionIamBindingMapOutput
- func (o FunctionIamBindingMapOutput) ToFunctionIamBindingMapOutputWithContext(ctx context.Context) FunctionIamBindingMapOutput
- type FunctionIamBindingOutput
- type FunctionIamBindingState
- type FunctionIamMember
- type FunctionIamMemberArgs
- type FunctionIamMemberArray
- type FunctionIamMemberArrayInput
- type FunctionIamMemberArrayOutput
- func (FunctionIamMemberArrayOutput) ElementType() reflect.Type
- func (o FunctionIamMemberArrayOutput) Index(i pulumi.IntInput) FunctionIamMemberOutput
- func (o FunctionIamMemberArrayOutput) ToFunctionIamMemberArrayOutput() FunctionIamMemberArrayOutput
- func (o FunctionIamMemberArrayOutput) ToFunctionIamMemberArrayOutputWithContext(ctx context.Context) FunctionIamMemberArrayOutput
- type FunctionIamMemberCondition
- type FunctionIamMemberConditionArgs
- func (FunctionIamMemberConditionArgs) ElementType() reflect.Type
- func (i FunctionIamMemberConditionArgs) ToFunctionIamMemberConditionOutput() FunctionIamMemberConditionOutput
- func (i FunctionIamMemberConditionArgs) ToFunctionIamMemberConditionOutputWithContext(ctx context.Context) FunctionIamMemberConditionOutput
- func (i FunctionIamMemberConditionArgs) ToFunctionIamMemberConditionPtrOutput() FunctionIamMemberConditionPtrOutput
- func (i FunctionIamMemberConditionArgs) ToFunctionIamMemberConditionPtrOutputWithContext(ctx context.Context) FunctionIamMemberConditionPtrOutput
- type FunctionIamMemberConditionInput
- type FunctionIamMemberConditionOutput
- func (o FunctionIamMemberConditionOutput) Description() pulumi.StringPtrOutput
- func (FunctionIamMemberConditionOutput) ElementType() reflect.Type
- func (o FunctionIamMemberConditionOutput) Expression() pulumi.StringOutput
- func (o FunctionIamMemberConditionOutput) Title() pulumi.StringOutput
- func (o FunctionIamMemberConditionOutput) ToFunctionIamMemberConditionOutput() FunctionIamMemberConditionOutput
- func (o FunctionIamMemberConditionOutput) ToFunctionIamMemberConditionOutputWithContext(ctx context.Context) FunctionIamMemberConditionOutput
- func (o FunctionIamMemberConditionOutput) ToFunctionIamMemberConditionPtrOutput() FunctionIamMemberConditionPtrOutput
- func (o FunctionIamMemberConditionOutput) ToFunctionIamMemberConditionPtrOutputWithContext(ctx context.Context) FunctionIamMemberConditionPtrOutput
- type FunctionIamMemberConditionPtrInput
- type FunctionIamMemberConditionPtrOutput
- func (o FunctionIamMemberConditionPtrOutput) Description() pulumi.StringPtrOutput
- func (o FunctionIamMemberConditionPtrOutput) Elem() FunctionIamMemberConditionOutput
- func (FunctionIamMemberConditionPtrOutput) ElementType() reflect.Type
- func (o FunctionIamMemberConditionPtrOutput) Expression() pulumi.StringPtrOutput
- func (o FunctionIamMemberConditionPtrOutput) Title() pulumi.StringPtrOutput
- func (o FunctionIamMemberConditionPtrOutput) ToFunctionIamMemberConditionPtrOutput() FunctionIamMemberConditionPtrOutput
- func (o FunctionIamMemberConditionPtrOutput) ToFunctionIamMemberConditionPtrOutputWithContext(ctx context.Context) FunctionIamMemberConditionPtrOutput
- type FunctionIamMemberInput
- type FunctionIamMemberMap
- type FunctionIamMemberMapInput
- type FunctionIamMemberMapOutput
- func (FunctionIamMemberMapOutput) ElementType() reflect.Type
- func (o FunctionIamMemberMapOutput) MapIndex(k pulumi.StringInput) FunctionIamMemberOutput
- func (o FunctionIamMemberMapOutput) ToFunctionIamMemberMapOutput() FunctionIamMemberMapOutput
- func (o FunctionIamMemberMapOutput) ToFunctionIamMemberMapOutputWithContext(ctx context.Context) FunctionIamMemberMapOutput
- type FunctionIamMemberOutput
- type FunctionIamMemberState
- type FunctionIamPolicy
- type FunctionIamPolicyArgs
- type FunctionIamPolicyArray
- type FunctionIamPolicyArrayInput
- type FunctionIamPolicyArrayOutput
- func (FunctionIamPolicyArrayOutput) ElementType() reflect.Type
- func (o FunctionIamPolicyArrayOutput) Index(i pulumi.IntInput) FunctionIamPolicyOutput
- func (o FunctionIamPolicyArrayOutput) ToFunctionIamPolicyArrayOutput() FunctionIamPolicyArrayOutput
- func (o FunctionIamPolicyArrayOutput) ToFunctionIamPolicyArrayOutputWithContext(ctx context.Context) FunctionIamPolicyArrayOutput
- type FunctionIamPolicyInput
- type FunctionIamPolicyMap
- type FunctionIamPolicyMapInput
- type FunctionIamPolicyMapOutput
- func (FunctionIamPolicyMapOutput) ElementType() reflect.Type
- func (o FunctionIamPolicyMapOutput) MapIndex(k pulumi.StringInput) FunctionIamPolicyOutput
- func (o FunctionIamPolicyMapOutput) ToFunctionIamPolicyMapOutput() FunctionIamPolicyMapOutput
- func (o FunctionIamPolicyMapOutput) ToFunctionIamPolicyMapOutputWithContext(ctx context.Context) FunctionIamPolicyMapOutput
- type FunctionIamPolicyOutput
- type FunctionIamPolicyState
- type FunctionInput
- type FunctionMap
- type FunctionMapInput
- type FunctionMapOutput
- type FunctionOutput
- type FunctionSecretEnvironmentVariable
- type FunctionSecretEnvironmentVariableArgs
- func (FunctionSecretEnvironmentVariableArgs) ElementType() reflect.Type
- func (i FunctionSecretEnvironmentVariableArgs) ToFunctionSecretEnvironmentVariableOutput() FunctionSecretEnvironmentVariableOutput
- func (i FunctionSecretEnvironmentVariableArgs) ToFunctionSecretEnvironmentVariableOutputWithContext(ctx context.Context) FunctionSecretEnvironmentVariableOutput
- type FunctionSecretEnvironmentVariableArray
- func (FunctionSecretEnvironmentVariableArray) ElementType() reflect.Type
- func (i FunctionSecretEnvironmentVariableArray) ToFunctionSecretEnvironmentVariableArrayOutput() FunctionSecretEnvironmentVariableArrayOutput
- func (i FunctionSecretEnvironmentVariableArray) ToFunctionSecretEnvironmentVariableArrayOutputWithContext(ctx context.Context) FunctionSecretEnvironmentVariableArrayOutput
- type FunctionSecretEnvironmentVariableArrayInput
- type FunctionSecretEnvironmentVariableArrayOutput
- func (FunctionSecretEnvironmentVariableArrayOutput) ElementType() reflect.Type
- func (o FunctionSecretEnvironmentVariableArrayOutput) Index(i pulumi.IntInput) FunctionSecretEnvironmentVariableOutput
- func (o FunctionSecretEnvironmentVariableArrayOutput) ToFunctionSecretEnvironmentVariableArrayOutput() FunctionSecretEnvironmentVariableArrayOutput
- func (o FunctionSecretEnvironmentVariableArrayOutput) ToFunctionSecretEnvironmentVariableArrayOutputWithContext(ctx context.Context) FunctionSecretEnvironmentVariableArrayOutput
- type FunctionSecretEnvironmentVariableInput
- type FunctionSecretEnvironmentVariableOutput
- func (FunctionSecretEnvironmentVariableOutput) ElementType() reflect.Type
- func (o FunctionSecretEnvironmentVariableOutput) Key() pulumi.StringOutput
- func (o FunctionSecretEnvironmentVariableOutput) ProjectId() pulumi.StringPtrOutput
- func (o FunctionSecretEnvironmentVariableOutput) Secret() pulumi.StringOutput
- func (o FunctionSecretEnvironmentVariableOutput) ToFunctionSecretEnvironmentVariableOutput() FunctionSecretEnvironmentVariableOutput
- func (o FunctionSecretEnvironmentVariableOutput) ToFunctionSecretEnvironmentVariableOutputWithContext(ctx context.Context) FunctionSecretEnvironmentVariableOutput
- func (o FunctionSecretEnvironmentVariableOutput) Version() pulumi.StringOutput
- type FunctionSecretVolume
- type FunctionSecretVolumeArgs
- type FunctionSecretVolumeArray
- type FunctionSecretVolumeArrayInput
- type FunctionSecretVolumeArrayOutput
- func (FunctionSecretVolumeArrayOutput) ElementType() reflect.Type
- func (o FunctionSecretVolumeArrayOutput) Index(i pulumi.IntInput) FunctionSecretVolumeOutput
- func (o FunctionSecretVolumeArrayOutput) ToFunctionSecretVolumeArrayOutput() FunctionSecretVolumeArrayOutput
- func (o FunctionSecretVolumeArrayOutput) ToFunctionSecretVolumeArrayOutputWithContext(ctx context.Context) FunctionSecretVolumeArrayOutput
- type FunctionSecretVolumeInput
- type FunctionSecretVolumeOutput
- func (FunctionSecretVolumeOutput) ElementType() reflect.Type
- func (o FunctionSecretVolumeOutput) MountPath() pulumi.StringOutput
- func (o FunctionSecretVolumeOutput) ProjectId() pulumi.StringPtrOutput
- func (o FunctionSecretVolumeOutput) Secret() pulumi.StringOutput
- func (o FunctionSecretVolumeOutput) ToFunctionSecretVolumeOutput() FunctionSecretVolumeOutput
- func (o FunctionSecretVolumeOutput) ToFunctionSecretVolumeOutputWithContext(ctx context.Context) FunctionSecretVolumeOutput
- func (o FunctionSecretVolumeOutput) Versions() FunctionSecretVolumeVersionArrayOutput
- type FunctionSecretVolumeVersion
- type FunctionSecretVolumeVersionArgs
- func (FunctionSecretVolumeVersionArgs) ElementType() reflect.Type
- func (i FunctionSecretVolumeVersionArgs) ToFunctionSecretVolumeVersionOutput() FunctionSecretVolumeVersionOutput
- func (i FunctionSecretVolumeVersionArgs) ToFunctionSecretVolumeVersionOutputWithContext(ctx context.Context) FunctionSecretVolumeVersionOutput
- type FunctionSecretVolumeVersionArray
- func (FunctionSecretVolumeVersionArray) ElementType() reflect.Type
- func (i FunctionSecretVolumeVersionArray) ToFunctionSecretVolumeVersionArrayOutput() FunctionSecretVolumeVersionArrayOutput
- func (i FunctionSecretVolumeVersionArray) ToFunctionSecretVolumeVersionArrayOutputWithContext(ctx context.Context) FunctionSecretVolumeVersionArrayOutput
- type FunctionSecretVolumeVersionArrayInput
- type FunctionSecretVolumeVersionArrayOutput
- func (FunctionSecretVolumeVersionArrayOutput) ElementType() reflect.Type
- func (o FunctionSecretVolumeVersionArrayOutput) Index(i pulumi.IntInput) FunctionSecretVolumeVersionOutput
- func (o FunctionSecretVolumeVersionArrayOutput) ToFunctionSecretVolumeVersionArrayOutput() FunctionSecretVolumeVersionArrayOutput
- func (o FunctionSecretVolumeVersionArrayOutput) ToFunctionSecretVolumeVersionArrayOutputWithContext(ctx context.Context) FunctionSecretVolumeVersionArrayOutput
- type FunctionSecretVolumeVersionInput
- type FunctionSecretVolumeVersionOutput
- func (FunctionSecretVolumeVersionOutput) ElementType() reflect.Type
- func (o FunctionSecretVolumeVersionOutput) Path() pulumi.StringOutput
- func (o FunctionSecretVolumeVersionOutput) ToFunctionSecretVolumeVersionOutput() FunctionSecretVolumeVersionOutput
- func (o FunctionSecretVolumeVersionOutput) ToFunctionSecretVolumeVersionOutputWithContext(ctx context.Context) FunctionSecretVolumeVersionOutput
- func (o FunctionSecretVolumeVersionOutput) Version() pulumi.StringOutput
- type FunctionSourceRepository
- type FunctionSourceRepositoryArgs
- func (FunctionSourceRepositoryArgs) ElementType() reflect.Type
- func (i FunctionSourceRepositoryArgs) ToFunctionSourceRepositoryOutput() FunctionSourceRepositoryOutput
- func (i FunctionSourceRepositoryArgs) ToFunctionSourceRepositoryOutputWithContext(ctx context.Context) FunctionSourceRepositoryOutput
- func (i FunctionSourceRepositoryArgs) ToFunctionSourceRepositoryPtrOutput() FunctionSourceRepositoryPtrOutput
- func (i FunctionSourceRepositoryArgs) ToFunctionSourceRepositoryPtrOutputWithContext(ctx context.Context) FunctionSourceRepositoryPtrOutput
- type FunctionSourceRepositoryInput
- type FunctionSourceRepositoryOutput
- func (o FunctionSourceRepositoryOutput) DeployedUrl() pulumi.StringPtrOutput
- func (FunctionSourceRepositoryOutput) ElementType() reflect.Type
- func (o FunctionSourceRepositoryOutput) ToFunctionSourceRepositoryOutput() FunctionSourceRepositoryOutput
- func (o FunctionSourceRepositoryOutput) ToFunctionSourceRepositoryOutputWithContext(ctx context.Context) FunctionSourceRepositoryOutput
- func (o FunctionSourceRepositoryOutput) ToFunctionSourceRepositoryPtrOutput() FunctionSourceRepositoryPtrOutput
- func (o FunctionSourceRepositoryOutput) ToFunctionSourceRepositoryPtrOutputWithContext(ctx context.Context) FunctionSourceRepositoryPtrOutput
- func (o FunctionSourceRepositoryOutput) Url() pulumi.StringOutput
- type FunctionSourceRepositoryPtrInput
- type FunctionSourceRepositoryPtrOutput
- func (o FunctionSourceRepositoryPtrOutput) DeployedUrl() pulumi.StringPtrOutput
- func (o FunctionSourceRepositoryPtrOutput) Elem() FunctionSourceRepositoryOutput
- func (FunctionSourceRepositoryPtrOutput) ElementType() reflect.Type
- func (o FunctionSourceRepositoryPtrOutput) ToFunctionSourceRepositoryPtrOutput() FunctionSourceRepositoryPtrOutput
- func (o FunctionSourceRepositoryPtrOutput) ToFunctionSourceRepositoryPtrOutputWithContext(ctx context.Context) FunctionSourceRepositoryPtrOutput
- func (o FunctionSourceRepositoryPtrOutput) Url() pulumi.StringPtrOutput
- type FunctionState
- type GetFunctionEventTrigger
- type GetFunctionEventTriggerArgs
- type GetFunctionEventTriggerArray
- func (GetFunctionEventTriggerArray) ElementType() reflect.Type
- func (i GetFunctionEventTriggerArray) ToGetFunctionEventTriggerArrayOutput() GetFunctionEventTriggerArrayOutput
- func (i GetFunctionEventTriggerArray) ToGetFunctionEventTriggerArrayOutputWithContext(ctx context.Context) GetFunctionEventTriggerArrayOutput
- type GetFunctionEventTriggerArrayInput
- type GetFunctionEventTriggerArrayOutput
- func (GetFunctionEventTriggerArrayOutput) ElementType() reflect.Type
- func (o GetFunctionEventTriggerArrayOutput) Index(i pulumi.IntInput) GetFunctionEventTriggerOutput
- func (o GetFunctionEventTriggerArrayOutput) ToGetFunctionEventTriggerArrayOutput() GetFunctionEventTriggerArrayOutput
- func (o GetFunctionEventTriggerArrayOutput) ToGetFunctionEventTriggerArrayOutputWithContext(ctx context.Context) GetFunctionEventTriggerArrayOutput
- type GetFunctionEventTriggerFailurePolicy
- type GetFunctionEventTriggerFailurePolicyArgs
- func (GetFunctionEventTriggerFailurePolicyArgs) ElementType() reflect.Type
- func (i GetFunctionEventTriggerFailurePolicyArgs) ToGetFunctionEventTriggerFailurePolicyOutput() GetFunctionEventTriggerFailurePolicyOutput
- func (i GetFunctionEventTriggerFailurePolicyArgs) ToGetFunctionEventTriggerFailurePolicyOutputWithContext(ctx context.Context) GetFunctionEventTriggerFailurePolicyOutput
- type GetFunctionEventTriggerFailurePolicyArray
- func (GetFunctionEventTriggerFailurePolicyArray) ElementType() reflect.Type
- func (i GetFunctionEventTriggerFailurePolicyArray) ToGetFunctionEventTriggerFailurePolicyArrayOutput() GetFunctionEventTriggerFailurePolicyArrayOutput
- func (i GetFunctionEventTriggerFailurePolicyArray) ToGetFunctionEventTriggerFailurePolicyArrayOutputWithContext(ctx context.Context) GetFunctionEventTriggerFailurePolicyArrayOutput
- type GetFunctionEventTriggerFailurePolicyArrayInput
- type GetFunctionEventTriggerFailurePolicyArrayOutput
- func (GetFunctionEventTriggerFailurePolicyArrayOutput) ElementType() reflect.Type
- func (o GetFunctionEventTriggerFailurePolicyArrayOutput) Index(i pulumi.IntInput) GetFunctionEventTriggerFailurePolicyOutput
- func (o GetFunctionEventTriggerFailurePolicyArrayOutput) ToGetFunctionEventTriggerFailurePolicyArrayOutput() GetFunctionEventTriggerFailurePolicyArrayOutput
- func (o GetFunctionEventTriggerFailurePolicyArrayOutput) ToGetFunctionEventTriggerFailurePolicyArrayOutputWithContext(ctx context.Context) GetFunctionEventTriggerFailurePolicyArrayOutput
- type GetFunctionEventTriggerFailurePolicyInput
- type GetFunctionEventTriggerFailurePolicyOutput
- func (GetFunctionEventTriggerFailurePolicyOutput) ElementType() reflect.Type
- func (o GetFunctionEventTriggerFailurePolicyOutput) Retry() pulumi.BoolOutput
- func (o GetFunctionEventTriggerFailurePolicyOutput) ToGetFunctionEventTriggerFailurePolicyOutput() GetFunctionEventTriggerFailurePolicyOutput
- func (o GetFunctionEventTriggerFailurePolicyOutput) ToGetFunctionEventTriggerFailurePolicyOutputWithContext(ctx context.Context) GetFunctionEventTriggerFailurePolicyOutput
- type GetFunctionEventTriggerInput
- type GetFunctionEventTriggerOutput
- func (GetFunctionEventTriggerOutput) ElementType() reflect.Type
- func (o GetFunctionEventTriggerOutput) EventType() pulumi.StringOutput
- func (o GetFunctionEventTriggerOutput) FailurePolicies() GetFunctionEventTriggerFailurePolicyArrayOutput
- func (o GetFunctionEventTriggerOutput) Resource() pulumi.StringOutput
- func (o GetFunctionEventTriggerOutput) ToGetFunctionEventTriggerOutput() GetFunctionEventTriggerOutput
- func (o GetFunctionEventTriggerOutput) ToGetFunctionEventTriggerOutputWithContext(ctx context.Context) GetFunctionEventTriggerOutput
- type GetFunctionSecretEnvironmentVariable
- type GetFunctionSecretEnvironmentVariableArgs
- func (GetFunctionSecretEnvironmentVariableArgs) ElementType() reflect.Type
- func (i GetFunctionSecretEnvironmentVariableArgs) ToGetFunctionSecretEnvironmentVariableOutput() GetFunctionSecretEnvironmentVariableOutput
- func (i GetFunctionSecretEnvironmentVariableArgs) ToGetFunctionSecretEnvironmentVariableOutputWithContext(ctx context.Context) GetFunctionSecretEnvironmentVariableOutput
- type GetFunctionSecretEnvironmentVariableArray
- func (GetFunctionSecretEnvironmentVariableArray) ElementType() reflect.Type
- func (i GetFunctionSecretEnvironmentVariableArray) ToGetFunctionSecretEnvironmentVariableArrayOutput() GetFunctionSecretEnvironmentVariableArrayOutput
- func (i GetFunctionSecretEnvironmentVariableArray) ToGetFunctionSecretEnvironmentVariableArrayOutputWithContext(ctx context.Context) GetFunctionSecretEnvironmentVariableArrayOutput
- type GetFunctionSecretEnvironmentVariableArrayInput
- type GetFunctionSecretEnvironmentVariableArrayOutput
- func (GetFunctionSecretEnvironmentVariableArrayOutput) ElementType() reflect.Type
- func (o GetFunctionSecretEnvironmentVariableArrayOutput) Index(i pulumi.IntInput) GetFunctionSecretEnvironmentVariableOutput
- func (o GetFunctionSecretEnvironmentVariableArrayOutput) ToGetFunctionSecretEnvironmentVariableArrayOutput() GetFunctionSecretEnvironmentVariableArrayOutput
- func (o GetFunctionSecretEnvironmentVariableArrayOutput) ToGetFunctionSecretEnvironmentVariableArrayOutputWithContext(ctx context.Context) GetFunctionSecretEnvironmentVariableArrayOutput
- type GetFunctionSecretEnvironmentVariableInput
- type GetFunctionSecretEnvironmentVariableOutput
- func (GetFunctionSecretEnvironmentVariableOutput) ElementType() reflect.Type
- func (o GetFunctionSecretEnvironmentVariableOutput) Key() pulumi.StringOutput
- func (o GetFunctionSecretEnvironmentVariableOutput) ProjectId() pulumi.StringOutput
- func (o GetFunctionSecretEnvironmentVariableOutput) Secret() pulumi.StringOutput
- func (o GetFunctionSecretEnvironmentVariableOutput) ToGetFunctionSecretEnvironmentVariableOutput() GetFunctionSecretEnvironmentVariableOutput
- func (o GetFunctionSecretEnvironmentVariableOutput) ToGetFunctionSecretEnvironmentVariableOutputWithContext(ctx context.Context) GetFunctionSecretEnvironmentVariableOutput
- func (o GetFunctionSecretEnvironmentVariableOutput) Version() pulumi.StringOutput
- type GetFunctionSecretVolume
- type GetFunctionSecretVolumeArgs
- type GetFunctionSecretVolumeArray
- func (GetFunctionSecretVolumeArray) ElementType() reflect.Type
- func (i GetFunctionSecretVolumeArray) ToGetFunctionSecretVolumeArrayOutput() GetFunctionSecretVolumeArrayOutput
- func (i GetFunctionSecretVolumeArray) ToGetFunctionSecretVolumeArrayOutputWithContext(ctx context.Context) GetFunctionSecretVolumeArrayOutput
- type GetFunctionSecretVolumeArrayInput
- type GetFunctionSecretVolumeArrayOutput
- func (GetFunctionSecretVolumeArrayOutput) ElementType() reflect.Type
- func (o GetFunctionSecretVolumeArrayOutput) Index(i pulumi.IntInput) GetFunctionSecretVolumeOutput
- func (o GetFunctionSecretVolumeArrayOutput) ToGetFunctionSecretVolumeArrayOutput() GetFunctionSecretVolumeArrayOutput
- func (o GetFunctionSecretVolumeArrayOutput) ToGetFunctionSecretVolumeArrayOutputWithContext(ctx context.Context) GetFunctionSecretVolumeArrayOutput
- type GetFunctionSecretVolumeInput
- type GetFunctionSecretVolumeOutput
- func (GetFunctionSecretVolumeOutput) ElementType() reflect.Type
- func (o GetFunctionSecretVolumeOutput) MountPath() pulumi.StringOutput
- func (o GetFunctionSecretVolumeOutput) ProjectId() pulumi.StringOutput
- func (o GetFunctionSecretVolumeOutput) Secret() pulumi.StringOutput
- func (o GetFunctionSecretVolumeOutput) ToGetFunctionSecretVolumeOutput() GetFunctionSecretVolumeOutput
- func (o GetFunctionSecretVolumeOutput) ToGetFunctionSecretVolumeOutputWithContext(ctx context.Context) GetFunctionSecretVolumeOutput
- func (o GetFunctionSecretVolumeOutput) Versions() GetFunctionSecretVolumeVersionArrayOutput
- type GetFunctionSecretVolumeVersion
- type GetFunctionSecretVolumeVersionArgs
- func (GetFunctionSecretVolumeVersionArgs) ElementType() reflect.Type
- func (i GetFunctionSecretVolumeVersionArgs) ToGetFunctionSecretVolumeVersionOutput() GetFunctionSecretVolumeVersionOutput
- func (i GetFunctionSecretVolumeVersionArgs) ToGetFunctionSecretVolumeVersionOutputWithContext(ctx context.Context) GetFunctionSecretVolumeVersionOutput
- type GetFunctionSecretVolumeVersionArray
- func (GetFunctionSecretVolumeVersionArray) ElementType() reflect.Type
- func (i GetFunctionSecretVolumeVersionArray) ToGetFunctionSecretVolumeVersionArrayOutput() GetFunctionSecretVolumeVersionArrayOutput
- func (i GetFunctionSecretVolumeVersionArray) ToGetFunctionSecretVolumeVersionArrayOutputWithContext(ctx context.Context) GetFunctionSecretVolumeVersionArrayOutput
- type GetFunctionSecretVolumeVersionArrayInput
- type GetFunctionSecretVolumeVersionArrayOutput
- func (GetFunctionSecretVolumeVersionArrayOutput) ElementType() reflect.Type
- func (o GetFunctionSecretVolumeVersionArrayOutput) Index(i pulumi.IntInput) GetFunctionSecretVolumeVersionOutput
- func (o GetFunctionSecretVolumeVersionArrayOutput) ToGetFunctionSecretVolumeVersionArrayOutput() GetFunctionSecretVolumeVersionArrayOutput
- func (o GetFunctionSecretVolumeVersionArrayOutput) ToGetFunctionSecretVolumeVersionArrayOutputWithContext(ctx context.Context) GetFunctionSecretVolumeVersionArrayOutput
- type GetFunctionSecretVolumeVersionInput
- type GetFunctionSecretVolumeVersionOutput
- func (GetFunctionSecretVolumeVersionOutput) ElementType() reflect.Type
- func (o GetFunctionSecretVolumeVersionOutput) Path() pulumi.StringOutput
- func (o GetFunctionSecretVolumeVersionOutput) ToGetFunctionSecretVolumeVersionOutput() GetFunctionSecretVolumeVersionOutput
- func (o GetFunctionSecretVolumeVersionOutput) ToGetFunctionSecretVolumeVersionOutputWithContext(ctx context.Context) GetFunctionSecretVolumeVersionOutput
- func (o GetFunctionSecretVolumeVersionOutput) Version() pulumi.StringOutput
- type GetFunctionSourceRepository
- type GetFunctionSourceRepositoryArgs
- func (GetFunctionSourceRepositoryArgs) ElementType() reflect.Type
- func (i GetFunctionSourceRepositoryArgs) ToGetFunctionSourceRepositoryOutput() GetFunctionSourceRepositoryOutput
- func (i GetFunctionSourceRepositoryArgs) ToGetFunctionSourceRepositoryOutputWithContext(ctx context.Context) GetFunctionSourceRepositoryOutput
- type GetFunctionSourceRepositoryArray
- func (GetFunctionSourceRepositoryArray) ElementType() reflect.Type
- func (i GetFunctionSourceRepositoryArray) ToGetFunctionSourceRepositoryArrayOutput() GetFunctionSourceRepositoryArrayOutput
- func (i GetFunctionSourceRepositoryArray) ToGetFunctionSourceRepositoryArrayOutputWithContext(ctx context.Context) GetFunctionSourceRepositoryArrayOutput
- type GetFunctionSourceRepositoryArrayInput
- type GetFunctionSourceRepositoryArrayOutput
- func (GetFunctionSourceRepositoryArrayOutput) ElementType() reflect.Type
- func (o GetFunctionSourceRepositoryArrayOutput) Index(i pulumi.IntInput) GetFunctionSourceRepositoryOutput
- func (o GetFunctionSourceRepositoryArrayOutput) ToGetFunctionSourceRepositoryArrayOutput() GetFunctionSourceRepositoryArrayOutput
- func (o GetFunctionSourceRepositoryArrayOutput) ToGetFunctionSourceRepositoryArrayOutputWithContext(ctx context.Context) GetFunctionSourceRepositoryArrayOutput
- type GetFunctionSourceRepositoryInput
- type GetFunctionSourceRepositoryOutput
- func (o GetFunctionSourceRepositoryOutput) DeployedUrl() pulumi.StringOutput
- func (GetFunctionSourceRepositoryOutput) ElementType() reflect.Type
- func (o GetFunctionSourceRepositoryOutput) ToGetFunctionSourceRepositoryOutput() GetFunctionSourceRepositoryOutput
- func (o GetFunctionSourceRepositoryOutput) ToGetFunctionSourceRepositoryOutputWithContext(ctx context.Context) GetFunctionSourceRepositoryOutput
- func (o GetFunctionSourceRepositoryOutput) Url() pulumi.StringOutput
- type LookupFunctionArgs
- type LookupFunctionOutputArgs
- type LookupFunctionResult
- type LookupFunctionResultOutput
- func (o LookupFunctionResultOutput) AvailableMemoryMb() pulumi.IntOutput
- func (o LookupFunctionResultOutput) BuildEnvironmentVariables() pulumi.MapOutput
- func (o LookupFunctionResultOutput) Description() pulumi.StringOutput
- func (LookupFunctionResultOutput) ElementType() reflect.Type
- func (o LookupFunctionResultOutput) EntryPoint() pulumi.StringOutput
- func (o LookupFunctionResultOutput) EnvironmentVariables() pulumi.MapOutput
- func (o LookupFunctionResultOutput) EventTriggers() GetFunctionEventTriggerArrayOutput
- func (o LookupFunctionResultOutput) HttpsTriggerUrl() pulumi.StringOutput
- func (o LookupFunctionResultOutput) Id() pulumi.StringOutput
- func (o LookupFunctionResultOutput) IngressSettings() pulumi.StringOutput
- func (o LookupFunctionResultOutput) Labels() pulumi.MapOutput
- func (o LookupFunctionResultOutput) MaxInstances() pulumi.IntOutput
- func (o LookupFunctionResultOutput) MinInstances() pulumi.IntOutput
- func (o LookupFunctionResultOutput) Name() pulumi.StringOutput
- func (o LookupFunctionResultOutput) Project() pulumi.StringPtrOutput
- func (o LookupFunctionResultOutput) Region() pulumi.StringPtrOutput
- func (o LookupFunctionResultOutput) Runtime() pulumi.StringOutput
- func (o LookupFunctionResultOutput) SecretEnvironmentVariables() GetFunctionSecretEnvironmentVariableArrayOutput
- func (o LookupFunctionResultOutput) SecretVolumes() GetFunctionSecretVolumeArrayOutput
- func (o LookupFunctionResultOutput) ServiceAccountEmail() pulumi.StringOutput
- func (o LookupFunctionResultOutput) SourceArchiveBucket() pulumi.StringOutput
- func (o LookupFunctionResultOutput) SourceArchiveObject() pulumi.StringOutput
- func (o LookupFunctionResultOutput) SourceRepositories() GetFunctionSourceRepositoryArrayOutput
- func (o LookupFunctionResultOutput) Timeout() pulumi.IntOutput
- func (o LookupFunctionResultOutput) ToLookupFunctionResultOutput() LookupFunctionResultOutput
- func (o LookupFunctionResultOutput) ToLookupFunctionResultOutputWithContext(ctx context.Context) LookupFunctionResultOutput
- func (o LookupFunctionResultOutput) TriggerHttp() pulumi.BoolOutput
- func (o LookupFunctionResultOutput) VpcConnector() pulumi.StringOutput
- func (o LookupFunctionResultOutput) VpcConnectorEgressSettings() pulumi.StringOutput
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Function ¶
type Function struct { pulumi.CustomResourceState // Memory (in MB), available to the function. Default value is `256`. Possible values include `128`, `256`, `512`, `1024`, etc. AvailableMemoryMb pulumi.IntPtrOutput `pulumi:"availableMemoryMb"` // A set of key/value environment variable pairs available during build time. BuildEnvironmentVariables pulumi.MapOutput `pulumi:"buildEnvironmentVariables"` // Description of the function. Description pulumi.StringPtrOutput `pulumi:"description"` // Name of the function that will be executed when the Google Cloud Function is triggered. EntryPoint pulumi.StringPtrOutput `pulumi:"entryPoint"` // A set of key/value environment variable pairs to assign to the function. EnvironmentVariables pulumi.MapOutput `pulumi:"environmentVariables"` // A source that fires events in response to a condition in another service. Structure is documented below. Cannot be used with `triggerHttp`. EventTrigger FunctionEventTriggerOutput `pulumi:"eventTrigger"` // URL which triggers function execution. Returned only if `triggerHttp` is used. HttpsTriggerUrl pulumi.StringOutput `pulumi:"httpsTriggerUrl"` // String value that controls what traffic can reach the function. Allowed values are `ALLOW_ALL`, `ALLOW_INTERNAL_AND_GCLB` and `ALLOW_INTERNAL_ONLY`. Check [ingress documentation](https://cloud.google.com/functions/docs/networking/network-settings#ingress_settings) to see the impact of each settings value. Changes to this field will recreate the cloud function. IngressSettings pulumi.StringPtrOutput `pulumi:"ingressSettings"` // A set of key/value label pairs to assign to the function. Label keys must follow the requirements at https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements. Labels pulumi.MapOutput `pulumi:"labels"` // The limit on the maximum number of function instances that may coexist at a given time. MaxInstances pulumi.IntPtrOutput `pulumi:"maxInstances"` // The limit on the minimum number of function instances that may coexist at a given time. MinInstances pulumi.IntPtrOutput `pulumi:"minInstances"` // A user-defined name of the function. Function names must be unique globally. Name pulumi.StringOutput `pulumi:"name"` // Project of the function. If it is not provided, the provider project is used. Project pulumi.StringOutput `pulumi:"project"` // Region of function. If it is not provided, the provider region is used. Region pulumi.StringOutput `pulumi:"region"` // The runtime in which the function is going to run. // Eg. `"nodejs10"`, `"nodejs12"`, `"nodejs14"`, `"python37"`, `"python38"`, `"python39"`, `"dotnet3"`, `"go113"`, `"java11"`, `"ruby27"`, etc. Check the [official doc](https://cloud.google.com/functions/docs/concepts/exec#runtimes) for the up-to-date list. Runtime pulumi.StringOutput `pulumi:"runtime"` // Secret environment variables configuration. Structure is documented below. SecretEnvironmentVariables FunctionSecretEnvironmentVariableArrayOutput `pulumi:"secretEnvironmentVariables"` // Secret volumes configuration. Structure is documented below. SecretVolumes FunctionSecretVolumeArrayOutput `pulumi:"secretVolumes"` // If provided, the self-provided service account to run the function with. ServiceAccountEmail pulumi.StringOutput `pulumi:"serviceAccountEmail"` // The GCS bucket containing the zip archive which contains the function. SourceArchiveBucket pulumi.StringPtrOutput `pulumi:"sourceArchiveBucket"` // The source archive object (file) in archive bucket. SourceArchiveObject pulumi.StringPtrOutput `pulumi:"sourceArchiveObject"` // Represents parameters related to source repository where a function is hosted. // Cannot be set alongside `sourceArchiveBucket` or `sourceArchiveObject`. Structure is documented below. SourceRepository FunctionSourceRepositoryPtrOutput `pulumi:"sourceRepository"` // Timeout (in seconds) for the function. Default value is 60 seconds. Cannot be more than 540 seconds. Timeout pulumi.IntPtrOutput `pulumi:"timeout"` // Boolean variable. Any HTTP request (of a supported type) to the endpoint will trigger function execution. Supported HTTP request types are: POST, PUT, GET, DELETE, and OPTIONS. Endpoint is returned as `httpsTriggerUrl`. Cannot be used with `eventTrigger`. TriggerHttp pulumi.BoolPtrOutput `pulumi:"triggerHttp"` // The VPC Network Connector that this cloud function can connect to. It should be set up as fully-qualified URI. The format of this field is `projects/*/locations/*/connectors/*`. VpcConnector pulumi.StringPtrOutput `pulumi:"vpcConnector"` // The egress settings for the connector, controlling what traffic is diverted through it. Allowed values are `ALL_TRAFFIC` and `PRIVATE_RANGES_ONLY`. Defaults to `PRIVATE_RANGES_ONLY`. If unset, this field preserves the previously set value. VpcConnectorEgressSettings pulumi.StringOutput `pulumi:"vpcConnectorEgressSettings"` }
Creates a new Cloud Function. For more information see:
* [API documentation](https://cloud.google.com/functions/docs/reference/rest/v1/projects.locations.functions) * How-to Guides
- [Official Documentation](https://cloud.google.com/functions/docs)
> **Warning:** As of November 1, 2019, newly created Functions are private-by-default and will require [appropriate IAM permissions](https://cloud.google.com/functions/docs/reference/iam/roles) to be invoked. See below examples for how to set up the appropriate permissions, or view the [Cloud Functions IAM resources](https://www.terraform.io/docs/providers/google/r/cloudfunctions_cloud_function_iam.html) for Cloud Functions.
## Example Usage ### Public Function
```go package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/cloudfunctions" "github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/storage" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { bucket, err := storage.NewBucket(ctx, "bucket", &storage.BucketArgs{ Location: pulumi.String("US"), }) if err != nil { return err } archive, err := storage.NewBucketObject(ctx, "archive", &storage.BucketObjectArgs{ Bucket: bucket.Name, Source: pulumi.NewFileAsset("./path/to/zip/file/which/contains/code"), }) if err != nil { return err } function, err := cloudfunctions.NewFunction(ctx, "function", &cloudfunctions.FunctionArgs{ Description: pulumi.String("My function"), Runtime: pulumi.String("nodejs14"), AvailableMemoryMb: pulumi.Int(128), SourceArchiveBucket: bucket.Name, SourceArchiveObject: archive.Name, TriggerHttp: pulumi.Bool(true), EntryPoint: pulumi.String("helloGET"), }) if err != nil { return err } _, err = cloudfunctions.NewFunctionIamMember(ctx, "invoker", &cloudfunctions.FunctionIamMemberArgs{ Project: function.Project, Region: function.Region, CloudFunction: function.Name, Role: pulumi.String("roles/cloudfunctions.invoker"), Member: pulumi.String("allUsers"), }) if err != nil { return err } return nil }) }
``` ### Single User
```go package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/cloudfunctions" "github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/storage" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { bucket, err := storage.NewBucket(ctx, "bucket", &storage.BucketArgs{ Location: pulumi.String("US"), }) if err != nil { return err } archive, err := storage.NewBucketObject(ctx, "archive", &storage.BucketObjectArgs{ Bucket: bucket.Name, Source: pulumi.NewFileAsset("./path/to/zip/file/which/contains/code"), }) if err != nil { return err } function, err := cloudfunctions.NewFunction(ctx, "function", &cloudfunctions.FunctionArgs{ Description: pulumi.String("My function"), Runtime: pulumi.String("nodejs14"), AvailableMemoryMb: pulumi.Int(128), SourceArchiveBucket: bucket.Name, SourceArchiveObject: archive.Name, TriggerHttp: pulumi.Bool(true), Timeout: pulumi.Int(60), EntryPoint: pulumi.String("helloGET"), Labels: pulumi.AnyMap{ "my-label": pulumi.Any("my-label-value"), }, EnvironmentVariables: pulumi.AnyMap{ "MY_ENV_VAR": pulumi.Any("my-env-var-value"), }, }) if err != nil { return err } _, err = cloudfunctions.NewFunctionIamMember(ctx, "invoker", &cloudfunctions.FunctionIamMemberArgs{ Project: function.Project, Region: function.Region, CloudFunction: function.Name, Role: pulumi.String("roles/cloudfunctions.invoker"), Member: pulumi.String("user:myFunctionInvoker@example.com"), }) if err != nil { return err } return nil }) }
```
## Import
Functions can be imported using the `name` or `{{project}}/{{region}}/name`, e.g.
```sh
$ pulumi import gcp:cloudfunctions/function:Function default function-test
```
```sh
$ pulumi import gcp:cloudfunctions/function:Function default {{project}}/{{region}}/function-test
```
func GetFunction ¶
func GetFunction(ctx *pulumi.Context, name string, id pulumi.IDInput, state *FunctionState, opts ...pulumi.ResourceOption) (*Function, error)
GetFunction gets an existing Function resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewFunction ¶
func NewFunction(ctx *pulumi.Context, name string, args *FunctionArgs, opts ...pulumi.ResourceOption) (*Function, error)
NewFunction registers a new resource with the given unique name, arguments, and options.
func (*Function) ElementType ¶
func (*Function) ToFunctionOutput ¶
func (i *Function) ToFunctionOutput() FunctionOutput
func (*Function) ToFunctionOutputWithContext ¶
func (i *Function) ToFunctionOutputWithContext(ctx context.Context) FunctionOutput
type FunctionArgs ¶
type FunctionArgs struct { // Memory (in MB), available to the function. Default value is `256`. Possible values include `128`, `256`, `512`, `1024`, etc. AvailableMemoryMb pulumi.IntPtrInput // A set of key/value environment variable pairs available during build time. BuildEnvironmentVariables pulumi.MapInput // Description of the function. Description pulumi.StringPtrInput // Name of the function that will be executed when the Google Cloud Function is triggered. EntryPoint pulumi.StringPtrInput // A set of key/value environment variable pairs to assign to the function. EnvironmentVariables pulumi.MapInput // A source that fires events in response to a condition in another service. Structure is documented below. Cannot be used with `triggerHttp`. EventTrigger FunctionEventTriggerPtrInput // URL which triggers function execution. Returned only if `triggerHttp` is used. HttpsTriggerUrl pulumi.StringPtrInput // String value that controls what traffic can reach the function. Allowed values are `ALLOW_ALL`, `ALLOW_INTERNAL_AND_GCLB` and `ALLOW_INTERNAL_ONLY`. Check [ingress documentation](https://cloud.google.com/functions/docs/networking/network-settings#ingress_settings) to see the impact of each settings value. Changes to this field will recreate the cloud function. IngressSettings pulumi.StringPtrInput // A set of key/value label pairs to assign to the function. Label keys must follow the requirements at https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements. Labels pulumi.MapInput // The limit on the maximum number of function instances that may coexist at a given time. MaxInstances pulumi.IntPtrInput // The limit on the minimum number of function instances that may coexist at a given time. MinInstances pulumi.IntPtrInput // A user-defined name of the function. Function names must be unique globally. Name pulumi.StringPtrInput // Project of the function. If it is not provided, the provider project is used. Project pulumi.StringPtrInput // Region of function. If it is not provided, the provider region is used. Region pulumi.StringPtrInput // The runtime in which the function is going to run. // Eg. `"nodejs10"`, `"nodejs12"`, `"nodejs14"`, `"python37"`, `"python38"`, `"python39"`, `"dotnet3"`, `"go113"`, `"java11"`, `"ruby27"`, etc. Check the [official doc](https://cloud.google.com/functions/docs/concepts/exec#runtimes) for the up-to-date list. Runtime pulumi.StringInput // Secret environment variables configuration. Structure is documented below. SecretEnvironmentVariables FunctionSecretEnvironmentVariableArrayInput // Secret volumes configuration. Structure is documented below. SecretVolumes FunctionSecretVolumeArrayInput // If provided, the self-provided service account to run the function with. ServiceAccountEmail pulumi.StringPtrInput // The GCS bucket containing the zip archive which contains the function. SourceArchiveBucket pulumi.StringPtrInput // The source archive object (file) in archive bucket. SourceArchiveObject pulumi.StringPtrInput // Represents parameters related to source repository where a function is hosted. // Cannot be set alongside `sourceArchiveBucket` or `sourceArchiveObject`. Structure is documented below. SourceRepository FunctionSourceRepositoryPtrInput // Timeout (in seconds) for the function. Default value is 60 seconds. Cannot be more than 540 seconds. Timeout pulumi.IntPtrInput // Boolean variable. Any HTTP request (of a supported type) to the endpoint will trigger function execution. Supported HTTP request types are: POST, PUT, GET, DELETE, and OPTIONS. Endpoint is returned as `httpsTriggerUrl`. Cannot be used with `eventTrigger`. TriggerHttp pulumi.BoolPtrInput // The VPC Network Connector that this cloud function can connect to. It should be set up as fully-qualified URI. The format of this field is `projects/*/locations/*/connectors/*`. VpcConnector pulumi.StringPtrInput // The egress settings for the connector, controlling what traffic is diverted through it. Allowed values are `ALL_TRAFFIC` and `PRIVATE_RANGES_ONLY`. Defaults to `PRIVATE_RANGES_ONLY`. If unset, this field preserves the previously set value. VpcConnectorEgressSettings pulumi.StringPtrInput }
The set of arguments for constructing a Function resource.
func (FunctionArgs) ElementType ¶
func (FunctionArgs) ElementType() reflect.Type
type FunctionArray ¶
type FunctionArray []FunctionInput
func (FunctionArray) ElementType ¶
func (FunctionArray) ElementType() reflect.Type
func (FunctionArray) ToFunctionArrayOutput ¶
func (i FunctionArray) ToFunctionArrayOutput() FunctionArrayOutput
func (FunctionArray) ToFunctionArrayOutputWithContext ¶
func (i FunctionArray) ToFunctionArrayOutputWithContext(ctx context.Context) FunctionArrayOutput
type FunctionArrayInput ¶
type FunctionArrayInput interface { pulumi.Input ToFunctionArrayOutput() FunctionArrayOutput ToFunctionArrayOutputWithContext(context.Context) FunctionArrayOutput }
FunctionArrayInput is an input type that accepts FunctionArray and FunctionArrayOutput values. You can construct a concrete instance of `FunctionArrayInput` via:
FunctionArray{ FunctionArgs{...} }
type FunctionArrayOutput ¶
type FunctionArrayOutput struct{ *pulumi.OutputState }
func (FunctionArrayOutput) ElementType ¶
func (FunctionArrayOutput) ElementType() reflect.Type
func (FunctionArrayOutput) Index ¶
func (o FunctionArrayOutput) Index(i pulumi.IntInput) FunctionOutput
func (FunctionArrayOutput) ToFunctionArrayOutput ¶
func (o FunctionArrayOutput) ToFunctionArrayOutput() FunctionArrayOutput
func (FunctionArrayOutput) ToFunctionArrayOutputWithContext ¶
func (o FunctionArrayOutput) ToFunctionArrayOutputWithContext(ctx context.Context) FunctionArrayOutput
type FunctionEventTrigger ¶
type FunctionEventTrigger struct { // The type of event to observe. For example: `"google.storage.object.finalize"`. // See the documentation on [calling Cloud Functions](https://cloud.google.com/functions/docs/calling/) for a // full reference of accepted triggers. EventType string `pulumi:"eventType"` // Specifies policy for failed executions. Structure is documented below. FailurePolicy *FunctionEventTriggerFailurePolicy `pulumi:"failurePolicy"` // Required. The name or partial URI of the resource from // which to observe events. For example, `"myBucket"` or `"projects/my-project/topics/my-topic"` Resource string `pulumi:"resource"` }
type FunctionEventTriggerArgs ¶
type FunctionEventTriggerArgs struct { // The type of event to observe. For example: `"google.storage.object.finalize"`. // See the documentation on [calling Cloud Functions](https://cloud.google.com/functions/docs/calling/) for a // full reference of accepted triggers. EventType pulumi.StringInput `pulumi:"eventType"` // Specifies policy for failed executions. Structure is documented below. FailurePolicy FunctionEventTriggerFailurePolicyPtrInput `pulumi:"failurePolicy"` // Required. The name or partial URI of the resource from // which to observe events. For example, `"myBucket"` or `"projects/my-project/topics/my-topic"` Resource pulumi.StringInput `pulumi:"resource"` }
func (FunctionEventTriggerArgs) ElementType ¶
func (FunctionEventTriggerArgs) ElementType() reflect.Type
func (FunctionEventTriggerArgs) ToFunctionEventTriggerOutput ¶
func (i FunctionEventTriggerArgs) ToFunctionEventTriggerOutput() FunctionEventTriggerOutput
func (FunctionEventTriggerArgs) ToFunctionEventTriggerOutputWithContext ¶
func (i FunctionEventTriggerArgs) ToFunctionEventTriggerOutputWithContext(ctx context.Context) FunctionEventTriggerOutput
func (FunctionEventTriggerArgs) ToFunctionEventTriggerPtrOutput ¶
func (i FunctionEventTriggerArgs) ToFunctionEventTriggerPtrOutput() FunctionEventTriggerPtrOutput
func (FunctionEventTriggerArgs) ToFunctionEventTriggerPtrOutputWithContext ¶
func (i FunctionEventTriggerArgs) ToFunctionEventTriggerPtrOutputWithContext(ctx context.Context) FunctionEventTriggerPtrOutput
type FunctionEventTriggerFailurePolicy ¶
type FunctionEventTriggerFailurePolicy struct { // Whether the function should be retried on failure. Defaults to `false`. Retry bool `pulumi:"retry"` }
type FunctionEventTriggerFailurePolicyArgs ¶
type FunctionEventTriggerFailurePolicyArgs struct { // Whether the function should be retried on failure. Defaults to `false`. Retry pulumi.BoolInput `pulumi:"retry"` }
func (FunctionEventTriggerFailurePolicyArgs) ElementType ¶
func (FunctionEventTriggerFailurePolicyArgs) ElementType() reflect.Type
func (FunctionEventTriggerFailurePolicyArgs) ToFunctionEventTriggerFailurePolicyOutput ¶
func (i FunctionEventTriggerFailurePolicyArgs) ToFunctionEventTriggerFailurePolicyOutput() FunctionEventTriggerFailurePolicyOutput
func (FunctionEventTriggerFailurePolicyArgs) ToFunctionEventTriggerFailurePolicyOutputWithContext ¶
func (i FunctionEventTriggerFailurePolicyArgs) ToFunctionEventTriggerFailurePolicyOutputWithContext(ctx context.Context) FunctionEventTriggerFailurePolicyOutput
func (FunctionEventTriggerFailurePolicyArgs) ToFunctionEventTriggerFailurePolicyPtrOutput ¶
func (i FunctionEventTriggerFailurePolicyArgs) ToFunctionEventTriggerFailurePolicyPtrOutput() FunctionEventTriggerFailurePolicyPtrOutput
func (FunctionEventTriggerFailurePolicyArgs) ToFunctionEventTriggerFailurePolicyPtrOutputWithContext ¶
func (i FunctionEventTriggerFailurePolicyArgs) ToFunctionEventTriggerFailurePolicyPtrOutputWithContext(ctx context.Context) FunctionEventTriggerFailurePolicyPtrOutput
type FunctionEventTriggerFailurePolicyInput ¶
type FunctionEventTriggerFailurePolicyInput interface { pulumi.Input ToFunctionEventTriggerFailurePolicyOutput() FunctionEventTriggerFailurePolicyOutput ToFunctionEventTriggerFailurePolicyOutputWithContext(context.Context) FunctionEventTriggerFailurePolicyOutput }
FunctionEventTriggerFailurePolicyInput is an input type that accepts FunctionEventTriggerFailurePolicyArgs and FunctionEventTriggerFailurePolicyOutput values. You can construct a concrete instance of `FunctionEventTriggerFailurePolicyInput` via:
FunctionEventTriggerFailurePolicyArgs{...}
type FunctionEventTriggerFailurePolicyOutput ¶
type FunctionEventTriggerFailurePolicyOutput struct{ *pulumi.OutputState }
func (FunctionEventTriggerFailurePolicyOutput) ElementType ¶
func (FunctionEventTriggerFailurePolicyOutput) ElementType() reflect.Type
func (FunctionEventTriggerFailurePolicyOutput) Retry ¶
func (o FunctionEventTriggerFailurePolicyOutput) Retry() pulumi.BoolOutput
Whether the function should be retried on failure. Defaults to `false`.
func (FunctionEventTriggerFailurePolicyOutput) ToFunctionEventTriggerFailurePolicyOutput ¶
func (o FunctionEventTriggerFailurePolicyOutput) ToFunctionEventTriggerFailurePolicyOutput() FunctionEventTriggerFailurePolicyOutput
func (FunctionEventTriggerFailurePolicyOutput) ToFunctionEventTriggerFailurePolicyOutputWithContext ¶
func (o FunctionEventTriggerFailurePolicyOutput) ToFunctionEventTriggerFailurePolicyOutputWithContext(ctx context.Context) FunctionEventTriggerFailurePolicyOutput
func (FunctionEventTriggerFailurePolicyOutput) ToFunctionEventTriggerFailurePolicyPtrOutput ¶
func (o FunctionEventTriggerFailurePolicyOutput) ToFunctionEventTriggerFailurePolicyPtrOutput() FunctionEventTriggerFailurePolicyPtrOutput
func (FunctionEventTriggerFailurePolicyOutput) ToFunctionEventTriggerFailurePolicyPtrOutputWithContext ¶
func (o FunctionEventTriggerFailurePolicyOutput) ToFunctionEventTriggerFailurePolicyPtrOutputWithContext(ctx context.Context) FunctionEventTriggerFailurePolicyPtrOutput
type FunctionEventTriggerFailurePolicyPtrInput ¶
type FunctionEventTriggerFailurePolicyPtrInput interface { pulumi.Input ToFunctionEventTriggerFailurePolicyPtrOutput() FunctionEventTriggerFailurePolicyPtrOutput ToFunctionEventTriggerFailurePolicyPtrOutputWithContext(context.Context) FunctionEventTriggerFailurePolicyPtrOutput }
FunctionEventTriggerFailurePolicyPtrInput is an input type that accepts FunctionEventTriggerFailurePolicyArgs, FunctionEventTriggerFailurePolicyPtr and FunctionEventTriggerFailurePolicyPtrOutput values. You can construct a concrete instance of `FunctionEventTriggerFailurePolicyPtrInput` via:
FunctionEventTriggerFailurePolicyArgs{...} or: nil
func FunctionEventTriggerFailurePolicyPtr ¶
func FunctionEventTriggerFailurePolicyPtr(v *FunctionEventTriggerFailurePolicyArgs) FunctionEventTriggerFailurePolicyPtrInput
type FunctionEventTriggerFailurePolicyPtrOutput ¶
type FunctionEventTriggerFailurePolicyPtrOutput struct{ *pulumi.OutputState }
func (FunctionEventTriggerFailurePolicyPtrOutput) ElementType ¶
func (FunctionEventTriggerFailurePolicyPtrOutput) ElementType() reflect.Type
func (FunctionEventTriggerFailurePolicyPtrOutput) Retry ¶
func (o FunctionEventTriggerFailurePolicyPtrOutput) Retry() pulumi.BoolPtrOutput
Whether the function should be retried on failure. Defaults to `false`.
func (FunctionEventTriggerFailurePolicyPtrOutput) ToFunctionEventTriggerFailurePolicyPtrOutput ¶
func (o FunctionEventTriggerFailurePolicyPtrOutput) ToFunctionEventTriggerFailurePolicyPtrOutput() FunctionEventTriggerFailurePolicyPtrOutput
func (FunctionEventTriggerFailurePolicyPtrOutput) ToFunctionEventTriggerFailurePolicyPtrOutputWithContext ¶
func (o FunctionEventTriggerFailurePolicyPtrOutput) ToFunctionEventTriggerFailurePolicyPtrOutputWithContext(ctx context.Context) FunctionEventTriggerFailurePolicyPtrOutput
type FunctionEventTriggerInput ¶
type FunctionEventTriggerInput interface { pulumi.Input ToFunctionEventTriggerOutput() FunctionEventTriggerOutput ToFunctionEventTriggerOutputWithContext(context.Context) FunctionEventTriggerOutput }
FunctionEventTriggerInput is an input type that accepts FunctionEventTriggerArgs and FunctionEventTriggerOutput values. You can construct a concrete instance of `FunctionEventTriggerInput` via:
FunctionEventTriggerArgs{...}
type FunctionEventTriggerOutput ¶
type FunctionEventTriggerOutput struct{ *pulumi.OutputState }
func (FunctionEventTriggerOutput) ElementType ¶
func (FunctionEventTriggerOutput) ElementType() reflect.Type
func (FunctionEventTriggerOutput) EventType ¶
func (o FunctionEventTriggerOutput) EventType() pulumi.StringOutput
The type of event to observe. For example: `"google.storage.object.finalize"`. See the documentation on [calling Cloud Functions](https://cloud.google.com/functions/docs/calling/) for a full reference of accepted triggers.
func (FunctionEventTriggerOutput) FailurePolicy ¶
func (o FunctionEventTriggerOutput) FailurePolicy() FunctionEventTriggerFailurePolicyPtrOutput
Specifies policy for failed executions. Structure is documented below.
func (FunctionEventTriggerOutput) Resource ¶
func (o FunctionEventTriggerOutput) Resource() pulumi.StringOutput
Required. The name or partial URI of the resource from which to observe events. For example, `"myBucket"` or `"projects/my-project/topics/my-topic"`
func (FunctionEventTriggerOutput) ToFunctionEventTriggerOutput ¶
func (o FunctionEventTriggerOutput) ToFunctionEventTriggerOutput() FunctionEventTriggerOutput
func (FunctionEventTriggerOutput) ToFunctionEventTriggerOutputWithContext ¶
func (o FunctionEventTriggerOutput) ToFunctionEventTriggerOutputWithContext(ctx context.Context) FunctionEventTriggerOutput
func (FunctionEventTriggerOutput) ToFunctionEventTriggerPtrOutput ¶
func (o FunctionEventTriggerOutput) ToFunctionEventTriggerPtrOutput() FunctionEventTriggerPtrOutput
func (FunctionEventTriggerOutput) ToFunctionEventTriggerPtrOutputWithContext ¶
func (o FunctionEventTriggerOutput) ToFunctionEventTriggerPtrOutputWithContext(ctx context.Context) FunctionEventTriggerPtrOutput
type FunctionEventTriggerPtrInput ¶
type FunctionEventTriggerPtrInput interface { pulumi.Input ToFunctionEventTriggerPtrOutput() FunctionEventTriggerPtrOutput ToFunctionEventTriggerPtrOutputWithContext(context.Context) FunctionEventTriggerPtrOutput }
FunctionEventTriggerPtrInput is an input type that accepts FunctionEventTriggerArgs, FunctionEventTriggerPtr and FunctionEventTriggerPtrOutput values. You can construct a concrete instance of `FunctionEventTriggerPtrInput` via:
FunctionEventTriggerArgs{...} or: nil
func FunctionEventTriggerPtr ¶
func FunctionEventTriggerPtr(v *FunctionEventTriggerArgs) FunctionEventTriggerPtrInput
type FunctionEventTriggerPtrOutput ¶
type FunctionEventTriggerPtrOutput struct{ *pulumi.OutputState }
func (FunctionEventTriggerPtrOutput) Elem ¶
func (o FunctionEventTriggerPtrOutput) Elem() FunctionEventTriggerOutput
func (FunctionEventTriggerPtrOutput) ElementType ¶
func (FunctionEventTriggerPtrOutput) ElementType() reflect.Type
func (FunctionEventTriggerPtrOutput) EventType ¶
func (o FunctionEventTriggerPtrOutput) EventType() pulumi.StringPtrOutput
The type of event to observe. For example: `"google.storage.object.finalize"`. See the documentation on [calling Cloud Functions](https://cloud.google.com/functions/docs/calling/) for a full reference of accepted triggers.
func (FunctionEventTriggerPtrOutput) FailurePolicy ¶
func (o FunctionEventTriggerPtrOutput) FailurePolicy() FunctionEventTriggerFailurePolicyPtrOutput
Specifies policy for failed executions. Structure is documented below.
func (FunctionEventTriggerPtrOutput) Resource ¶
func (o FunctionEventTriggerPtrOutput) Resource() pulumi.StringPtrOutput
Required. The name or partial URI of the resource from which to observe events. For example, `"myBucket"` or `"projects/my-project/topics/my-topic"`
func (FunctionEventTriggerPtrOutput) ToFunctionEventTriggerPtrOutput ¶
func (o FunctionEventTriggerPtrOutput) ToFunctionEventTriggerPtrOutput() FunctionEventTriggerPtrOutput
func (FunctionEventTriggerPtrOutput) ToFunctionEventTriggerPtrOutputWithContext ¶
func (o FunctionEventTriggerPtrOutput) ToFunctionEventTriggerPtrOutputWithContext(ctx context.Context) FunctionEventTriggerPtrOutput
type FunctionIamBinding ¶
type FunctionIamBinding struct { pulumi.CustomResourceState // Used to find the parent resource to bind the IAM policy to CloudFunction pulumi.StringOutput `pulumi:"cloudFunction"` Condition FunctionIamBindingConditionPtrOutput `pulumi:"condition"` // (Computed) The etag of the IAM policy. Etag pulumi.StringOutput `pulumi:"etag"` Members pulumi.StringArrayOutput `pulumi:"members"` // The ID of the project in which the resource belongs. // If it is not provided, the project will be parsed from the identifier of the parent resource. If no project is provided in the parent identifier and no project is specified, the provider project is used. Project pulumi.StringOutput `pulumi:"project"` // The location of this cloud function. Used to find the parent resource to bind the IAM policy to. If not specified, // the value will be parsed from the identifier of the parent resource. If no region is provided in the parent identifier and no // region is specified, it is taken from the provider configuration. Region pulumi.StringOutput `pulumi:"region"` // The role that should be applied. Only one // `cloudfunctions.FunctionIamBinding` can be used per role. Note that custom roles must be of the format // `[projects|organizations]/{parent-name}/roles/{role-name}`. Role pulumi.StringOutput `pulumi:"role"` }
Three different resources help you manage your IAM policy for Cloud Functions CloudFunction. Each of these resources serves a different use case:
* `cloudfunctions.FunctionIamPolicy`: Authoritative. Sets the IAM policy for the cloudfunction and replaces any existing policy already attached. * `cloudfunctions.FunctionIamBinding`: Authoritative for a given role. Updates the IAM policy to grant a role to a list of members. Other roles within the IAM policy for the cloudfunction are preserved. * `cloudfunctions.FunctionIamMember`: Non-authoritative. Updates the IAM policy to grant a role to a new member. Other members for the role for the cloudfunction are preserved.
> **Note:** `cloudfunctions.FunctionIamPolicy` **cannot** be used in conjunction with `cloudfunctions.FunctionIamBinding` and `cloudfunctions.FunctionIamMember` or they will fight over what your policy should be.
> **Note:** `cloudfunctions.FunctionIamBinding` resources **can be** used in conjunction with `cloudfunctions.FunctionIamMember` resources **only if** they do not grant privilege to the same role.
## google\_cloudfunctions\_function\_iam\_policy
```go package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/cloudfunctions" "github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/organizations" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { admin, err := organizations.LookupIAMPolicy(ctx, &organizations.LookupIAMPolicyArgs{ Bindings: []organizations.GetIAMPolicyBinding{ organizations.GetIAMPolicyBinding{ Role: "roles/viewer", Members: []string{ "user:jane@example.com", }, }, }, }, nil) if err != nil { return err } _, err = cloudfunctions.NewFunctionIamPolicy(ctx, "policy", &cloudfunctions.FunctionIamPolicyArgs{ Project: pulumi.Any(google_cloudfunctions_function.Function.Project), Region: pulumi.Any(google_cloudfunctions_function.Function.Region), CloudFunction: pulumi.Any(google_cloudfunctions_function.Function.Name), PolicyData: pulumi.String(admin.PolicyData), }) if err != nil { return err } return nil }) }
```
## google\_cloudfunctions\_function\_iam\_binding
```go package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/cloudfunctions" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := cloudfunctions.NewFunctionIamBinding(ctx, "binding", &cloudfunctions.FunctionIamBindingArgs{ Project: pulumi.Any(google_cloudfunctions_function.Function.Project), Region: pulumi.Any(google_cloudfunctions_function.Function.Region), CloudFunction: pulumi.Any(google_cloudfunctions_function.Function.Name), Role: pulumi.String("roles/viewer"), Members: pulumi.StringArray{ pulumi.String("user:jane@example.com"), }, }) if err != nil { return err } return nil }) }
```
## google\_cloudfunctions\_function\_iam\_member
```go package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/cloudfunctions" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := cloudfunctions.NewFunctionIamMember(ctx, "member", &cloudfunctions.FunctionIamMemberArgs{ Project: pulumi.Any(google_cloudfunctions_function.Function.Project), Region: pulumi.Any(google_cloudfunctions_function.Function.Region), CloudFunction: pulumi.Any(google_cloudfunctions_function.Function.Name), Role: pulumi.String("roles/viewer"), Member: pulumi.String("user:jane@example.com"), }) if err != nil { return err } return nil }) }
```
## Import
For all import syntaxes, the "resource in question" can take any of the following forms* projects/{{project}}/locations/{{region}}/functions/{{cloud_function}} * {{project}}/{{region}}/{{cloud_function}} * {{region}}/{{cloud_function}} * {{cloud_function}} Any variables not passed in the import command will be taken from the provider configuration. Cloud Functions cloudfunction IAM resources can be imported using the resource identifiers, role, and member. IAM member imports use space-delimited identifiersthe resource in question, the role, and the member identity, e.g.
```sh
$ pulumi import gcp:cloudfunctions/functionIamBinding:FunctionIamBinding editor "projects/{{project}}/locations/{{region}}/functions/{{cloud_function}} roles/viewer user:jane@example.com"
```
IAM binding imports use space-delimited identifiersthe resource in question and the role, e.g.
```sh
$ pulumi import gcp:cloudfunctions/functionIamBinding:FunctionIamBinding editor "projects/{{project}}/locations/{{region}}/functions/{{cloud_function}} roles/viewer"
```
IAM policy imports use the identifier of the resource in question, e.g.
```sh
$ pulumi import gcp:cloudfunctions/functionIamBinding:FunctionIamBinding editor projects/{{project}}/locations/{{region}}/functions/{{cloud_function}}
```
-> **Custom Roles**If you're importing a IAM resource with a custom role, make sure to use the
full name of the custom role, e.g. `[projects/my-project|organizations/my-org]/roles/my-custom-role`.
func GetFunctionIamBinding ¶
func GetFunctionIamBinding(ctx *pulumi.Context, name string, id pulumi.IDInput, state *FunctionIamBindingState, opts ...pulumi.ResourceOption) (*FunctionIamBinding, error)
GetFunctionIamBinding gets an existing FunctionIamBinding resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewFunctionIamBinding ¶
func NewFunctionIamBinding(ctx *pulumi.Context, name string, args *FunctionIamBindingArgs, opts ...pulumi.ResourceOption) (*FunctionIamBinding, error)
NewFunctionIamBinding registers a new resource with the given unique name, arguments, and options.
func (*FunctionIamBinding) ElementType ¶
func (*FunctionIamBinding) ElementType() reflect.Type
func (*FunctionIamBinding) ToFunctionIamBindingOutput ¶
func (i *FunctionIamBinding) ToFunctionIamBindingOutput() FunctionIamBindingOutput
func (*FunctionIamBinding) ToFunctionIamBindingOutputWithContext ¶
func (i *FunctionIamBinding) ToFunctionIamBindingOutputWithContext(ctx context.Context) FunctionIamBindingOutput
type FunctionIamBindingArgs ¶
type FunctionIamBindingArgs struct { // Used to find the parent resource to bind the IAM policy to CloudFunction pulumi.StringInput Condition FunctionIamBindingConditionPtrInput Members pulumi.StringArrayInput // The ID of the project in which the resource belongs. // If it is not provided, the project will be parsed from the identifier of the parent resource. If no project is provided in the parent identifier and no project is specified, the provider project is used. Project pulumi.StringPtrInput // The location of this cloud function. Used to find the parent resource to bind the IAM policy to. If not specified, // the value will be parsed from the identifier of the parent resource. If no region is provided in the parent identifier and no // region is specified, it is taken from the provider configuration. Region pulumi.StringPtrInput // The role that should be applied. Only one // `cloudfunctions.FunctionIamBinding` can be used per role. Note that custom roles must be of the format // `[projects|organizations]/{parent-name}/roles/{role-name}`. Role pulumi.StringInput }
The set of arguments for constructing a FunctionIamBinding resource.
func (FunctionIamBindingArgs) ElementType ¶
func (FunctionIamBindingArgs) ElementType() reflect.Type
type FunctionIamBindingArray ¶
type FunctionIamBindingArray []FunctionIamBindingInput
func (FunctionIamBindingArray) ElementType ¶
func (FunctionIamBindingArray) ElementType() reflect.Type
func (FunctionIamBindingArray) ToFunctionIamBindingArrayOutput ¶
func (i FunctionIamBindingArray) ToFunctionIamBindingArrayOutput() FunctionIamBindingArrayOutput
func (FunctionIamBindingArray) ToFunctionIamBindingArrayOutputWithContext ¶
func (i FunctionIamBindingArray) ToFunctionIamBindingArrayOutputWithContext(ctx context.Context) FunctionIamBindingArrayOutput
type FunctionIamBindingArrayInput ¶
type FunctionIamBindingArrayInput interface { pulumi.Input ToFunctionIamBindingArrayOutput() FunctionIamBindingArrayOutput ToFunctionIamBindingArrayOutputWithContext(context.Context) FunctionIamBindingArrayOutput }
FunctionIamBindingArrayInput is an input type that accepts FunctionIamBindingArray and FunctionIamBindingArrayOutput values. You can construct a concrete instance of `FunctionIamBindingArrayInput` via:
FunctionIamBindingArray{ FunctionIamBindingArgs{...} }
type FunctionIamBindingArrayOutput ¶
type FunctionIamBindingArrayOutput struct{ *pulumi.OutputState }
func (FunctionIamBindingArrayOutput) ElementType ¶
func (FunctionIamBindingArrayOutput) ElementType() reflect.Type
func (FunctionIamBindingArrayOutput) Index ¶
func (o FunctionIamBindingArrayOutput) Index(i pulumi.IntInput) FunctionIamBindingOutput
func (FunctionIamBindingArrayOutput) ToFunctionIamBindingArrayOutput ¶
func (o FunctionIamBindingArrayOutput) ToFunctionIamBindingArrayOutput() FunctionIamBindingArrayOutput
func (FunctionIamBindingArrayOutput) ToFunctionIamBindingArrayOutputWithContext ¶
func (o FunctionIamBindingArrayOutput) ToFunctionIamBindingArrayOutputWithContext(ctx context.Context) FunctionIamBindingArrayOutput
type FunctionIamBindingConditionArgs ¶
type FunctionIamBindingConditionArgs struct { Description pulumi.StringPtrInput `pulumi:"description"` Expression pulumi.StringInput `pulumi:"expression"` Title pulumi.StringInput `pulumi:"title"` }
func (FunctionIamBindingConditionArgs) ElementType ¶
func (FunctionIamBindingConditionArgs) ElementType() reflect.Type
func (FunctionIamBindingConditionArgs) ToFunctionIamBindingConditionOutput ¶
func (i FunctionIamBindingConditionArgs) ToFunctionIamBindingConditionOutput() FunctionIamBindingConditionOutput
func (FunctionIamBindingConditionArgs) ToFunctionIamBindingConditionOutputWithContext ¶
func (i FunctionIamBindingConditionArgs) ToFunctionIamBindingConditionOutputWithContext(ctx context.Context) FunctionIamBindingConditionOutput
func (FunctionIamBindingConditionArgs) ToFunctionIamBindingConditionPtrOutput ¶
func (i FunctionIamBindingConditionArgs) ToFunctionIamBindingConditionPtrOutput() FunctionIamBindingConditionPtrOutput
func (FunctionIamBindingConditionArgs) ToFunctionIamBindingConditionPtrOutputWithContext ¶
func (i FunctionIamBindingConditionArgs) ToFunctionIamBindingConditionPtrOutputWithContext(ctx context.Context) FunctionIamBindingConditionPtrOutput
type FunctionIamBindingConditionInput ¶
type FunctionIamBindingConditionInput interface { pulumi.Input ToFunctionIamBindingConditionOutput() FunctionIamBindingConditionOutput ToFunctionIamBindingConditionOutputWithContext(context.Context) FunctionIamBindingConditionOutput }
FunctionIamBindingConditionInput is an input type that accepts FunctionIamBindingConditionArgs and FunctionIamBindingConditionOutput values. You can construct a concrete instance of `FunctionIamBindingConditionInput` via:
FunctionIamBindingConditionArgs{...}
type FunctionIamBindingConditionOutput ¶
type FunctionIamBindingConditionOutput struct{ *pulumi.OutputState }
func (FunctionIamBindingConditionOutput) Description ¶
func (o FunctionIamBindingConditionOutput) Description() pulumi.StringPtrOutput
func (FunctionIamBindingConditionOutput) ElementType ¶
func (FunctionIamBindingConditionOutput) ElementType() reflect.Type
func (FunctionIamBindingConditionOutput) Expression ¶
func (o FunctionIamBindingConditionOutput) Expression() pulumi.StringOutput
func (FunctionIamBindingConditionOutput) Title ¶
func (o FunctionIamBindingConditionOutput) Title() pulumi.StringOutput
func (FunctionIamBindingConditionOutput) ToFunctionIamBindingConditionOutput ¶
func (o FunctionIamBindingConditionOutput) ToFunctionIamBindingConditionOutput() FunctionIamBindingConditionOutput
func (FunctionIamBindingConditionOutput) ToFunctionIamBindingConditionOutputWithContext ¶
func (o FunctionIamBindingConditionOutput) ToFunctionIamBindingConditionOutputWithContext(ctx context.Context) FunctionIamBindingConditionOutput
func (FunctionIamBindingConditionOutput) ToFunctionIamBindingConditionPtrOutput ¶
func (o FunctionIamBindingConditionOutput) ToFunctionIamBindingConditionPtrOutput() FunctionIamBindingConditionPtrOutput
func (FunctionIamBindingConditionOutput) ToFunctionIamBindingConditionPtrOutputWithContext ¶
func (o FunctionIamBindingConditionOutput) ToFunctionIamBindingConditionPtrOutputWithContext(ctx context.Context) FunctionIamBindingConditionPtrOutput
type FunctionIamBindingConditionPtrInput ¶
type FunctionIamBindingConditionPtrInput interface { pulumi.Input ToFunctionIamBindingConditionPtrOutput() FunctionIamBindingConditionPtrOutput ToFunctionIamBindingConditionPtrOutputWithContext(context.Context) FunctionIamBindingConditionPtrOutput }
FunctionIamBindingConditionPtrInput is an input type that accepts FunctionIamBindingConditionArgs, FunctionIamBindingConditionPtr and FunctionIamBindingConditionPtrOutput values. You can construct a concrete instance of `FunctionIamBindingConditionPtrInput` via:
FunctionIamBindingConditionArgs{...} or: nil
func FunctionIamBindingConditionPtr ¶
func FunctionIamBindingConditionPtr(v *FunctionIamBindingConditionArgs) FunctionIamBindingConditionPtrInput
type FunctionIamBindingConditionPtrOutput ¶
type FunctionIamBindingConditionPtrOutput struct{ *pulumi.OutputState }
func (FunctionIamBindingConditionPtrOutput) Description ¶
func (o FunctionIamBindingConditionPtrOutput) Description() pulumi.StringPtrOutput
func (FunctionIamBindingConditionPtrOutput) ElementType ¶
func (FunctionIamBindingConditionPtrOutput) ElementType() reflect.Type
func (FunctionIamBindingConditionPtrOutput) Expression ¶
func (o FunctionIamBindingConditionPtrOutput) Expression() pulumi.StringPtrOutput
func (FunctionIamBindingConditionPtrOutput) Title ¶
func (o FunctionIamBindingConditionPtrOutput) Title() pulumi.StringPtrOutput
func (FunctionIamBindingConditionPtrOutput) ToFunctionIamBindingConditionPtrOutput ¶
func (o FunctionIamBindingConditionPtrOutput) ToFunctionIamBindingConditionPtrOutput() FunctionIamBindingConditionPtrOutput
func (FunctionIamBindingConditionPtrOutput) ToFunctionIamBindingConditionPtrOutputWithContext ¶
func (o FunctionIamBindingConditionPtrOutput) ToFunctionIamBindingConditionPtrOutputWithContext(ctx context.Context) FunctionIamBindingConditionPtrOutput
type FunctionIamBindingInput ¶
type FunctionIamBindingInput interface { pulumi.Input ToFunctionIamBindingOutput() FunctionIamBindingOutput ToFunctionIamBindingOutputWithContext(ctx context.Context) FunctionIamBindingOutput }
type FunctionIamBindingMap ¶
type FunctionIamBindingMap map[string]FunctionIamBindingInput
func (FunctionIamBindingMap) ElementType ¶
func (FunctionIamBindingMap) ElementType() reflect.Type
func (FunctionIamBindingMap) ToFunctionIamBindingMapOutput ¶
func (i FunctionIamBindingMap) ToFunctionIamBindingMapOutput() FunctionIamBindingMapOutput
func (FunctionIamBindingMap) ToFunctionIamBindingMapOutputWithContext ¶
func (i FunctionIamBindingMap) ToFunctionIamBindingMapOutputWithContext(ctx context.Context) FunctionIamBindingMapOutput
type FunctionIamBindingMapInput ¶
type FunctionIamBindingMapInput interface { pulumi.Input ToFunctionIamBindingMapOutput() FunctionIamBindingMapOutput ToFunctionIamBindingMapOutputWithContext(context.Context) FunctionIamBindingMapOutput }
FunctionIamBindingMapInput is an input type that accepts FunctionIamBindingMap and FunctionIamBindingMapOutput values. You can construct a concrete instance of `FunctionIamBindingMapInput` via:
FunctionIamBindingMap{ "key": FunctionIamBindingArgs{...} }
type FunctionIamBindingMapOutput ¶
type FunctionIamBindingMapOutput struct{ *pulumi.OutputState }
func (FunctionIamBindingMapOutput) ElementType ¶
func (FunctionIamBindingMapOutput) ElementType() reflect.Type
func (FunctionIamBindingMapOutput) MapIndex ¶
func (o FunctionIamBindingMapOutput) MapIndex(k pulumi.StringInput) FunctionIamBindingOutput
func (FunctionIamBindingMapOutput) ToFunctionIamBindingMapOutput ¶
func (o FunctionIamBindingMapOutput) ToFunctionIamBindingMapOutput() FunctionIamBindingMapOutput
func (FunctionIamBindingMapOutput) ToFunctionIamBindingMapOutputWithContext ¶
func (o FunctionIamBindingMapOutput) ToFunctionIamBindingMapOutputWithContext(ctx context.Context) FunctionIamBindingMapOutput
type FunctionIamBindingOutput ¶
type FunctionIamBindingOutput struct{ *pulumi.OutputState }
func (FunctionIamBindingOutput) ElementType ¶
func (FunctionIamBindingOutput) ElementType() reflect.Type
func (FunctionIamBindingOutput) ToFunctionIamBindingOutput ¶
func (o FunctionIamBindingOutput) ToFunctionIamBindingOutput() FunctionIamBindingOutput
func (FunctionIamBindingOutput) ToFunctionIamBindingOutputWithContext ¶
func (o FunctionIamBindingOutput) ToFunctionIamBindingOutputWithContext(ctx context.Context) FunctionIamBindingOutput
type FunctionIamBindingState ¶
type FunctionIamBindingState struct { // Used to find the parent resource to bind the IAM policy to CloudFunction pulumi.StringPtrInput Condition FunctionIamBindingConditionPtrInput // (Computed) The etag of the IAM policy. Etag pulumi.StringPtrInput Members pulumi.StringArrayInput // The ID of the project in which the resource belongs. // If it is not provided, the project will be parsed from the identifier of the parent resource. If no project is provided in the parent identifier and no project is specified, the provider project is used. Project pulumi.StringPtrInput // The location of this cloud function. Used to find the parent resource to bind the IAM policy to. If not specified, // the value will be parsed from the identifier of the parent resource. If no region is provided in the parent identifier and no // region is specified, it is taken from the provider configuration. Region pulumi.StringPtrInput // The role that should be applied. Only one // `cloudfunctions.FunctionIamBinding` can be used per role. Note that custom roles must be of the format // `[projects|organizations]/{parent-name}/roles/{role-name}`. Role pulumi.StringPtrInput }
func (FunctionIamBindingState) ElementType ¶
func (FunctionIamBindingState) ElementType() reflect.Type
type FunctionIamMember ¶
type FunctionIamMember struct { pulumi.CustomResourceState // Used to find the parent resource to bind the IAM policy to CloudFunction pulumi.StringOutput `pulumi:"cloudFunction"` Condition FunctionIamMemberConditionPtrOutput `pulumi:"condition"` // (Computed) The etag of the IAM policy. Etag pulumi.StringOutput `pulumi:"etag"` Member pulumi.StringOutput `pulumi:"member"` // The ID of the project in which the resource belongs. // If it is not provided, the project will be parsed from the identifier of the parent resource. If no project is provided in the parent identifier and no project is specified, the provider project is used. Project pulumi.StringOutput `pulumi:"project"` // The location of this cloud function. Used to find the parent resource to bind the IAM policy to. If not specified, // the value will be parsed from the identifier of the parent resource. If no region is provided in the parent identifier and no // region is specified, it is taken from the provider configuration. Region pulumi.StringOutput `pulumi:"region"` // The role that should be applied. Only one // `cloudfunctions.FunctionIamBinding` can be used per role. Note that custom roles must be of the format // `[projects|organizations]/{parent-name}/roles/{role-name}`. Role pulumi.StringOutput `pulumi:"role"` }
Three different resources help you manage your IAM policy for Cloud Functions CloudFunction. Each of these resources serves a different use case:
* `cloudfunctions.FunctionIamPolicy`: Authoritative. Sets the IAM policy for the cloudfunction and replaces any existing policy already attached. * `cloudfunctions.FunctionIamBinding`: Authoritative for a given role. Updates the IAM policy to grant a role to a list of members. Other roles within the IAM policy for the cloudfunction are preserved. * `cloudfunctions.FunctionIamMember`: Non-authoritative. Updates the IAM policy to grant a role to a new member. Other members for the role for the cloudfunction are preserved.
> **Note:** `cloudfunctions.FunctionIamPolicy` **cannot** be used in conjunction with `cloudfunctions.FunctionIamBinding` and `cloudfunctions.FunctionIamMember` or they will fight over what your policy should be.
> **Note:** `cloudfunctions.FunctionIamBinding` resources **can be** used in conjunction with `cloudfunctions.FunctionIamMember` resources **only if** they do not grant privilege to the same role.
## google\_cloudfunctions\_function\_iam\_policy
```go package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/cloudfunctions" "github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/organizations" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { admin, err := organizations.LookupIAMPolicy(ctx, &organizations.LookupIAMPolicyArgs{ Bindings: []organizations.GetIAMPolicyBinding{ organizations.GetIAMPolicyBinding{ Role: "roles/viewer", Members: []string{ "user:jane@example.com", }, }, }, }, nil) if err != nil { return err } _, err = cloudfunctions.NewFunctionIamPolicy(ctx, "policy", &cloudfunctions.FunctionIamPolicyArgs{ Project: pulumi.Any(google_cloudfunctions_function.Function.Project), Region: pulumi.Any(google_cloudfunctions_function.Function.Region), CloudFunction: pulumi.Any(google_cloudfunctions_function.Function.Name), PolicyData: pulumi.String(admin.PolicyData), }) if err != nil { return err } return nil }) }
```
## google\_cloudfunctions\_function\_iam\_binding
```go package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/cloudfunctions" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := cloudfunctions.NewFunctionIamBinding(ctx, "binding", &cloudfunctions.FunctionIamBindingArgs{ Project: pulumi.Any(google_cloudfunctions_function.Function.Project), Region: pulumi.Any(google_cloudfunctions_function.Function.Region), CloudFunction: pulumi.Any(google_cloudfunctions_function.Function.Name), Role: pulumi.String("roles/viewer"), Members: pulumi.StringArray{ pulumi.String("user:jane@example.com"), }, }) if err != nil { return err } return nil }) }
```
## google\_cloudfunctions\_function\_iam\_member
```go package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/cloudfunctions" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := cloudfunctions.NewFunctionIamMember(ctx, "member", &cloudfunctions.FunctionIamMemberArgs{ Project: pulumi.Any(google_cloudfunctions_function.Function.Project), Region: pulumi.Any(google_cloudfunctions_function.Function.Region), CloudFunction: pulumi.Any(google_cloudfunctions_function.Function.Name), Role: pulumi.String("roles/viewer"), Member: pulumi.String("user:jane@example.com"), }) if err != nil { return err } return nil }) }
```
## Import
For all import syntaxes, the "resource in question" can take any of the following forms* projects/{{project}}/locations/{{region}}/functions/{{cloud_function}} * {{project}}/{{region}}/{{cloud_function}} * {{region}}/{{cloud_function}} * {{cloud_function}} Any variables not passed in the import command will be taken from the provider configuration. Cloud Functions cloudfunction IAM resources can be imported using the resource identifiers, role, and member. IAM member imports use space-delimited identifiersthe resource in question, the role, and the member identity, e.g.
```sh
$ pulumi import gcp:cloudfunctions/functionIamMember:FunctionIamMember editor "projects/{{project}}/locations/{{region}}/functions/{{cloud_function}} roles/viewer user:jane@example.com"
```
IAM binding imports use space-delimited identifiersthe resource in question and the role, e.g.
```sh
$ pulumi import gcp:cloudfunctions/functionIamMember:FunctionIamMember editor "projects/{{project}}/locations/{{region}}/functions/{{cloud_function}} roles/viewer"
```
IAM policy imports use the identifier of the resource in question, e.g.
```sh
$ pulumi import gcp:cloudfunctions/functionIamMember:FunctionIamMember editor projects/{{project}}/locations/{{region}}/functions/{{cloud_function}}
```
-> **Custom Roles**If you're importing a IAM resource with a custom role, make sure to use the
full name of the custom role, e.g. `[projects/my-project|organizations/my-org]/roles/my-custom-role`.
func GetFunctionIamMember ¶
func GetFunctionIamMember(ctx *pulumi.Context, name string, id pulumi.IDInput, state *FunctionIamMemberState, opts ...pulumi.ResourceOption) (*FunctionIamMember, error)
GetFunctionIamMember gets an existing FunctionIamMember resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewFunctionIamMember ¶
func NewFunctionIamMember(ctx *pulumi.Context, name string, args *FunctionIamMemberArgs, opts ...pulumi.ResourceOption) (*FunctionIamMember, error)
NewFunctionIamMember registers a new resource with the given unique name, arguments, and options.
func (*FunctionIamMember) ElementType ¶
func (*FunctionIamMember) ElementType() reflect.Type
func (*FunctionIamMember) ToFunctionIamMemberOutput ¶
func (i *FunctionIamMember) ToFunctionIamMemberOutput() FunctionIamMemberOutput
func (*FunctionIamMember) ToFunctionIamMemberOutputWithContext ¶
func (i *FunctionIamMember) ToFunctionIamMemberOutputWithContext(ctx context.Context) FunctionIamMemberOutput
type FunctionIamMemberArgs ¶
type FunctionIamMemberArgs struct { // Used to find the parent resource to bind the IAM policy to CloudFunction pulumi.StringInput Condition FunctionIamMemberConditionPtrInput Member pulumi.StringInput // The ID of the project in which the resource belongs. // If it is not provided, the project will be parsed from the identifier of the parent resource. If no project is provided in the parent identifier and no project is specified, the provider project is used. Project pulumi.StringPtrInput // The location of this cloud function. Used to find the parent resource to bind the IAM policy to. If not specified, // the value will be parsed from the identifier of the parent resource. If no region is provided in the parent identifier and no // region is specified, it is taken from the provider configuration. Region pulumi.StringPtrInput // The role that should be applied. Only one // `cloudfunctions.FunctionIamBinding` can be used per role. Note that custom roles must be of the format // `[projects|organizations]/{parent-name}/roles/{role-name}`. Role pulumi.StringInput }
The set of arguments for constructing a FunctionIamMember resource.
func (FunctionIamMemberArgs) ElementType ¶
func (FunctionIamMemberArgs) ElementType() reflect.Type
type FunctionIamMemberArray ¶
type FunctionIamMemberArray []FunctionIamMemberInput
func (FunctionIamMemberArray) ElementType ¶
func (FunctionIamMemberArray) ElementType() reflect.Type
func (FunctionIamMemberArray) ToFunctionIamMemberArrayOutput ¶
func (i FunctionIamMemberArray) ToFunctionIamMemberArrayOutput() FunctionIamMemberArrayOutput
func (FunctionIamMemberArray) ToFunctionIamMemberArrayOutputWithContext ¶
func (i FunctionIamMemberArray) ToFunctionIamMemberArrayOutputWithContext(ctx context.Context) FunctionIamMemberArrayOutput
type FunctionIamMemberArrayInput ¶
type FunctionIamMemberArrayInput interface { pulumi.Input ToFunctionIamMemberArrayOutput() FunctionIamMemberArrayOutput ToFunctionIamMemberArrayOutputWithContext(context.Context) FunctionIamMemberArrayOutput }
FunctionIamMemberArrayInput is an input type that accepts FunctionIamMemberArray and FunctionIamMemberArrayOutput values. You can construct a concrete instance of `FunctionIamMemberArrayInput` via:
FunctionIamMemberArray{ FunctionIamMemberArgs{...} }
type FunctionIamMemberArrayOutput ¶
type FunctionIamMemberArrayOutput struct{ *pulumi.OutputState }
func (FunctionIamMemberArrayOutput) ElementType ¶
func (FunctionIamMemberArrayOutput) ElementType() reflect.Type
func (FunctionIamMemberArrayOutput) Index ¶
func (o FunctionIamMemberArrayOutput) Index(i pulumi.IntInput) FunctionIamMemberOutput
func (FunctionIamMemberArrayOutput) ToFunctionIamMemberArrayOutput ¶
func (o FunctionIamMemberArrayOutput) ToFunctionIamMemberArrayOutput() FunctionIamMemberArrayOutput
func (FunctionIamMemberArrayOutput) ToFunctionIamMemberArrayOutputWithContext ¶
func (o FunctionIamMemberArrayOutput) ToFunctionIamMemberArrayOutputWithContext(ctx context.Context) FunctionIamMemberArrayOutput
type FunctionIamMemberConditionArgs ¶
type FunctionIamMemberConditionArgs struct { Description pulumi.StringPtrInput `pulumi:"description"` Expression pulumi.StringInput `pulumi:"expression"` Title pulumi.StringInput `pulumi:"title"` }
func (FunctionIamMemberConditionArgs) ElementType ¶
func (FunctionIamMemberConditionArgs) ElementType() reflect.Type
func (FunctionIamMemberConditionArgs) ToFunctionIamMemberConditionOutput ¶
func (i FunctionIamMemberConditionArgs) ToFunctionIamMemberConditionOutput() FunctionIamMemberConditionOutput
func (FunctionIamMemberConditionArgs) ToFunctionIamMemberConditionOutputWithContext ¶
func (i FunctionIamMemberConditionArgs) ToFunctionIamMemberConditionOutputWithContext(ctx context.Context) FunctionIamMemberConditionOutput
func (FunctionIamMemberConditionArgs) ToFunctionIamMemberConditionPtrOutput ¶
func (i FunctionIamMemberConditionArgs) ToFunctionIamMemberConditionPtrOutput() FunctionIamMemberConditionPtrOutput
func (FunctionIamMemberConditionArgs) ToFunctionIamMemberConditionPtrOutputWithContext ¶
func (i FunctionIamMemberConditionArgs) ToFunctionIamMemberConditionPtrOutputWithContext(ctx context.Context) FunctionIamMemberConditionPtrOutput
type FunctionIamMemberConditionInput ¶
type FunctionIamMemberConditionInput interface { pulumi.Input ToFunctionIamMemberConditionOutput() FunctionIamMemberConditionOutput ToFunctionIamMemberConditionOutputWithContext(context.Context) FunctionIamMemberConditionOutput }
FunctionIamMemberConditionInput is an input type that accepts FunctionIamMemberConditionArgs and FunctionIamMemberConditionOutput values. You can construct a concrete instance of `FunctionIamMemberConditionInput` via:
FunctionIamMemberConditionArgs{...}
type FunctionIamMemberConditionOutput ¶
type FunctionIamMemberConditionOutput struct{ *pulumi.OutputState }
func (FunctionIamMemberConditionOutput) Description ¶
func (o FunctionIamMemberConditionOutput) Description() pulumi.StringPtrOutput
func (FunctionIamMemberConditionOutput) ElementType ¶
func (FunctionIamMemberConditionOutput) ElementType() reflect.Type
func (FunctionIamMemberConditionOutput) Expression ¶
func (o FunctionIamMemberConditionOutput) Expression() pulumi.StringOutput
func (FunctionIamMemberConditionOutput) Title ¶
func (o FunctionIamMemberConditionOutput) Title() pulumi.StringOutput
func (FunctionIamMemberConditionOutput) ToFunctionIamMemberConditionOutput ¶
func (o FunctionIamMemberConditionOutput) ToFunctionIamMemberConditionOutput() FunctionIamMemberConditionOutput
func (FunctionIamMemberConditionOutput) ToFunctionIamMemberConditionOutputWithContext ¶
func (o FunctionIamMemberConditionOutput) ToFunctionIamMemberConditionOutputWithContext(ctx context.Context) FunctionIamMemberConditionOutput
func (FunctionIamMemberConditionOutput) ToFunctionIamMemberConditionPtrOutput ¶
func (o FunctionIamMemberConditionOutput) ToFunctionIamMemberConditionPtrOutput() FunctionIamMemberConditionPtrOutput
func (FunctionIamMemberConditionOutput) ToFunctionIamMemberConditionPtrOutputWithContext ¶
func (o FunctionIamMemberConditionOutput) ToFunctionIamMemberConditionPtrOutputWithContext(ctx context.Context) FunctionIamMemberConditionPtrOutput
type FunctionIamMemberConditionPtrInput ¶
type FunctionIamMemberConditionPtrInput interface { pulumi.Input ToFunctionIamMemberConditionPtrOutput() FunctionIamMemberConditionPtrOutput ToFunctionIamMemberConditionPtrOutputWithContext(context.Context) FunctionIamMemberConditionPtrOutput }
FunctionIamMemberConditionPtrInput is an input type that accepts FunctionIamMemberConditionArgs, FunctionIamMemberConditionPtr and FunctionIamMemberConditionPtrOutput values. You can construct a concrete instance of `FunctionIamMemberConditionPtrInput` via:
FunctionIamMemberConditionArgs{...} or: nil
func FunctionIamMemberConditionPtr ¶
func FunctionIamMemberConditionPtr(v *FunctionIamMemberConditionArgs) FunctionIamMemberConditionPtrInput
type FunctionIamMemberConditionPtrOutput ¶
type FunctionIamMemberConditionPtrOutput struct{ *pulumi.OutputState }
func (FunctionIamMemberConditionPtrOutput) Description ¶
func (o FunctionIamMemberConditionPtrOutput) Description() pulumi.StringPtrOutput
func (FunctionIamMemberConditionPtrOutput) Elem ¶
func (o FunctionIamMemberConditionPtrOutput) Elem() FunctionIamMemberConditionOutput
func (FunctionIamMemberConditionPtrOutput) ElementType ¶
func (FunctionIamMemberConditionPtrOutput) ElementType() reflect.Type
func (FunctionIamMemberConditionPtrOutput) Expression ¶
func (o FunctionIamMemberConditionPtrOutput) Expression() pulumi.StringPtrOutput
func (FunctionIamMemberConditionPtrOutput) Title ¶
func (o FunctionIamMemberConditionPtrOutput) Title() pulumi.StringPtrOutput
func (FunctionIamMemberConditionPtrOutput) ToFunctionIamMemberConditionPtrOutput ¶
func (o FunctionIamMemberConditionPtrOutput) ToFunctionIamMemberConditionPtrOutput() FunctionIamMemberConditionPtrOutput
func (FunctionIamMemberConditionPtrOutput) ToFunctionIamMemberConditionPtrOutputWithContext ¶
func (o FunctionIamMemberConditionPtrOutput) ToFunctionIamMemberConditionPtrOutputWithContext(ctx context.Context) FunctionIamMemberConditionPtrOutput
type FunctionIamMemberInput ¶
type FunctionIamMemberInput interface { pulumi.Input ToFunctionIamMemberOutput() FunctionIamMemberOutput ToFunctionIamMemberOutputWithContext(ctx context.Context) FunctionIamMemberOutput }
type FunctionIamMemberMap ¶
type FunctionIamMemberMap map[string]FunctionIamMemberInput
func (FunctionIamMemberMap) ElementType ¶
func (FunctionIamMemberMap) ElementType() reflect.Type
func (FunctionIamMemberMap) ToFunctionIamMemberMapOutput ¶
func (i FunctionIamMemberMap) ToFunctionIamMemberMapOutput() FunctionIamMemberMapOutput
func (FunctionIamMemberMap) ToFunctionIamMemberMapOutputWithContext ¶
func (i FunctionIamMemberMap) ToFunctionIamMemberMapOutputWithContext(ctx context.Context) FunctionIamMemberMapOutput
type FunctionIamMemberMapInput ¶
type FunctionIamMemberMapInput interface { pulumi.Input ToFunctionIamMemberMapOutput() FunctionIamMemberMapOutput ToFunctionIamMemberMapOutputWithContext(context.Context) FunctionIamMemberMapOutput }
FunctionIamMemberMapInput is an input type that accepts FunctionIamMemberMap and FunctionIamMemberMapOutput values. You can construct a concrete instance of `FunctionIamMemberMapInput` via:
FunctionIamMemberMap{ "key": FunctionIamMemberArgs{...} }
type FunctionIamMemberMapOutput ¶
type FunctionIamMemberMapOutput struct{ *pulumi.OutputState }
func (FunctionIamMemberMapOutput) ElementType ¶
func (FunctionIamMemberMapOutput) ElementType() reflect.Type
func (FunctionIamMemberMapOutput) MapIndex ¶
func (o FunctionIamMemberMapOutput) MapIndex(k pulumi.StringInput) FunctionIamMemberOutput
func (FunctionIamMemberMapOutput) ToFunctionIamMemberMapOutput ¶
func (o FunctionIamMemberMapOutput) ToFunctionIamMemberMapOutput() FunctionIamMemberMapOutput
func (FunctionIamMemberMapOutput) ToFunctionIamMemberMapOutputWithContext ¶
func (o FunctionIamMemberMapOutput) ToFunctionIamMemberMapOutputWithContext(ctx context.Context) FunctionIamMemberMapOutput
type FunctionIamMemberOutput ¶
type FunctionIamMemberOutput struct{ *pulumi.OutputState }
func (FunctionIamMemberOutput) ElementType ¶
func (FunctionIamMemberOutput) ElementType() reflect.Type
func (FunctionIamMemberOutput) ToFunctionIamMemberOutput ¶
func (o FunctionIamMemberOutput) ToFunctionIamMemberOutput() FunctionIamMemberOutput
func (FunctionIamMemberOutput) ToFunctionIamMemberOutputWithContext ¶
func (o FunctionIamMemberOutput) ToFunctionIamMemberOutputWithContext(ctx context.Context) FunctionIamMemberOutput
type FunctionIamMemberState ¶
type FunctionIamMemberState struct { // Used to find the parent resource to bind the IAM policy to CloudFunction pulumi.StringPtrInput Condition FunctionIamMemberConditionPtrInput // (Computed) The etag of the IAM policy. Etag pulumi.StringPtrInput Member pulumi.StringPtrInput // The ID of the project in which the resource belongs. // If it is not provided, the project will be parsed from the identifier of the parent resource. If no project is provided in the parent identifier and no project is specified, the provider project is used. Project pulumi.StringPtrInput // The location of this cloud function. Used to find the parent resource to bind the IAM policy to. If not specified, // the value will be parsed from the identifier of the parent resource. If no region is provided in the parent identifier and no // region is specified, it is taken from the provider configuration. Region pulumi.StringPtrInput // The role that should be applied. Only one // `cloudfunctions.FunctionIamBinding` can be used per role. Note that custom roles must be of the format // `[projects|organizations]/{parent-name}/roles/{role-name}`. Role pulumi.StringPtrInput }
func (FunctionIamMemberState) ElementType ¶
func (FunctionIamMemberState) ElementType() reflect.Type
type FunctionIamPolicy ¶
type FunctionIamPolicy struct { pulumi.CustomResourceState // Used to find the parent resource to bind the IAM policy to CloudFunction pulumi.StringOutput `pulumi:"cloudFunction"` // (Computed) The etag of the IAM policy. Etag pulumi.StringOutput `pulumi:"etag"` // The policy data generated by // a `organizations.getIAMPolicy` data source. PolicyData pulumi.StringOutput `pulumi:"policyData"` // The ID of the project in which the resource belongs. // If it is not provided, the project will be parsed from the identifier of the parent resource. If no project is provided in the parent identifier and no project is specified, the provider project is used. Project pulumi.StringOutput `pulumi:"project"` // The location of this cloud function. Used to find the parent resource to bind the IAM policy to. If not specified, // the value will be parsed from the identifier of the parent resource. If no region is provided in the parent identifier and no // region is specified, it is taken from the provider configuration. Region pulumi.StringOutput `pulumi:"region"` }
Three different resources help you manage your IAM policy for Cloud Functions CloudFunction. Each of these resources serves a different use case:
* `cloudfunctions.FunctionIamPolicy`: Authoritative. Sets the IAM policy for the cloudfunction and replaces any existing policy already attached. * `cloudfunctions.FunctionIamBinding`: Authoritative for a given role. Updates the IAM policy to grant a role to a list of members. Other roles within the IAM policy for the cloudfunction are preserved. * `cloudfunctions.FunctionIamMember`: Non-authoritative. Updates the IAM policy to grant a role to a new member. Other members for the role for the cloudfunction are preserved.
> **Note:** `cloudfunctions.FunctionIamPolicy` **cannot** be used in conjunction with `cloudfunctions.FunctionIamBinding` and `cloudfunctions.FunctionIamMember` or they will fight over what your policy should be.
> **Note:** `cloudfunctions.FunctionIamBinding` resources **can be** used in conjunction with `cloudfunctions.FunctionIamMember` resources **only if** they do not grant privilege to the same role.
## google\_cloudfunctions\_function\_iam\_policy
```go package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/cloudfunctions" "github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/organizations" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { admin, err := organizations.LookupIAMPolicy(ctx, &organizations.LookupIAMPolicyArgs{ Bindings: []organizations.GetIAMPolicyBinding{ organizations.GetIAMPolicyBinding{ Role: "roles/viewer", Members: []string{ "user:jane@example.com", }, }, }, }, nil) if err != nil { return err } _, err = cloudfunctions.NewFunctionIamPolicy(ctx, "policy", &cloudfunctions.FunctionIamPolicyArgs{ Project: pulumi.Any(google_cloudfunctions_function.Function.Project), Region: pulumi.Any(google_cloudfunctions_function.Function.Region), CloudFunction: pulumi.Any(google_cloudfunctions_function.Function.Name), PolicyData: pulumi.String(admin.PolicyData), }) if err != nil { return err } return nil }) }
```
## google\_cloudfunctions\_function\_iam\_binding
```go package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/cloudfunctions" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := cloudfunctions.NewFunctionIamBinding(ctx, "binding", &cloudfunctions.FunctionIamBindingArgs{ Project: pulumi.Any(google_cloudfunctions_function.Function.Project), Region: pulumi.Any(google_cloudfunctions_function.Function.Region), CloudFunction: pulumi.Any(google_cloudfunctions_function.Function.Name), Role: pulumi.String("roles/viewer"), Members: pulumi.StringArray{ pulumi.String("user:jane@example.com"), }, }) if err != nil { return err } return nil }) }
```
## google\_cloudfunctions\_function\_iam\_member
```go package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/cloudfunctions" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := cloudfunctions.NewFunctionIamMember(ctx, "member", &cloudfunctions.FunctionIamMemberArgs{ Project: pulumi.Any(google_cloudfunctions_function.Function.Project), Region: pulumi.Any(google_cloudfunctions_function.Function.Region), CloudFunction: pulumi.Any(google_cloudfunctions_function.Function.Name), Role: pulumi.String("roles/viewer"), Member: pulumi.String("user:jane@example.com"), }) if err != nil { return err } return nil }) }
```
## Import
For all import syntaxes, the "resource in question" can take any of the following forms* projects/{{project}}/locations/{{region}}/functions/{{cloud_function}} * {{project}}/{{region}}/{{cloud_function}} * {{region}}/{{cloud_function}} * {{cloud_function}} Any variables not passed in the import command will be taken from the provider configuration. Cloud Functions cloudfunction IAM resources can be imported using the resource identifiers, role, and member. IAM member imports use space-delimited identifiersthe resource in question, the role, and the member identity, e.g.
```sh
$ pulumi import gcp:cloudfunctions/functionIamPolicy:FunctionIamPolicy editor "projects/{{project}}/locations/{{region}}/functions/{{cloud_function}} roles/viewer user:jane@example.com"
```
IAM binding imports use space-delimited identifiersthe resource in question and the role, e.g.
```sh
$ pulumi import gcp:cloudfunctions/functionIamPolicy:FunctionIamPolicy editor "projects/{{project}}/locations/{{region}}/functions/{{cloud_function}} roles/viewer"
```
IAM policy imports use the identifier of the resource in question, e.g.
```sh
$ pulumi import gcp:cloudfunctions/functionIamPolicy:FunctionIamPolicy editor projects/{{project}}/locations/{{region}}/functions/{{cloud_function}}
```
-> **Custom Roles**If you're importing a IAM resource with a custom role, make sure to use the
full name of the custom role, e.g. `[projects/my-project|organizations/my-org]/roles/my-custom-role`.
func GetFunctionIamPolicy ¶
func GetFunctionIamPolicy(ctx *pulumi.Context, name string, id pulumi.IDInput, state *FunctionIamPolicyState, opts ...pulumi.ResourceOption) (*FunctionIamPolicy, error)
GetFunctionIamPolicy gets an existing FunctionIamPolicy resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewFunctionIamPolicy ¶
func NewFunctionIamPolicy(ctx *pulumi.Context, name string, args *FunctionIamPolicyArgs, opts ...pulumi.ResourceOption) (*FunctionIamPolicy, error)
NewFunctionIamPolicy registers a new resource with the given unique name, arguments, and options.
func (*FunctionIamPolicy) ElementType ¶
func (*FunctionIamPolicy) ElementType() reflect.Type
func (*FunctionIamPolicy) ToFunctionIamPolicyOutput ¶
func (i *FunctionIamPolicy) ToFunctionIamPolicyOutput() FunctionIamPolicyOutput
func (*FunctionIamPolicy) ToFunctionIamPolicyOutputWithContext ¶
func (i *FunctionIamPolicy) ToFunctionIamPolicyOutputWithContext(ctx context.Context) FunctionIamPolicyOutput
type FunctionIamPolicyArgs ¶
type FunctionIamPolicyArgs struct { // Used to find the parent resource to bind the IAM policy to CloudFunction pulumi.StringInput // The policy data generated by // a `organizations.getIAMPolicy` data source. PolicyData pulumi.StringInput // The ID of the project in which the resource belongs. // If it is not provided, the project will be parsed from the identifier of the parent resource. If no project is provided in the parent identifier and no project is specified, the provider project is used. Project pulumi.StringPtrInput // The location of this cloud function. Used to find the parent resource to bind the IAM policy to. If not specified, // the value will be parsed from the identifier of the parent resource. If no region is provided in the parent identifier and no // region is specified, it is taken from the provider configuration. Region pulumi.StringPtrInput }
The set of arguments for constructing a FunctionIamPolicy resource.
func (FunctionIamPolicyArgs) ElementType ¶
func (FunctionIamPolicyArgs) ElementType() reflect.Type
type FunctionIamPolicyArray ¶
type FunctionIamPolicyArray []FunctionIamPolicyInput
func (FunctionIamPolicyArray) ElementType ¶
func (FunctionIamPolicyArray) ElementType() reflect.Type
func (FunctionIamPolicyArray) ToFunctionIamPolicyArrayOutput ¶
func (i FunctionIamPolicyArray) ToFunctionIamPolicyArrayOutput() FunctionIamPolicyArrayOutput
func (FunctionIamPolicyArray) ToFunctionIamPolicyArrayOutputWithContext ¶
func (i FunctionIamPolicyArray) ToFunctionIamPolicyArrayOutputWithContext(ctx context.Context) FunctionIamPolicyArrayOutput
type FunctionIamPolicyArrayInput ¶
type FunctionIamPolicyArrayInput interface { pulumi.Input ToFunctionIamPolicyArrayOutput() FunctionIamPolicyArrayOutput ToFunctionIamPolicyArrayOutputWithContext(context.Context) FunctionIamPolicyArrayOutput }
FunctionIamPolicyArrayInput is an input type that accepts FunctionIamPolicyArray and FunctionIamPolicyArrayOutput values. You can construct a concrete instance of `FunctionIamPolicyArrayInput` via:
FunctionIamPolicyArray{ FunctionIamPolicyArgs{...} }
type FunctionIamPolicyArrayOutput ¶
type FunctionIamPolicyArrayOutput struct{ *pulumi.OutputState }
func (FunctionIamPolicyArrayOutput) ElementType ¶
func (FunctionIamPolicyArrayOutput) ElementType() reflect.Type
func (FunctionIamPolicyArrayOutput) Index ¶
func (o FunctionIamPolicyArrayOutput) Index(i pulumi.IntInput) FunctionIamPolicyOutput
func (FunctionIamPolicyArrayOutput) ToFunctionIamPolicyArrayOutput ¶
func (o FunctionIamPolicyArrayOutput) ToFunctionIamPolicyArrayOutput() FunctionIamPolicyArrayOutput
func (FunctionIamPolicyArrayOutput) ToFunctionIamPolicyArrayOutputWithContext ¶
func (o FunctionIamPolicyArrayOutput) ToFunctionIamPolicyArrayOutputWithContext(ctx context.Context) FunctionIamPolicyArrayOutput
type FunctionIamPolicyInput ¶
type FunctionIamPolicyInput interface { pulumi.Input ToFunctionIamPolicyOutput() FunctionIamPolicyOutput ToFunctionIamPolicyOutputWithContext(ctx context.Context) FunctionIamPolicyOutput }
type FunctionIamPolicyMap ¶
type FunctionIamPolicyMap map[string]FunctionIamPolicyInput
func (FunctionIamPolicyMap) ElementType ¶
func (FunctionIamPolicyMap) ElementType() reflect.Type
func (FunctionIamPolicyMap) ToFunctionIamPolicyMapOutput ¶
func (i FunctionIamPolicyMap) ToFunctionIamPolicyMapOutput() FunctionIamPolicyMapOutput
func (FunctionIamPolicyMap) ToFunctionIamPolicyMapOutputWithContext ¶
func (i FunctionIamPolicyMap) ToFunctionIamPolicyMapOutputWithContext(ctx context.Context) FunctionIamPolicyMapOutput
type FunctionIamPolicyMapInput ¶
type FunctionIamPolicyMapInput interface { pulumi.Input ToFunctionIamPolicyMapOutput() FunctionIamPolicyMapOutput ToFunctionIamPolicyMapOutputWithContext(context.Context) FunctionIamPolicyMapOutput }
FunctionIamPolicyMapInput is an input type that accepts FunctionIamPolicyMap and FunctionIamPolicyMapOutput values. You can construct a concrete instance of `FunctionIamPolicyMapInput` via:
FunctionIamPolicyMap{ "key": FunctionIamPolicyArgs{...} }
type FunctionIamPolicyMapOutput ¶
type FunctionIamPolicyMapOutput struct{ *pulumi.OutputState }
func (FunctionIamPolicyMapOutput) ElementType ¶
func (FunctionIamPolicyMapOutput) ElementType() reflect.Type
func (FunctionIamPolicyMapOutput) MapIndex ¶
func (o FunctionIamPolicyMapOutput) MapIndex(k pulumi.StringInput) FunctionIamPolicyOutput
func (FunctionIamPolicyMapOutput) ToFunctionIamPolicyMapOutput ¶
func (o FunctionIamPolicyMapOutput) ToFunctionIamPolicyMapOutput() FunctionIamPolicyMapOutput
func (FunctionIamPolicyMapOutput) ToFunctionIamPolicyMapOutputWithContext ¶
func (o FunctionIamPolicyMapOutput) ToFunctionIamPolicyMapOutputWithContext(ctx context.Context) FunctionIamPolicyMapOutput
type FunctionIamPolicyOutput ¶
type FunctionIamPolicyOutput struct{ *pulumi.OutputState }
func (FunctionIamPolicyOutput) ElementType ¶
func (FunctionIamPolicyOutput) ElementType() reflect.Type
func (FunctionIamPolicyOutput) ToFunctionIamPolicyOutput ¶
func (o FunctionIamPolicyOutput) ToFunctionIamPolicyOutput() FunctionIamPolicyOutput
func (FunctionIamPolicyOutput) ToFunctionIamPolicyOutputWithContext ¶
func (o FunctionIamPolicyOutput) ToFunctionIamPolicyOutputWithContext(ctx context.Context) FunctionIamPolicyOutput
type FunctionIamPolicyState ¶
type FunctionIamPolicyState struct { // Used to find the parent resource to bind the IAM policy to CloudFunction pulumi.StringPtrInput // (Computed) The etag of the IAM policy. Etag pulumi.StringPtrInput // The policy data generated by // a `organizations.getIAMPolicy` data source. PolicyData pulumi.StringPtrInput // The ID of the project in which the resource belongs. // If it is not provided, the project will be parsed from the identifier of the parent resource. If no project is provided in the parent identifier and no project is specified, the provider project is used. Project pulumi.StringPtrInput // The location of this cloud function. Used to find the parent resource to bind the IAM policy to. If not specified, // the value will be parsed from the identifier of the parent resource. If no region is provided in the parent identifier and no // region is specified, it is taken from the provider configuration. Region pulumi.StringPtrInput }
func (FunctionIamPolicyState) ElementType ¶
func (FunctionIamPolicyState) ElementType() reflect.Type
type FunctionInput ¶
type FunctionInput interface { pulumi.Input ToFunctionOutput() FunctionOutput ToFunctionOutputWithContext(ctx context.Context) FunctionOutput }
type FunctionMap ¶
type FunctionMap map[string]FunctionInput
func (FunctionMap) ElementType ¶
func (FunctionMap) ElementType() reflect.Type
func (FunctionMap) ToFunctionMapOutput ¶
func (i FunctionMap) ToFunctionMapOutput() FunctionMapOutput
func (FunctionMap) ToFunctionMapOutputWithContext ¶
func (i FunctionMap) ToFunctionMapOutputWithContext(ctx context.Context) FunctionMapOutput
type FunctionMapInput ¶
type FunctionMapInput interface { pulumi.Input ToFunctionMapOutput() FunctionMapOutput ToFunctionMapOutputWithContext(context.Context) FunctionMapOutput }
FunctionMapInput is an input type that accepts FunctionMap and FunctionMapOutput values. You can construct a concrete instance of `FunctionMapInput` via:
FunctionMap{ "key": FunctionArgs{...} }
type FunctionMapOutput ¶
type FunctionMapOutput struct{ *pulumi.OutputState }
func (FunctionMapOutput) ElementType ¶
func (FunctionMapOutput) ElementType() reflect.Type
func (FunctionMapOutput) MapIndex ¶
func (o FunctionMapOutput) MapIndex(k pulumi.StringInput) FunctionOutput
func (FunctionMapOutput) ToFunctionMapOutput ¶
func (o FunctionMapOutput) ToFunctionMapOutput() FunctionMapOutput
func (FunctionMapOutput) ToFunctionMapOutputWithContext ¶
func (o FunctionMapOutput) ToFunctionMapOutputWithContext(ctx context.Context) FunctionMapOutput
type FunctionOutput ¶
type FunctionOutput struct{ *pulumi.OutputState }
func (FunctionOutput) ElementType ¶
func (FunctionOutput) ElementType() reflect.Type
func (FunctionOutput) ToFunctionOutput ¶
func (o FunctionOutput) ToFunctionOutput() FunctionOutput
func (FunctionOutput) ToFunctionOutputWithContext ¶
func (o FunctionOutput) ToFunctionOutputWithContext(ctx context.Context) FunctionOutput
type FunctionSecretEnvironmentVariable ¶ added in v6.12.0
type FunctionSecretEnvironmentVariable struct { // Name of the environment variable. Key string `pulumi:"key"` // Project identifier (due to a known limitation, only project number is supported by this field) of the project that contains the secret. If not set, it will be populated with the function's project, assuming that the secret exists in the same project as of the function. ProjectId *string `pulumi:"projectId"` // ID of the secret in secret manager (not the full resource name). Secret string `pulumi:"secret"` // Version of the secret (version number or the string "latest"). It is preferable to use "latest" version with secret volumes as secret value changes are reflected immediately. Version string `pulumi:"version"` }
type FunctionSecretEnvironmentVariableArgs ¶ added in v6.12.0
type FunctionSecretEnvironmentVariableArgs struct { // Name of the environment variable. Key pulumi.StringInput `pulumi:"key"` // Project identifier (due to a known limitation, only project number is supported by this field) of the project that contains the secret. If not set, it will be populated with the function's project, assuming that the secret exists in the same project as of the function. ProjectId pulumi.StringPtrInput `pulumi:"projectId"` // ID of the secret in secret manager (not the full resource name). Secret pulumi.StringInput `pulumi:"secret"` // Version of the secret (version number or the string "latest"). It is preferable to use "latest" version with secret volumes as secret value changes are reflected immediately. Version pulumi.StringInput `pulumi:"version"` }
func (FunctionSecretEnvironmentVariableArgs) ElementType ¶ added in v6.12.0
func (FunctionSecretEnvironmentVariableArgs) ElementType() reflect.Type
func (FunctionSecretEnvironmentVariableArgs) ToFunctionSecretEnvironmentVariableOutput ¶ added in v6.12.0
func (i FunctionSecretEnvironmentVariableArgs) ToFunctionSecretEnvironmentVariableOutput() FunctionSecretEnvironmentVariableOutput
func (FunctionSecretEnvironmentVariableArgs) ToFunctionSecretEnvironmentVariableOutputWithContext ¶ added in v6.12.0
func (i FunctionSecretEnvironmentVariableArgs) ToFunctionSecretEnvironmentVariableOutputWithContext(ctx context.Context) FunctionSecretEnvironmentVariableOutput
type FunctionSecretEnvironmentVariableArray ¶ added in v6.12.0
type FunctionSecretEnvironmentVariableArray []FunctionSecretEnvironmentVariableInput
func (FunctionSecretEnvironmentVariableArray) ElementType ¶ added in v6.12.0
func (FunctionSecretEnvironmentVariableArray) ElementType() reflect.Type
func (FunctionSecretEnvironmentVariableArray) ToFunctionSecretEnvironmentVariableArrayOutput ¶ added in v6.12.0
func (i FunctionSecretEnvironmentVariableArray) ToFunctionSecretEnvironmentVariableArrayOutput() FunctionSecretEnvironmentVariableArrayOutput
func (FunctionSecretEnvironmentVariableArray) ToFunctionSecretEnvironmentVariableArrayOutputWithContext ¶ added in v6.12.0
func (i FunctionSecretEnvironmentVariableArray) ToFunctionSecretEnvironmentVariableArrayOutputWithContext(ctx context.Context) FunctionSecretEnvironmentVariableArrayOutput
type FunctionSecretEnvironmentVariableArrayInput ¶ added in v6.12.0
type FunctionSecretEnvironmentVariableArrayInput interface { pulumi.Input ToFunctionSecretEnvironmentVariableArrayOutput() FunctionSecretEnvironmentVariableArrayOutput ToFunctionSecretEnvironmentVariableArrayOutputWithContext(context.Context) FunctionSecretEnvironmentVariableArrayOutput }
FunctionSecretEnvironmentVariableArrayInput is an input type that accepts FunctionSecretEnvironmentVariableArray and FunctionSecretEnvironmentVariableArrayOutput values. You can construct a concrete instance of `FunctionSecretEnvironmentVariableArrayInput` via:
FunctionSecretEnvironmentVariableArray{ FunctionSecretEnvironmentVariableArgs{...} }
type FunctionSecretEnvironmentVariableArrayOutput ¶ added in v6.12.0
type FunctionSecretEnvironmentVariableArrayOutput struct{ *pulumi.OutputState }
func (FunctionSecretEnvironmentVariableArrayOutput) ElementType ¶ added in v6.12.0
func (FunctionSecretEnvironmentVariableArrayOutput) ElementType() reflect.Type
func (FunctionSecretEnvironmentVariableArrayOutput) ToFunctionSecretEnvironmentVariableArrayOutput ¶ added in v6.12.0
func (o FunctionSecretEnvironmentVariableArrayOutput) ToFunctionSecretEnvironmentVariableArrayOutput() FunctionSecretEnvironmentVariableArrayOutput
func (FunctionSecretEnvironmentVariableArrayOutput) ToFunctionSecretEnvironmentVariableArrayOutputWithContext ¶ added in v6.12.0
func (o FunctionSecretEnvironmentVariableArrayOutput) ToFunctionSecretEnvironmentVariableArrayOutputWithContext(ctx context.Context) FunctionSecretEnvironmentVariableArrayOutput
type FunctionSecretEnvironmentVariableInput ¶ added in v6.12.0
type FunctionSecretEnvironmentVariableInput interface { pulumi.Input ToFunctionSecretEnvironmentVariableOutput() FunctionSecretEnvironmentVariableOutput ToFunctionSecretEnvironmentVariableOutputWithContext(context.Context) FunctionSecretEnvironmentVariableOutput }
FunctionSecretEnvironmentVariableInput is an input type that accepts FunctionSecretEnvironmentVariableArgs and FunctionSecretEnvironmentVariableOutput values. You can construct a concrete instance of `FunctionSecretEnvironmentVariableInput` via:
FunctionSecretEnvironmentVariableArgs{...}
type FunctionSecretEnvironmentVariableOutput ¶ added in v6.12.0
type FunctionSecretEnvironmentVariableOutput struct{ *pulumi.OutputState }
func (FunctionSecretEnvironmentVariableOutput) ElementType ¶ added in v6.12.0
func (FunctionSecretEnvironmentVariableOutput) ElementType() reflect.Type
func (FunctionSecretEnvironmentVariableOutput) Key ¶ added in v6.12.0
func (o FunctionSecretEnvironmentVariableOutput) Key() pulumi.StringOutput
Name of the environment variable.
func (FunctionSecretEnvironmentVariableOutput) ProjectId ¶ added in v6.12.0
func (o FunctionSecretEnvironmentVariableOutput) ProjectId() pulumi.StringPtrOutput
Project identifier (due to a known limitation, only project number is supported by this field) of the project that contains the secret. If not set, it will be populated with the function's project, assuming that the secret exists in the same project as of the function.
func (FunctionSecretEnvironmentVariableOutput) Secret ¶ added in v6.12.0
func (o FunctionSecretEnvironmentVariableOutput) Secret() pulumi.StringOutput
ID of the secret in secret manager (not the full resource name).
func (FunctionSecretEnvironmentVariableOutput) ToFunctionSecretEnvironmentVariableOutput ¶ added in v6.12.0
func (o FunctionSecretEnvironmentVariableOutput) ToFunctionSecretEnvironmentVariableOutput() FunctionSecretEnvironmentVariableOutput
func (FunctionSecretEnvironmentVariableOutput) ToFunctionSecretEnvironmentVariableOutputWithContext ¶ added in v6.12.0
func (o FunctionSecretEnvironmentVariableOutput) ToFunctionSecretEnvironmentVariableOutputWithContext(ctx context.Context) FunctionSecretEnvironmentVariableOutput
func (FunctionSecretEnvironmentVariableOutput) Version ¶ added in v6.12.0
func (o FunctionSecretEnvironmentVariableOutput) Version() pulumi.StringOutput
Version of the secret (version number or the string "latest"). It is preferable to use "latest" version with secret volumes as secret value changes are reflected immediately.
type FunctionSecretVolume ¶ added in v6.12.0
type FunctionSecretVolume struct { // The path within the container to mount the secret volume. For example, setting the mountPath as "/etc/secrets" would mount the secret value files under the "/etc/secrets" directory. This directory will also be completely shadowed and unavailable to mount any other secrets. Recommended mount paths: "/etc/secrets" Restricted mount paths: "/cloudsql", "/dev/log", "/pod", "/proc", "/var/log". MountPath string `pulumi:"mountPath"` // Project identifier (due to a known limitation, only project number is supported by this field) of the project that contains the secret. If not set, it will be populated with the function's project, assuming that the secret exists in the same project as of the function. ProjectId *string `pulumi:"projectId"` // ID of the secret in secret manager (not the full resource name). Secret string `pulumi:"secret"` // List of secret versions to mount for this secret. If empty, the "latest" version of the secret will be made available in a file named after the secret under the mount point. Structure is documented below. Versions []FunctionSecretVolumeVersion `pulumi:"versions"` }
type FunctionSecretVolumeArgs ¶ added in v6.12.0
type FunctionSecretVolumeArgs struct { // The path within the container to mount the secret volume. For example, setting the mountPath as "/etc/secrets" would mount the secret value files under the "/etc/secrets" directory. This directory will also be completely shadowed and unavailable to mount any other secrets. Recommended mount paths: "/etc/secrets" Restricted mount paths: "/cloudsql", "/dev/log", "/pod", "/proc", "/var/log". MountPath pulumi.StringInput `pulumi:"mountPath"` // Project identifier (due to a known limitation, only project number is supported by this field) of the project that contains the secret. If not set, it will be populated with the function's project, assuming that the secret exists in the same project as of the function. ProjectId pulumi.StringPtrInput `pulumi:"projectId"` // ID of the secret in secret manager (not the full resource name). Secret pulumi.StringInput `pulumi:"secret"` // List of secret versions to mount for this secret. If empty, the "latest" version of the secret will be made available in a file named after the secret under the mount point. Structure is documented below. Versions FunctionSecretVolumeVersionArrayInput `pulumi:"versions"` }
func (FunctionSecretVolumeArgs) ElementType ¶ added in v6.12.0
func (FunctionSecretVolumeArgs) ElementType() reflect.Type
func (FunctionSecretVolumeArgs) ToFunctionSecretVolumeOutput ¶ added in v6.12.0
func (i FunctionSecretVolumeArgs) ToFunctionSecretVolumeOutput() FunctionSecretVolumeOutput
func (FunctionSecretVolumeArgs) ToFunctionSecretVolumeOutputWithContext ¶ added in v6.12.0
func (i FunctionSecretVolumeArgs) ToFunctionSecretVolumeOutputWithContext(ctx context.Context) FunctionSecretVolumeOutput
type FunctionSecretVolumeArray ¶ added in v6.12.0
type FunctionSecretVolumeArray []FunctionSecretVolumeInput
func (FunctionSecretVolumeArray) ElementType ¶ added in v6.12.0
func (FunctionSecretVolumeArray) ElementType() reflect.Type
func (FunctionSecretVolumeArray) ToFunctionSecretVolumeArrayOutput ¶ added in v6.12.0
func (i FunctionSecretVolumeArray) ToFunctionSecretVolumeArrayOutput() FunctionSecretVolumeArrayOutput
func (FunctionSecretVolumeArray) ToFunctionSecretVolumeArrayOutputWithContext ¶ added in v6.12.0
func (i FunctionSecretVolumeArray) ToFunctionSecretVolumeArrayOutputWithContext(ctx context.Context) FunctionSecretVolumeArrayOutput
type FunctionSecretVolumeArrayInput ¶ added in v6.12.0
type FunctionSecretVolumeArrayInput interface { pulumi.Input ToFunctionSecretVolumeArrayOutput() FunctionSecretVolumeArrayOutput ToFunctionSecretVolumeArrayOutputWithContext(context.Context) FunctionSecretVolumeArrayOutput }
FunctionSecretVolumeArrayInput is an input type that accepts FunctionSecretVolumeArray and FunctionSecretVolumeArrayOutput values. You can construct a concrete instance of `FunctionSecretVolumeArrayInput` via:
FunctionSecretVolumeArray{ FunctionSecretVolumeArgs{...} }
type FunctionSecretVolumeArrayOutput ¶ added in v6.12.0
type FunctionSecretVolumeArrayOutput struct{ *pulumi.OutputState }
func (FunctionSecretVolumeArrayOutput) ElementType ¶ added in v6.12.0
func (FunctionSecretVolumeArrayOutput) ElementType() reflect.Type
func (FunctionSecretVolumeArrayOutput) Index ¶ added in v6.12.0
func (o FunctionSecretVolumeArrayOutput) Index(i pulumi.IntInput) FunctionSecretVolumeOutput
func (FunctionSecretVolumeArrayOutput) ToFunctionSecretVolumeArrayOutput ¶ added in v6.12.0
func (o FunctionSecretVolumeArrayOutput) ToFunctionSecretVolumeArrayOutput() FunctionSecretVolumeArrayOutput
func (FunctionSecretVolumeArrayOutput) ToFunctionSecretVolumeArrayOutputWithContext ¶ added in v6.12.0
func (o FunctionSecretVolumeArrayOutput) ToFunctionSecretVolumeArrayOutputWithContext(ctx context.Context) FunctionSecretVolumeArrayOutput
type FunctionSecretVolumeInput ¶ added in v6.12.0
type FunctionSecretVolumeInput interface { pulumi.Input ToFunctionSecretVolumeOutput() FunctionSecretVolumeOutput ToFunctionSecretVolumeOutputWithContext(context.Context) FunctionSecretVolumeOutput }
FunctionSecretVolumeInput is an input type that accepts FunctionSecretVolumeArgs and FunctionSecretVolumeOutput values. You can construct a concrete instance of `FunctionSecretVolumeInput` via:
FunctionSecretVolumeArgs{...}
type FunctionSecretVolumeOutput ¶ added in v6.12.0
type FunctionSecretVolumeOutput struct{ *pulumi.OutputState }
func (FunctionSecretVolumeOutput) ElementType ¶ added in v6.12.0
func (FunctionSecretVolumeOutput) ElementType() reflect.Type
func (FunctionSecretVolumeOutput) MountPath ¶ added in v6.12.0
func (o FunctionSecretVolumeOutput) MountPath() pulumi.StringOutput
The path within the container to mount the secret volume. For example, setting the mountPath as "/etc/secrets" would mount the secret value files under the "/etc/secrets" directory. This directory will also be completely shadowed and unavailable to mount any other secrets. Recommended mount paths: "/etc/secrets" Restricted mount paths: "/cloudsql", "/dev/log", "/pod", "/proc", "/var/log".
func (FunctionSecretVolumeOutput) ProjectId ¶ added in v6.12.0
func (o FunctionSecretVolumeOutput) ProjectId() pulumi.StringPtrOutput
Project identifier (due to a known limitation, only project number is supported by this field) of the project that contains the secret. If not set, it will be populated with the function's project, assuming that the secret exists in the same project as of the function.
func (FunctionSecretVolumeOutput) Secret ¶ added in v6.12.0
func (o FunctionSecretVolumeOutput) Secret() pulumi.StringOutput
ID of the secret in secret manager (not the full resource name).
func (FunctionSecretVolumeOutput) ToFunctionSecretVolumeOutput ¶ added in v6.12.0
func (o FunctionSecretVolumeOutput) ToFunctionSecretVolumeOutput() FunctionSecretVolumeOutput
func (FunctionSecretVolumeOutput) ToFunctionSecretVolumeOutputWithContext ¶ added in v6.12.0
func (o FunctionSecretVolumeOutput) ToFunctionSecretVolumeOutputWithContext(ctx context.Context) FunctionSecretVolumeOutput
func (FunctionSecretVolumeOutput) Versions ¶ added in v6.12.0
func (o FunctionSecretVolumeOutput) Versions() FunctionSecretVolumeVersionArrayOutput
List of secret versions to mount for this secret. If empty, the "latest" version of the secret will be made available in a file named after the secret under the mount point. Structure is documented below.
type FunctionSecretVolumeVersion ¶ added in v6.12.0
type FunctionSecretVolumeVersion struct { // Relative path of the file under the mount path where the secret value for this version will be fetched and made available. For example, setting the mountPath as "/etc/secrets" and path as "/secret_foo" would mount the secret value file at "/etc/secrets/secret_foo". Path string `pulumi:"path"` // Version of the secret (version number or the string "latest"). It is preferable to use "latest" version with secret volumes as secret value changes are reflected immediately. Version string `pulumi:"version"` }
type FunctionSecretVolumeVersionArgs ¶ added in v6.12.0
type FunctionSecretVolumeVersionArgs struct { // Relative path of the file under the mount path where the secret value for this version will be fetched and made available. For example, setting the mountPath as "/etc/secrets" and path as "/secret_foo" would mount the secret value file at "/etc/secrets/secret_foo". Path pulumi.StringInput `pulumi:"path"` // Version of the secret (version number or the string "latest"). It is preferable to use "latest" version with secret volumes as secret value changes are reflected immediately. Version pulumi.StringInput `pulumi:"version"` }
func (FunctionSecretVolumeVersionArgs) ElementType ¶ added in v6.12.0
func (FunctionSecretVolumeVersionArgs) ElementType() reflect.Type
func (FunctionSecretVolumeVersionArgs) ToFunctionSecretVolumeVersionOutput ¶ added in v6.12.0
func (i FunctionSecretVolumeVersionArgs) ToFunctionSecretVolumeVersionOutput() FunctionSecretVolumeVersionOutput
func (FunctionSecretVolumeVersionArgs) ToFunctionSecretVolumeVersionOutputWithContext ¶ added in v6.12.0
func (i FunctionSecretVolumeVersionArgs) ToFunctionSecretVolumeVersionOutputWithContext(ctx context.Context) FunctionSecretVolumeVersionOutput
type FunctionSecretVolumeVersionArray ¶ added in v6.12.0
type FunctionSecretVolumeVersionArray []FunctionSecretVolumeVersionInput
func (FunctionSecretVolumeVersionArray) ElementType ¶ added in v6.12.0
func (FunctionSecretVolumeVersionArray) ElementType() reflect.Type
func (FunctionSecretVolumeVersionArray) ToFunctionSecretVolumeVersionArrayOutput ¶ added in v6.12.0
func (i FunctionSecretVolumeVersionArray) ToFunctionSecretVolumeVersionArrayOutput() FunctionSecretVolumeVersionArrayOutput
func (FunctionSecretVolumeVersionArray) ToFunctionSecretVolumeVersionArrayOutputWithContext ¶ added in v6.12.0
func (i FunctionSecretVolumeVersionArray) ToFunctionSecretVolumeVersionArrayOutputWithContext(ctx context.Context) FunctionSecretVolumeVersionArrayOutput
type FunctionSecretVolumeVersionArrayInput ¶ added in v6.12.0
type FunctionSecretVolumeVersionArrayInput interface { pulumi.Input ToFunctionSecretVolumeVersionArrayOutput() FunctionSecretVolumeVersionArrayOutput ToFunctionSecretVolumeVersionArrayOutputWithContext(context.Context) FunctionSecretVolumeVersionArrayOutput }
FunctionSecretVolumeVersionArrayInput is an input type that accepts FunctionSecretVolumeVersionArray and FunctionSecretVolumeVersionArrayOutput values. You can construct a concrete instance of `FunctionSecretVolumeVersionArrayInput` via:
FunctionSecretVolumeVersionArray{ FunctionSecretVolumeVersionArgs{...} }
type FunctionSecretVolumeVersionArrayOutput ¶ added in v6.12.0
type FunctionSecretVolumeVersionArrayOutput struct{ *pulumi.OutputState }
func (FunctionSecretVolumeVersionArrayOutput) ElementType ¶ added in v6.12.0
func (FunctionSecretVolumeVersionArrayOutput) ElementType() reflect.Type
func (FunctionSecretVolumeVersionArrayOutput) ToFunctionSecretVolumeVersionArrayOutput ¶ added in v6.12.0
func (o FunctionSecretVolumeVersionArrayOutput) ToFunctionSecretVolumeVersionArrayOutput() FunctionSecretVolumeVersionArrayOutput
func (FunctionSecretVolumeVersionArrayOutput) ToFunctionSecretVolumeVersionArrayOutputWithContext ¶ added in v6.12.0
func (o FunctionSecretVolumeVersionArrayOutput) ToFunctionSecretVolumeVersionArrayOutputWithContext(ctx context.Context) FunctionSecretVolumeVersionArrayOutput
type FunctionSecretVolumeVersionInput ¶ added in v6.12.0
type FunctionSecretVolumeVersionInput interface { pulumi.Input ToFunctionSecretVolumeVersionOutput() FunctionSecretVolumeVersionOutput ToFunctionSecretVolumeVersionOutputWithContext(context.Context) FunctionSecretVolumeVersionOutput }
FunctionSecretVolumeVersionInput is an input type that accepts FunctionSecretVolumeVersionArgs and FunctionSecretVolumeVersionOutput values. You can construct a concrete instance of `FunctionSecretVolumeVersionInput` via:
FunctionSecretVolumeVersionArgs{...}
type FunctionSecretVolumeVersionOutput ¶ added in v6.12.0
type FunctionSecretVolumeVersionOutput struct{ *pulumi.OutputState }
func (FunctionSecretVolumeVersionOutput) ElementType ¶ added in v6.12.0
func (FunctionSecretVolumeVersionOutput) ElementType() reflect.Type
func (FunctionSecretVolumeVersionOutput) Path ¶ added in v6.12.0
func (o FunctionSecretVolumeVersionOutput) Path() pulumi.StringOutput
Relative path of the file under the mount path where the secret value for this version will be fetched and made available. For example, setting the mountPath as "/etc/secrets" and path as "/secret_foo" would mount the secret value file at "/etc/secrets/secret_foo".
func (FunctionSecretVolumeVersionOutput) ToFunctionSecretVolumeVersionOutput ¶ added in v6.12.0
func (o FunctionSecretVolumeVersionOutput) ToFunctionSecretVolumeVersionOutput() FunctionSecretVolumeVersionOutput
func (FunctionSecretVolumeVersionOutput) ToFunctionSecretVolumeVersionOutputWithContext ¶ added in v6.12.0
func (o FunctionSecretVolumeVersionOutput) ToFunctionSecretVolumeVersionOutputWithContext(ctx context.Context) FunctionSecretVolumeVersionOutput
func (FunctionSecretVolumeVersionOutput) Version ¶ added in v6.12.0
func (o FunctionSecretVolumeVersionOutput) Version() pulumi.StringOutput
Version of the secret (version number or the string "latest"). It is preferable to use "latest" version with secret volumes as secret value changes are reflected immediately.
type FunctionSourceRepositoryArgs ¶
type FunctionSourceRepositoryArgs struct { DeployedUrl pulumi.StringPtrInput `pulumi:"deployedUrl"` // The URL pointing to the hosted repository where the function is defined. There are supported Cloud Source Repository URLs in the following formats: Url pulumi.StringInput `pulumi:"url"` }
func (FunctionSourceRepositoryArgs) ElementType ¶
func (FunctionSourceRepositoryArgs) ElementType() reflect.Type
func (FunctionSourceRepositoryArgs) ToFunctionSourceRepositoryOutput ¶
func (i FunctionSourceRepositoryArgs) ToFunctionSourceRepositoryOutput() FunctionSourceRepositoryOutput
func (FunctionSourceRepositoryArgs) ToFunctionSourceRepositoryOutputWithContext ¶
func (i FunctionSourceRepositoryArgs) ToFunctionSourceRepositoryOutputWithContext(ctx context.Context) FunctionSourceRepositoryOutput
func (FunctionSourceRepositoryArgs) ToFunctionSourceRepositoryPtrOutput ¶
func (i FunctionSourceRepositoryArgs) ToFunctionSourceRepositoryPtrOutput() FunctionSourceRepositoryPtrOutput
func (FunctionSourceRepositoryArgs) ToFunctionSourceRepositoryPtrOutputWithContext ¶
func (i FunctionSourceRepositoryArgs) ToFunctionSourceRepositoryPtrOutputWithContext(ctx context.Context) FunctionSourceRepositoryPtrOutput
type FunctionSourceRepositoryInput ¶
type FunctionSourceRepositoryInput interface { pulumi.Input ToFunctionSourceRepositoryOutput() FunctionSourceRepositoryOutput ToFunctionSourceRepositoryOutputWithContext(context.Context) FunctionSourceRepositoryOutput }
FunctionSourceRepositoryInput is an input type that accepts FunctionSourceRepositoryArgs and FunctionSourceRepositoryOutput values. You can construct a concrete instance of `FunctionSourceRepositoryInput` via:
FunctionSourceRepositoryArgs{...}
type FunctionSourceRepositoryOutput ¶
type FunctionSourceRepositoryOutput struct{ *pulumi.OutputState }
func (FunctionSourceRepositoryOutput) DeployedUrl ¶
func (o FunctionSourceRepositoryOutput) DeployedUrl() pulumi.StringPtrOutput
func (FunctionSourceRepositoryOutput) ElementType ¶
func (FunctionSourceRepositoryOutput) ElementType() reflect.Type
func (FunctionSourceRepositoryOutput) ToFunctionSourceRepositoryOutput ¶
func (o FunctionSourceRepositoryOutput) ToFunctionSourceRepositoryOutput() FunctionSourceRepositoryOutput
func (FunctionSourceRepositoryOutput) ToFunctionSourceRepositoryOutputWithContext ¶
func (o FunctionSourceRepositoryOutput) ToFunctionSourceRepositoryOutputWithContext(ctx context.Context) FunctionSourceRepositoryOutput
func (FunctionSourceRepositoryOutput) ToFunctionSourceRepositoryPtrOutput ¶
func (o FunctionSourceRepositoryOutput) ToFunctionSourceRepositoryPtrOutput() FunctionSourceRepositoryPtrOutput
func (FunctionSourceRepositoryOutput) ToFunctionSourceRepositoryPtrOutputWithContext ¶
func (o FunctionSourceRepositoryOutput) ToFunctionSourceRepositoryPtrOutputWithContext(ctx context.Context) FunctionSourceRepositoryPtrOutput
func (FunctionSourceRepositoryOutput) Url ¶
func (o FunctionSourceRepositoryOutput) Url() pulumi.StringOutput
The URL pointing to the hosted repository where the function is defined. There are supported Cloud Source Repository URLs in the following formats:
type FunctionSourceRepositoryPtrInput ¶
type FunctionSourceRepositoryPtrInput interface { pulumi.Input ToFunctionSourceRepositoryPtrOutput() FunctionSourceRepositoryPtrOutput ToFunctionSourceRepositoryPtrOutputWithContext(context.Context) FunctionSourceRepositoryPtrOutput }
FunctionSourceRepositoryPtrInput is an input type that accepts FunctionSourceRepositoryArgs, FunctionSourceRepositoryPtr and FunctionSourceRepositoryPtrOutput values. You can construct a concrete instance of `FunctionSourceRepositoryPtrInput` via:
FunctionSourceRepositoryArgs{...} or: nil
func FunctionSourceRepositoryPtr ¶
func FunctionSourceRepositoryPtr(v *FunctionSourceRepositoryArgs) FunctionSourceRepositoryPtrInput
type FunctionSourceRepositoryPtrOutput ¶
type FunctionSourceRepositoryPtrOutput struct{ *pulumi.OutputState }
func (FunctionSourceRepositoryPtrOutput) DeployedUrl ¶
func (o FunctionSourceRepositoryPtrOutput) DeployedUrl() pulumi.StringPtrOutput
func (FunctionSourceRepositoryPtrOutput) Elem ¶
func (o FunctionSourceRepositoryPtrOutput) Elem() FunctionSourceRepositoryOutput
func (FunctionSourceRepositoryPtrOutput) ElementType ¶
func (FunctionSourceRepositoryPtrOutput) ElementType() reflect.Type
func (FunctionSourceRepositoryPtrOutput) ToFunctionSourceRepositoryPtrOutput ¶
func (o FunctionSourceRepositoryPtrOutput) ToFunctionSourceRepositoryPtrOutput() FunctionSourceRepositoryPtrOutput
func (FunctionSourceRepositoryPtrOutput) ToFunctionSourceRepositoryPtrOutputWithContext ¶
func (o FunctionSourceRepositoryPtrOutput) ToFunctionSourceRepositoryPtrOutputWithContext(ctx context.Context) FunctionSourceRepositoryPtrOutput
func (FunctionSourceRepositoryPtrOutput) Url ¶
func (o FunctionSourceRepositoryPtrOutput) Url() pulumi.StringPtrOutput
The URL pointing to the hosted repository where the function is defined. There are supported Cloud Source Repository URLs in the following formats:
type FunctionState ¶
type FunctionState struct { // Memory (in MB), available to the function. Default value is `256`. Possible values include `128`, `256`, `512`, `1024`, etc. AvailableMemoryMb pulumi.IntPtrInput // A set of key/value environment variable pairs available during build time. BuildEnvironmentVariables pulumi.MapInput // Description of the function. Description pulumi.StringPtrInput // Name of the function that will be executed when the Google Cloud Function is triggered. EntryPoint pulumi.StringPtrInput // A set of key/value environment variable pairs to assign to the function. EnvironmentVariables pulumi.MapInput // A source that fires events in response to a condition in another service. Structure is documented below. Cannot be used with `triggerHttp`. EventTrigger FunctionEventTriggerPtrInput // URL which triggers function execution. Returned only if `triggerHttp` is used. HttpsTriggerUrl pulumi.StringPtrInput // String value that controls what traffic can reach the function. Allowed values are `ALLOW_ALL`, `ALLOW_INTERNAL_AND_GCLB` and `ALLOW_INTERNAL_ONLY`. Check [ingress documentation](https://cloud.google.com/functions/docs/networking/network-settings#ingress_settings) to see the impact of each settings value. Changes to this field will recreate the cloud function. IngressSettings pulumi.StringPtrInput // A set of key/value label pairs to assign to the function. Label keys must follow the requirements at https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements. Labels pulumi.MapInput // The limit on the maximum number of function instances that may coexist at a given time. MaxInstances pulumi.IntPtrInput // The limit on the minimum number of function instances that may coexist at a given time. MinInstances pulumi.IntPtrInput // A user-defined name of the function. Function names must be unique globally. Name pulumi.StringPtrInput // Project of the function. If it is not provided, the provider project is used. Project pulumi.StringPtrInput // Region of function. If it is not provided, the provider region is used. Region pulumi.StringPtrInput // The runtime in which the function is going to run. // Eg. `"nodejs10"`, `"nodejs12"`, `"nodejs14"`, `"python37"`, `"python38"`, `"python39"`, `"dotnet3"`, `"go113"`, `"java11"`, `"ruby27"`, etc. Check the [official doc](https://cloud.google.com/functions/docs/concepts/exec#runtimes) for the up-to-date list. Runtime pulumi.StringPtrInput // Secret environment variables configuration. Structure is documented below. SecretEnvironmentVariables FunctionSecretEnvironmentVariableArrayInput // Secret volumes configuration. Structure is documented below. SecretVolumes FunctionSecretVolumeArrayInput // If provided, the self-provided service account to run the function with. ServiceAccountEmail pulumi.StringPtrInput // The GCS bucket containing the zip archive which contains the function. SourceArchiveBucket pulumi.StringPtrInput // The source archive object (file) in archive bucket. SourceArchiveObject pulumi.StringPtrInput // Represents parameters related to source repository where a function is hosted. // Cannot be set alongside `sourceArchiveBucket` or `sourceArchiveObject`. Structure is documented below. SourceRepository FunctionSourceRepositoryPtrInput // Timeout (in seconds) for the function. Default value is 60 seconds. Cannot be more than 540 seconds. Timeout pulumi.IntPtrInput // Boolean variable. Any HTTP request (of a supported type) to the endpoint will trigger function execution. Supported HTTP request types are: POST, PUT, GET, DELETE, and OPTIONS. Endpoint is returned as `httpsTriggerUrl`. Cannot be used with `eventTrigger`. TriggerHttp pulumi.BoolPtrInput // The VPC Network Connector that this cloud function can connect to. It should be set up as fully-qualified URI. The format of this field is `projects/*/locations/*/connectors/*`. VpcConnector pulumi.StringPtrInput // The egress settings for the connector, controlling what traffic is diverted through it. Allowed values are `ALL_TRAFFIC` and `PRIVATE_RANGES_ONLY`. Defaults to `PRIVATE_RANGES_ONLY`. If unset, this field preserves the previously set value. VpcConnectorEgressSettings pulumi.StringPtrInput }
func (FunctionState) ElementType ¶
func (FunctionState) ElementType() reflect.Type
type GetFunctionEventTrigger ¶
type GetFunctionEventTrigger struct { // The type of event to observe. For example: `"google.storage.object.finalize"`. // See the documentation on [calling Cloud Functions](https://cloud.google.com/functions/docs/calling/) // for a full reference of accepted triggers. EventType string `pulumi:"eventType"` // Policy for failed executions. Structure is documented below. FailurePolicies []GetFunctionEventTriggerFailurePolicy `pulumi:"failurePolicies"` // The name of the resource whose events are being observed, for example, `"myBucket"` Resource string `pulumi:"resource"` }
type GetFunctionEventTriggerArgs ¶
type GetFunctionEventTriggerArgs struct { // The type of event to observe. For example: `"google.storage.object.finalize"`. // See the documentation on [calling Cloud Functions](https://cloud.google.com/functions/docs/calling/) // for a full reference of accepted triggers. EventType pulumi.StringInput `pulumi:"eventType"` // Policy for failed executions. Structure is documented below. FailurePolicies GetFunctionEventTriggerFailurePolicyArrayInput `pulumi:"failurePolicies"` // The name of the resource whose events are being observed, for example, `"myBucket"` Resource pulumi.StringInput `pulumi:"resource"` }
func (GetFunctionEventTriggerArgs) ElementType ¶
func (GetFunctionEventTriggerArgs) ElementType() reflect.Type
func (GetFunctionEventTriggerArgs) ToGetFunctionEventTriggerOutput ¶
func (i GetFunctionEventTriggerArgs) ToGetFunctionEventTriggerOutput() GetFunctionEventTriggerOutput
func (GetFunctionEventTriggerArgs) ToGetFunctionEventTriggerOutputWithContext ¶
func (i GetFunctionEventTriggerArgs) ToGetFunctionEventTriggerOutputWithContext(ctx context.Context) GetFunctionEventTriggerOutput
type GetFunctionEventTriggerArray ¶
type GetFunctionEventTriggerArray []GetFunctionEventTriggerInput
func (GetFunctionEventTriggerArray) ElementType ¶
func (GetFunctionEventTriggerArray) ElementType() reflect.Type
func (GetFunctionEventTriggerArray) ToGetFunctionEventTriggerArrayOutput ¶
func (i GetFunctionEventTriggerArray) ToGetFunctionEventTriggerArrayOutput() GetFunctionEventTriggerArrayOutput
func (GetFunctionEventTriggerArray) ToGetFunctionEventTriggerArrayOutputWithContext ¶
func (i GetFunctionEventTriggerArray) ToGetFunctionEventTriggerArrayOutputWithContext(ctx context.Context) GetFunctionEventTriggerArrayOutput
type GetFunctionEventTriggerArrayInput ¶
type GetFunctionEventTriggerArrayInput interface { pulumi.Input ToGetFunctionEventTriggerArrayOutput() GetFunctionEventTriggerArrayOutput ToGetFunctionEventTriggerArrayOutputWithContext(context.Context) GetFunctionEventTriggerArrayOutput }
GetFunctionEventTriggerArrayInput is an input type that accepts GetFunctionEventTriggerArray and GetFunctionEventTriggerArrayOutput values. You can construct a concrete instance of `GetFunctionEventTriggerArrayInput` via:
GetFunctionEventTriggerArray{ GetFunctionEventTriggerArgs{...} }
type GetFunctionEventTriggerArrayOutput ¶
type GetFunctionEventTriggerArrayOutput struct{ *pulumi.OutputState }
func (GetFunctionEventTriggerArrayOutput) ElementType ¶
func (GetFunctionEventTriggerArrayOutput) ElementType() reflect.Type
func (GetFunctionEventTriggerArrayOutput) Index ¶
func (o GetFunctionEventTriggerArrayOutput) Index(i pulumi.IntInput) GetFunctionEventTriggerOutput
func (GetFunctionEventTriggerArrayOutput) ToGetFunctionEventTriggerArrayOutput ¶
func (o GetFunctionEventTriggerArrayOutput) ToGetFunctionEventTriggerArrayOutput() GetFunctionEventTriggerArrayOutput
func (GetFunctionEventTriggerArrayOutput) ToGetFunctionEventTriggerArrayOutputWithContext ¶
func (o GetFunctionEventTriggerArrayOutput) ToGetFunctionEventTriggerArrayOutputWithContext(ctx context.Context) GetFunctionEventTriggerArrayOutput
type GetFunctionEventTriggerFailurePolicy ¶
type GetFunctionEventTriggerFailurePolicy struct { // Whether the function should be retried on failure. Retry bool `pulumi:"retry"` }
type GetFunctionEventTriggerFailurePolicyArgs ¶
type GetFunctionEventTriggerFailurePolicyArgs struct { // Whether the function should be retried on failure. Retry pulumi.BoolInput `pulumi:"retry"` }
func (GetFunctionEventTriggerFailurePolicyArgs) ElementType ¶
func (GetFunctionEventTriggerFailurePolicyArgs) ElementType() reflect.Type
func (GetFunctionEventTriggerFailurePolicyArgs) ToGetFunctionEventTriggerFailurePolicyOutput ¶
func (i GetFunctionEventTriggerFailurePolicyArgs) ToGetFunctionEventTriggerFailurePolicyOutput() GetFunctionEventTriggerFailurePolicyOutput
func (GetFunctionEventTriggerFailurePolicyArgs) ToGetFunctionEventTriggerFailurePolicyOutputWithContext ¶
func (i GetFunctionEventTriggerFailurePolicyArgs) ToGetFunctionEventTriggerFailurePolicyOutputWithContext(ctx context.Context) GetFunctionEventTriggerFailurePolicyOutput
type GetFunctionEventTriggerFailurePolicyArray ¶
type GetFunctionEventTriggerFailurePolicyArray []GetFunctionEventTriggerFailurePolicyInput
func (GetFunctionEventTriggerFailurePolicyArray) ElementType ¶
func (GetFunctionEventTriggerFailurePolicyArray) ElementType() reflect.Type
func (GetFunctionEventTriggerFailurePolicyArray) ToGetFunctionEventTriggerFailurePolicyArrayOutput ¶
func (i GetFunctionEventTriggerFailurePolicyArray) ToGetFunctionEventTriggerFailurePolicyArrayOutput() GetFunctionEventTriggerFailurePolicyArrayOutput
func (GetFunctionEventTriggerFailurePolicyArray) ToGetFunctionEventTriggerFailurePolicyArrayOutputWithContext ¶
func (i GetFunctionEventTriggerFailurePolicyArray) ToGetFunctionEventTriggerFailurePolicyArrayOutputWithContext(ctx context.Context) GetFunctionEventTriggerFailurePolicyArrayOutput
type GetFunctionEventTriggerFailurePolicyArrayInput ¶
type GetFunctionEventTriggerFailurePolicyArrayInput interface { pulumi.Input ToGetFunctionEventTriggerFailurePolicyArrayOutput() GetFunctionEventTriggerFailurePolicyArrayOutput ToGetFunctionEventTriggerFailurePolicyArrayOutputWithContext(context.Context) GetFunctionEventTriggerFailurePolicyArrayOutput }
GetFunctionEventTriggerFailurePolicyArrayInput is an input type that accepts GetFunctionEventTriggerFailurePolicyArray and GetFunctionEventTriggerFailurePolicyArrayOutput values. You can construct a concrete instance of `GetFunctionEventTriggerFailurePolicyArrayInput` via:
GetFunctionEventTriggerFailurePolicyArray{ GetFunctionEventTriggerFailurePolicyArgs{...} }
type GetFunctionEventTriggerFailurePolicyArrayOutput ¶
type GetFunctionEventTriggerFailurePolicyArrayOutput struct{ *pulumi.OutputState }
func (GetFunctionEventTriggerFailurePolicyArrayOutput) ElementType ¶
func (GetFunctionEventTriggerFailurePolicyArrayOutput) ElementType() reflect.Type
func (GetFunctionEventTriggerFailurePolicyArrayOutput) ToGetFunctionEventTriggerFailurePolicyArrayOutput ¶
func (o GetFunctionEventTriggerFailurePolicyArrayOutput) ToGetFunctionEventTriggerFailurePolicyArrayOutput() GetFunctionEventTriggerFailurePolicyArrayOutput
func (GetFunctionEventTriggerFailurePolicyArrayOutput) ToGetFunctionEventTriggerFailurePolicyArrayOutputWithContext ¶
func (o GetFunctionEventTriggerFailurePolicyArrayOutput) ToGetFunctionEventTriggerFailurePolicyArrayOutputWithContext(ctx context.Context) GetFunctionEventTriggerFailurePolicyArrayOutput
type GetFunctionEventTriggerFailurePolicyInput ¶
type GetFunctionEventTriggerFailurePolicyInput interface { pulumi.Input ToGetFunctionEventTriggerFailurePolicyOutput() GetFunctionEventTriggerFailurePolicyOutput ToGetFunctionEventTriggerFailurePolicyOutputWithContext(context.Context) GetFunctionEventTriggerFailurePolicyOutput }
GetFunctionEventTriggerFailurePolicyInput is an input type that accepts GetFunctionEventTriggerFailurePolicyArgs and GetFunctionEventTriggerFailurePolicyOutput values. You can construct a concrete instance of `GetFunctionEventTriggerFailurePolicyInput` via:
GetFunctionEventTriggerFailurePolicyArgs{...}
type GetFunctionEventTriggerFailurePolicyOutput ¶
type GetFunctionEventTriggerFailurePolicyOutput struct{ *pulumi.OutputState }
func (GetFunctionEventTriggerFailurePolicyOutput) ElementType ¶
func (GetFunctionEventTriggerFailurePolicyOutput) ElementType() reflect.Type
func (GetFunctionEventTriggerFailurePolicyOutput) Retry ¶
func (o GetFunctionEventTriggerFailurePolicyOutput) Retry() pulumi.BoolOutput
Whether the function should be retried on failure.
func (GetFunctionEventTriggerFailurePolicyOutput) ToGetFunctionEventTriggerFailurePolicyOutput ¶
func (o GetFunctionEventTriggerFailurePolicyOutput) ToGetFunctionEventTriggerFailurePolicyOutput() GetFunctionEventTriggerFailurePolicyOutput
func (GetFunctionEventTriggerFailurePolicyOutput) ToGetFunctionEventTriggerFailurePolicyOutputWithContext ¶
func (o GetFunctionEventTriggerFailurePolicyOutput) ToGetFunctionEventTriggerFailurePolicyOutputWithContext(ctx context.Context) GetFunctionEventTriggerFailurePolicyOutput
type GetFunctionEventTriggerInput ¶
type GetFunctionEventTriggerInput interface { pulumi.Input ToGetFunctionEventTriggerOutput() GetFunctionEventTriggerOutput ToGetFunctionEventTriggerOutputWithContext(context.Context) GetFunctionEventTriggerOutput }
GetFunctionEventTriggerInput is an input type that accepts GetFunctionEventTriggerArgs and GetFunctionEventTriggerOutput values. You can construct a concrete instance of `GetFunctionEventTriggerInput` via:
GetFunctionEventTriggerArgs{...}
type GetFunctionEventTriggerOutput ¶
type GetFunctionEventTriggerOutput struct{ *pulumi.OutputState }
func (GetFunctionEventTriggerOutput) ElementType ¶
func (GetFunctionEventTriggerOutput) ElementType() reflect.Type
func (GetFunctionEventTriggerOutput) EventType ¶
func (o GetFunctionEventTriggerOutput) EventType() pulumi.StringOutput
The type of event to observe. For example: `"google.storage.object.finalize"`. See the documentation on [calling Cloud Functions](https://cloud.google.com/functions/docs/calling/) for a full reference of accepted triggers.
func (GetFunctionEventTriggerOutput) FailurePolicies ¶
func (o GetFunctionEventTriggerOutput) FailurePolicies() GetFunctionEventTriggerFailurePolicyArrayOutput
Policy for failed executions. Structure is documented below.
func (GetFunctionEventTriggerOutput) Resource ¶
func (o GetFunctionEventTriggerOutput) Resource() pulumi.StringOutput
The name of the resource whose events are being observed, for example, `"myBucket"`
func (GetFunctionEventTriggerOutput) ToGetFunctionEventTriggerOutput ¶
func (o GetFunctionEventTriggerOutput) ToGetFunctionEventTriggerOutput() GetFunctionEventTriggerOutput
func (GetFunctionEventTriggerOutput) ToGetFunctionEventTriggerOutputWithContext ¶
func (o GetFunctionEventTriggerOutput) ToGetFunctionEventTriggerOutputWithContext(ctx context.Context) GetFunctionEventTriggerOutput
type GetFunctionSecretEnvironmentVariable ¶ added in v6.12.0
type GetFunctionSecretEnvironmentVariableArgs ¶ added in v6.12.0
type GetFunctionSecretEnvironmentVariableArgs struct { Key pulumi.StringInput `pulumi:"key"` ProjectId pulumi.StringInput `pulumi:"projectId"` Secret pulumi.StringInput `pulumi:"secret"` Version pulumi.StringInput `pulumi:"version"` }
func (GetFunctionSecretEnvironmentVariableArgs) ElementType ¶ added in v6.12.0
func (GetFunctionSecretEnvironmentVariableArgs) ElementType() reflect.Type
func (GetFunctionSecretEnvironmentVariableArgs) ToGetFunctionSecretEnvironmentVariableOutput ¶ added in v6.12.0
func (i GetFunctionSecretEnvironmentVariableArgs) ToGetFunctionSecretEnvironmentVariableOutput() GetFunctionSecretEnvironmentVariableOutput
func (GetFunctionSecretEnvironmentVariableArgs) ToGetFunctionSecretEnvironmentVariableOutputWithContext ¶ added in v6.12.0
func (i GetFunctionSecretEnvironmentVariableArgs) ToGetFunctionSecretEnvironmentVariableOutputWithContext(ctx context.Context) GetFunctionSecretEnvironmentVariableOutput
type GetFunctionSecretEnvironmentVariableArray ¶ added in v6.12.0
type GetFunctionSecretEnvironmentVariableArray []GetFunctionSecretEnvironmentVariableInput
func (GetFunctionSecretEnvironmentVariableArray) ElementType ¶ added in v6.12.0
func (GetFunctionSecretEnvironmentVariableArray) ElementType() reflect.Type
func (GetFunctionSecretEnvironmentVariableArray) ToGetFunctionSecretEnvironmentVariableArrayOutput ¶ added in v6.12.0
func (i GetFunctionSecretEnvironmentVariableArray) ToGetFunctionSecretEnvironmentVariableArrayOutput() GetFunctionSecretEnvironmentVariableArrayOutput
func (GetFunctionSecretEnvironmentVariableArray) ToGetFunctionSecretEnvironmentVariableArrayOutputWithContext ¶ added in v6.12.0
func (i GetFunctionSecretEnvironmentVariableArray) ToGetFunctionSecretEnvironmentVariableArrayOutputWithContext(ctx context.Context) GetFunctionSecretEnvironmentVariableArrayOutput
type GetFunctionSecretEnvironmentVariableArrayInput ¶ added in v6.12.0
type GetFunctionSecretEnvironmentVariableArrayInput interface { pulumi.Input ToGetFunctionSecretEnvironmentVariableArrayOutput() GetFunctionSecretEnvironmentVariableArrayOutput ToGetFunctionSecretEnvironmentVariableArrayOutputWithContext(context.Context) GetFunctionSecretEnvironmentVariableArrayOutput }
GetFunctionSecretEnvironmentVariableArrayInput is an input type that accepts GetFunctionSecretEnvironmentVariableArray and GetFunctionSecretEnvironmentVariableArrayOutput values. You can construct a concrete instance of `GetFunctionSecretEnvironmentVariableArrayInput` via:
GetFunctionSecretEnvironmentVariableArray{ GetFunctionSecretEnvironmentVariableArgs{...} }
type GetFunctionSecretEnvironmentVariableArrayOutput ¶ added in v6.12.0
type GetFunctionSecretEnvironmentVariableArrayOutput struct{ *pulumi.OutputState }
func (GetFunctionSecretEnvironmentVariableArrayOutput) ElementType ¶ added in v6.12.0
func (GetFunctionSecretEnvironmentVariableArrayOutput) ElementType() reflect.Type
func (GetFunctionSecretEnvironmentVariableArrayOutput) ToGetFunctionSecretEnvironmentVariableArrayOutput ¶ added in v6.12.0
func (o GetFunctionSecretEnvironmentVariableArrayOutput) ToGetFunctionSecretEnvironmentVariableArrayOutput() GetFunctionSecretEnvironmentVariableArrayOutput
func (GetFunctionSecretEnvironmentVariableArrayOutput) ToGetFunctionSecretEnvironmentVariableArrayOutputWithContext ¶ added in v6.12.0
func (o GetFunctionSecretEnvironmentVariableArrayOutput) ToGetFunctionSecretEnvironmentVariableArrayOutputWithContext(ctx context.Context) GetFunctionSecretEnvironmentVariableArrayOutput
type GetFunctionSecretEnvironmentVariableInput ¶ added in v6.12.0
type GetFunctionSecretEnvironmentVariableInput interface { pulumi.Input ToGetFunctionSecretEnvironmentVariableOutput() GetFunctionSecretEnvironmentVariableOutput ToGetFunctionSecretEnvironmentVariableOutputWithContext(context.Context) GetFunctionSecretEnvironmentVariableOutput }
GetFunctionSecretEnvironmentVariableInput is an input type that accepts GetFunctionSecretEnvironmentVariableArgs and GetFunctionSecretEnvironmentVariableOutput values. You can construct a concrete instance of `GetFunctionSecretEnvironmentVariableInput` via:
GetFunctionSecretEnvironmentVariableArgs{...}
type GetFunctionSecretEnvironmentVariableOutput ¶ added in v6.12.0
type GetFunctionSecretEnvironmentVariableOutput struct{ *pulumi.OutputState }
func (GetFunctionSecretEnvironmentVariableOutput) ElementType ¶ added in v6.12.0
func (GetFunctionSecretEnvironmentVariableOutput) ElementType() reflect.Type
func (GetFunctionSecretEnvironmentVariableOutput) Key ¶ added in v6.12.0
func (o GetFunctionSecretEnvironmentVariableOutput) Key() pulumi.StringOutput
func (GetFunctionSecretEnvironmentVariableOutput) ProjectId ¶ added in v6.12.0
func (o GetFunctionSecretEnvironmentVariableOutput) ProjectId() pulumi.StringOutput
func (GetFunctionSecretEnvironmentVariableOutput) Secret ¶ added in v6.12.0
func (o GetFunctionSecretEnvironmentVariableOutput) Secret() pulumi.StringOutput
func (GetFunctionSecretEnvironmentVariableOutput) ToGetFunctionSecretEnvironmentVariableOutput ¶ added in v6.12.0
func (o GetFunctionSecretEnvironmentVariableOutput) ToGetFunctionSecretEnvironmentVariableOutput() GetFunctionSecretEnvironmentVariableOutput
func (GetFunctionSecretEnvironmentVariableOutput) ToGetFunctionSecretEnvironmentVariableOutputWithContext ¶ added in v6.12.0
func (o GetFunctionSecretEnvironmentVariableOutput) ToGetFunctionSecretEnvironmentVariableOutputWithContext(ctx context.Context) GetFunctionSecretEnvironmentVariableOutput
func (GetFunctionSecretEnvironmentVariableOutput) Version ¶ added in v6.12.0
func (o GetFunctionSecretEnvironmentVariableOutput) Version() pulumi.StringOutput
type GetFunctionSecretVolume ¶ added in v6.12.0
type GetFunctionSecretVolume struct { MountPath string `pulumi:"mountPath"` ProjectId string `pulumi:"projectId"` Secret string `pulumi:"secret"` Versions []GetFunctionSecretVolumeVersion `pulumi:"versions"` }
type GetFunctionSecretVolumeArgs ¶ added in v6.12.0
type GetFunctionSecretVolumeArgs struct { MountPath pulumi.StringInput `pulumi:"mountPath"` ProjectId pulumi.StringInput `pulumi:"projectId"` Secret pulumi.StringInput `pulumi:"secret"` Versions GetFunctionSecretVolumeVersionArrayInput `pulumi:"versions"` }
func (GetFunctionSecretVolumeArgs) ElementType ¶ added in v6.12.0
func (GetFunctionSecretVolumeArgs) ElementType() reflect.Type
func (GetFunctionSecretVolumeArgs) ToGetFunctionSecretVolumeOutput ¶ added in v6.12.0
func (i GetFunctionSecretVolumeArgs) ToGetFunctionSecretVolumeOutput() GetFunctionSecretVolumeOutput
func (GetFunctionSecretVolumeArgs) ToGetFunctionSecretVolumeOutputWithContext ¶ added in v6.12.0
func (i GetFunctionSecretVolumeArgs) ToGetFunctionSecretVolumeOutputWithContext(ctx context.Context) GetFunctionSecretVolumeOutput
type GetFunctionSecretVolumeArray ¶ added in v6.12.0
type GetFunctionSecretVolumeArray []GetFunctionSecretVolumeInput
func (GetFunctionSecretVolumeArray) ElementType ¶ added in v6.12.0
func (GetFunctionSecretVolumeArray) ElementType() reflect.Type
func (GetFunctionSecretVolumeArray) ToGetFunctionSecretVolumeArrayOutput ¶ added in v6.12.0
func (i GetFunctionSecretVolumeArray) ToGetFunctionSecretVolumeArrayOutput() GetFunctionSecretVolumeArrayOutput
func (GetFunctionSecretVolumeArray) ToGetFunctionSecretVolumeArrayOutputWithContext ¶ added in v6.12.0
func (i GetFunctionSecretVolumeArray) ToGetFunctionSecretVolumeArrayOutputWithContext(ctx context.Context) GetFunctionSecretVolumeArrayOutput
type GetFunctionSecretVolumeArrayInput ¶ added in v6.12.0
type GetFunctionSecretVolumeArrayInput interface { pulumi.Input ToGetFunctionSecretVolumeArrayOutput() GetFunctionSecretVolumeArrayOutput ToGetFunctionSecretVolumeArrayOutputWithContext(context.Context) GetFunctionSecretVolumeArrayOutput }
GetFunctionSecretVolumeArrayInput is an input type that accepts GetFunctionSecretVolumeArray and GetFunctionSecretVolumeArrayOutput values. You can construct a concrete instance of `GetFunctionSecretVolumeArrayInput` via:
GetFunctionSecretVolumeArray{ GetFunctionSecretVolumeArgs{...} }
type GetFunctionSecretVolumeArrayOutput ¶ added in v6.12.0
type GetFunctionSecretVolumeArrayOutput struct{ *pulumi.OutputState }
func (GetFunctionSecretVolumeArrayOutput) ElementType ¶ added in v6.12.0
func (GetFunctionSecretVolumeArrayOutput) ElementType() reflect.Type
func (GetFunctionSecretVolumeArrayOutput) Index ¶ added in v6.12.0
func (o GetFunctionSecretVolumeArrayOutput) Index(i pulumi.IntInput) GetFunctionSecretVolumeOutput
func (GetFunctionSecretVolumeArrayOutput) ToGetFunctionSecretVolumeArrayOutput ¶ added in v6.12.0
func (o GetFunctionSecretVolumeArrayOutput) ToGetFunctionSecretVolumeArrayOutput() GetFunctionSecretVolumeArrayOutput
func (GetFunctionSecretVolumeArrayOutput) ToGetFunctionSecretVolumeArrayOutputWithContext ¶ added in v6.12.0
func (o GetFunctionSecretVolumeArrayOutput) ToGetFunctionSecretVolumeArrayOutputWithContext(ctx context.Context) GetFunctionSecretVolumeArrayOutput
type GetFunctionSecretVolumeInput ¶ added in v6.12.0
type GetFunctionSecretVolumeInput interface { pulumi.Input ToGetFunctionSecretVolumeOutput() GetFunctionSecretVolumeOutput ToGetFunctionSecretVolumeOutputWithContext(context.Context) GetFunctionSecretVolumeOutput }
GetFunctionSecretVolumeInput is an input type that accepts GetFunctionSecretVolumeArgs and GetFunctionSecretVolumeOutput values. You can construct a concrete instance of `GetFunctionSecretVolumeInput` via:
GetFunctionSecretVolumeArgs{...}
type GetFunctionSecretVolumeOutput ¶ added in v6.12.0
type GetFunctionSecretVolumeOutput struct{ *pulumi.OutputState }
func (GetFunctionSecretVolumeOutput) ElementType ¶ added in v6.12.0
func (GetFunctionSecretVolumeOutput) ElementType() reflect.Type
func (GetFunctionSecretVolumeOutput) MountPath ¶ added in v6.12.0
func (o GetFunctionSecretVolumeOutput) MountPath() pulumi.StringOutput
func (GetFunctionSecretVolumeOutput) ProjectId ¶ added in v6.12.0
func (o GetFunctionSecretVolumeOutput) ProjectId() pulumi.StringOutput
func (GetFunctionSecretVolumeOutput) Secret ¶ added in v6.12.0
func (o GetFunctionSecretVolumeOutput) Secret() pulumi.StringOutput
func (GetFunctionSecretVolumeOutput) ToGetFunctionSecretVolumeOutput ¶ added in v6.12.0
func (o GetFunctionSecretVolumeOutput) ToGetFunctionSecretVolumeOutput() GetFunctionSecretVolumeOutput
func (GetFunctionSecretVolumeOutput) ToGetFunctionSecretVolumeOutputWithContext ¶ added in v6.12.0
func (o GetFunctionSecretVolumeOutput) ToGetFunctionSecretVolumeOutputWithContext(ctx context.Context) GetFunctionSecretVolumeOutput
func (GetFunctionSecretVolumeOutput) Versions ¶ added in v6.12.0
func (o GetFunctionSecretVolumeOutput) Versions() GetFunctionSecretVolumeVersionArrayOutput
type GetFunctionSecretVolumeVersion ¶ added in v6.12.0
type GetFunctionSecretVolumeVersionArgs ¶ added in v6.12.0
type GetFunctionSecretVolumeVersionArgs struct { Path pulumi.StringInput `pulumi:"path"` Version pulumi.StringInput `pulumi:"version"` }
func (GetFunctionSecretVolumeVersionArgs) ElementType ¶ added in v6.12.0
func (GetFunctionSecretVolumeVersionArgs) ElementType() reflect.Type
func (GetFunctionSecretVolumeVersionArgs) ToGetFunctionSecretVolumeVersionOutput ¶ added in v6.12.0
func (i GetFunctionSecretVolumeVersionArgs) ToGetFunctionSecretVolumeVersionOutput() GetFunctionSecretVolumeVersionOutput
func (GetFunctionSecretVolumeVersionArgs) ToGetFunctionSecretVolumeVersionOutputWithContext ¶ added in v6.12.0
func (i GetFunctionSecretVolumeVersionArgs) ToGetFunctionSecretVolumeVersionOutputWithContext(ctx context.Context) GetFunctionSecretVolumeVersionOutput
type GetFunctionSecretVolumeVersionArray ¶ added in v6.12.0
type GetFunctionSecretVolumeVersionArray []GetFunctionSecretVolumeVersionInput
func (GetFunctionSecretVolumeVersionArray) ElementType ¶ added in v6.12.0
func (GetFunctionSecretVolumeVersionArray) ElementType() reflect.Type
func (GetFunctionSecretVolumeVersionArray) ToGetFunctionSecretVolumeVersionArrayOutput ¶ added in v6.12.0
func (i GetFunctionSecretVolumeVersionArray) ToGetFunctionSecretVolumeVersionArrayOutput() GetFunctionSecretVolumeVersionArrayOutput
func (GetFunctionSecretVolumeVersionArray) ToGetFunctionSecretVolumeVersionArrayOutputWithContext ¶ added in v6.12.0
func (i GetFunctionSecretVolumeVersionArray) ToGetFunctionSecretVolumeVersionArrayOutputWithContext(ctx context.Context) GetFunctionSecretVolumeVersionArrayOutput
type GetFunctionSecretVolumeVersionArrayInput ¶ added in v6.12.0
type GetFunctionSecretVolumeVersionArrayInput interface { pulumi.Input ToGetFunctionSecretVolumeVersionArrayOutput() GetFunctionSecretVolumeVersionArrayOutput ToGetFunctionSecretVolumeVersionArrayOutputWithContext(context.Context) GetFunctionSecretVolumeVersionArrayOutput }
GetFunctionSecretVolumeVersionArrayInput is an input type that accepts GetFunctionSecretVolumeVersionArray and GetFunctionSecretVolumeVersionArrayOutput values. You can construct a concrete instance of `GetFunctionSecretVolumeVersionArrayInput` via:
GetFunctionSecretVolumeVersionArray{ GetFunctionSecretVolumeVersionArgs{...} }
type GetFunctionSecretVolumeVersionArrayOutput ¶ added in v6.12.0
type GetFunctionSecretVolumeVersionArrayOutput struct{ *pulumi.OutputState }
func (GetFunctionSecretVolumeVersionArrayOutput) ElementType ¶ added in v6.12.0
func (GetFunctionSecretVolumeVersionArrayOutput) ElementType() reflect.Type
func (GetFunctionSecretVolumeVersionArrayOutput) ToGetFunctionSecretVolumeVersionArrayOutput ¶ added in v6.12.0
func (o GetFunctionSecretVolumeVersionArrayOutput) ToGetFunctionSecretVolumeVersionArrayOutput() GetFunctionSecretVolumeVersionArrayOutput
func (GetFunctionSecretVolumeVersionArrayOutput) ToGetFunctionSecretVolumeVersionArrayOutputWithContext ¶ added in v6.12.0
func (o GetFunctionSecretVolumeVersionArrayOutput) ToGetFunctionSecretVolumeVersionArrayOutputWithContext(ctx context.Context) GetFunctionSecretVolumeVersionArrayOutput
type GetFunctionSecretVolumeVersionInput ¶ added in v6.12.0
type GetFunctionSecretVolumeVersionInput interface { pulumi.Input ToGetFunctionSecretVolumeVersionOutput() GetFunctionSecretVolumeVersionOutput ToGetFunctionSecretVolumeVersionOutputWithContext(context.Context) GetFunctionSecretVolumeVersionOutput }
GetFunctionSecretVolumeVersionInput is an input type that accepts GetFunctionSecretVolumeVersionArgs and GetFunctionSecretVolumeVersionOutput values. You can construct a concrete instance of `GetFunctionSecretVolumeVersionInput` via:
GetFunctionSecretVolumeVersionArgs{...}
type GetFunctionSecretVolumeVersionOutput ¶ added in v6.12.0
type GetFunctionSecretVolumeVersionOutput struct{ *pulumi.OutputState }
func (GetFunctionSecretVolumeVersionOutput) ElementType ¶ added in v6.12.0
func (GetFunctionSecretVolumeVersionOutput) ElementType() reflect.Type
func (GetFunctionSecretVolumeVersionOutput) Path ¶ added in v6.12.0
func (o GetFunctionSecretVolumeVersionOutput) Path() pulumi.StringOutput
func (GetFunctionSecretVolumeVersionOutput) ToGetFunctionSecretVolumeVersionOutput ¶ added in v6.12.0
func (o GetFunctionSecretVolumeVersionOutput) ToGetFunctionSecretVolumeVersionOutput() GetFunctionSecretVolumeVersionOutput
func (GetFunctionSecretVolumeVersionOutput) ToGetFunctionSecretVolumeVersionOutputWithContext ¶ added in v6.12.0
func (o GetFunctionSecretVolumeVersionOutput) ToGetFunctionSecretVolumeVersionOutputWithContext(ctx context.Context) GetFunctionSecretVolumeVersionOutput
func (GetFunctionSecretVolumeVersionOutput) Version ¶ added in v6.12.0
func (o GetFunctionSecretVolumeVersionOutput) Version() pulumi.StringOutput
type GetFunctionSourceRepositoryArgs ¶
type GetFunctionSourceRepositoryArgs struct { DeployedUrl pulumi.StringInput `pulumi:"deployedUrl"` // The URL pointing to the hosted repository where the function is defined. Url pulumi.StringInput `pulumi:"url"` }
func (GetFunctionSourceRepositoryArgs) ElementType ¶
func (GetFunctionSourceRepositoryArgs) ElementType() reflect.Type
func (GetFunctionSourceRepositoryArgs) ToGetFunctionSourceRepositoryOutput ¶
func (i GetFunctionSourceRepositoryArgs) ToGetFunctionSourceRepositoryOutput() GetFunctionSourceRepositoryOutput
func (GetFunctionSourceRepositoryArgs) ToGetFunctionSourceRepositoryOutputWithContext ¶
func (i GetFunctionSourceRepositoryArgs) ToGetFunctionSourceRepositoryOutputWithContext(ctx context.Context) GetFunctionSourceRepositoryOutput
type GetFunctionSourceRepositoryArray ¶
type GetFunctionSourceRepositoryArray []GetFunctionSourceRepositoryInput
func (GetFunctionSourceRepositoryArray) ElementType ¶
func (GetFunctionSourceRepositoryArray) ElementType() reflect.Type
func (GetFunctionSourceRepositoryArray) ToGetFunctionSourceRepositoryArrayOutput ¶
func (i GetFunctionSourceRepositoryArray) ToGetFunctionSourceRepositoryArrayOutput() GetFunctionSourceRepositoryArrayOutput
func (GetFunctionSourceRepositoryArray) ToGetFunctionSourceRepositoryArrayOutputWithContext ¶
func (i GetFunctionSourceRepositoryArray) ToGetFunctionSourceRepositoryArrayOutputWithContext(ctx context.Context) GetFunctionSourceRepositoryArrayOutput
type GetFunctionSourceRepositoryArrayInput ¶
type GetFunctionSourceRepositoryArrayInput interface { pulumi.Input ToGetFunctionSourceRepositoryArrayOutput() GetFunctionSourceRepositoryArrayOutput ToGetFunctionSourceRepositoryArrayOutputWithContext(context.Context) GetFunctionSourceRepositoryArrayOutput }
GetFunctionSourceRepositoryArrayInput is an input type that accepts GetFunctionSourceRepositoryArray and GetFunctionSourceRepositoryArrayOutput values. You can construct a concrete instance of `GetFunctionSourceRepositoryArrayInput` via:
GetFunctionSourceRepositoryArray{ GetFunctionSourceRepositoryArgs{...} }
type GetFunctionSourceRepositoryArrayOutput ¶
type GetFunctionSourceRepositoryArrayOutput struct{ *pulumi.OutputState }
func (GetFunctionSourceRepositoryArrayOutput) ElementType ¶
func (GetFunctionSourceRepositoryArrayOutput) ElementType() reflect.Type
func (GetFunctionSourceRepositoryArrayOutput) ToGetFunctionSourceRepositoryArrayOutput ¶
func (o GetFunctionSourceRepositoryArrayOutput) ToGetFunctionSourceRepositoryArrayOutput() GetFunctionSourceRepositoryArrayOutput
func (GetFunctionSourceRepositoryArrayOutput) ToGetFunctionSourceRepositoryArrayOutputWithContext ¶
func (o GetFunctionSourceRepositoryArrayOutput) ToGetFunctionSourceRepositoryArrayOutputWithContext(ctx context.Context) GetFunctionSourceRepositoryArrayOutput
type GetFunctionSourceRepositoryInput ¶
type GetFunctionSourceRepositoryInput interface { pulumi.Input ToGetFunctionSourceRepositoryOutput() GetFunctionSourceRepositoryOutput ToGetFunctionSourceRepositoryOutputWithContext(context.Context) GetFunctionSourceRepositoryOutput }
GetFunctionSourceRepositoryInput is an input type that accepts GetFunctionSourceRepositoryArgs and GetFunctionSourceRepositoryOutput values. You can construct a concrete instance of `GetFunctionSourceRepositoryInput` via:
GetFunctionSourceRepositoryArgs{...}
type GetFunctionSourceRepositoryOutput ¶
type GetFunctionSourceRepositoryOutput struct{ *pulumi.OutputState }
func (GetFunctionSourceRepositoryOutput) DeployedUrl ¶
func (o GetFunctionSourceRepositoryOutput) DeployedUrl() pulumi.StringOutput
func (GetFunctionSourceRepositoryOutput) ElementType ¶
func (GetFunctionSourceRepositoryOutput) ElementType() reflect.Type
func (GetFunctionSourceRepositoryOutput) ToGetFunctionSourceRepositoryOutput ¶
func (o GetFunctionSourceRepositoryOutput) ToGetFunctionSourceRepositoryOutput() GetFunctionSourceRepositoryOutput
func (GetFunctionSourceRepositoryOutput) ToGetFunctionSourceRepositoryOutputWithContext ¶
func (o GetFunctionSourceRepositoryOutput) ToGetFunctionSourceRepositoryOutputWithContext(ctx context.Context) GetFunctionSourceRepositoryOutput
func (GetFunctionSourceRepositoryOutput) Url ¶
func (o GetFunctionSourceRepositoryOutput) Url() pulumi.StringOutput
The URL pointing to the hosted repository where the function is defined.
type LookupFunctionArgs ¶
type LookupFunctionArgs struct { // The name of a Cloud Function. Name string `pulumi:"name"` // The project in which the resource belongs. If it // is not provided, the provider project is used. Project *string `pulumi:"project"` // The region in which the resource belongs. If it // is not provided, the provider region is used. Region *string `pulumi:"region"` }
A collection of arguments for invoking getFunction.
type LookupFunctionOutputArgs ¶
type LookupFunctionOutputArgs struct { // The name of a Cloud Function. Name pulumi.StringInput `pulumi:"name"` // The project in which the resource belongs. If it // is not provided, the provider project is used. Project pulumi.StringPtrInput `pulumi:"project"` // The region in which the resource belongs. If it // is not provided, the provider region is used. Region pulumi.StringPtrInput `pulumi:"region"` }
A collection of arguments for invoking getFunction.
func (LookupFunctionOutputArgs) ElementType ¶
func (LookupFunctionOutputArgs) ElementType() reflect.Type
type LookupFunctionResult ¶
type LookupFunctionResult struct { // Available memory (in MB) to the function. AvailableMemoryMb int `pulumi:"availableMemoryMb"` BuildEnvironmentVariables map[string]interface{} `pulumi:"buildEnvironmentVariables"` // Description of the function. Description string `pulumi:"description"` // Name of a JavaScript function that will be executed when the Google Cloud Function is triggered. EntryPoint string `pulumi:"entryPoint"` EnvironmentVariables map[string]interface{} `pulumi:"environmentVariables"` // A source that fires events in response to a condition in another service. Structure is documented below. EventTriggers []GetFunctionEventTrigger `pulumi:"eventTriggers"` // If function is triggered by HTTP, trigger URL is set here. HttpsTriggerUrl string `pulumi:"httpsTriggerUrl"` // The provider-assigned unique ID for this managed resource. Id string `pulumi:"id"` // Controls what traffic can reach the function. IngressSettings string `pulumi:"ingressSettings"` // A map of labels applied to this function. Labels map[string]interface{} `pulumi:"labels"` // The limit on the maximum number of function instances that may coexist at a given time. MaxInstances int `pulumi:"maxInstances"` MinInstances int `pulumi:"minInstances"` // The name of the Cloud Function. Name string `pulumi:"name"` Project *string `pulumi:"project"` Region *string `pulumi:"region"` // The runtime in which the function is running. Runtime string `pulumi:"runtime"` SecretEnvironmentVariables []GetFunctionSecretEnvironmentVariable `pulumi:"secretEnvironmentVariables"` SecretVolumes []GetFunctionSecretVolume `pulumi:"secretVolumes"` // The service account email to be assumed by the cloud function. ServiceAccountEmail string `pulumi:"serviceAccountEmail"` // The GCS bucket containing the zip archive which contains the function. SourceArchiveBucket string `pulumi:"sourceArchiveBucket"` // The source archive object (file) in archive bucket. SourceArchiveObject string `pulumi:"sourceArchiveObject"` // The URL of the Cloud Source Repository that the function is deployed from. Structure is documented below. SourceRepositories []GetFunctionSourceRepository `pulumi:"sourceRepositories"` // Function execution timeout (in seconds). Timeout int `pulumi:"timeout"` // If function is triggered by HTTP, this boolean is set. TriggerHttp bool `pulumi:"triggerHttp"` // The VPC Network Connector that this cloud function can connect to. VpcConnector string `pulumi:"vpcConnector"` // The egress settings for the connector, controlling what traffic is diverted through it. VpcConnectorEgressSettings string `pulumi:"vpcConnectorEgressSettings"` }
A collection of values returned by getFunction.
func LookupFunction ¶
func LookupFunction(ctx *pulumi.Context, args *LookupFunctionArgs, opts ...pulumi.InvokeOption) (*LookupFunctionResult, error)
Get information about a Google Cloud Function. For more information see the [official documentation](https://cloud.google.com/functions/docs/) and [API](https://cloud.google.com/functions/docs/apis).
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/cloudfunctions" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := cloudfunctions.LookupFunction(ctx, &cloudfunctions.LookupFunctionArgs{ Name: "function", }, nil) if err != nil { return err } return nil }) }
```
type LookupFunctionResultOutput ¶
type LookupFunctionResultOutput struct{ *pulumi.OutputState }
A collection of values returned by getFunction.
func LookupFunctionOutput ¶
func LookupFunctionOutput(ctx *pulumi.Context, args LookupFunctionOutputArgs, opts ...pulumi.InvokeOption) LookupFunctionResultOutput
func (LookupFunctionResultOutput) AvailableMemoryMb ¶
func (o LookupFunctionResultOutput) AvailableMemoryMb() pulumi.IntOutput
Available memory (in MB) to the function.
func (LookupFunctionResultOutput) BuildEnvironmentVariables ¶
func (o LookupFunctionResultOutput) BuildEnvironmentVariables() pulumi.MapOutput
func (LookupFunctionResultOutput) Description ¶
func (o LookupFunctionResultOutput) Description() pulumi.StringOutput
Description of the function.
func (LookupFunctionResultOutput) ElementType ¶
func (LookupFunctionResultOutput) ElementType() reflect.Type
func (LookupFunctionResultOutput) EntryPoint ¶
func (o LookupFunctionResultOutput) EntryPoint() pulumi.StringOutput
Name of a JavaScript function that will be executed when the Google Cloud Function is triggered.
func (LookupFunctionResultOutput) EnvironmentVariables ¶
func (o LookupFunctionResultOutput) EnvironmentVariables() pulumi.MapOutput
func (LookupFunctionResultOutput) EventTriggers ¶
func (o LookupFunctionResultOutput) EventTriggers() GetFunctionEventTriggerArrayOutput
A source that fires events in response to a condition in another service. Structure is documented below.
func (LookupFunctionResultOutput) HttpsTriggerUrl ¶
func (o LookupFunctionResultOutput) HttpsTriggerUrl() pulumi.StringOutput
If function is triggered by HTTP, trigger URL is set here.
func (LookupFunctionResultOutput) Id ¶
func (o LookupFunctionResultOutput) Id() pulumi.StringOutput
The provider-assigned unique ID for this managed resource.
func (LookupFunctionResultOutput) IngressSettings ¶
func (o LookupFunctionResultOutput) IngressSettings() pulumi.StringOutput
Controls what traffic can reach the function.
func (LookupFunctionResultOutput) Labels ¶
func (o LookupFunctionResultOutput) Labels() pulumi.MapOutput
A map of labels applied to this function.
func (LookupFunctionResultOutput) MaxInstances ¶
func (o LookupFunctionResultOutput) MaxInstances() pulumi.IntOutput
The limit on the maximum number of function instances that may coexist at a given time.
func (LookupFunctionResultOutput) MinInstances ¶ added in v6.6.0
func (o LookupFunctionResultOutput) MinInstances() pulumi.IntOutput
func (LookupFunctionResultOutput) Name ¶
func (o LookupFunctionResultOutput) Name() pulumi.StringOutput
The name of the Cloud Function.
func (LookupFunctionResultOutput) Project ¶
func (o LookupFunctionResultOutput) Project() pulumi.StringPtrOutput
func (LookupFunctionResultOutput) Region ¶
func (o LookupFunctionResultOutput) Region() pulumi.StringPtrOutput
func (LookupFunctionResultOutput) Runtime ¶
func (o LookupFunctionResultOutput) Runtime() pulumi.StringOutput
The runtime in which the function is running.
func (LookupFunctionResultOutput) SecretEnvironmentVariables ¶ added in v6.12.0
func (o LookupFunctionResultOutput) SecretEnvironmentVariables() GetFunctionSecretEnvironmentVariableArrayOutput
func (LookupFunctionResultOutput) SecretVolumes ¶ added in v6.12.0
func (o LookupFunctionResultOutput) SecretVolumes() GetFunctionSecretVolumeArrayOutput
func (LookupFunctionResultOutput) ServiceAccountEmail ¶
func (o LookupFunctionResultOutput) ServiceAccountEmail() pulumi.StringOutput
The service account email to be assumed by the cloud function.
func (LookupFunctionResultOutput) SourceArchiveBucket ¶
func (o LookupFunctionResultOutput) SourceArchiveBucket() pulumi.StringOutput
The GCS bucket containing the zip archive which contains the function.
func (LookupFunctionResultOutput) SourceArchiveObject ¶
func (o LookupFunctionResultOutput) SourceArchiveObject() pulumi.StringOutput
The source archive object (file) in archive bucket.
func (LookupFunctionResultOutput) SourceRepositories ¶
func (o LookupFunctionResultOutput) SourceRepositories() GetFunctionSourceRepositoryArrayOutput
The URL of the Cloud Source Repository that the function is deployed from. Structure is documented below.
func (LookupFunctionResultOutput) Timeout ¶
func (o LookupFunctionResultOutput) Timeout() pulumi.IntOutput
Function execution timeout (in seconds).
func (LookupFunctionResultOutput) ToLookupFunctionResultOutput ¶
func (o LookupFunctionResultOutput) ToLookupFunctionResultOutput() LookupFunctionResultOutput
func (LookupFunctionResultOutput) ToLookupFunctionResultOutputWithContext ¶
func (o LookupFunctionResultOutput) ToLookupFunctionResultOutputWithContext(ctx context.Context) LookupFunctionResultOutput
func (LookupFunctionResultOutput) TriggerHttp ¶
func (o LookupFunctionResultOutput) TriggerHttp() pulumi.BoolOutput
If function is triggered by HTTP, this boolean is set.
func (LookupFunctionResultOutput) VpcConnector ¶
func (o LookupFunctionResultOutput) VpcConnector() pulumi.StringOutput
The VPC Network Connector that this cloud function can connect to.
func (LookupFunctionResultOutput) VpcConnectorEgressSettings ¶
func (o LookupFunctionResultOutput) VpcConnectorEgressSettings() pulumi.StringOutput
The egress settings for the connector, controlling what traffic is diverted through it.