Documentation ¶
Index ¶
- type Function
- type FunctionArgs
- type FunctionArray
- type FunctionArrayInput
- type FunctionArrayOutput
- func (FunctionArrayOutput) ElementType() reflect.Type
- func (o FunctionArrayOutput) Index(i pulumi.IntInput) FunctionOutput
- func (o FunctionArrayOutput) ToFunctionArrayOutput() FunctionArrayOutput
- func (o FunctionArrayOutput) ToFunctionArrayOutputWithContext(ctx context.Context) FunctionArrayOutput
- func (o FunctionArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]*Function]
- 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
- func (i FunctionEventTriggerArgs) ToOutput(ctx context.Context) pulumix.Output[FunctionEventTrigger]
- 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
- func (i FunctionEventTriggerFailurePolicyArgs) ToOutput(ctx context.Context) pulumix.Output[FunctionEventTriggerFailurePolicy]
- 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
- func (o FunctionEventTriggerFailurePolicyOutput) ToOutput(ctx context.Context) pulumix.Output[FunctionEventTriggerFailurePolicy]
- 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
- func (o FunctionEventTriggerFailurePolicyPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*FunctionEventTriggerFailurePolicy]
- 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
- func (o FunctionEventTriggerOutput) ToOutput(ctx context.Context) pulumix.Output[FunctionEventTrigger]
- 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
- func (o FunctionEventTriggerPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*FunctionEventTrigger]
- type FunctionIamBinding
- func (*FunctionIamBinding) ElementType() reflect.Type
- func (i *FunctionIamBinding) ToFunctionIamBindingOutput() FunctionIamBindingOutput
- func (i *FunctionIamBinding) ToFunctionIamBindingOutputWithContext(ctx context.Context) FunctionIamBindingOutput
- func (i *FunctionIamBinding) ToOutput(ctx context.Context) pulumix.Output[*FunctionIamBinding]
- type FunctionIamBindingArgs
- type FunctionIamBindingArray
- func (FunctionIamBindingArray) ElementType() reflect.Type
- func (i FunctionIamBindingArray) ToFunctionIamBindingArrayOutput() FunctionIamBindingArrayOutput
- func (i FunctionIamBindingArray) ToFunctionIamBindingArrayOutputWithContext(ctx context.Context) FunctionIamBindingArrayOutput
- func (i FunctionIamBindingArray) ToOutput(ctx context.Context) pulumix.Output[[]*FunctionIamBinding]
- 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
- func (o FunctionIamBindingArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]*FunctionIamBinding]
- 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
- func (i FunctionIamBindingConditionArgs) ToOutput(ctx context.Context) pulumix.Output[FunctionIamBindingCondition]
- 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
- func (o FunctionIamBindingConditionOutput) ToOutput(ctx context.Context) pulumix.Output[FunctionIamBindingCondition]
- 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
- func (o FunctionIamBindingConditionPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*FunctionIamBindingCondition]
- type FunctionIamBindingInput
- type FunctionIamBindingMap
- func (FunctionIamBindingMap) ElementType() reflect.Type
- func (i FunctionIamBindingMap) ToFunctionIamBindingMapOutput() FunctionIamBindingMapOutput
- func (i FunctionIamBindingMap) ToFunctionIamBindingMapOutputWithContext(ctx context.Context) FunctionIamBindingMapOutput
- func (i FunctionIamBindingMap) ToOutput(ctx context.Context) pulumix.Output[map[string]*FunctionIamBinding]
- 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
- func (o FunctionIamBindingMapOutput) ToOutput(ctx context.Context) pulumix.Output[map[string]*FunctionIamBinding]
- type FunctionIamBindingOutput
- func (o FunctionIamBindingOutput) CloudFunction() pulumi.StringOutput
- func (o FunctionIamBindingOutput) Condition() FunctionIamBindingConditionPtrOutput
- func (FunctionIamBindingOutput) ElementType() reflect.Type
- func (o FunctionIamBindingOutput) Etag() pulumi.StringOutput
- func (o FunctionIamBindingOutput) Members() pulumi.StringArrayOutput
- func (o FunctionIamBindingOutput) Project() pulumi.StringOutput
- func (o FunctionIamBindingOutput) Region() pulumi.StringOutput
- func (o FunctionIamBindingOutput) Role() pulumi.StringOutput
- func (o FunctionIamBindingOutput) ToFunctionIamBindingOutput() FunctionIamBindingOutput
- func (o FunctionIamBindingOutput) ToFunctionIamBindingOutputWithContext(ctx context.Context) FunctionIamBindingOutput
- func (o FunctionIamBindingOutput) ToOutput(ctx context.Context) pulumix.Output[*FunctionIamBinding]
- type FunctionIamBindingState
- type FunctionIamMember
- func (*FunctionIamMember) ElementType() reflect.Type
- func (i *FunctionIamMember) ToFunctionIamMemberOutput() FunctionIamMemberOutput
- func (i *FunctionIamMember) ToFunctionIamMemberOutputWithContext(ctx context.Context) FunctionIamMemberOutput
- func (i *FunctionIamMember) ToOutput(ctx context.Context) pulumix.Output[*FunctionIamMember]
- type FunctionIamMemberArgs
- type FunctionIamMemberArray
- func (FunctionIamMemberArray) ElementType() reflect.Type
- func (i FunctionIamMemberArray) ToFunctionIamMemberArrayOutput() FunctionIamMemberArrayOutput
- func (i FunctionIamMemberArray) ToFunctionIamMemberArrayOutputWithContext(ctx context.Context) FunctionIamMemberArrayOutput
- func (i FunctionIamMemberArray) ToOutput(ctx context.Context) pulumix.Output[[]*FunctionIamMember]
- 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
- func (o FunctionIamMemberArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]*FunctionIamMember]
- 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
- func (i FunctionIamMemberConditionArgs) ToOutput(ctx context.Context) pulumix.Output[FunctionIamMemberCondition]
- 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
- func (o FunctionIamMemberConditionOutput) ToOutput(ctx context.Context) pulumix.Output[FunctionIamMemberCondition]
- 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
- func (o FunctionIamMemberConditionPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*FunctionIamMemberCondition]
- type FunctionIamMemberInput
- type FunctionIamMemberMap
- func (FunctionIamMemberMap) ElementType() reflect.Type
- func (i FunctionIamMemberMap) ToFunctionIamMemberMapOutput() FunctionIamMemberMapOutput
- func (i FunctionIamMemberMap) ToFunctionIamMemberMapOutputWithContext(ctx context.Context) FunctionIamMemberMapOutput
- func (i FunctionIamMemberMap) ToOutput(ctx context.Context) pulumix.Output[map[string]*FunctionIamMember]
- 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
- func (o FunctionIamMemberMapOutput) ToOutput(ctx context.Context) pulumix.Output[map[string]*FunctionIamMember]
- type FunctionIamMemberOutput
- func (o FunctionIamMemberOutput) CloudFunction() pulumi.StringOutput
- func (o FunctionIamMemberOutput) Condition() FunctionIamMemberConditionPtrOutput
- func (FunctionIamMemberOutput) ElementType() reflect.Type
- func (o FunctionIamMemberOutput) Etag() pulumi.StringOutput
- func (o FunctionIamMemberOutput) Member() pulumi.StringOutput
- func (o FunctionIamMemberOutput) Project() pulumi.StringOutput
- func (o FunctionIamMemberOutput) Region() pulumi.StringOutput
- func (o FunctionIamMemberOutput) Role() pulumi.StringOutput
- func (o FunctionIamMemberOutput) ToFunctionIamMemberOutput() FunctionIamMemberOutput
- func (o FunctionIamMemberOutput) ToFunctionIamMemberOutputWithContext(ctx context.Context) FunctionIamMemberOutput
- func (o FunctionIamMemberOutput) ToOutput(ctx context.Context) pulumix.Output[*FunctionIamMember]
- type FunctionIamMemberState
- type FunctionIamPolicy
- func (*FunctionIamPolicy) ElementType() reflect.Type
- func (i *FunctionIamPolicy) ToFunctionIamPolicyOutput() FunctionIamPolicyOutput
- func (i *FunctionIamPolicy) ToFunctionIamPolicyOutputWithContext(ctx context.Context) FunctionIamPolicyOutput
- func (i *FunctionIamPolicy) ToOutput(ctx context.Context) pulumix.Output[*FunctionIamPolicy]
- type FunctionIamPolicyArgs
- type FunctionIamPolicyArray
- func (FunctionIamPolicyArray) ElementType() reflect.Type
- func (i FunctionIamPolicyArray) ToFunctionIamPolicyArrayOutput() FunctionIamPolicyArrayOutput
- func (i FunctionIamPolicyArray) ToFunctionIamPolicyArrayOutputWithContext(ctx context.Context) FunctionIamPolicyArrayOutput
- func (i FunctionIamPolicyArray) ToOutput(ctx context.Context) pulumix.Output[[]*FunctionIamPolicy]
- 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
- func (o FunctionIamPolicyArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]*FunctionIamPolicy]
- type FunctionIamPolicyInput
- type FunctionIamPolicyMap
- func (FunctionIamPolicyMap) ElementType() reflect.Type
- func (i FunctionIamPolicyMap) ToFunctionIamPolicyMapOutput() FunctionIamPolicyMapOutput
- func (i FunctionIamPolicyMap) ToFunctionIamPolicyMapOutputWithContext(ctx context.Context) FunctionIamPolicyMapOutput
- func (i FunctionIamPolicyMap) ToOutput(ctx context.Context) pulumix.Output[map[string]*FunctionIamPolicy]
- 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
- func (o FunctionIamPolicyMapOutput) ToOutput(ctx context.Context) pulumix.Output[map[string]*FunctionIamPolicy]
- type FunctionIamPolicyOutput
- func (o FunctionIamPolicyOutput) CloudFunction() pulumi.StringOutput
- func (FunctionIamPolicyOutput) ElementType() reflect.Type
- func (o FunctionIamPolicyOutput) Etag() pulumi.StringOutput
- func (o FunctionIamPolicyOutput) PolicyData() pulumi.StringOutput
- func (o FunctionIamPolicyOutput) Project() pulumi.StringOutput
- func (o FunctionIamPolicyOutput) Region() pulumi.StringOutput
- func (o FunctionIamPolicyOutput) ToFunctionIamPolicyOutput() FunctionIamPolicyOutput
- func (o FunctionIamPolicyOutput) ToFunctionIamPolicyOutputWithContext(ctx context.Context) FunctionIamPolicyOutput
- func (o FunctionIamPolicyOutput) ToOutput(ctx context.Context) pulumix.Output[*FunctionIamPolicy]
- type FunctionIamPolicyState
- type FunctionInput
- type FunctionMap
- type FunctionMapInput
- type FunctionMapOutput
- func (FunctionMapOutput) ElementType() reflect.Type
- func (o FunctionMapOutput) MapIndex(k pulumi.StringInput) FunctionOutput
- func (o FunctionMapOutput) ToFunctionMapOutput() FunctionMapOutput
- func (o FunctionMapOutput) ToFunctionMapOutputWithContext(ctx context.Context) FunctionMapOutput
- func (o FunctionMapOutput) ToOutput(ctx context.Context) pulumix.Output[map[string]*Function]
- type FunctionOutput
- func (o FunctionOutput) AvailableMemoryMb() pulumi.IntPtrOutput
- func (o FunctionOutput) BuildEnvironmentVariables() pulumi.MapOutput
- func (o FunctionOutput) BuildWorkerPool() pulumi.StringPtrOutput
- func (o FunctionOutput) Description() pulumi.StringPtrOutput
- func (o FunctionOutput) DockerRegistry() pulumi.StringOutput
- func (o FunctionOutput) DockerRepository() pulumi.StringPtrOutput
- func (FunctionOutput) ElementType() reflect.Type
- func (o FunctionOutput) EntryPoint() pulumi.StringPtrOutput
- func (o FunctionOutput) EnvironmentVariables() pulumi.MapOutput
- func (o FunctionOutput) EventTrigger() FunctionEventTriggerOutput
- func (o FunctionOutput) HttpsTriggerSecurityLevel() pulumi.StringOutput
- func (o FunctionOutput) HttpsTriggerUrl() pulumi.StringOutput
- func (o FunctionOutput) IngressSettings() pulumi.StringPtrOutput
- func (o FunctionOutput) KmsKeyName() pulumi.StringPtrOutput
- func (o FunctionOutput) Labels() pulumi.MapOutput
- func (o FunctionOutput) MaxInstances() pulumi.IntOutput
- func (o FunctionOutput) MinInstances() pulumi.IntPtrOutput
- func (o FunctionOutput) Name() pulumi.StringOutput
- func (o FunctionOutput) Project() pulumi.StringOutput
- func (o FunctionOutput) Region() pulumi.StringOutput
- func (o FunctionOutput) Runtime() pulumi.StringOutput
- func (o FunctionOutput) SecretEnvironmentVariables() FunctionSecretEnvironmentVariableArrayOutput
- func (o FunctionOutput) SecretVolumes() FunctionSecretVolumeArrayOutput
- func (o FunctionOutput) ServiceAccountEmail() pulumi.StringOutput
- func (o FunctionOutput) SourceArchiveBucket() pulumi.StringPtrOutput
- func (o FunctionOutput) SourceArchiveObject() pulumi.StringPtrOutput
- func (o FunctionOutput) SourceRepository() FunctionSourceRepositoryPtrOutput
- func (o FunctionOutput) Status() pulumi.StringOutput
- func (o FunctionOutput) Timeout() pulumi.IntPtrOutput
- func (o FunctionOutput) ToFunctionOutput() FunctionOutput
- func (o FunctionOutput) ToFunctionOutputWithContext(ctx context.Context) FunctionOutput
- func (o FunctionOutput) ToOutput(ctx context.Context) pulumix.Output[*Function]
- func (o FunctionOutput) TriggerHttp() pulumi.BoolPtrOutput
- func (o FunctionOutput) VpcConnector() pulumi.StringPtrOutput
- func (o FunctionOutput) VpcConnectorEgressSettings() pulumi.StringOutput
- type FunctionSecretEnvironmentVariable
- type FunctionSecretEnvironmentVariableArgs
- func (FunctionSecretEnvironmentVariableArgs) ElementType() reflect.Type
- func (i FunctionSecretEnvironmentVariableArgs) ToFunctionSecretEnvironmentVariableOutput() FunctionSecretEnvironmentVariableOutput
- func (i FunctionSecretEnvironmentVariableArgs) ToFunctionSecretEnvironmentVariableOutputWithContext(ctx context.Context) FunctionSecretEnvironmentVariableOutput
- func (i FunctionSecretEnvironmentVariableArgs) ToOutput(ctx context.Context) pulumix.Output[FunctionSecretEnvironmentVariable]
- type FunctionSecretEnvironmentVariableArray
- func (FunctionSecretEnvironmentVariableArray) ElementType() reflect.Type
- func (i FunctionSecretEnvironmentVariableArray) ToFunctionSecretEnvironmentVariableArrayOutput() FunctionSecretEnvironmentVariableArrayOutput
- func (i FunctionSecretEnvironmentVariableArray) ToFunctionSecretEnvironmentVariableArrayOutputWithContext(ctx context.Context) FunctionSecretEnvironmentVariableArrayOutput
- func (i FunctionSecretEnvironmentVariableArray) ToOutput(ctx context.Context) pulumix.Output[[]FunctionSecretEnvironmentVariable]
- 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
- func (o FunctionSecretEnvironmentVariableArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]FunctionSecretEnvironmentVariable]
- 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) ToOutput(ctx context.Context) pulumix.Output[FunctionSecretEnvironmentVariable]
- func (o FunctionSecretEnvironmentVariableOutput) Version() pulumi.StringOutput
- type FunctionSecretVolume
- type FunctionSecretVolumeArgs
- func (FunctionSecretVolumeArgs) ElementType() reflect.Type
- func (i FunctionSecretVolumeArgs) ToFunctionSecretVolumeOutput() FunctionSecretVolumeOutput
- func (i FunctionSecretVolumeArgs) ToFunctionSecretVolumeOutputWithContext(ctx context.Context) FunctionSecretVolumeOutput
- func (i FunctionSecretVolumeArgs) ToOutput(ctx context.Context) pulumix.Output[FunctionSecretVolume]
- type FunctionSecretVolumeArray
- func (FunctionSecretVolumeArray) ElementType() reflect.Type
- func (i FunctionSecretVolumeArray) ToFunctionSecretVolumeArrayOutput() FunctionSecretVolumeArrayOutput
- func (i FunctionSecretVolumeArray) ToFunctionSecretVolumeArrayOutputWithContext(ctx context.Context) FunctionSecretVolumeArrayOutput
- func (i FunctionSecretVolumeArray) ToOutput(ctx context.Context) pulumix.Output[[]FunctionSecretVolume]
- 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
- func (o FunctionSecretVolumeArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]FunctionSecretVolume]
- 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) ToOutput(ctx context.Context) pulumix.Output[FunctionSecretVolume]
- 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
- func (i FunctionSecretVolumeVersionArgs) ToOutput(ctx context.Context) pulumix.Output[FunctionSecretVolumeVersion]
- type FunctionSecretVolumeVersionArray
- func (FunctionSecretVolumeVersionArray) ElementType() reflect.Type
- func (i FunctionSecretVolumeVersionArray) ToFunctionSecretVolumeVersionArrayOutput() FunctionSecretVolumeVersionArrayOutput
- func (i FunctionSecretVolumeVersionArray) ToFunctionSecretVolumeVersionArrayOutputWithContext(ctx context.Context) FunctionSecretVolumeVersionArrayOutput
- func (i FunctionSecretVolumeVersionArray) ToOutput(ctx context.Context) pulumix.Output[[]FunctionSecretVolumeVersion]
- 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
- func (o FunctionSecretVolumeVersionArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]FunctionSecretVolumeVersion]
- 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) ToOutput(ctx context.Context) pulumix.Output[FunctionSecretVolumeVersion]
- 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
- func (i FunctionSourceRepositoryArgs) ToOutput(ctx context.Context) pulumix.Output[FunctionSourceRepository]
- 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) ToOutput(ctx context.Context) pulumix.Output[FunctionSourceRepository]
- 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) ToOutput(ctx context.Context) pulumix.Output[*FunctionSourceRepository]
- func (o FunctionSourceRepositoryPtrOutput) Url() pulumi.StringPtrOutput
- type FunctionState
- type GetFunctionEventTrigger
- type GetFunctionEventTriggerArgs
- func (GetFunctionEventTriggerArgs) ElementType() reflect.Type
- func (i GetFunctionEventTriggerArgs) ToGetFunctionEventTriggerOutput() GetFunctionEventTriggerOutput
- func (i GetFunctionEventTriggerArgs) ToGetFunctionEventTriggerOutputWithContext(ctx context.Context) GetFunctionEventTriggerOutput
- func (i GetFunctionEventTriggerArgs) ToOutput(ctx context.Context) pulumix.Output[GetFunctionEventTrigger]
- type GetFunctionEventTriggerArray
- func (GetFunctionEventTriggerArray) ElementType() reflect.Type
- func (i GetFunctionEventTriggerArray) ToGetFunctionEventTriggerArrayOutput() GetFunctionEventTriggerArrayOutput
- func (i GetFunctionEventTriggerArray) ToGetFunctionEventTriggerArrayOutputWithContext(ctx context.Context) GetFunctionEventTriggerArrayOutput
- func (i GetFunctionEventTriggerArray) ToOutput(ctx context.Context) pulumix.Output[[]GetFunctionEventTrigger]
- 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
- func (o GetFunctionEventTriggerArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]GetFunctionEventTrigger]
- type GetFunctionEventTriggerFailurePolicy
- type GetFunctionEventTriggerFailurePolicyArgs
- func (GetFunctionEventTriggerFailurePolicyArgs) ElementType() reflect.Type
- func (i GetFunctionEventTriggerFailurePolicyArgs) ToGetFunctionEventTriggerFailurePolicyOutput() GetFunctionEventTriggerFailurePolicyOutput
- func (i GetFunctionEventTriggerFailurePolicyArgs) ToGetFunctionEventTriggerFailurePolicyOutputWithContext(ctx context.Context) GetFunctionEventTriggerFailurePolicyOutput
- func (i GetFunctionEventTriggerFailurePolicyArgs) ToOutput(ctx context.Context) pulumix.Output[GetFunctionEventTriggerFailurePolicy]
- type GetFunctionEventTriggerFailurePolicyArray
- func (GetFunctionEventTriggerFailurePolicyArray) ElementType() reflect.Type
- func (i GetFunctionEventTriggerFailurePolicyArray) ToGetFunctionEventTriggerFailurePolicyArrayOutput() GetFunctionEventTriggerFailurePolicyArrayOutput
- func (i GetFunctionEventTriggerFailurePolicyArray) ToGetFunctionEventTriggerFailurePolicyArrayOutputWithContext(ctx context.Context) GetFunctionEventTriggerFailurePolicyArrayOutput
- func (i GetFunctionEventTriggerFailurePolicyArray) ToOutput(ctx context.Context) pulumix.Output[[]GetFunctionEventTriggerFailurePolicy]
- 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
- func (o GetFunctionEventTriggerFailurePolicyArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]GetFunctionEventTriggerFailurePolicy]
- 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
- func (o GetFunctionEventTriggerFailurePolicyOutput) ToOutput(ctx context.Context) pulumix.Output[GetFunctionEventTriggerFailurePolicy]
- 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
- func (o GetFunctionEventTriggerOutput) ToOutput(ctx context.Context) pulumix.Output[GetFunctionEventTrigger]
- type GetFunctionSecretEnvironmentVariable
- type GetFunctionSecretEnvironmentVariableArgs
- func (GetFunctionSecretEnvironmentVariableArgs) ElementType() reflect.Type
- func (i GetFunctionSecretEnvironmentVariableArgs) ToGetFunctionSecretEnvironmentVariableOutput() GetFunctionSecretEnvironmentVariableOutput
- func (i GetFunctionSecretEnvironmentVariableArgs) ToGetFunctionSecretEnvironmentVariableOutputWithContext(ctx context.Context) GetFunctionSecretEnvironmentVariableOutput
- func (i GetFunctionSecretEnvironmentVariableArgs) ToOutput(ctx context.Context) pulumix.Output[GetFunctionSecretEnvironmentVariable]
- type GetFunctionSecretEnvironmentVariableArray
- func (GetFunctionSecretEnvironmentVariableArray) ElementType() reflect.Type
- func (i GetFunctionSecretEnvironmentVariableArray) ToGetFunctionSecretEnvironmentVariableArrayOutput() GetFunctionSecretEnvironmentVariableArrayOutput
- func (i GetFunctionSecretEnvironmentVariableArray) ToGetFunctionSecretEnvironmentVariableArrayOutputWithContext(ctx context.Context) GetFunctionSecretEnvironmentVariableArrayOutput
- func (i GetFunctionSecretEnvironmentVariableArray) ToOutput(ctx context.Context) pulumix.Output[[]GetFunctionSecretEnvironmentVariable]
- 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
- func (o GetFunctionSecretEnvironmentVariableArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]GetFunctionSecretEnvironmentVariable]
- 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) ToOutput(ctx context.Context) pulumix.Output[GetFunctionSecretEnvironmentVariable]
- func (o GetFunctionSecretEnvironmentVariableOutput) Version() pulumi.StringOutput
- type GetFunctionSecretVolume
- type GetFunctionSecretVolumeArgs
- func (GetFunctionSecretVolumeArgs) ElementType() reflect.Type
- func (i GetFunctionSecretVolumeArgs) ToGetFunctionSecretVolumeOutput() GetFunctionSecretVolumeOutput
- func (i GetFunctionSecretVolumeArgs) ToGetFunctionSecretVolumeOutputWithContext(ctx context.Context) GetFunctionSecretVolumeOutput
- func (i GetFunctionSecretVolumeArgs) ToOutput(ctx context.Context) pulumix.Output[GetFunctionSecretVolume]
- type GetFunctionSecretVolumeArray
- func (GetFunctionSecretVolumeArray) ElementType() reflect.Type
- func (i GetFunctionSecretVolumeArray) ToGetFunctionSecretVolumeArrayOutput() GetFunctionSecretVolumeArrayOutput
- func (i GetFunctionSecretVolumeArray) ToGetFunctionSecretVolumeArrayOutputWithContext(ctx context.Context) GetFunctionSecretVolumeArrayOutput
- func (i GetFunctionSecretVolumeArray) ToOutput(ctx context.Context) pulumix.Output[[]GetFunctionSecretVolume]
- 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
- func (o GetFunctionSecretVolumeArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]GetFunctionSecretVolume]
- 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) ToOutput(ctx context.Context) pulumix.Output[GetFunctionSecretVolume]
- 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
- func (i GetFunctionSecretVolumeVersionArgs) ToOutput(ctx context.Context) pulumix.Output[GetFunctionSecretVolumeVersion]
- type GetFunctionSecretVolumeVersionArray
- func (GetFunctionSecretVolumeVersionArray) ElementType() reflect.Type
- func (i GetFunctionSecretVolumeVersionArray) ToGetFunctionSecretVolumeVersionArrayOutput() GetFunctionSecretVolumeVersionArrayOutput
- func (i GetFunctionSecretVolumeVersionArray) ToGetFunctionSecretVolumeVersionArrayOutputWithContext(ctx context.Context) GetFunctionSecretVolumeVersionArrayOutput
- func (i GetFunctionSecretVolumeVersionArray) ToOutput(ctx context.Context) pulumix.Output[[]GetFunctionSecretVolumeVersion]
- 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
- func (o GetFunctionSecretVolumeVersionArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]GetFunctionSecretVolumeVersion]
- 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) ToOutput(ctx context.Context) pulumix.Output[GetFunctionSecretVolumeVersion]
- 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
- func (i GetFunctionSourceRepositoryArgs) ToOutput(ctx context.Context) pulumix.Output[GetFunctionSourceRepository]
- type GetFunctionSourceRepositoryArray
- func (GetFunctionSourceRepositoryArray) ElementType() reflect.Type
- func (i GetFunctionSourceRepositoryArray) ToGetFunctionSourceRepositoryArrayOutput() GetFunctionSourceRepositoryArrayOutput
- func (i GetFunctionSourceRepositoryArray) ToGetFunctionSourceRepositoryArrayOutputWithContext(ctx context.Context) GetFunctionSourceRepositoryArrayOutput
- func (i GetFunctionSourceRepositoryArray) ToOutput(ctx context.Context) pulumix.Output[[]GetFunctionSourceRepository]
- 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
- func (o GetFunctionSourceRepositoryArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]GetFunctionSourceRepository]
- 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) ToOutput(ctx context.Context) pulumix.Output[GetFunctionSourceRepository]
- func (o GetFunctionSourceRepositoryOutput) Url() pulumi.StringOutput
- type LookupFunctionArgs
- type LookupFunctionIamPolicyArgs
- type LookupFunctionIamPolicyOutputArgs
- type LookupFunctionIamPolicyResult
- type LookupFunctionIamPolicyResultOutput
- func (o LookupFunctionIamPolicyResultOutput) CloudFunction() pulumi.StringOutput
- func (LookupFunctionIamPolicyResultOutput) ElementType() reflect.Type
- func (o LookupFunctionIamPolicyResultOutput) Etag() pulumi.StringOutput
- func (o LookupFunctionIamPolicyResultOutput) Id() pulumi.StringOutput
- func (o LookupFunctionIamPolicyResultOutput) PolicyData() pulumi.StringOutput
- func (o LookupFunctionIamPolicyResultOutput) Project() pulumi.StringOutput
- func (o LookupFunctionIamPolicyResultOutput) Region() pulumi.StringOutput
- func (o LookupFunctionIamPolicyResultOutput) ToLookupFunctionIamPolicyResultOutput() LookupFunctionIamPolicyResultOutput
- func (o LookupFunctionIamPolicyResultOutput) ToLookupFunctionIamPolicyResultOutputWithContext(ctx context.Context) LookupFunctionIamPolicyResultOutput
- func (o LookupFunctionIamPolicyResultOutput) ToOutput(ctx context.Context) pulumix.Output[LookupFunctionIamPolicyResult]
- type LookupFunctionOutputArgs
- type LookupFunctionResult
- type LookupFunctionResultOutput
- func (o LookupFunctionResultOutput) AvailableMemoryMb() pulumi.IntOutput
- func (o LookupFunctionResultOutput) BuildEnvironmentVariables() pulumi.MapOutput
- func (o LookupFunctionResultOutput) BuildWorkerPool() pulumi.StringOutput
- func (o LookupFunctionResultOutput) Description() pulumi.StringOutput
- func (o LookupFunctionResultOutput) DockerRegistry() pulumi.StringOutput
- func (o LookupFunctionResultOutput) DockerRepository() 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) HttpsTriggerSecurityLevel() pulumi.StringOutput
- func (o LookupFunctionResultOutput) HttpsTriggerUrl() pulumi.StringOutput
- func (o LookupFunctionResultOutput) Id() pulumi.StringOutput
- func (o LookupFunctionResultOutput) IngressSettings() pulumi.StringOutput
- func (o LookupFunctionResultOutput) KmsKeyName() 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) Status() pulumi.StringOutput
- func (o LookupFunctionResultOutput) Timeout() pulumi.IntOutput
- func (o LookupFunctionResultOutput) ToLookupFunctionResultOutput() LookupFunctionResultOutput
- func (o LookupFunctionResultOutput) ToLookupFunctionResultOutputWithContext(ctx context.Context) LookupFunctionResultOutput
- func (o LookupFunctionResultOutput) ToOutput(ctx context.Context) pulumix.Output[LookupFunctionResult]
- 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"` // Name of the Cloud Build Custom Worker Pool that should be used to build the function. BuildWorkerPool pulumi.StringPtrOutput `pulumi:"buildWorkerPool"` // Description of the function. Description pulumi.StringPtrOutput `pulumi:"description"` // Docker Registry to use for storing the function's Docker images. Allowed values are CONTAINER_REGISTRY (default) and ARTIFACT_REGISTRY. DockerRegistry pulumi.StringOutput `pulumi:"dockerRegistry"` // User managed repository created in Artifact Registry optionally with a customer managed encryption key. If specified, deployments will use Artifact Registry. This is the repository to which the function docker image will be pushed after it is built by Cloud Build. If unspecified, Container Registry will be used by default, unless specified otherwise by other means. DockerRepository pulumi.StringPtrOutput `pulumi:"dockerRepository"` // 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"` // The security level for the function. The following options are available: HttpsTriggerSecurityLevel pulumi.StringOutput `pulumi:"httpsTriggerSecurityLevel"` // 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"` // Resource name of a KMS crypto key (managed by the user) used to encrypt/decrypt function resources. It must match the pattern `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`. // If specified, you must also provide an artifact registry repository using the `dockerRepository` field that was created with the same KMS crypto key. Before deploying, please complete all pre-requisites described in https://cloud.google.com/functions/docs/securing/cmek#granting_service_accounts_access_to_the_key KmsKeyName pulumi.StringPtrOutput `pulumi:"kmsKeyName"` // 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.IntOutput `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. `"nodejs16"`, `"python39"`, `"dotnet3"`, `"go116"`, `"java11"`, `"ruby30"`, `"php74"`, 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. It must match the pattern `projects/{project}/locations/{location}/repositories/{repository}`.* SourceRepository FunctionSourceRepositoryPtrOutput `pulumi:"sourceRepository"` // Describes the current stage of a deployment. Status pulumi.StringOutput `pulumi:"status"` // 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("nodejs16"), 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("nodejs16"), AvailableMemoryMb: pulumi.Int(128), SourceArchiveBucket: bucket.Name, SourceArchiveObject: archive.Name, TriggerHttp: pulumi.Bool(true), HttpsTriggerSecurityLevel: pulumi.String("SECURE_ALWAYS"), Timeout: pulumi.Int(60), EntryPoint: pulumi.String("helloGET"), Labels: pulumi.Map{ "my-label": pulumi.Any("my-label-value"), }, EnvironmentVariables: pulumi.Map{ "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 // Name of the Cloud Build Custom Worker Pool that should be used to build the function. BuildWorkerPool pulumi.StringPtrInput // Description of the function. Description pulumi.StringPtrInput // Docker Registry to use for storing the function's Docker images. Allowed values are CONTAINER_REGISTRY (default) and ARTIFACT_REGISTRY. DockerRegistry pulumi.StringPtrInput // User managed repository created in Artifact Registry optionally with a customer managed encryption key. If specified, deployments will use Artifact Registry. This is the repository to which the function docker image will be pushed after it is built by Cloud Build. If unspecified, Container Registry will be used by default, unless specified otherwise by other means. DockerRepository 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 // The security level for the function. The following options are available: HttpsTriggerSecurityLevel pulumi.StringPtrInput // 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 // Resource name of a KMS crypto key (managed by the user) used to encrypt/decrypt function resources. It must match the pattern `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`. // If specified, you must also provide an artifact registry repository using the `dockerRepository` field that was created with the same KMS crypto key. Before deploying, please complete all pre-requisites described in https://cloud.google.com/functions/docs/securing/cmek#granting_service_accounts_access_to_the_key KmsKeyName 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. `"nodejs16"`, `"python39"`, `"dotnet3"`, `"go116"`, `"java11"`, `"ruby30"`, `"php74"`, 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. It must match the pattern `projects/{project}/locations/{location}/repositories/{repository}`.* 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
func (FunctionEventTriggerArgs) ToOutput ¶ added in v6.65.1
func (i FunctionEventTriggerArgs) ToOutput(ctx context.Context) pulumix.Output[FunctionEventTrigger]
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
func (FunctionEventTriggerFailurePolicyArgs) ToOutput ¶ added in v6.65.1
func (i FunctionEventTriggerFailurePolicyArgs) ToOutput(ctx context.Context) pulumix.Output[FunctionEventTriggerFailurePolicy]
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
func (FunctionEventTriggerFailurePolicyOutput) ToOutput ¶ added in v6.65.1
func (o FunctionEventTriggerFailurePolicyOutput) ToOutput(ctx context.Context) pulumix.Output[FunctionEventTriggerFailurePolicy]
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
func (FunctionEventTriggerFailurePolicyPtrOutput) ToOutput ¶ added in v6.65.1
func (o FunctionEventTriggerFailurePolicyPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*FunctionEventTriggerFailurePolicy]
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
func (FunctionEventTriggerOutput) ToOutput ¶ added in v6.65.1
func (o FunctionEventTriggerOutput) ToOutput(ctx context.Context) pulumix.Output[FunctionEventTrigger]
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
func (FunctionEventTriggerPtrOutput) ToOutput ¶ added in v6.65.1
func (o FunctionEventTriggerPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*FunctionEventTrigger]
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. // // * `member/members` - (Required) Identities that will be granted the privilege in `role`. // Each entry can have one of the following values: // * **allUsers**: A special identifier that represents anyone who is on the internet; with or without a Google account. // * **allAuthenticatedUsers**: A special identifier that represents anyone who is authenticated with a Google account or a service account. // * **user:{emailid}**: An email address that represents a specific Google account. For example, alice@gmail.com or joe@example.com. // * **serviceAccount:{emailid}**: An email address that represents a service account. For example, my-other-app@appspot.gserviceaccount.com. // * **group:{emailid}**: An email address that represents a Google group. For example, admins@example.com. // * **domain:{domain}**: A G Suite domain (primary, instead of alias) name that represents all the users of that domain. For example, google.com or example.com. // * **projectOwner:projectid**: Owners of the given project. For example, "projectOwner:my-example-project" // * **projectEditor:projectid**: Editors of the given project. For example, "projectEditor:my-example-project" // * **projectViewer:projectid**: Viewers of the given project. For example, "projectViewer:my-example-project" 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.
A data source can be used to retrieve policy data in advent you do not need creation ¶
* `cloudfunctions.FunctionIamPolicy`: Retrieves the IAM policy for the cloudfunction
> **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{ { 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
func (*FunctionIamBinding) ToOutput ¶ added in v6.65.1
func (i *FunctionIamBinding) ToOutput(ctx context.Context) pulumix.Output[*FunctionIamBinding]
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. // // * `member/members` - (Required) Identities that will be granted the privilege in `role`. // Each entry can have one of the following values: // * **allUsers**: A special identifier that represents anyone who is on the internet; with or without a Google account. // * **allAuthenticatedUsers**: A special identifier that represents anyone who is authenticated with a Google account or a service account. // * **user:{emailid}**: An email address that represents a specific Google account. For example, alice@gmail.com or joe@example.com. // * **serviceAccount:{emailid}**: An email address that represents a service account. For example, my-other-app@appspot.gserviceaccount.com. // * **group:{emailid}**: An email address that represents a Google group. For example, admins@example.com. // * **domain:{domain}**: A G Suite domain (primary, instead of alias) name that represents all the users of that domain. For example, google.com or example.com. // * **projectOwner:projectid**: Owners of the given project. For example, "projectOwner:my-example-project" // * **projectEditor:projectid**: Editors of the given project. For example, "projectEditor:my-example-project" // * **projectViewer:projectid**: Viewers of the given project. For example, "projectViewer:my-example-project" 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
func (FunctionIamBindingArray) ToOutput ¶ added in v6.65.1
func (i FunctionIamBindingArray) ToOutput(ctx context.Context) pulumix.Output[[]*FunctionIamBinding]
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
func (FunctionIamBindingArrayOutput) ToOutput ¶ added in v6.65.1
func (o FunctionIamBindingArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]*FunctionIamBinding]
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
func (FunctionIamBindingConditionArgs) ToOutput ¶ added in v6.65.1
func (i FunctionIamBindingConditionArgs) ToOutput(ctx context.Context) pulumix.Output[FunctionIamBindingCondition]
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
func (FunctionIamBindingConditionOutput) ToOutput ¶ added in v6.65.1
func (o FunctionIamBindingConditionOutput) ToOutput(ctx context.Context) pulumix.Output[FunctionIamBindingCondition]
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
func (FunctionIamBindingConditionPtrOutput) ToOutput ¶ added in v6.65.1
func (o FunctionIamBindingConditionPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*FunctionIamBindingCondition]
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
func (FunctionIamBindingMap) ToOutput ¶ added in v6.65.1
func (i FunctionIamBindingMap) ToOutput(ctx context.Context) pulumix.Output[map[string]*FunctionIamBinding]
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
func (FunctionIamBindingMapOutput) ToOutput ¶ added in v6.65.1
func (o FunctionIamBindingMapOutput) ToOutput(ctx context.Context) pulumix.Output[map[string]*FunctionIamBinding]
type FunctionIamBindingOutput ¶
type FunctionIamBindingOutput struct{ *pulumi.OutputState }
func (FunctionIamBindingOutput) CloudFunction ¶ added in v6.23.0
func (o FunctionIamBindingOutput) CloudFunction() pulumi.StringOutput
Used to find the parent resource to bind the IAM policy to
func (FunctionIamBindingOutput) Condition ¶ added in v6.23.0
func (o FunctionIamBindingOutput) Condition() FunctionIamBindingConditionPtrOutput
func (FunctionIamBindingOutput) ElementType ¶
func (FunctionIamBindingOutput) ElementType() reflect.Type
func (FunctionIamBindingOutput) Etag ¶ added in v6.23.0
func (o FunctionIamBindingOutput) Etag() pulumi.StringOutput
(Computed) The etag of the IAM policy.
func (FunctionIamBindingOutput) Members ¶ added in v6.23.0
func (o FunctionIamBindingOutput) Members() pulumi.StringArrayOutput
func (FunctionIamBindingOutput) Project ¶ added in v6.23.0
func (o FunctionIamBindingOutput) Project() pulumi.StringOutput
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.
- `member/members` - (Required) Identities that will be granted the privilege in `role`. Each entry can have one of the following values:
- **allUsers**: A special identifier that represents anyone who is on the internet; with or without a Google account.
- **allAuthenticatedUsers**: A special identifier that represents anyone who is authenticated with a Google account or a service account.
- **user:{emailid}**: An email address that represents a specific Google account. For example, alice@gmail.com or joe@example.com.
- **serviceAccount:{emailid}**: An email address that represents a service account. For example, my-other-app@appspot.gserviceaccount.com.
- **group:{emailid}**: An email address that represents a Google group. For example, admins@example.com.
- **domain:{domain}**: A G Suite domain (primary, instead of alias) name that represents all the users of that domain. For example, google.com or example.com.
- **projectOwner:projectid**: Owners of the given project. For example, "projectOwner:my-example-project"
- **projectEditor:projectid**: Editors of the given project. For example, "projectEditor:my-example-project"
- **projectViewer:projectid**: Viewers of the given project. For example, "projectViewer:my-example-project"
func (FunctionIamBindingOutput) Region ¶ added in v6.23.0
func (o FunctionIamBindingOutput) Region() pulumi.StringOutput
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.
func (FunctionIamBindingOutput) Role ¶ added in v6.23.0
func (o FunctionIamBindingOutput) Role() pulumi.StringOutput
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}`.
func (FunctionIamBindingOutput) ToFunctionIamBindingOutput ¶
func (o FunctionIamBindingOutput) ToFunctionIamBindingOutput() FunctionIamBindingOutput
func (FunctionIamBindingOutput) ToFunctionIamBindingOutputWithContext ¶
func (o FunctionIamBindingOutput) ToFunctionIamBindingOutputWithContext(ctx context.Context) FunctionIamBindingOutput
func (FunctionIamBindingOutput) ToOutput ¶ added in v6.65.1
func (o FunctionIamBindingOutput) ToOutput(ctx context.Context) pulumix.Output[*FunctionIamBinding]
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. // // * `member/members` - (Required) Identities that will be granted the privilege in `role`. // Each entry can have one of the following values: // * **allUsers**: A special identifier that represents anyone who is on the internet; with or without a Google account. // * **allAuthenticatedUsers**: A special identifier that represents anyone who is authenticated with a Google account or a service account. // * **user:{emailid}**: An email address that represents a specific Google account. For example, alice@gmail.com or joe@example.com. // * **serviceAccount:{emailid}**: An email address that represents a service account. For example, my-other-app@appspot.gserviceaccount.com. // * **group:{emailid}**: An email address that represents a Google group. For example, admins@example.com. // * **domain:{domain}**: A G Suite domain (primary, instead of alias) name that represents all the users of that domain. For example, google.com or example.com. // * **projectOwner:projectid**: Owners of the given project. For example, "projectOwner:my-example-project" // * **projectEditor:projectid**: Editors of the given project. For example, "projectEditor:my-example-project" // * **projectViewer:projectid**: Viewers of the given project. For example, "projectViewer:my-example-project" 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. // // * `member/members` - (Required) Identities that will be granted the privilege in `role`. // Each entry can have one of the following values: // * **allUsers**: A special identifier that represents anyone who is on the internet; with or without a Google account. // * **allAuthenticatedUsers**: A special identifier that represents anyone who is authenticated with a Google account or a service account. // * **user:{emailid}**: An email address that represents a specific Google account. For example, alice@gmail.com or joe@example.com. // * **serviceAccount:{emailid}**: An email address that represents a service account. For example, my-other-app@appspot.gserviceaccount.com. // * **group:{emailid}**: An email address that represents a Google group. For example, admins@example.com. // * **domain:{domain}**: A G Suite domain (primary, instead of alias) name that represents all the users of that domain. For example, google.com or example.com. // * **projectOwner:projectid**: Owners of the given project. For example, "projectOwner:my-example-project" // * **projectEditor:projectid**: Editors of the given project. For example, "projectEditor:my-example-project" // * **projectViewer:projectid**: Viewers of the given project. For example, "projectViewer:my-example-project" 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.
A data source can be used to retrieve policy data in advent you do not need creation ¶
* `cloudfunctions.FunctionIamPolicy`: Retrieves the IAM policy for the cloudfunction
> **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{ { 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
func (*FunctionIamMember) ToOutput ¶ added in v6.65.1
func (i *FunctionIamMember) ToOutput(ctx context.Context) pulumix.Output[*FunctionIamMember]
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. // // * `member/members` - (Required) Identities that will be granted the privilege in `role`. // Each entry can have one of the following values: // * **allUsers**: A special identifier that represents anyone who is on the internet; with or without a Google account. // * **allAuthenticatedUsers**: A special identifier that represents anyone who is authenticated with a Google account or a service account. // * **user:{emailid}**: An email address that represents a specific Google account. For example, alice@gmail.com or joe@example.com. // * **serviceAccount:{emailid}**: An email address that represents a service account. For example, my-other-app@appspot.gserviceaccount.com. // * **group:{emailid}**: An email address that represents a Google group. For example, admins@example.com. // * **domain:{domain}**: A G Suite domain (primary, instead of alias) name that represents all the users of that domain. For example, google.com or example.com. // * **projectOwner:projectid**: Owners of the given project. For example, "projectOwner:my-example-project" // * **projectEditor:projectid**: Editors of the given project. For example, "projectEditor:my-example-project" // * **projectViewer:projectid**: Viewers of the given project. For example, "projectViewer:my-example-project" 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
func (FunctionIamMemberArray) ToOutput ¶ added in v6.65.1
func (i FunctionIamMemberArray) ToOutput(ctx context.Context) pulumix.Output[[]*FunctionIamMember]
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
func (FunctionIamMemberArrayOutput) ToOutput ¶ added in v6.65.1
func (o FunctionIamMemberArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]*FunctionIamMember]
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
func (FunctionIamMemberConditionArgs) ToOutput ¶ added in v6.65.1
func (i FunctionIamMemberConditionArgs) ToOutput(ctx context.Context) pulumix.Output[FunctionIamMemberCondition]
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
func (FunctionIamMemberConditionOutput) ToOutput ¶ added in v6.65.1
func (o FunctionIamMemberConditionOutput) ToOutput(ctx context.Context) pulumix.Output[FunctionIamMemberCondition]
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
func (FunctionIamMemberConditionPtrOutput) ToOutput ¶ added in v6.65.1
func (o FunctionIamMemberConditionPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*FunctionIamMemberCondition]
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
func (FunctionIamMemberMap) ToOutput ¶ added in v6.65.1
func (i FunctionIamMemberMap) ToOutput(ctx context.Context) pulumix.Output[map[string]*FunctionIamMember]
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
func (FunctionIamMemberMapOutput) ToOutput ¶ added in v6.65.1
func (o FunctionIamMemberMapOutput) ToOutput(ctx context.Context) pulumix.Output[map[string]*FunctionIamMember]
type FunctionIamMemberOutput ¶
type FunctionIamMemberOutput struct{ *pulumi.OutputState }
func (FunctionIamMemberOutput) CloudFunction ¶ added in v6.23.0
func (o FunctionIamMemberOutput) CloudFunction() pulumi.StringOutput
Used to find the parent resource to bind the IAM policy to
func (FunctionIamMemberOutput) Condition ¶ added in v6.23.0
func (o FunctionIamMemberOutput) Condition() FunctionIamMemberConditionPtrOutput
func (FunctionIamMemberOutput) ElementType ¶
func (FunctionIamMemberOutput) ElementType() reflect.Type
func (FunctionIamMemberOutput) Etag ¶ added in v6.23.0
func (o FunctionIamMemberOutput) Etag() pulumi.StringOutput
(Computed) The etag of the IAM policy.
func (FunctionIamMemberOutput) Member ¶ added in v6.23.0
func (o FunctionIamMemberOutput) Member() pulumi.StringOutput
func (FunctionIamMemberOutput) Project ¶ added in v6.23.0
func (o FunctionIamMemberOutput) Project() pulumi.StringOutput
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.
- `member/members` - (Required) Identities that will be granted the privilege in `role`. Each entry can have one of the following values:
- **allUsers**: A special identifier that represents anyone who is on the internet; with or without a Google account.
- **allAuthenticatedUsers**: A special identifier that represents anyone who is authenticated with a Google account or a service account.
- **user:{emailid}**: An email address that represents a specific Google account. For example, alice@gmail.com or joe@example.com.
- **serviceAccount:{emailid}**: An email address that represents a service account. For example, my-other-app@appspot.gserviceaccount.com.
- **group:{emailid}**: An email address that represents a Google group. For example, admins@example.com.
- **domain:{domain}**: A G Suite domain (primary, instead of alias) name that represents all the users of that domain. For example, google.com or example.com.
- **projectOwner:projectid**: Owners of the given project. For example, "projectOwner:my-example-project"
- **projectEditor:projectid**: Editors of the given project. For example, "projectEditor:my-example-project"
- **projectViewer:projectid**: Viewers of the given project. For example, "projectViewer:my-example-project"
func (FunctionIamMemberOutput) Region ¶ added in v6.23.0
func (o FunctionIamMemberOutput) Region() pulumi.StringOutput
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.
func (FunctionIamMemberOutput) Role ¶ added in v6.23.0
func (o FunctionIamMemberOutput) Role() pulumi.StringOutput
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}`.
func (FunctionIamMemberOutput) ToFunctionIamMemberOutput ¶
func (o FunctionIamMemberOutput) ToFunctionIamMemberOutput() FunctionIamMemberOutput
func (FunctionIamMemberOutput) ToFunctionIamMemberOutputWithContext ¶
func (o FunctionIamMemberOutput) ToFunctionIamMemberOutputWithContext(ctx context.Context) FunctionIamMemberOutput
func (FunctionIamMemberOutput) ToOutput ¶ added in v6.65.1
func (o FunctionIamMemberOutput) ToOutput(ctx context.Context) pulumix.Output[*FunctionIamMember]
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. // // * `member/members` - (Required) Identities that will be granted the privilege in `role`. // Each entry can have one of the following values: // * **allUsers**: A special identifier that represents anyone who is on the internet; with or without a Google account. // * **allAuthenticatedUsers**: A special identifier that represents anyone who is authenticated with a Google account or a service account. // * **user:{emailid}**: An email address that represents a specific Google account. For example, alice@gmail.com or joe@example.com. // * **serviceAccount:{emailid}**: An email address that represents a service account. For example, my-other-app@appspot.gserviceaccount.com. // * **group:{emailid}**: An email address that represents a Google group. For example, admins@example.com. // * **domain:{domain}**: A G Suite domain (primary, instead of alias) name that represents all the users of that domain. For example, google.com or example.com. // * **projectOwner:projectid**: Owners of the given project. For example, "projectOwner:my-example-project" // * **projectEditor:projectid**: Editors of the given project. For example, "projectEditor:my-example-project" // * **projectViewer:projectid**: Viewers of the given project. For example, "projectViewer:my-example-project" 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. // // * `member/members` - (Required) Identities that will be granted the privilege in `role`. // Each entry can have one of the following values: // * **allUsers**: A special identifier that represents anyone who is on the internet; with or without a Google account. // * **allAuthenticatedUsers**: A special identifier that represents anyone who is authenticated with a Google account or a service account. // * **user:{emailid}**: An email address that represents a specific Google account. For example, alice@gmail.com or joe@example.com. // * **serviceAccount:{emailid}**: An email address that represents a service account. For example, my-other-app@appspot.gserviceaccount.com. // * **group:{emailid}**: An email address that represents a Google group. For example, admins@example.com. // * **domain:{domain}**: A G Suite domain (primary, instead of alias) name that represents all the users of that domain. For example, google.com or example.com. // * **projectOwner:projectid**: Owners of the given project. For example, "projectOwner:my-example-project" // * **projectEditor:projectid**: Editors of the given project. For example, "projectEditor:my-example-project" // * **projectViewer:projectid**: Viewers of the given project. For example, "projectViewer:my-example-project" 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.
A data source can be used to retrieve policy data in advent you do not need creation ¶
* `cloudfunctions.FunctionIamPolicy`: Retrieves the IAM policy for the cloudfunction
> **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{ { 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
func (*FunctionIamPolicy) ToOutput ¶ added in v6.65.1
func (i *FunctionIamPolicy) ToOutput(ctx context.Context) pulumix.Output[*FunctionIamPolicy]
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. // // * `member/members` - (Required) Identities that will be granted the privilege in `role`. // Each entry can have one of the following values: // * **allUsers**: A special identifier that represents anyone who is on the internet; with or without a Google account. // * **allAuthenticatedUsers**: A special identifier that represents anyone who is authenticated with a Google account or a service account. // * **user:{emailid}**: An email address that represents a specific Google account. For example, alice@gmail.com or joe@example.com. // * **serviceAccount:{emailid}**: An email address that represents a service account. For example, my-other-app@appspot.gserviceaccount.com. // * **group:{emailid}**: An email address that represents a Google group. For example, admins@example.com. // * **domain:{domain}**: A G Suite domain (primary, instead of alias) name that represents all the users of that domain. For example, google.com or example.com. // * **projectOwner:projectid**: Owners of the given project. For example, "projectOwner:my-example-project" // * **projectEditor:projectid**: Editors of the given project. For example, "projectEditor:my-example-project" // * **projectViewer:projectid**: Viewers of the given project. For example, "projectViewer:my-example-project" 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
func (FunctionIamPolicyArray) ToOutput ¶ added in v6.65.1
func (i FunctionIamPolicyArray) ToOutput(ctx context.Context) pulumix.Output[[]*FunctionIamPolicy]
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
func (FunctionIamPolicyArrayOutput) ToOutput ¶ added in v6.65.1
func (o FunctionIamPolicyArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]*FunctionIamPolicy]
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
func (FunctionIamPolicyMap) ToOutput ¶ added in v6.65.1
func (i FunctionIamPolicyMap) ToOutput(ctx context.Context) pulumix.Output[map[string]*FunctionIamPolicy]
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
func (FunctionIamPolicyMapOutput) ToOutput ¶ added in v6.65.1
func (o FunctionIamPolicyMapOutput) ToOutput(ctx context.Context) pulumix.Output[map[string]*FunctionIamPolicy]
type FunctionIamPolicyOutput ¶
type FunctionIamPolicyOutput struct{ *pulumi.OutputState }
func (FunctionIamPolicyOutput) CloudFunction ¶ added in v6.23.0
func (o FunctionIamPolicyOutput) CloudFunction() pulumi.StringOutput
Used to find the parent resource to bind the IAM policy to
func (FunctionIamPolicyOutput) ElementType ¶
func (FunctionIamPolicyOutput) ElementType() reflect.Type
func (FunctionIamPolicyOutput) Etag ¶ added in v6.23.0
func (o FunctionIamPolicyOutput) Etag() pulumi.StringOutput
(Computed) The etag of the IAM policy.
func (FunctionIamPolicyOutput) PolicyData ¶ added in v6.23.0
func (o FunctionIamPolicyOutput) PolicyData() pulumi.StringOutput
The policy data generated by a `organizations.getIAMPolicy` data source.
func (FunctionIamPolicyOutput) Project ¶ added in v6.23.0
func (o FunctionIamPolicyOutput) Project() pulumi.StringOutput
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.
- `member/members` - (Required) Identities that will be granted the privilege in `role`. Each entry can have one of the following values:
- **allUsers**: A special identifier that represents anyone who is on the internet; with or without a Google account.
- **allAuthenticatedUsers**: A special identifier that represents anyone who is authenticated with a Google account or a service account.
- **user:{emailid}**: An email address that represents a specific Google account. For example, alice@gmail.com or joe@example.com.
- **serviceAccount:{emailid}**: An email address that represents a service account. For example, my-other-app@appspot.gserviceaccount.com.
- **group:{emailid}**: An email address that represents a Google group. For example, admins@example.com.
- **domain:{domain}**: A G Suite domain (primary, instead of alias) name that represents all the users of that domain. For example, google.com or example.com.
- **projectOwner:projectid**: Owners of the given project. For example, "projectOwner:my-example-project"
- **projectEditor:projectid**: Editors of the given project. For example, "projectEditor:my-example-project"
- **projectViewer:projectid**: Viewers of the given project. For example, "projectViewer:my-example-project"
func (FunctionIamPolicyOutput) Region ¶ added in v6.23.0
func (o FunctionIamPolicyOutput) Region() pulumi.StringOutput
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.
func (FunctionIamPolicyOutput) ToFunctionIamPolicyOutput ¶
func (o FunctionIamPolicyOutput) ToFunctionIamPolicyOutput() FunctionIamPolicyOutput
func (FunctionIamPolicyOutput) ToFunctionIamPolicyOutputWithContext ¶
func (o FunctionIamPolicyOutput) ToFunctionIamPolicyOutputWithContext(ctx context.Context) FunctionIamPolicyOutput
func (FunctionIamPolicyOutput) ToOutput ¶ added in v6.65.1
func (o FunctionIamPolicyOutput) ToOutput(ctx context.Context) pulumix.Output[*FunctionIamPolicy]
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. // // * `member/members` - (Required) Identities that will be granted the privilege in `role`. // Each entry can have one of the following values: // * **allUsers**: A special identifier that represents anyone who is on the internet; with or without a Google account. // * **allAuthenticatedUsers**: A special identifier that represents anyone who is authenticated with a Google account or a service account. // * **user:{emailid}**: An email address that represents a specific Google account. For example, alice@gmail.com or joe@example.com. // * **serviceAccount:{emailid}**: An email address that represents a service account. For example, my-other-app@appspot.gserviceaccount.com. // * **group:{emailid}**: An email address that represents a Google group. For example, admins@example.com. // * **domain:{domain}**: A G Suite domain (primary, instead of alias) name that represents all the users of that domain. For example, google.com or example.com. // * **projectOwner:projectid**: Owners of the given project. For example, "projectOwner:my-example-project" // * **projectEditor:projectid**: Editors of the given project. For example, "projectEditor:my-example-project" // * **projectViewer:projectid**: Viewers of the given project. For example, "projectViewer:my-example-project" 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) AvailableMemoryMb ¶ added in v6.23.0
func (o FunctionOutput) AvailableMemoryMb() pulumi.IntPtrOutput
Memory (in MB), available to the function. Default value is `256`. Possible values include `128`, `256`, `512`, `1024`, etc.
func (FunctionOutput) BuildEnvironmentVariables ¶ added in v6.23.0
func (o FunctionOutput) BuildEnvironmentVariables() pulumi.MapOutput
A set of key/value environment variable pairs available during build time.
func (FunctionOutput) BuildWorkerPool ¶ added in v6.39.0
func (o FunctionOutput) BuildWorkerPool() pulumi.StringPtrOutput
Name of the Cloud Build Custom Worker Pool that should be used to build the function.
func (FunctionOutput) Description ¶ added in v6.23.0
func (o FunctionOutput) Description() pulumi.StringPtrOutput
Description of the function.
func (FunctionOutput) DockerRegistry ¶ added in v6.26.0
func (o FunctionOutput) DockerRegistry() pulumi.StringOutput
Docker Registry to use for storing the function's Docker images. Allowed values are CONTAINER_REGISTRY (default) and ARTIFACT_REGISTRY.
func (FunctionOutput) DockerRepository ¶ added in v6.24.0
func (o FunctionOutput) DockerRepository() pulumi.StringPtrOutput
User managed repository created in Artifact Registry optionally with a customer managed encryption key. If specified, deployments will use Artifact Registry. This is the repository to which the function docker image will be pushed after it is built by Cloud Build. If unspecified, Container Registry will be used by default, unless specified otherwise by other means.
func (FunctionOutput) ElementType ¶
func (FunctionOutput) ElementType() reflect.Type
func (FunctionOutput) EntryPoint ¶ added in v6.23.0
func (o FunctionOutput) EntryPoint() pulumi.StringPtrOutput
Name of the function that will be executed when the Google Cloud Function is triggered.
func (FunctionOutput) EnvironmentVariables ¶ added in v6.23.0
func (o FunctionOutput) EnvironmentVariables() pulumi.MapOutput
A set of key/value environment variable pairs to assign to the function.
func (FunctionOutput) EventTrigger ¶ added in v6.23.0
func (o FunctionOutput) EventTrigger() FunctionEventTriggerOutput
A source that fires events in response to a condition in another service. Structure is documented below. Cannot be used with `triggerHttp`.
func (FunctionOutput) HttpsTriggerSecurityLevel ¶ added in v6.25.0
func (o FunctionOutput) HttpsTriggerSecurityLevel() pulumi.StringOutput
The security level for the function. The following options are available:
func (FunctionOutput) HttpsTriggerUrl ¶ added in v6.23.0
func (o FunctionOutput) HttpsTriggerUrl() pulumi.StringOutput
URL which triggers function execution. Returned only if `triggerHttp` is used.
func (FunctionOutput) IngressSettings ¶ added in v6.23.0
func (o FunctionOutput) IngressSettings() pulumi.StringPtrOutput
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.
func (FunctionOutput) KmsKeyName ¶ added in v6.24.0
func (o FunctionOutput) KmsKeyName() pulumi.StringPtrOutput
Resource name of a KMS crypto key (managed by the user) used to encrypt/decrypt function resources. It must match the pattern `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`. If specified, you must also provide an artifact registry repository using the `dockerRepository` field that was created with the same KMS crypto key. Before deploying, please complete all pre-requisites described in https://cloud.google.com/functions/docs/securing/cmek#granting_service_accounts_access_to_the_key
func (FunctionOutput) Labels ¶ added in v6.23.0
func (o FunctionOutput) Labels() pulumi.MapOutput
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.
func (FunctionOutput) MaxInstances ¶ added in v6.23.0
func (o FunctionOutput) MaxInstances() pulumi.IntOutput
The limit on the maximum number of function instances that may coexist at a given time.
func (FunctionOutput) MinInstances ¶ added in v6.23.0
func (o FunctionOutput) MinInstances() pulumi.IntPtrOutput
The limit on the minimum number of function instances that may coexist at a given time.
func (FunctionOutput) Name ¶ added in v6.23.0
func (o FunctionOutput) Name() pulumi.StringOutput
A user-defined name of the function. Function names must be unique globally.
func (FunctionOutput) Project ¶ added in v6.23.0
func (o FunctionOutput) Project() pulumi.StringOutput
Project of the function. If it is not provided, the provider project is used.
func (FunctionOutput) Region ¶ added in v6.23.0
func (o FunctionOutput) Region() pulumi.StringOutput
Region of function. If it is not provided, the provider region is used.
func (FunctionOutput) Runtime ¶ added in v6.23.0
func (o FunctionOutput) Runtime() pulumi.StringOutput
The runtime in which the function is going to run. Eg. `"nodejs16"`, `"python39"`, `"dotnet3"`, `"go116"`, `"java11"`, `"ruby30"`, `"php74"`, etc. Check the [official doc](https://cloud.google.com/functions/docs/concepts/exec#runtimes) for the up-to-date list.
***
func (FunctionOutput) SecretEnvironmentVariables ¶ added in v6.23.0
func (o FunctionOutput) SecretEnvironmentVariables() FunctionSecretEnvironmentVariableArrayOutput
Secret environment variables configuration. Structure is documented below.
func (FunctionOutput) SecretVolumes ¶ added in v6.23.0
func (o FunctionOutput) SecretVolumes() FunctionSecretVolumeArrayOutput
Secret volumes configuration. Structure is documented below.
func (FunctionOutput) ServiceAccountEmail ¶ added in v6.23.0
func (o FunctionOutput) ServiceAccountEmail() pulumi.StringOutput
If provided, the self-provided service account to run the function with.
func (FunctionOutput) SourceArchiveBucket ¶ added in v6.23.0
func (o FunctionOutput) SourceArchiveBucket() pulumi.StringPtrOutput
The GCS bucket containing the zip archive which contains the function.
func (FunctionOutput) SourceArchiveObject ¶ added in v6.23.0
func (o FunctionOutput) SourceArchiveObject() pulumi.StringPtrOutput
The source archive object (file) in archive bucket.
func (FunctionOutput) SourceRepository ¶ added in v6.23.0
func (o FunctionOutput) SourceRepository() FunctionSourceRepositoryPtrOutput
Represents parameters related to source repository where a function is hosted. Cannot be set alongside `sourceArchiveBucket` or `sourceArchiveObject`. Structure is documented below. It must match the pattern `projects/{project}/locations/{location}/repositories/{repository}`.*
func (FunctionOutput) Status ¶ added in v6.57.0
func (o FunctionOutput) Status() pulumi.StringOutput
Describes the current stage of a deployment.
func (FunctionOutput) Timeout ¶ added in v6.23.0
func (o FunctionOutput) Timeout() pulumi.IntPtrOutput
Timeout (in seconds) for the function. Default value is 60 seconds. Cannot be more than 540 seconds.
func (FunctionOutput) ToFunctionOutput ¶
func (o FunctionOutput) ToFunctionOutput() FunctionOutput
func (FunctionOutput) ToFunctionOutputWithContext ¶
func (o FunctionOutput) ToFunctionOutputWithContext(ctx context.Context) FunctionOutput
func (FunctionOutput) TriggerHttp ¶ added in v6.23.0
func (o FunctionOutput) TriggerHttp() pulumi.BoolPtrOutput
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`.
func (FunctionOutput) VpcConnector ¶ added in v6.23.0
func (o FunctionOutput) VpcConnector() pulumi.StringPtrOutput
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/*`.
func (FunctionOutput) VpcConnectorEgressSettings ¶ added in v6.23.0
func (o FunctionOutput) VpcConnectorEgressSettings() pulumi.StringOutput
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.
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 recommended to use a numeric version for secret environment variables as any updates to the secret value is not reflected until new clones start. 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 recommended to use a numeric version for secret environment variables as any updates to the secret value is not reflected until new clones start. 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
func (FunctionSecretEnvironmentVariableArgs) ToOutput ¶ added in v6.65.1
func (i FunctionSecretEnvironmentVariableArgs) ToOutput(ctx context.Context) pulumix.Output[FunctionSecretEnvironmentVariable]
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
func (FunctionSecretEnvironmentVariableArray) ToOutput ¶ added in v6.65.1
func (i FunctionSecretEnvironmentVariableArray) ToOutput(ctx context.Context) pulumix.Output[[]FunctionSecretEnvironmentVariable]
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
func (FunctionSecretEnvironmentVariableArrayOutput) ToOutput ¶ added in v6.65.1
func (o FunctionSecretEnvironmentVariableArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]FunctionSecretEnvironmentVariable]
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) ToOutput ¶ added in v6.65.1
func (o FunctionSecretEnvironmentVariableOutput) ToOutput(ctx context.Context) pulumix.Output[FunctionSecretEnvironmentVariable]
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 recommended to use a numeric version for secret environment variables as any updates to the secret value is not reflected until new clones start.
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
func (FunctionSecretVolumeArgs) ToOutput ¶ added in v6.65.1
func (i FunctionSecretVolumeArgs) ToOutput(ctx context.Context) pulumix.Output[FunctionSecretVolume]
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
func (FunctionSecretVolumeArray) ToOutput ¶ added in v6.65.1
func (i FunctionSecretVolumeArray) ToOutput(ctx context.Context) pulumix.Output[[]FunctionSecretVolume]
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
func (FunctionSecretVolumeArrayOutput) ToOutput ¶ added in v6.65.1
func (o FunctionSecretVolumeArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]FunctionSecretVolume]
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) ToOutput ¶ added in v6.65.1
func (o FunctionSecretVolumeOutput) ToOutput(ctx context.Context) pulumix.Output[FunctionSecretVolume]
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
func (FunctionSecretVolumeVersionArgs) ToOutput ¶ added in v6.65.1
func (i FunctionSecretVolumeVersionArgs) ToOutput(ctx context.Context) pulumix.Output[FunctionSecretVolumeVersion]
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
func (FunctionSecretVolumeVersionArray) ToOutput ¶ added in v6.65.1
func (i FunctionSecretVolumeVersionArray) ToOutput(ctx context.Context) pulumix.Output[[]FunctionSecretVolumeVersion]
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
func (FunctionSecretVolumeVersionArrayOutput) ToOutput ¶ added in v6.65.1
func (o FunctionSecretVolumeVersionArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]FunctionSecretVolumeVersion]
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) ToOutput ¶ added in v6.65.1
func (o FunctionSecretVolumeVersionOutput) ToOutput(ctx context.Context) pulumix.Output[FunctionSecretVolumeVersion]
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 FunctionSourceRepository ¶
type FunctionSourceRepository struct { DeployedUrl *string `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: // // * To refer to a specific commit: `https://source.developers.google.com/projects/*/repos/*/revisions/*/paths/*` // * To refer to a moveable alias (branch): `https://source.developers.google.com/projects/*/repos/*/moveable-aliases/*/paths/*`. To refer to HEAD, use the `master` moveable alias. // * To refer to a specific fixed alias (tag): `https://source.developers.google.com/projects/*/repos/*/fixed-aliases/*/paths/*` Url string `pulumi:"url"` }
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: // // * To refer to a specific commit: `https://source.developers.google.com/projects/*/repos/*/revisions/*/paths/*` // * To refer to a moveable alias (branch): `https://source.developers.google.com/projects/*/repos/*/moveable-aliases/*/paths/*`. To refer to HEAD, use the `master` moveable alias. // * To refer to a specific fixed alias (tag): `https://source.developers.google.com/projects/*/repos/*/fixed-aliases/*/paths/*` 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
func (FunctionSourceRepositoryArgs) ToOutput ¶ added in v6.65.1
func (i FunctionSourceRepositoryArgs) ToOutput(ctx context.Context) pulumix.Output[FunctionSourceRepository]
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) ToOutput ¶ added in v6.65.1
func (o FunctionSourceRepositoryOutput) ToOutput(ctx context.Context) pulumix.Output[FunctionSourceRepository]
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:
* To refer to a specific commit: `https://source.developers.google.com/projects/*/repos/*/revisions/*/paths/*` * To refer to a moveable alias (branch): `https://source.developers.google.com/projects/*/repos/*/moveable-aliases/*/paths/*`. To refer to HEAD, use the `master` moveable alias. * To refer to a specific fixed alias (tag): `https://source.developers.google.com/projects/*/repos/*/fixed-aliases/*/paths/*`
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) ToOutput ¶ added in v6.65.1
func (o FunctionSourceRepositoryPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*FunctionSourceRepository]
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:
* To refer to a specific commit: `https://source.developers.google.com/projects/*/repos/*/revisions/*/paths/*` * To refer to a moveable alias (branch): `https://source.developers.google.com/projects/*/repos/*/moveable-aliases/*/paths/*`. To refer to HEAD, use the `master` moveable alias. * To refer to a specific fixed alias (tag): `https://source.developers.google.com/projects/*/repos/*/fixed-aliases/*/paths/*`
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 // Name of the Cloud Build Custom Worker Pool that should be used to build the function. BuildWorkerPool pulumi.StringPtrInput // Description of the function. Description pulumi.StringPtrInput // Docker Registry to use for storing the function's Docker images. Allowed values are CONTAINER_REGISTRY (default) and ARTIFACT_REGISTRY. DockerRegistry pulumi.StringPtrInput // User managed repository created in Artifact Registry optionally with a customer managed encryption key. If specified, deployments will use Artifact Registry. This is the repository to which the function docker image will be pushed after it is built by Cloud Build. If unspecified, Container Registry will be used by default, unless specified otherwise by other means. DockerRepository 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 // The security level for the function. The following options are available: HttpsTriggerSecurityLevel pulumi.StringPtrInput // 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 // Resource name of a KMS crypto key (managed by the user) used to encrypt/decrypt function resources. It must match the pattern `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`. // If specified, you must also provide an artifact registry repository using the `dockerRepository` field that was created with the same KMS crypto key. Before deploying, please complete all pre-requisites described in https://cloud.google.com/functions/docs/securing/cmek#granting_service_accounts_access_to_the_key KmsKeyName 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. `"nodejs16"`, `"python39"`, `"dotnet3"`, `"go116"`, `"java11"`, `"ruby30"`, `"php74"`, 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. It must match the pattern `projects/{project}/locations/{location}/repositories/{repository}`.* SourceRepository FunctionSourceRepositoryPtrInput // Describes the current stage of a deployment. Status pulumi.StringPtrInput // 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
func (GetFunctionEventTriggerArgs) ToOutput ¶ added in v6.65.1
func (i GetFunctionEventTriggerArgs) ToOutput(ctx context.Context) pulumix.Output[GetFunctionEventTrigger]
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
func (GetFunctionEventTriggerArray) ToOutput ¶ added in v6.65.1
func (i GetFunctionEventTriggerArray) ToOutput(ctx context.Context) pulumix.Output[[]GetFunctionEventTrigger]
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
func (GetFunctionEventTriggerArrayOutput) ToOutput ¶ added in v6.65.1
func (o GetFunctionEventTriggerArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]GetFunctionEventTrigger]
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
func (GetFunctionEventTriggerFailurePolicyArgs) ToOutput ¶ added in v6.65.1
func (i GetFunctionEventTriggerFailurePolicyArgs) ToOutput(ctx context.Context) pulumix.Output[GetFunctionEventTriggerFailurePolicy]
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
func (GetFunctionEventTriggerFailurePolicyArray) ToOutput ¶ added in v6.65.1
func (i GetFunctionEventTriggerFailurePolicyArray) ToOutput(ctx context.Context) pulumix.Output[[]GetFunctionEventTriggerFailurePolicy]
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
func (GetFunctionEventTriggerFailurePolicyArrayOutput) ToOutput ¶ added in v6.65.1
func (o GetFunctionEventTriggerFailurePolicyArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]GetFunctionEventTriggerFailurePolicy]
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
func (GetFunctionEventTriggerFailurePolicyOutput) ToOutput ¶ added in v6.65.1
func (o GetFunctionEventTriggerFailurePolicyOutput) ToOutput(ctx context.Context) pulumix.Output[GetFunctionEventTriggerFailurePolicy]
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
func (GetFunctionEventTriggerOutput) ToOutput ¶ added in v6.65.1
func (o GetFunctionEventTriggerOutput) ToOutput(ctx context.Context) pulumix.Output[GetFunctionEventTrigger]
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
func (GetFunctionSecretEnvironmentVariableArgs) ToOutput ¶ added in v6.65.1
func (i GetFunctionSecretEnvironmentVariableArgs) ToOutput(ctx context.Context) pulumix.Output[GetFunctionSecretEnvironmentVariable]
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
func (GetFunctionSecretEnvironmentVariableArray) ToOutput ¶ added in v6.65.1
func (i GetFunctionSecretEnvironmentVariableArray) ToOutput(ctx context.Context) pulumix.Output[[]GetFunctionSecretEnvironmentVariable]
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
func (GetFunctionSecretEnvironmentVariableArrayOutput) ToOutput ¶ added in v6.65.1
func (o GetFunctionSecretEnvironmentVariableArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]GetFunctionSecretEnvironmentVariable]
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) ToOutput ¶ added in v6.65.1
func (o GetFunctionSecretEnvironmentVariableOutput) ToOutput(ctx context.Context) pulumix.Output[GetFunctionSecretEnvironmentVariable]
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
func (GetFunctionSecretVolumeArgs) ToOutput ¶ added in v6.65.1
func (i GetFunctionSecretVolumeArgs) ToOutput(ctx context.Context) pulumix.Output[GetFunctionSecretVolume]
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
func (GetFunctionSecretVolumeArray) ToOutput ¶ added in v6.65.1
func (i GetFunctionSecretVolumeArray) ToOutput(ctx context.Context) pulumix.Output[[]GetFunctionSecretVolume]
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
func (GetFunctionSecretVolumeArrayOutput) ToOutput ¶ added in v6.65.1
func (o GetFunctionSecretVolumeArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]GetFunctionSecretVolume]
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) ToOutput ¶ added in v6.65.1
func (o GetFunctionSecretVolumeOutput) ToOutput(ctx context.Context) pulumix.Output[GetFunctionSecretVolume]
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
func (GetFunctionSecretVolumeVersionArgs) ToOutput ¶ added in v6.65.1
func (i GetFunctionSecretVolumeVersionArgs) ToOutput(ctx context.Context) pulumix.Output[GetFunctionSecretVolumeVersion]
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
func (GetFunctionSecretVolumeVersionArray) ToOutput ¶ added in v6.65.1
func (i GetFunctionSecretVolumeVersionArray) ToOutput(ctx context.Context) pulumix.Output[[]GetFunctionSecretVolumeVersion]
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
func (GetFunctionSecretVolumeVersionArrayOutput) ToOutput ¶ added in v6.65.1
func (o GetFunctionSecretVolumeVersionArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]GetFunctionSecretVolumeVersion]
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) ToOutput ¶ added in v6.65.1
func (o GetFunctionSecretVolumeVersionOutput) ToOutput(ctx context.Context) pulumix.Output[GetFunctionSecretVolumeVersion]
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
func (GetFunctionSourceRepositoryArgs) ToOutput ¶ added in v6.65.1
func (i GetFunctionSourceRepositoryArgs) ToOutput(ctx context.Context) pulumix.Output[GetFunctionSourceRepository]
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
func (GetFunctionSourceRepositoryArray) ToOutput ¶ added in v6.65.1
func (i GetFunctionSourceRepositoryArray) ToOutput(ctx context.Context) pulumix.Output[[]GetFunctionSourceRepository]
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
func (GetFunctionSourceRepositoryArrayOutput) ToOutput ¶ added in v6.65.1
func (o GetFunctionSourceRepositoryArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]GetFunctionSourceRepository]
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) ToOutput ¶ added in v6.65.1
func (o GetFunctionSourceRepositoryOutput) ToOutput(ctx context.Context) pulumix.Output[GetFunctionSourceRepository]
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 LookupFunctionIamPolicyArgs ¶ added in v6.59.0
type LookupFunctionIamPolicyArgs struct { // Used to find the parent resource to bind the IAM policy to CloudFunction string `pulumi:"cloudFunction"` // 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 *string `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 *string `pulumi:"region"` }
A collection of arguments for invoking getFunctionIamPolicy.
type LookupFunctionIamPolicyOutputArgs ¶ added in v6.59.0
type LookupFunctionIamPolicyOutputArgs struct { // Used to find the parent resource to bind the IAM policy to CloudFunction pulumi.StringInput `pulumi:"cloudFunction"` // 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 `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.StringPtrInput `pulumi:"region"` }
A collection of arguments for invoking getFunctionIamPolicy.
func (LookupFunctionIamPolicyOutputArgs) ElementType ¶ added in v6.59.0
func (LookupFunctionIamPolicyOutputArgs) ElementType() reflect.Type
type LookupFunctionIamPolicyResult ¶ added in v6.59.0
type LookupFunctionIamPolicyResult struct { CloudFunction string `pulumi:"cloudFunction"` // (Computed) The etag of the IAM policy. Etag string `pulumi:"etag"` // The provider-assigned unique ID for this managed resource. Id string `pulumi:"id"` // (Required only by `cloudfunctions.FunctionIamPolicy`) The policy data generated by // a `organizations.getIAMPolicy` data source. PolicyData string `pulumi:"policyData"` Project string `pulumi:"project"` Region string `pulumi:"region"` }
A collection of values returned by getFunctionIamPolicy.
func LookupFunctionIamPolicy ¶ added in v6.59.0
func LookupFunctionIamPolicy(ctx *pulumi.Context, args *LookupFunctionIamPolicyArgs, opts ...pulumi.InvokeOption) (*LookupFunctionIamPolicyResult, error)
Retrieves the current IAM policy data for cloudfunction
## example
```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.LookupFunctionIamPolicy(ctx, &cloudfunctions.LookupFunctionIamPolicyArgs{ Project: pulumi.StringRef(google_cloudfunctions_function.Function.Project), Region: pulumi.StringRef(google_cloudfunctions_function.Function.Region), CloudFunction: google_cloudfunctions_function.Function.Name, }, nil) if err != nil { return err } return nil }) }
```
type LookupFunctionIamPolicyResultOutput ¶ added in v6.59.0
type LookupFunctionIamPolicyResultOutput struct{ *pulumi.OutputState }
A collection of values returned by getFunctionIamPolicy.
func LookupFunctionIamPolicyOutput ¶ added in v6.59.0
func LookupFunctionIamPolicyOutput(ctx *pulumi.Context, args LookupFunctionIamPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupFunctionIamPolicyResultOutput
func (LookupFunctionIamPolicyResultOutput) CloudFunction ¶ added in v6.59.0
func (o LookupFunctionIamPolicyResultOutput) CloudFunction() pulumi.StringOutput
func (LookupFunctionIamPolicyResultOutput) ElementType ¶ added in v6.59.0
func (LookupFunctionIamPolicyResultOutput) ElementType() reflect.Type
func (LookupFunctionIamPolicyResultOutput) Etag ¶ added in v6.59.0
func (o LookupFunctionIamPolicyResultOutput) Etag() pulumi.StringOutput
(Computed) The etag of the IAM policy.
func (LookupFunctionIamPolicyResultOutput) Id ¶ added in v6.59.0
func (o LookupFunctionIamPolicyResultOutput) Id() pulumi.StringOutput
The provider-assigned unique ID for this managed resource.
func (LookupFunctionIamPolicyResultOutput) PolicyData ¶ added in v6.59.0
func (o LookupFunctionIamPolicyResultOutput) PolicyData() pulumi.StringOutput
(Required only by `cloudfunctions.FunctionIamPolicy`) The policy data generated by a `organizations.getIAMPolicy` data source.
func (LookupFunctionIamPolicyResultOutput) Project ¶ added in v6.59.0
func (o LookupFunctionIamPolicyResultOutput) Project() pulumi.StringOutput
func (LookupFunctionIamPolicyResultOutput) Region ¶ added in v6.59.0
func (o LookupFunctionIamPolicyResultOutput) Region() pulumi.StringOutput
func (LookupFunctionIamPolicyResultOutput) ToLookupFunctionIamPolicyResultOutput ¶ added in v6.59.0
func (o LookupFunctionIamPolicyResultOutput) ToLookupFunctionIamPolicyResultOutput() LookupFunctionIamPolicyResultOutput
func (LookupFunctionIamPolicyResultOutput) ToLookupFunctionIamPolicyResultOutputWithContext ¶ added in v6.59.0
func (o LookupFunctionIamPolicyResultOutput) ToLookupFunctionIamPolicyResultOutputWithContext(ctx context.Context) LookupFunctionIamPolicyResultOutput
func (LookupFunctionIamPolicyResultOutput) ToOutput ¶ added in v6.65.1
func (o LookupFunctionIamPolicyResultOutput) ToOutput(ctx context.Context) pulumix.Output[LookupFunctionIamPolicyResult]
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"` BuildWorkerPool string `pulumi:"buildWorkerPool"` // Description of the function. Description string `pulumi:"description"` DockerRegistry string `pulumi:"dockerRegistry"` DockerRepository string `pulumi:"dockerRepository"` // 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"` HttpsTriggerSecurityLevel string `pulumi:"httpsTriggerSecurityLevel"` // 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"` KmsKeyName string `pulumi:"kmsKeyName"` // 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. If unset or set to `0`, the API default will be used. 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"` Status string `pulumi:"status"` // 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) BuildWorkerPool ¶ added in v6.39.0
func (o LookupFunctionResultOutput) BuildWorkerPool() pulumi.StringOutput
func (LookupFunctionResultOutput) Description ¶
func (o LookupFunctionResultOutput) Description() pulumi.StringOutput
Description of the function.
func (LookupFunctionResultOutput) DockerRegistry ¶ added in v6.26.0
func (o LookupFunctionResultOutput) DockerRegistry() pulumi.StringOutput
func (LookupFunctionResultOutput) DockerRepository ¶ added in v6.24.0
func (o LookupFunctionResultOutput) DockerRepository() pulumi.StringOutput
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) HttpsTriggerSecurityLevel ¶ added in v6.25.0
func (o LookupFunctionResultOutput) HttpsTriggerSecurityLevel() pulumi.StringOutput
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) KmsKeyName ¶ added in v6.24.0
func (o LookupFunctionResultOutput) KmsKeyName() pulumi.StringOutput
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. If unset or set to `0`, the API default will be used.
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) Status ¶ added in v6.57.0
func (o LookupFunctionResultOutput) Status() pulumi.StringOutput
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) ToOutput ¶ added in v6.65.1
func (o LookupFunctionResultOutput) ToOutput(ctx context.Context) pulumix.Output[LookupFunctionResult]
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.