Documentation ¶
Index ¶
- func PkgVersion() (semver.Version, error)
- type Dependency
- type DependencyArgs
- type DependencyArray
- type DependencyArrayInput
- type DependencyArrayOutput
- func (DependencyArrayOutput) ElementType() reflect.Type
- func (o DependencyArrayOutput) Index(i pulumi.IntInput) DependencyOutput
- func (o DependencyArrayOutput) ToDependencyArrayOutput() DependencyArrayOutput
- func (o DependencyArrayOutput) ToDependencyArrayOutputWithContext(ctx context.Context) DependencyArrayOutput
- type DependencyInput
- type DependencyMap
- type DependencyMapInput
- type DependencyMapOutput
- func (DependencyMapOutput) ElementType() reflect.Type
- func (o DependencyMapOutput) MapIndex(k pulumi.StringInput) DependencyOutput
- func (o DependencyMapOutput) ToDependencyMapOutput() DependencyMapOutput
- func (o DependencyMapOutput) ToDependencyMapOutputWithContext(ctx context.Context) DependencyMapOutput
- type DependencyOutput
- func (o DependencyOutput) Description() pulumi.StringOutput
- func (DependencyOutput) ElementType() reflect.Type
- func (o DependencyOutput) Etag() pulumi.StringOutput
- func (o DependencyOutput) Link() pulumi.StringOutput
- func (o DependencyOutput) Name() pulumi.StringOutput
- func (o DependencyOutput) Owner() pulumi.StringOutput
- func (o DependencyOutput) Region() pulumi.StringOutput
- func (o DependencyOutput) Runtime() pulumi.StringOutput
- func (o DependencyOutput) Size() pulumi.IntOutput
- func (o DependencyOutput) ToDependencyOutput() DependencyOutput
- func (o DependencyOutput) ToDependencyOutputWithContext(ctx context.Context) DependencyOutput
- type DependencyState
- type Function
- type FunctionArgs
- type FunctionArray
- type FunctionArrayInput
- type FunctionArrayOutput
- type FunctionCustomImage
- type FunctionCustomImageArgs
- func (FunctionCustomImageArgs) ElementType() reflect.Type
- func (i FunctionCustomImageArgs) ToFunctionCustomImageOutput() FunctionCustomImageOutput
- func (i FunctionCustomImageArgs) ToFunctionCustomImageOutputWithContext(ctx context.Context) FunctionCustomImageOutput
- func (i FunctionCustomImageArgs) ToFunctionCustomImagePtrOutput() FunctionCustomImagePtrOutput
- func (i FunctionCustomImageArgs) ToFunctionCustomImagePtrOutputWithContext(ctx context.Context) FunctionCustomImagePtrOutput
- type FunctionCustomImageInput
- type FunctionCustomImageOutput
- func (FunctionCustomImageOutput) ElementType() reflect.Type
- func (o FunctionCustomImageOutput) ToFunctionCustomImageOutput() FunctionCustomImageOutput
- func (o FunctionCustomImageOutput) ToFunctionCustomImageOutputWithContext(ctx context.Context) FunctionCustomImageOutput
- func (o FunctionCustomImageOutput) ToFunctionCustomImagePtrOutput() FunctionCustomImagePtrOutput
- func (o FunctionCustomImageOutput) ToFunctionCustomImagePtrOutputWithContext(ctx context.Context) FunctionCustomImagePtrOutput
- func (o FunctionCustomImageOutput) Url() pulumi.StringOutput
- type FunctionCustomImagePtrInput
- type FunctionCustomImagePtrOutput
- func (o FunctionCustomImagePtrOutput) Elem() FunctionCustomImageOutput
- func (FunctionCustomImagePtrOutput) ElementType() reflect.Type
- func (o FunctionCustomImagePtrOutput) ToFunctionCustomImagePtrOutput() FunctionCustomImagePtrOutput
- func (o FunctionCustomImagePtrOutput) ToFunctionCustomImagePtrOutputWithContext(ctx context.Context) FunctionCustomImagePtrOutput
- func (o FunctionCustomImagePtrOutput) Url() pulumi.StringPtrOutput
- type FunctionFuncMount
- type FunctionFuncMountArgs
- type FunctionFuncMountArray
- type FunctionFuncMountArrayInput
- type FunctionFuncMountArrayOutput
- func (FunctionFuncMountArrayOutput) ElementType() reflect.Type
- func (o FunctionFuncMountArrayOutput) Index(i pulumi.IntInput) FunctionFuncMountOutput
- func (o FunctionFuncMountArrayOutput) ToFunctionFuncMountArrayOutput() FunctionFuncMountArrayOutput
- func (o FunctionFuncMountArrayOutput) ToFunctionFuncMountArrayOutputWithContext(ctx context.Context) FunctionFuncMountArrayOutput
- type FunctionFuncMountInput
- type FunctionFuncMountOutput
- func (FunctionFuncMountOutput) ElementType() reflect.Type
- func (o FunctionFuncMountOutput) LocalMountPath() pulumi.StringOutput
- func (o FunctionFuncMountOutput) MountResource() pulumi.StringOutput
- func (o FunctionFuncMountOutput) MountSharePath() pulumi.StringOutput
- func (o FunctionFuncMountOutput) MountType() pulumi.StringOutput
- func (o FunctionFuncMountOutput) Status() pulumi.StringPtrOutput
- func (o FunctionFuncMountOutput) ToFunctionFuncMountOutput() FunctionFuncMountOutput
- func (o FunctionFuncMountOutput) ToFunctionFuncMountOutputWithContext(ctx context.Context) FunctionFuncMountOutput
- type FunctionInput
- type FunctionMap
- type FunctionMapInput
- type FunctionMapOutput
- type FunctionOutput
- func (o FunctionOutput) Agency() pulumi.StringPtrOutput
- func (o FunctionOutput) App() pulumi.StringPtrOutput
- func (o FunctionOutput) AppAgency() pulumi.StringOutput
- func (o FunctionOutput) CodeFilename() pulumi.StringOutput
- func (o FunctionOutput) CodeType() pulumi.StringOutput
- func (o FunctionOutput) CodeUrl() pulumi.StringPtrOutput
- func (o FunctionOutput) CustomImage() FunctionCustomImageOutput
- func (o FunctionOutput) DependLists() pulumi.StringArrayOutput
- func (o FunctionOutput) Description() pulumi.StringPtrOutput
- func (FunctionOutput) ElementType() reflect.Type
- func (o FunctionOutput) EncryptedUserData() pulumi.StringPtrOutput
- func (o FunctionOutput) EnterpriseProjectId() pulumi.StringOutput
- func (o FunctionOutput) FuncCode() pulumi.StringPtrOutput
- func (o FunctionOutput) FuncMounts() FunctionFuncMountArrayOutput
- func (o FunctionOutput) FunctiongraphVersion() pulumi.StringOutput
- func (o FunctionOutput) Handler() pulumi.StringOutput
- func (o FunctionOutput) InitializerHandler() pulumi.StringOutput
- func (o FunctionOutput) InitializerTimeout() pulumi.IntOutput
- func (o FunctionOutput) MaxInstanceNum() pulumi.StringOutput
- func (o FunctionOutput) MemorySize() pulumi.IntOutput
- func (o FunctionOutput) MountUserGroupId() pulumi.IntOutput
- func (o FunctionOutput) MountUserId() pulumi.IntOutput
- func (o FunctionOutput) Name() pulumi.StringOutput
- func (o FunctionOutput) NetworkId() pulumi.StringPtrOutput
- func (o FunctionOutput) Package() pulumi.StringPtrOutputdeprecated
- func (o FunctionOutput) Region() pulumi.StringOutput
- func (o FunctionOutput) Runtime() pulumi.StringOutput
- func (o FunctionOutput) Tags() pulumi.StringMapOutput
- func (o FunctionOutput) Timeout() pulumi.IntOutput
- func (o FunctionOutput) ToFunctionOutput() FunctionOutput
- func (o FunctionOutput) ToFunctionOutputWithContext(ctx context.Context) FunctionOutput
- func (o FunctionOutput) Urn() pulumi.StringOutput
- func (o FunctionOutput) UserData() pulumi.StringPtrOutput
- func (o FunctionOutput) Version() pulumi.StringOutput
- func (o FunctionOutput) VpcId() pulumi.StringPtrOutput
- func (o FunctionOutput) Xrole() pulumi.StringPtrOutputdeprecated
- type FunctionState
- type GetDependenciesArgs
- type GetDependenciesOutputArgs
- type GetDependenciesPackage
- type GetDependenciesPackageArgs
- type GetDependenciesPackageArray
- func (GetDependenciesPackageArray) ElementType() reflect.Type
- func (i GetDependenciesPackageArray) ToGetDependenciesPackageArrayOutput() GetDependenciesPackageArrayOutput
- func (i GetDependenciesPackageArray) ToGetDependenciesPackageArrayOutputWithContext(ctx context.Context) GetDependenciesPackageArrayOutput
- type GetDependenciesPackageArrayInput
- type GetDependenciesPackageArrayOutput
- func (GetDependenciesPackageArrayOutput) ElementType() reflect.Type
- func (o GetDependenciesPackageArrayOutput) Index(i pulumi.IntInput) GetDependenciesPackageOutput
- func (o GetDependenciesPackageArrayOutput) ToGetDependenciesPackageArrayOutput() GetDependenciesPackageArrayOutput
- func (o GetDependenciesPackageArrayOutput) ToGetDependenciesPackageArrayOutputWithContext(ctx context.Context) GetDependenciesPackageArrayOutput
- type GetDependenciesPackageInput
- type GetDependenciesPackageOutput
- func (GetDependenciesPackageOutput) ElementType() reflect.Type
- func (o GetDependenciesPackageOutput) Etag() pulumi.StringOutput
- func (o GetDependenciesPackageOutput) FileName() pulumi.StringOutput
- func (o GetDependenciesPackageOutput) Id() pulumi.StringOutput
- func (o GetDependenciesPackageOutput) Link() pulumi.StringOutput
- func (o GetDependenciesPackageOutput) Name() pulumi.StringOutput
- func (o GetDependenciesPackageOutput) Owner() pulumi.StringOutput
- func (o GetDependenciesPackageOutput) Runtime() pulumi.StringOutput
- func (o GetDependenciesPackageOutput) Size() pulumi.IntOutput
- func (o GetDependenciesPackageOutput) ToGetDependenciesPackageOutput() GetDependenciesPackageOutput
- func (o GetDependenciesPackageOutput) ToGetDependenciesPackageOutputWithContext(ctx context.Context) GetDependenciesPackageOutput
- type GetDependenciesResult
- type GetDependenciesResultOutput
- func (GetDependenciesResultOutput) ElementType() reflect.Type
- func (o GetDependenciesResultOutput) Id() pulumi.StringOutput
- func (o GetDependenciesResultOutput) Name() pulumi.StringPtrOutput
- func (o GetDependenciesResultOutput) Packages() GetDependenciesPackageArrayOutput
- func (o GetDependenciesResultOutput) Region() pulumi.StringOutput
- func (o GetDependenciesResultOutput) Runtime() pulumi.StringPtrOutput
- func (o GetDependenciesResultOutput) ToGetDependenciesResultOutput() GetDependenciesResultOutput
- func (o GetDependenciesResultOutput) ToGetDependenciesResultOutputWithContext(ctx context.Context) GetDependenciesResultOutput
- func (o GetDependenciesResultOutput) Type() pulumi.StringPtrOutput
- type Trigger
- type TriggerApig
- type TriggerApigArgs
- func (TriggerApigArgs) ElementType() reflect.Type
- func (i TriggerApigArgs) ToTriggerApigOutput() TriggerApigOutput
- func (i TriggerApigArgs) ToTriggerApigOutputWithContext(ctx context.Context) TriggerApigOutput
- func (i TriggerApigArgs) ToTriggerApigPtrOutput() TriggerApigPtrOutput
- func (i TriggerApigArgs) ToTriggerApigPtrOutputWithContext(ctx context.Context) TriggerApigPtrOutput
- type TriggerApigInput
- type TriggerApigOutput
- func (o TriggerApigOutput) ApiName() pulumi.StringOutput
- func (TriggerApigOutput) ElementType() reflect.Type
- func (o TriggerApigOutput) EnvName() pulumi.StringOutput
- func (o TriggerApigOutput) GroupId() pulumi.StringOutput
- func (o TriggerApigOutput) InstanceId() pulumi.StringPtrOutput
- func (o TriggerApigOutput) RequestProtocol() pulumi.StringPtrOutput
- func (o TriggerApigOutput) SecurityAuthentication() pulumi.StringPtrOutput
- func (o TriggerApigOutput) Timeout() pulumi.IntPtrOutput
- func (o TriggerApigOutput) ToTriggerApigOutput() TriggerApigOutput
- func (o TriggerApigOutput) ToTriggerApigOutputWithContext(ctx context.Context) TriggerApigOutput
- func (o TriggerApigOutput) ToTriggerApigPtrOutput() TriggerApigPtrOutput
- func (o TriggerApigOutput) ToTriggerApigPtrOutputWithContext(ctx context.Context) TriggerApigPtrOutput
- type TriggerApigPtrInput
- type TriggerApigPtrOutput
- func (o TriggerApigPtrOutput) ApiName() pulumi.StringPtrOutput
- func (o TriggerApigPtrOutput) Elem() TriggerApigOutput
- func (TriggerApigPtrOutput) ElementType() reflect.Type
- func (o TriggerApigPtrOutput) EnvName() pulumi.StringPtrOutput
- func (o TriggerApigPtrOutput) GroupId() pulumi.StringPtrOutput
- func (o TriggerApigPtrOutput) InstanceId() pulumi.StringPtrOutput
- func (o TriggerApigPtrOutput) RequestProtocol() pulumi.StringPtrOutput
- func (o TriggerApigPtrOutput) SecurityAuthentication() pulumi.StringPtrOutput
- func (o TriggerApigPtrOutput) Timeout() pulumi.IntPtrOutput
- func (o TriggerApigPtrOutput) ToTriggerApigPtrOutput() TriggerApigPtrOutput
- func (o TriggerApigPtrOutput) ToTriggerApigPtrOutputWithContext(ctx context.Context) TriggerApigPtrOutput
- type TriggerArgs
- type TriggerArray
- type TriggerArrayInput
- type TriggerArrayOutput
- type TriggerDis
- type TriggerDisArgs
- func (TriggerDisArgs) ElementType() reflect.Type
- func (i TriggerDisArgs) ToTriggerDisOutput() TriggerDisOutput
- func (i TriggerDisArgs) ToTriggerDisOutputWithContext(ctx context.Context) TriggerDisOutput
- func (i TriggerDisArgs) ToTriggerDisPtrOutput() TriggerDisPtrOutput
- func (i TriggerDisArgs) ToTriggerDisPtrOutputWithContext(ctx context.Context) TriggerDisPtrOutput
- type TriggerDisInput
- type TriggerDisOutput
- func (TriggerDisOutput) ElementType() reflect.Type
- func (o TriggerDisOutput) MaxFetchBytes() pulumi.IntOutput
- func (o TriggerDisOutput) PullPeriod() pulumi.IntOutput
- func (o TriggerDisOutput) SerialEnable() pulumi.BoolOutput
- func (o TriggerDisOutput) StartingPosition() pulumi.StringOutput
- func (o TriggerDisOutput) StreamName() pulumi.StringOutput
- func (o TriggerDisOutput) ToTriggerDisOutput() TriggerDisOutput
- func (o TriggerDisOutput) ToTriggerDisOutputWithContext(ctx context.Context) TriggerDisOutput
- func (o TriggerDisOutput) ToTriggerDisPtrOutput() TriggerDisPtrOutput
- func (o TriggerDisOutput) ToTriggerDisPtrOutputWithContext(ctx context.Context) TriggerDisPtrOutput
- type TriggerDisPtrInput
- type TriggerDisPtrOutput
- func (o TriggerDisPtrOutput) Elem() TriggerDisOutput
- func (TriggerDisPtrOutput) ElementType() reflect.Type
- func (o TriggerDisPtrOutput) MaxFetchBytes() pulumi.IntPtrOutput
- func (o TriggerDisPtrOutput) PullPeriod() pulumi.IntPtrOutput
- func (o TriggerDisPtrOutput) SerialEnable() pulumi.BoolPtrOutput
- func (o TriggerDisPtrOutput) StartingPosition() pulumi.StringPtrOutput
- func (o TriggerDisPtrOutput) StreamName() pulumi.StringPtrOutput
- func (o TriggerDisPtrOutput) ToTriggerDisPtrOutput() TriggerDisPtrOutput
- func (o TriggerDisPtrOutput) ToTriggerDisPtrOutputWithContext(ctx context.Context) TriggerDisPtrOutput
- type TriggerInput
- type TriggerKafka
- type TriggerKafkaArgs
- func (TriggerKafkaArgs) ElementType() reflect.Type
- func (i TriggerKafkaArgs) ToTriggerKafkaOutput() TriggerKafkaOutput
- func (i TriggerKafkaArgs) ToTriggerKafkaOutputWithContext(ctx context.Context) TriggerKafkaOutput
- func (i TriggerKafkaArgs) ToTriggerKafkaPtrOutput() TriggerKafkaPtrOutput
- func (i TriggerKafkaArgs) ToTriggerKafkaPtrOutputWithContext(ctx context.Context) TriggerKafkaPtrOutput
- type TriggerKafkaInput
- type TriggerKafkaOutput
- func (o TriggerKafkaOutput) BatchSize() pulumi.IntPtrOutput
- func (TriggerKafkaOutput) ElementType() reflect.Type
- func (o TriggerKafkaOutput) InstanceId() pulumi.StringOutput
- func (o TriggerKafkaOutput) ToTriggerKafkaOutput() TriggerKafkaOutput
- func (o TriggerKafkaOutput) ToTriggerKafkaOutputWithContext(ctx context.Context) TriggerKafkaOutput
- func (o TriggerKafkaOutput) ToTriggerKafkaPtrOutput() TriggerKafkaPtrOutput
- func (o TriggerKafkaOutput) ToTriggerKafkaPtrOutputWithContext(ctx context.Context) TriggerKafkaPtrOutput
- func (o TriggerKafkaOutput) TopicIds() pulumi.StringArrayOutput
- type TriggerKafkaPtrInput
- type TriggerKafkaPtrOutput
- func (o TriggerKafkaPtrOutput) BatchSize() pulumi.IntPtrOutput
- func (o TriggerKafkaPtrOutput) Elem() TriggerKafkaOutput
- func (TriggerKafkaPtrOutput) ElementType() reflect.Type
- func (o TriggerKafkaPtrOutput) InstanceId() pulumi.StringPtrOutput
- func (o TriggerKafkaPtrOutput) ToTriggerKafkaPtrOutput() TriggerKafkaPtrOutput
- func (o TriggerKafkaPtrOutput) ToTriggerKafkaPtrOutputWithContext(ctx context.Context) TriggerKafkaPtrOutput
- func (o TriggerKafkaPtrOutput) TopicIds() pulumi.StringArrayOutput
- type TriggerLts
- type TriggerLtsArgs
- func (TriggerLtsArgs) ElementType() reflect.Type
- func (i TriggerLtsArgs) ToTriggerLtsOutput() TriggerLtsOutput
- func (i TriggerLtsArgs) ToTriggerLtsOutputWithContext(ctx context.Context) TriggerLtsOutput
- func (i TriggerLtsArgs) ToTriggerLtsPtrOutput() TriggerLtsPtrOutput
- func (i TriggerLtsArgs) ToTriggerLtsPtrOutputWithContext(ctx context.Context) TriggerLtsPtrOutput
- type TriggerLtsInput
- type TriggerLtsOutput
- func (TriggerLtsOutput) ElementType() reflect.Type
- func (o TriggerLtsOutput) LogGroupId() pulumi.StringOutput
- func (o TriggerLtsOutput) LogTopicId() pulumi.StringOutput
- func (o TriggerLtsOutput) ToTriggerLtsOutput() TriggerLtsOutput
- func (o TriggerLtsOutput) ToTriggerLtsOutputWithContext(ctx context.Context) TriggerLtsOutput
- func (o TriggerLtsOutput) ToTriggerLtsPtrOutput() TriggerLtsPtrOutput
- func (o TriggerLtsOutput) ToTriggerLtsPtrOutputWithContext(ctx context.Context) TriggerLtsPtrOutput
- type TriggerLtsPtrInput
- type TriggerLtsPtrOutput
- func (o TriggerLtsPtrOutput) Elem() TriggerLtsOutput
- func (TriggerLtsPtrOutput) ElementType() reflect.Type
- func (o TriggerLtsPtrOutput) LogGroupId() pulumi.StringPtrOutput
- func (o TriggerLtsPtrOutput) LogTopicId() pulumi.StringPtrOutput
- func (o TriggerLtsPtrOutput) ToTriggerLtsPtrOutput() TriggerLtsPtrOutput
- func (o TriggerLtsPtrOutput) ToTriggerLtsPtrOutputWithContext(ctx context.Context) TriggerLtsPtrOutput
- type TriggerMap
- type TriggerMapInput
- type TriggerMapOutput
- type TriggerObs
- type TriggerObsArgs
- func (TriggerObsArgs) ElementType() reflect.Type
- func (i TriggerObsArgs) ToTriggerObsOutput() TriggerObsOutput
- func (i TriggerObsArgs) ToTriggerObsOutputWithContext(ctx context.Context) TriggerObsOutput
- func (i TriggerObsArgs) ToTriggerObsPtrOutput() TriggerObsPtrOutput
- func (i TriggerObsArgs) ToTriggerObsPtrOutputWithContext(ctx context.Context) TriggerObsPtrOutput
- type TriggerObsInput
- type TriggerObsOutput
- func (o TriggerObsOutput) BucketName() pulumi.StringOutput
- func (TriggerObsOutput) ElementType() reflect.Type
- func (o TriggerObsOutput) EventNotificationName() pulumi.StringOutput
- func (o TriggerObsOutput) Events() pulumi.StringArrayOutput
- func (o TriggerObsOutput) Prefix() pulumi.StringPtrOutput
- func (o TriggerObsOutput) Suffix() pulumi.StringPtrOutput
- func (o TriggerObsOutput) ToTriggerObsOutput() TriggerObsOutput
- func (o TriggerObsOutput) ToTriggerObsOutputWithContext(ctx context.Context) TriggerObsOutput
- func (o TriggerObsOutput) ToTriggerObsPtrOutput() TriggerObsPtrOutput
- func (o TriggerObsOutput) ToTriggerObsPtrOutputWithContext(ctx context.Context) TriggerObsPtrOutput
- type TriggerObsPtrInput
- type TriggerObsPtrOutput
- func (o TriggerObsPtrOutput) BucketName() pulumi.StringPtrOutput
- func (o TriggerObsPtrOutput) Elem() TriggerObsOutput
- func (TriggerObsPtrOutput) ElementType() reflect.Type
- func (o TriggerObsPtrOutput) EventNotificationName() pulumi.StringPtrOutput
- func (o TriggerObsPtrOutput) Events() pulumi.StringArrayOutput
- func (o TriggerObsPtrOutput) Prefix() pulumi.StringPtrOutput
- func (o TriggerObsPtrOutput) Suffix() pulumi.StringPtrOutput
- func (o TriggerObsPtrOutput) ToTriggerObsPtrOutput() TriggerObsPtrOutput
- func (o TriggerObsPtrOutput) ToTriggerObsPtrOutputWithContext(ctx context.Context) TriggerObsPtrOutput
- type TriggerOutput
- func (o TriggerOutput) Apig() TriggerApigPtrOutput
- func (o TriggerOutput) Dis() TriggerDisPtrOutput
- func (TriggerOutput) ElementType() reflect.Type
- func (o TriggerOutput) FunctionUrn() pulumi.StringOutput
- func (o TriggerOutput) Kafka() TriggerKafkaPtrOutput
- func (o TriggerOutput) Lts() TriggerLtsPtrOutput
- func (o TriggerOutput) Obs() TriggerObsPtrOutput
- func (o TriggerOutput) Region() pulumi.StringOutput
- func (o TriggerOutput) Smn() TriggerSmnPtrOutput
- func (o TriggerOutput) Status() pulumi.StringOutput
- func (o TriggerOutput) Timer() TriggerTimerPtrOutput
- func (o TriggerOutput) ToTriggerOutput() TriggerOutput
- func (o TriggerOutput) ToTriggerOutputWithContext(ctx context.Context) TriggerOutput
- func (o TriggerOutput) Type() pulumi.StringOutput
- type TriggerSmn
- type TriggerSmnArgs
- func (TriggerSmnArgs) ElementType() reflect.Type
- func (i TriggerSmnArgs) ToTriggerSmnOutput() TriggerSmnOutput
- func (i TriggerSmnArgs) ToTriggerSmnOutputWithContext(ctx context.Context) TriggerSmnOutput
- func (i TriggerSmnArgs) ToTriggerSmnPtrOutput() TriggerSmnPtrOutput
- func (i TriggerSmnArgs) ToTriggerSmnPtrOutputWithContext(ctx context.Context) TriggerSmnPtrOutput
- type TriggerSmnInput
- type TriggerSmnOutput
- func (TriggerSmnOutput) ElementType() reflect.Type
- func (o TriggerSmnOutput) ToTriggerSmnOutput() TriggerSmnOutput
- func (o TriggerSmnOutput) ToTriggerSmnOutputWithContext(ctx context.Context) TriggerSmnOutput
- func (o TriggerSmnOutput) ToTriggerSmnPtrOutput() TriggerSmnPtrOutput
- func (o TriggerSmnOutput) ToTriggerSmnPtrOutputWithContext(ctx context.Context) TriggerSmnPtrOutput
- func (o TriggerSmnOutput) TopicUrn() pulumi.StringOutput
- type TriggerSmnPtrInput
- type TriggerSmnPtrOutput
- func (o TriggerSmnPtrOutput) Elem() TriggerSmnOutput
- func (TriggerSmnPtrOutput) ElementType() reflect.Type
- func (o TriggerSmnPtrOutput) ToTriggerSmnPtrOutput() TriggerSmnPtrOutput
- func (o TriggerSmnPtrOutput) ToTriggerSmnPtrOutputWithContext(ctx context.Context) TriggerSmnPtrOutput
- func (o TriggerSmnPtrOutput) TopicUrn() pulumi.StringPtrOutput
- type TriggerState
- type TriggerTimer
- type TriggerTimerArgs
- func (TriggerTimerArgs) ElementType() reflect.Type
- func (i TriggerTimerArgs) ToTriggerTimerOutput() TriggerTimerOutput
- func (i TriggerTimerArgs) ToTriggerTimerOutputWithContext(ctx context.Context) TriggerTimerOutput
- func (i TriggerTimerArgs) ToTriggerTimerPtrOutput() TriggerTimerPtrOutput
- func (i TriggerTimerArgs) ToTriggerTimerPtrOutputWithContext(ctx context.Context) TriggerTimerPtrOutput
- type TriggerTimerInput
- type TriggerTimerOutput
- func (o TriggerTimerOutput) AdditionalInformation() pulumi.StringPtrOutput
- func (TriggerTimerOutput) ElementType() reflect.Type
- func (o TriggerTimerOutput) Name() pulumi.StringOutput
- func (o TriggerTimerOutput) Schedule() pulumi.StringOutput
- func (o TriggerTimerOutput) ScheduleType() pulumi.StringOutput
- func (o TriggerTimerOutput) ToTriggerTimerOutput() TriggerTimerOutput
- func (o TriggerTimerOutput) ToTriggerTimerOutputWithContext(ctx context.Context) TriggerTimerOutput
- func (o TriggerTimerOutput) ToTriggerTimerPtrOutput() TriggerTimerPtrOutput
- func (o TriggerTimerOutput) ToTriggerTimerPtrOutputWithContext(ctx context.Context) TriggerTimerPtrOutput
- type TriggerTimerPtrInput
- type TriggerTimerPtrOutput
- func (o TriggerTimerPtrOutput) AdditionalInformation() pulumi.StringPtrOutput
- func (o TriggerTimerPtrOutput) Elem() TriggerTimerOutput
- func (TriggerTimerPtrOutput) ElementType() reflect.Type
- func (o TriggerTimerPtrOutput) Name() pulumi.StringPtrOutput
- func (o TriggerTimerPtrOutput) Schedule() pulumi.StringPtrOutput
- func (o TriggerTimerPtrOutput) ScheduleType() pulumi.StringPtrOutput
- func (o TriggerTimerPtrOutput) ToTriggerTimerPtrOutput() TriggerTimerPtrOutput
- func (o TriggerTimerPtrOutput) ToTriggerTimerPtrOutputWithContext(ctx context.Context) TriggerTimerPtrOutput
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PkgVersion ¶ added in v0.0.2
PkgVersion uses reflection to determine the version of the current package. If a version cannot be determined, v1 will be assumed. The second return value is always nil.
Types ¶
type Dependency ¶
type Dependency struct { pulumi.CustomResourceState // Specifies the dependency description. // The description can contain a maximum of 512 characters. Description pulumi.StringOutput `pulumi:"description"` // The unique ID of the dependency package. Etag pulumi.StringOutput `pulumi:"etag"` Link pulumi.StringOutput `pulumi:"link"` // Specifies the dependeny name. // The name can contain a maximum of 96 characters and must start with a letter and end with a letter or digit. // Only letters, digits, underscores (_), periods (.), and hyphens (-) are allowed. Name pulumi.StringOutput `pulumi:"name"` // The base64 encoded digest of the dependency after encryption by MD5. Owner pulumi.StringOutput `pulumi:"owner"` // Specifies the region in which to create a custom dependency package. // If omitted, the provider-level region will be used. Changing this will create a new resource. Region pulumi.StringOutput `pulumi:"region"` // Specifies the dependency package runtime. // The valid values are **Java8**, **Node.js6.10**, **Node.js8.10**, **Node.js10.16**, **Node.js12.13**, **Python2.7**, // **Python3.6**, **Go1.8**, **Go1.x**, **C#(.NET Core 2.0)**, **C#(.NET Core 2.1)**, **C#(.NET Core 3.1)** and // **PHP7.3**. Runtime pulumi.StringOutput `pulumi:"runtime"` // The dependency package size in bytes. Size pulumi.IntOutput `pulumi:"size"` }
Manages a custom dependency package within HuaweiCloud FunctionGraph.
## Example Usage
## Import
Dependencies can be imported using the `id`, e.g.
```sh
$ pulumi import huaweicloud:FunctionGraph/dependency:Dependency test 795e722f-0c23-41b6-a189-dcd56f889cf6
```
func GetDependency ¶
func GetDependency(ctx *pulumi.Context, name string, id pulumi.IDInput, state *DependencyState, opts ...pulumi.ResourceOption) (*Dependency, error)
GetDependency gets an existing Dependency 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 NewDependency ¶
func NewDependency(ctx *pulumi.Context, name string, args *DependencyArgs, opts ...pulumi.ResourceOption) (*Dependency, error)
NewDependency registers a new resource with the given unique name, arguments, and options.
func (*Dependency) ElementType ¶
func (*Dependency) ElementType() reflect.Type
func (*Dependency) ToDependencyOutput ¶
func (i *Dependency) ToDependencyOutput() DependencyOutput
func (*Dependency) ToDependencyOutputWithContext ¶
func (i *Dependency) ToDependencyOutputWithContext(ctx context.Context) DependencyOutput
type DependencyArgs ¶
type DependencyArgs struct { // Specifies the dependency description. // The description can contain a maximum of 512 characters. Description pulumi.StringPtrInput Link pulumi.StringInput // Specifies the dependeny name. // The name can contain a maximum of 96 characters and must start with a letter and end with a letter or digit. // Only letters, digits, underscores (_), periods (.), and hyphens (-) are allowed. Name pulumi.StringPtrInput // Specifies the region in which to create a custom dependency package. // If omitted, the provider-level region will be used. Changing this will create a new resource. Region pulumi.StringPtrInput // Specifies the dependency package runtime. // The valid values are **Java8**, **Node.js6.10**, **Node.js8.10**, **Node.js10.16**, **Node.js12.13**, **Python2.7**, // **Python3.6**, **Go1.8**, **Go1.x**, **C#(.NET Core 2.0)**, **C#(.NET Core 2.1)**, **C#(.NET Core 3.1)** and // **PHP7.3**. Runtime pulumi.StringInput }
The set of arguments for constructing a Dependency resource.
func (DependencyArgs) ElementType ¶
func (DependencyArgs) ElementType() reflect.Type
type DependencyArray ¶
type DependencyArray []DependencyInput
func (DependencyArray) ElementType ¶
func (DependencyArray) ElementType() reflect.Type
func (DependencyArray) ToDependencyArrayOutput ¶
func (i DependencyArray) ToDependencyArrayOutput() DependencyArrayOutput
func (DependencyArray) ToDependencyArrayOutputWithContext ¶
func (i DependencyArray) ToDependencyArrayOutputWithContext(ctx context.Context) DependencyArrayOutput
type DependencyArrayInput ¶
type DependencyArrayInput interface { pulumi.Input ToDependencyArrayOutput() DependencyArrayOutput ToDependencyArrayOutputWithContext(context.Context) DependencyArrayOutput }
DependencyArrayInput is an input type that accepts DependencyArray and DependencyArrayOutput values. You can construct a concrete instance of `DependencyArrayInput` via:
DependencyArray{ DependencyArgs{...} }
type DependencyArrayOutput ¶
type DependencyArrayOutput struct{ *pulumi.OutputState }
func (DependencyArrayOutput) ElementType ¶
func (DependencyArrayOutput) ElementType() reflect.Type
func (DependencyArrayOutput) Index ¶
func (o DependencyArrayOutput) Index(i pulumi.IntInput) DependencyOutput
func (DependencyArrayOutput) ToDependencyArrayOutput ¶
func (o DependencyArrayOutput) ToDependencyArrayOutput() DependencyArrayOutput
func (DependencyArrayOutput) ToDependencyArrayOutputWithContext ¶
func (o DependencyArrayOutput) ToDependencyArrayOutputWithContext(ctx context.Context) DependencyArrayOutput
type DependencyInput ¶
type DependencyInput interface { pulumi.Input ToDependencyOutput() DependencyOutput ToDependencyOutputWithContext(ctx context.Context) DependencyOutput }
type DependencyMap ¶
type DependencyMap map[string]DependencyInput
func (DependencyMap) ElementType ¶
func (DependencyMap) ElementType() reflect.Type
func (DependencyMap) ToDependencyMapOutput ¶
func (i DependencyMap) ToDependencyMapOutput() DependencyMapOutput
func (DependencyMap) ToDependencyMapOutputWithContext ¶
func (i DependencyMap) ToDependencyMapOutputWithContext(ctx context.Context) DependencyMapOutput
type DependencyMapInput ¶
type DependencyMapInput interface { pulumi.Input ToDependencyMapOutput() DependencyMapOutput ToDependencyMapOutputWithContext(context.Context) DependencyMapOutput }
DependencyMapInput is an input type that accepts DependencyMap and DependencyMapOutput values. You can construct a concrete instance of `DependencyMapInput` via:
DependencyMap{ "key": DependencyArgs{...} }
type DependencyMapOutput ¶
type DependencyMapOutput struct{ *pulumi.OutputState }
func (DependencyMapOutput) ElementType ¶
func (DependencyMapOutput) ElementType() reflect.Type
func (DependencyMapOutput) MapIndex ¶
func (o DependencyMapOutput) MapIndex(k pulumi.StringInput) DependencyOutput
func (DependencyMapOutput) ToDependencyMapOutput ¶
func (o DependencyMapOutput) ToDependencyMapOutput() DependencyMapOutput
func (DependencyMapOutput) ToDependencyMapOutputWithContext ¶
func (o DependencyMapOutput) ToDependencyMapOutputWithContext(ctx context.Context) DependencyMapOutput
type DependencyOutput ¶
type DependencyOutput struct{ *pulumi.OutputState }
func (DependencyOutput) Description ¶
func (o DependencyOutput) Description() pulumi.StringOutput
Specifies the dependency description. The description can contain a maximum of 512 characters.
func (DependencyOutput) ElementType ¶
func (DependencyOutput) ElementType() reflect.Type
func (DependencyOutput) Etag ¶
func (o DependencyOutput) Etag() pulumi.StringOutput
The unique ID of the dependency package.
func (DependencyOutput) Link ¶
func (o DependencyOutput) Link() pulumi.StringOutput
func (DependencyOutput) Name ¶
func (o DependencyOutput) Name() pulumi.StringOutput
Specifies the dependeny name. The name can contain a maximum of 96 characters and must start with a letter and end with a letter or digit. Only letters, digits, underscores (_), periods (.), and hyphens (-) are allowed.
func (DependencyOutput) Owner ¶
func (o DependencyOutput) Owner() pulumi.StringOutput
The base64 encoded digest of the dependency after encryption by MD5.
func (DependencyOutput) Region ¶
func (o DependencyOutput) Region() pulumi.StringOutput
Specifies the region in which to create a custom dependency package. If omitted, the provider-level region will be used. Changing this will create a new resource.
func (DependencyOutput) Runtime ¶
func (o DependencyOutput) Runtime() pulumi.StringOutput
Specifies the dependency package runtime. The valid values are **Java8**, **Node.js6.10**, **Node.js8.10**, **Node.js10.16**, **Node.js12.13**, **Python2.7**, **Python3.6**, **Go1.8**, **Go1.x**, **C#(.NET Core 2.0)**, **C#(.NET Core 2.1)**, **C#(.NET Core 3.1)** and **PHP7.3**.
func (DependencyOutput) Size ¶
func (o DependencyOutput) Size() pulumi.IntOutput
The dependency package size in bytes.
func (DependencyOutput) ToDependencyOutput ¶
func (o DependencyOutput) ToDependencyOutput() DependencyOutput
func (DependencyOutput) ToDependencyOutputWithContext ¶
func (o DependencyOutput) ToDependencyOutputWithContext(ctx context.Context) DependencyOutput
type DependencyState ¶
type DependencyState struct { // Specifies the dependency description. // The description can contain a maximum of 512 characters. Description pulumi.StringPtrInput // The unique ID of the dependency package. Etag pulumi.StringPtrInput Link pulumi.StringPtrInput // Specifies the dependeny name. // The name can contain a maximum of 96 characters and must start with a letter and end with a letter or digit. // Only letters, digits, underscores (_), periods (.), and hyphens (-) are allowed. Name pulumi.StringPtrInput // The base64 encoded digest of the dependency after encryption by MD5. Owner pulumi.StringPtrInput // Specifies the region in which to create a custom dependency package. // If omitted, the provider-level region will be used. Changing this will create a new resource. Region pulumi.StringPtrInput // Specifies the dependency package runtime. // The valid values are **Java8**, **Node.js6.10**, **Node.js8.10**, **Node.js10.16**, **Node.js12.13**, **Python2.7**, // **Python3.6**, **Go1.8**, **Go1.x**, **C#(.NET Core 2.0)**, **C#(.NET Core 2.1)**, **C#(.NET Core 3.1)** and // **PHP7.3**. Runtime pulumi.StringPtrInput // The dependency package size in bytes. Size pulumi.IntPtrInput }
func (DependencyState) ElementType ¶
func (DependencyState) ElementType() reflect.Type
type Function ¶
type Function struct { pulumi.CustomResourceState // Specifies the agency. This parameter is mandatory if the function needs to access other // cloud services. Agency pulumi.StringPtrOutput `pulumi:"agency"` // Specifies the group to which the function belongs. App pulumi.StringPtrOutput `pulumi:"app"` // Specifies An execution agency enables you to obtain a token or an AK/SK for // accessing other cloud services. AppAgency pulumi.StringOutput `pulumi:"appAgency"` // Specifies the name of a function file, This field is mandatory only when coeType // is set to jar or zip. CodeFilename pulumi.StringOutput `pulumi:"codeFilename"` // Specifies the function code type, which can be: // + **inline**: inline code. // + **zip**: ZIP file. // + **jar**: JAR file or java functions. // + **obs**: function code stored in an OBS bucket. CodeType pulumi.StringOutput `pulumi:"codeType"` // Specifies the code url. This parameter is mandatory when codeType is set to obs. CodeUrl pulumi.StringPtrOutput `pulumi:"codeUrl"` // Specifies the custom image configuration for creating function. // The object structure is documented below. CustomImage FunctionCustomImageOutput `pulumi:"customImage"` // Specifies the ID list of the dependencies. DependLists pulumi.StringArrayOutput `pulumi:"dependLists"` // Specifies the description of the function. Description pulumi.StringPtrOutput `pulumi:"description"` // Specifies the key/value information defined to be encrypted for the // function. The format is the same as `userData`. EncryptedUserData pulumi.StringPtrOutput `pulumi:"encryptedUserData"` // Specifies the enterprise project id of the function. // Changing this will create a new resource. EnterpriseProjectId pulumi.StringOutput `pulumi:"enterpriseProjectId"` // Specifies the function code. When codeType is set to inline, zip, or jar, this // parameter is mandatory, and the code can be encoded using Base64 or just with the text code. FuncCode pulumi.StringPtrOutput `pulumi:"funcCode"` // Specifies the file system list. The `funcMounts` object structure is documented // below. FuncMounts FunctionFuncMountArrayOutput `pulumi:"funcMounts"` // Specifies the FunctionGraph version, defaults to **v1**. // + **v1**: Hosts event-driven functions in a serverless context. // + **v2**: Next-generation function hosting service powered by Huawei YuanRong architecture. FunctiongraphVersion pulumi.StringOutput `pulumi:"functiongraphVersion"` // Specifies the entry point of the function. Handler pulumi.StringOutput `pulumi:"handler"` // Specifies the initializer of the function. InitializerHandler pulumi.StringOutput `pulumi:"initializerHandler"` // Specifies the maximum duration the function can be initialized. Value range: // 1s to 300s. InitializerTimeout pulumi.IntOutput `pulumi:"initializerTimeout"` // Specifies the maximum number of instances of the function.\ // The valid value ranges from `-1` to `1000`, defaults to `400`. // + The minimum value is `-1` and means the number of instances is unlimited. MaxInstanceNum pulumi.StringOutput `pulumi:"maxInstanceNum"` // Specifies the memory size(MB) allocated to the function. MemorySize pulumi.IntOutput `pulumi:"memorySize"` // Specifies the user group ID, a non-0 integer from –1 to 65534. Default to // -1. MountUserGroupId pulumi.IntOutput `pulumi:"mountUserGroupId"` // Specifies the user ID, a non-0 integer from –1 to 65534. Default to -1. MountUserId pulumi.IntOutput `pulumi:"mountUserId"` // Specifies the name of the function. // Changing this will create a new resource. Name pulumi.StringOutput `pulumi:"name"` // Specifies the network ID of subnet. NetworkId pulumi.StringPtrOutput `pulumi:"networkId"` // Deprecated: use app instead Package pulumi.StringPtrOutput `pulumi:"package"` // Specifies the region in which to create the Function resource. If omitted, the // provider-level region will be used. Changing this will create a new resource. Region pulumi.StringOutput `pulumi:"region"` // Specifies the environment for executing the function. // If the function is created using an SWR image, set this parameter to `Custom Image`. // Changing this will create a new resource. Runtime pulumi.StringOutput `pulumi:"runtime"` // Specifies the key/value pairs to associate with the function. Tags pulumi.StringMapOutput `pulumi:"tags"` // Specifies the timeout interval of the function, ranges from 3s to 900s. Timeout pulumi.IntOutput `pulumi:"timeout"` // Uniform Resource Name Urn pulumi.StringOutput `pulumi:"urn"` UserData pulumi.StringPtrOutput `pulumi:"userData"` // The version of the function Version pulumi.StringOutput `pulumi:"version"` // Specifies the ID of VPC. VpcId pulumi.StringPtrOutput `pulumi:"vpcId"` // Deprecated: use agency instead Xrole pulumi.StringPtrOutput `pulumi:"xrole"` }
Manages a Function resource within HuaweiCloud.
## Example Usage ### With base64 func code
```go package main
import (
"github.com/huaweicloud/pulumi-huaweicloud/sdk/go/huaweicloud/FunctionGraph" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := FunctionGraph.NewFunction(ctx, "f1", &FunctionGraph.FunctionArgs{ Agency: pulumi.String("test"), App: pulumi.String("default"), CodeType: pulumi.String("inline"), Description: pulumi.String("fuction test"), FuncCode: pulumi.String("aW1wb3J0IGpzb24KZGVmIGhhbmRsZXIgKGV2ZW50LCBjb250ZXh0KToKICAgIG91dHB1dCA9ICdIZWxsbyBtZXNzYWdlOiAnICsganNvbi5kdW1wcyhldmVudCkKICAgIHJldHVybiBvdXRwdXQ="), Handler: pulumi.String("test.handler"), MemorySize: pulumi.Int(128), Runtime: pulumi.String("Python2.7"), Timeout: pulumi.Int(3), }) if err != nil { return err } return nil }) }
``` ### With text code
```go package main
import (
"fmt" "github.com/huaweicloud/pulumi-huaweicloud/sdk/go/huaweicloud/FunctionGraph" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := FunctionGraph.NewFunction(ctx, "f1", &FunctionGraph.FunctionArgs{ Agency: pulumi.String("test"), App: pulumi.String("default"), CodeType: pulumi.String("inline"), Description: pulumi.String("fuction test"), FuncCode: pulumi.String(fmt.Sprintf(`# -*- coding:utf-8 -*-
import json def handler (event, context):
return { "statusCode": 200, "isBase64Encoded": False, "body": json.dumps(event), "headers": { "Content-Type": "application/json" } }
`)),
Handler: pulumi.String("test.handler"), MemorySize: pulumi.Int(128), Runtime: pulumi.String("Python2.7"), Timeout: pulumi.Int(3), }) if err != nil { return err } return nil }) }
``` ### Create function using SWR image
```go package main
import (
"github.com/huaweicloud/pulumi-huaweicloud/sdk/go/huaweicloud/FunctionGraph" "github.com/pulumi/pulumi-huaweicloud/sdk/go/huaweicloud/FunctionGraph" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" "github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { cfg := config.New(ctx, "") functionName := cfg.RequireObject("functionName") agencyName := cfg.RequireObject("agencyName") imageUrl := cfg.RequireObject("imageUrl") _, err := FunctionGraph.NewFunction(ctx, "bySwrImage", &FunctionGraph.FunctionArgs{ Agency: pulumi.Any(agencyName), Handler: pulumi.String("-"), App: pulumi.String("default"), Runtime: pulumi.String("Custom Image"), MemorySize: pulumi.Int(128), Timeout: pulumi.Int(3), CustomImage: &functiongraph.FunctionCustomImageArgs{ Url: pulumi.Any(imageUrl), }, }) if err != nil { return err } return nil }) }
```
## Import
Functions can be imported using the `id`, e.g.
```sh
$ pulumi import huaweicloud:FunctionGraph/function:Function my-func 7117d38e-4c8f-4624-a505-bd96b97d024c
```
Note that the imported state may not be identical to your resource definition, due to the attribute missing from the API response. The missing attributes are`app`, `func_code`, `agency`, `tags"`. It is generally recommended running `terraform plan` after importing a function. You can then decide if changes should be applied to the function, or the resource definition should be updated to align with the function. Also you can ignore changes as below. hcl resource "huaweicloud_fgs_function" "test" { ... lifecycle { ignore_changes = [ app, func_code, agency, tags, ] } }
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 { // Specifies the agency. This parameter is mandatory if the function needs to access other // cloud services. Agency pulumi.StringPtrInput // Specifies the group to which the function belongs. App pulumi.StringPtrInput // Specifies An execution agency enables you to obtain a token or an AK/SK for // accessing other cloud services. AppAgency pulumi.StringPtrInput // Specifies the name of a function file, This field is mandatory only when coeType // is set to jar or zip. CodeFilename pulumi.StringPtrInput // Specifies the function code type, which can be: // + **inline**: inline code. // + **zip**: ZIP file. // + **jar**: JAR file or java functions. // + **obs**: function code stored in an OBS bucket. CodeType pulumi.StringPtrInput // Specifies the code url. This parameter is mandatory when codeType is set to obs. CodeUrl pulumi.StringPtrInput // Specifies the custom image configuration for creating function. // The object structure is documented below. CustomImage FunctionCustomImagePtrInput // Specifies the ID list of the dependencies. DependLists pulumi.StringArrayInput // Specifies the description of the function. Description pulumi.StringPtrInput // Specifies the key/value information defined to be encrypted for the // function. The format is the same as `userData`. EncryptedUserData pulumi.StringPtrInput // Specifies the enterprise project id of the function. // Changing this will create a new resource. EnterpriseProjectId pulumi.StringPtrInput // Specifies the function code. When codeType is set to inline, zip, or jar, this // parameter is mandatory, and the code can be encoded using Base64 or just with the text code. FuncCode pulumi.StringPtrInput // Specifies the file system list. The `funcMounts` object structure is documented // below. FuncMounts FunctionFuncMountArrayInput // Specifies the FunctionGraph version, defaults to **v1**. // + **v1**: Hosts event-driven functions in a serverless context. // + **v2**: Next-generation function hosting service powered by Huawei YuanRong architecture. FunctiongraphVersion pulumi.StringPtrInput // Specifies the entry point of the function. Handler pulumi.StringPtrInput // Specifies the initializer of the function. InitializerHandler pulumi.StringPtrInput // Specifies the maximum duration the function can be initialized. Value range: // 1s to 300s. InitializerTimeout pulumi.IntPtrInput // Specifies the maximum number of instances of the function.\ // The valid value ranges from `-1` to `1000`, defaults to `400`. // + The minimum value is `-1` and means the number of instances is unlimited. MaxInstanceNum pulumi.StringPtrInput // Specifies the memory size(MB) allocated to the function. MemorySize pulumi.IntInput // Specifies the user group ID, a non-0 integer from –1 to 65534. Default to // -1. MountUserGroupId pulumi.IntPtrInput // Specifies the user ID, a non-0 integer from –1 to 65534. Default to -1. MountUserId pulumi.IntPtrInput // Specifies the name of the function. // Changing this will create a new resource. Name pulumi.StringPtrInput // Specifies the network ID of subnet. NetworkId pulumi.StringPtrInput // Deprecated: use app instead Package pulumi.StringPtrInput // Specifies the region in which to create the Function resource. If omitted, the // provider-level region will be used. Changing this will create a new resource. Region pulumi.StringPtrInput // Specifies the environment for executing the function. // If the function is created using an SWR image, set this parameter to `Custom Image`. // Changing this will create a new resource. Runtime pulumi.StringInput // Specifies the key/value pairs to associate with the function. Tags pulumi.StringMapInput // Specifies the timeout interval of the function, ranges from 3s to 900s. Timeout pulumi.IntInput UserData pulumi.StringPtrInput // Specifies the ID of VPC. VpcId pulumi.StringPtrInput // Deprecated: use agency instead Xrole 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 FunctionCustomImage ¶
type FunctionCustomImage struct { // Specifies the URL of SWR image, the URL must start with `swr.`. Url string `pulumi:"url"` }
type FunctionCustomImageArgs ¶
type FunctionCustomImageArgs struct { // Specifies the URL of SWR image, the URL must start with `swr.`. Url pulumi.StringInput `pulumi:"url"` }
func (FunctionCustomImageArgs) ElementType ¶
func (FunctionCustomImageArgs) ElementType() reflect.Type
func (FunctionCustomImageArgs) ToFunctionCustomImageOutput ¶
func (i FunctionCustomImageArgs) ToFunctionCustomImageOutput() FunctionCustomImageOutput
func (FunctionCustomImageArgs) ToFunctionCustomImageOutputWithContext ¶
func (i FunctionCustomImageArgs) ToFunctionCustomImageOutputWithContext(ctx context.Context) FunctionCustomImageOutput
func (FunctionCustomImageArgs) ToFunctionCustomImagePtrOutput ¶
func (i FunctionCustomImageArgs) ToFunctionCustomImagePtrOutput() FunctionCustomImagePtrOutput
func (FunctionCustomImageArgs) ToFunctionCustomImagePtrOutputWithContext ¶
func (i FunctionCustomImageArgs) ToFunctionCustomImagePtrOutputWithContext(ctx context.Context) FunctionCustomImagePtrOutput
type FunctionCustomImageInput ¶
type FunctionCustomImageInput interface { pulumi.Input ToFunctionCustomImageOutput() FunctionCustomImageOutput ToFunctionCustomImageOutputWithContext(context.Context) FunctionCustomImageOutput }
FunctionCustomImageInput is an input type that accepts FunctionCustomImageArgs and FunctionCustomImageOutput values. You can construct a concrete instance of `FunctionCustomImageInput` via:
FunctionCustomImageArgs{...}
type FunctionCustomImageOutput ¶
type FunctionCustomImageOutput struct{ *pulumi.OutputState }
func (FunctionCustomImageOutput) ElementType ¶
func (FunctionCustomImageOutput) ElementType() reflect.Type
func (FunctionCustomImageOutput) ToFunctionCustomImageOutput ¶
func (o FunctionCustomImageOutput) ToFunctionCustomImageOutput() FunctionCustomImageOutput
func (FunctionCustomImageOutput) ToFunctionCustomImageOutputWithContext ¶
func (o FunctionCustomImageOutput) ToFunctionCustomImageOutputWithContext(ctx context.Context) FunctionCustomImageOutput
func (FunctionCustomImageOutput) ToFunctionCustomImagePtrOutput ¶
func (o FunctionCustomImageOutput) ToFunctionCustomImagePtrOutput() FunctionCustomImagePtrOutput
func (FunctionCustomImageOutput) ToFunctionCustomImagePtrOutputWithContext ¶
func (o FunctionCustomImageOutput) ToFunctionCustomImagePtrOutputWithContext(ctx context.Context) FunctionCustomImagePtrOutput
func (FunctionCustomImageOutput) Url ¶
func (o FunctionCustomImageOutput) Url() pulumi.StringOutput
Specifies the URL of SWR image, the URL must start with `swr.`.
type FunctionCustomImagePtrInput ¶
type FunctionCustomImagePtrInput interface { pulumi.Input ToFunctionCustomImagePtrOutput() FunctionCustomImagePtrOutput ToFunctionCustomImagePtrOutputWithContext(context.Context) FunctionCustomImagePtrOutput }
FunctionCustomImagePtrInput is an input type that accepts FunctionCustomImageArgs, FunctionCustomImagePtr and FunctionCustomImagePtrOutput values. You can construct a concrete instance of `FunctionCustomImagePtrInput` via:
FunctionCustomImageArgs{...} or: nil
func FunctionCustomImagePtr ¶
func FunctionCustomImagePtr(v *FunctionCustomImageArgs) FunctionCustomImagePtrInput
type FunctionCustomImagePtrOutput ¶
type FunctionCustomImagePtrOutput struct{ *pulumi.OutputState }
func (FunctionCustomImagePtrOutput) Elem ¶
func (o FunctionCustomImagePtrOutput) Elem() FunctionCustomImageOutput
func (FunctionCustomImagePtrOutput) ElementType ¶
func (FunctionCustomImagePtrOutput) ElementType() reflect.Type
func (FunctionCustomImagePtrOutput) ToFunctionCustomImagePtrOutput ¶
func (o FunctionCustomImagePtrOutput) ToFunctionCustomImagePtrOutput() FunctionCustomImagePtrOutput
func (FunctionCustomImagePtrOutput) ToFunctionCustomImagePtrOutputWithContext ¶
func (o FunctionCustomImagePtrOutput) ToFunctionCustomImagePtrOutputWithContext(ctx context.Context) FunctionCustomImagePtrOutput
func (FunctionCustomImagePtrOutput) Url ¶
func (o FunctionCustomImagePtrOutput) Url() pulumi.StringPtrOutput
Specifies the URL of SWR image, the URL must start with `swr.`.
type FunctionFuncMount ¶
type FunctionFuncMount struct { // Specifies the function access path. LocalMountPath string `pulumi:"localMountPath"` // Specifies the ID of the mounted resource (corresponding cloud service). MountResource string `pulumi:"mountResource"` MountSharePath string `pulumi:"mountSharePath"` // Specifies the mount type. Options: sfs, sfsTurbo, and ecs. MountType string `pulumi:"mountType"` Status *string `pulumi:"status"` }
type FunctionFuncMountArgs ¶
type FunctionFuncMountArgs struct { // Specifies the function access path. LocalMountPath pulumi.StringInput `pulumi:"localMountPath"` // Specifies the ID of the mounted resource (corresponding cloud service). MountResource pulumi.StringInput `pulumi:"mountResource"` MountSharePath pulumi.StringInput `pulumi:"mountSharePath"` // Specifies the mount type. Options: sfs, sfsTurbo, and ecs. MountType pulumi.StringInput `pulumi:"mountType"` Status pulumi.StringPtrInput `pulumi:"status"` }
func (FunctionFuncMountArgs) ElementType ¶
func (FunctionFuncMountArgs) ElementType() reflect.Type
func (FunctionFuncMountArgs) ToFunctionFuncMountOutput ¶
func (i FunctionFuncMountArgs) ToFunctionFuncMountOutput() FunctionFuncMountOutput
func (FunctionFuncMountArgs) ToFunctionFuncMountOutputWithContext ¶
func (i FunctionFuncMountArgs) ToFunctionFuncMountOutputWithContext(ctx context.Context) FunctionFuncMountOutput
type FunctionFuncMountArray ¶
type FunctionFuncMountArray []FunctionFuncMountInput
func (FunctionFuncMountArray) ElementType ¶
func (FunctionFuncMountArray) ElementType() reflect.Type
func (FunctionFuncMountArray) ToFunctionFuncMountArrayOutput ¶
func (i FunctionFuncMountArray) ToFunctionFuncMountArrayOutput() FunctionFuncMountArrayOutput
func (FunctionFuncMountArray) ToFunctionFuncMountArrayOutputWithContext ¶
func (i FunctionFuncMountArray) ToFunctionFuncMountArrayOutputWithContext(ctx context.Context) FunctionFuncMountArrayOutput
type FunctionFuncMountArrayInput ¶
type FunctionFuncMountArrayInput interface { pulumi.Input ToFunctionFuncMountArrayOutput() FunctionFuncMountArrayOutput ToFunctionFuncMountArrayOutputWithContext(context.Context) FunctionFuncMountArrayOutput }
FunctionFuncMountArrayInput is an input type that accepts FunctionFuncMountArray and FunctionFuncMountArrayOutput values. You can construct a concrete instance of `FunctionFuncMountArrayInput` via:
FunctionFuncMountArray{ FunctionFuncMountArgs{...} }
type FunctionFuncMountArrayOutput ¶
type FunctionFuncMountArrayOutput struct{ *pulumi.OutputState }
func (FunctionFuncMountArrayOutput) ElementType ¶
func (FunctionFuncMountArrayOutput) ElementType() reflect.Type
func (FunctionFuncMountArrayOutput) Index ¶
func (o FunctionFuncMountArrayOutput) Index(i pulumi.IntInput) FunctionFuncMountOutput
func (FunctionFuncMountArrayOutput) ToFunctionFuncMountArrayOutput ¶
func (o FunctionFuncMountArrayOutput) ToFunctionFuncMountArrayOutput() FunctionFuncMountArrayOutput
func (FunctionFuncMountArrayOutput) ToFunctionFuncMountArrayOutputWithContext ¶
func (o FunctionFuncMountArrayOutput) ToFunctionFuncMountArrayOutputWithContext(ctx context.Context) FunctionFuncMountArrayOutput
type FunctionFuncMountInput ¶
type FunctionFuncMountInput interface { pulumi.Input ToFunctionFuncMountOutput() FunctionFuncMountOutput ToFunctionFuncMountOutputWithContext(context.Context) FunctionFuncMountOutput }
FunctionFuncMountInput is an input type that accepts FunctionFuncMountArgs and FunctionFuncMountOutput values. You can construct a concrete instance of `FunctionFuncMountInput` via:
FunctionFuncMountArgs{...}
type FunctionFuncMountOutput ¶
type FunctionFuncMountOutput struct{ *pulumi.OutputState }
func (FunctionFuncMountOutput) ElementType ¶
func (FunctionFuncMountOutput) ElementType() reflect.Type
func (FunctionFuncMountOutput) LocalMountPath ¶
func (o FunctionFuncMountOutput) LocalMountPath() pulumi.StringOutput
Specifies the function access path.
func (FunctionFuncMountOutput) MountResource ¶
func (o FunctionFuncMountOutput) MountResource() pulumi.StringOutput
Specifies the ID of the mounted resource (corresponding cloud service).
func (FunctionFuncMountOutput) MountSharePath ¶
func (o FunctionFuncMountOutput) MountSharePath() pulumi.StringOutput
Specifies the remote mount path. Example: 192.168.0.12:/data.
func (FunctionFuncMountOutput) MountType ¶
func (o FunctionFuncMountOutput) MountType() pulumi.StringOutput
Specifies the mount type. Options: sfs, sfsTurbo, and ecs.
func (FunctionFuncMountOutput) Status ¶
func (o FunctionFuncMountOutput) Status() pulumi.StringPtrOutput
func (FunctionFuncMountOutput) ToFunctionFuncMountOutput ¶
func (o FunctionFuncMountOutput) ToFunctionFuncMountOutput() FunctionFuncMountOutput
func (FunctionFuncMountOutput) ToFunctionFuncMountOutputWithContext ¶
func (o FunctionFuncMountOutput) ToFunctionFuncMountOutputWithContext(ctx context.Context) FunctionFuncMountOutput
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) Agency ¶
func (o FunctionOutput) Agency() pulumi.StringPtrOutput
Specifies the agency. This parameter is mandatory if the function needs to access other cloud services.
func (FunctionOutput) App ¶
func (o FunctionOutput) App() pulumi.StringPtrOutput
Specifies the group to which the function belongs.
func (FunctionOutput) AppAgency ¶
func (o FunctionOutput) AppAgency() pulumi.StringOutput
Specifies An execution agency enables you to obtain a token or an AK/SK for accessing other cloud services.
func (FunctionOutput) CodeFilename ¶
func (o FunctionOutput) CodeFilename() pulumi.StringOutput
Specifies the name of a function file, This field is mandatory only when coeType is set to jar or zip.
func (FunctionOutput) CodeType ¶
func (o FunctionOutput) CodeType() pulumi.StringOutput
Specifies the function code type, which can be: + **inline**: inline code. + **zip**: ZIP file. + **jar**: JAR file or java functions. + **obs**: function code stored in an OBS bucket.
func (FunctionOutput) CodeUrl ¶
func (o FunctionOutput) CodeUrl() pulumi.StringPtrOutput
Specifies the code url. This parameter is mandatory when codeType is set to obs.
func (FunctionOutput) CustomImage ¶
func (o FunctionOutput) CustomImage() FunctionCustomImageOutput
Specifies the custom image configuration for creating function. The object structure is documented below.
func (FunctionOutput) DependLists ¶
func (o FunctionOutput) DependLists() pulumi.StringArrayOutput
Specifies the ID list of the dependencies.
func (FunctionOutput) Description ¶
func (o FunctionOutput) Description() pulumi.StringPtrOutput
Specifies the description of the function.
func (FunctionOutput) ElementType ¶
func (FunctionOutput) ElementType() reflect.Type
func (FunctionOutput) EncryptedUserData ¶
func (o FunctionOutput) EncryptedUserData() pulumi.StringPtrOutput
Specifies the key/value information defined to be encrypted for the function. The format is the same as `userData`.
func (FunctionOutput) EnterpriseProjectId ¶
func (o FunctionOutput) EnterpriseProjectId() pulumi.StringOutput
Specifies the enterprise project id of the function. Changing this will create a new resource.
func (FunctionOutput) FuncCode ¶
func (o FunctionOutput) FuncCode() pulumi.StringPtrOutput
Specifies the function code. When codeType is set to inline, zip, or jar, this parameter is mandatory, and the code can be encoded using Base64 or just with the text code.
func (FunctionOutput) FuncMounts ¶
func (o FunctionOutput) FuncMounts() FunctionFuncMountArrayOutput
Specifies the file system list. The `funcMounts` object structure is documented below.
func (FunctionOutput) FunctiongraphVersion ¶
func (o FunctionOutput) FunctiongraphVersion() pulumi.StringOutput
Specifies the FunctionGraph version, defaults to **v1**. + **v1**: Hosts event-driven functions in a serverless context. + **v2**: Next-generation function hosting service powered by Huawei YuanRong architecture.
func (FunctionOutput) Handler ¶
func (o FunctionOutput) Handler() pulumi.StringOutput
Specifies the entry point of the function.
func (FunctionOutput) InitializerHandler ¶
func (o FunctionOutput) InitializerHandler() pulumi.StringOutput
Specifies the initializer of the function.
func (FunctionOutput) InitializerTimeout ¶
func (o FunctionOutput) InitializerTimeout() pulumi.IntOutput
Specifies the maximum duration the function can be initialized. Value range: 1s to 300s.
func (FunctionOutput) MaxInstanceNum ¶ added in v0.0.8
func (o FunctionOutput) MaxInstanceNum() pulumi.StringOutput
Specifies the maximum number of instances of the function.\ The valid value ranges from `-1` to `1000`, defaults to `400`. + The minimum value is `-1` and means the number of instances is unlimited.
func (FunctionOutput) MemorySize ¶
func (o FunctionOutput) MemorySize() pulumi.IntOutput
Specifies the memory size(MB) allocated to the function.
func (FunctionOutput) MountUserGroupId ¶
func (o FunctionOutput) MountUserGroupId() pulumi.IntOutput
Specifies the user group ID, a non-0 integer from –1 to 65534. Default to -1.
func (FunctionOutput) MountUserId ¶
func (o FunctionOutput) MountUserId() pulumi.IntOutput
Specifies the user ID, a non-0 integer from –1 to 65534. Default to -1.
func (FunctionOutput) Name ¶
func (o FunctionOutput) Name() pulumi.StringOutput
Specifies the name of the function. Changing this will create a new resource.
func (FunctionOutput) NetworkId ¶
func (o FunctionOutput) NetworkId() pulumi.StringPtrOutput
Specifies the network ID of subnet.
func (FunctionOutput) Package
deprecated
func (o FunctionOutput) Package() pulumi.StringPtrOutput
Deprecated: use app instead
func (FunctionOutput) Region ¶
func (o FunctionOutput) Region() pulumi.StringOutput
Specifies the region in which to create the Function resource. If omitted, the provider-level region will be used. Changing this will create a new resource.
func (FunctionOutput) Runtime ¶
func (o FunctionOutput) Runtime() pulumi.StringOutput
Specifies the environment for executing the function. If the function is created using an SWR image, set this parameter to `Custom Image`. Changing this will create a new resource.
func (FunctionOutput) Tags ¶ added in v0.0.8
func (o FunctionOutput) Tags() pulumi.StringMapOutput
Specifies the key/value pairs to associate with the function.
func (FunctionOutput) Timeout ¶
func (o FunctionOutput) Timeout() pulumi.IntOutput
Specifies the timeout interval of the function, ranges from 3s to 900s.
func (FunctionOutput) ToFunctionOutput ¶
func (o FunctionOutput) ToFunctionOutput() FunctionOutput
func (FunctionOutput) ToFunctionOutputWithContext ¶
func (o FunctionOutput) ToFunctionOutputWithContext(ctx context.Context) FunctionOutput
func (FunctionOutput) UserData ¶
func (o FunctionOutput) UserData() pulumi.StringPtrOutput
func (FunctionOutput) Version ¶
func (o FunctionOutput) Version() pulumi.StringOutput
The version of the function
func (FunctionOutput) VpcId ¶
func (o FunctionOutput) VpcId() pulumi.StringPtrOutput
Specifies the ID of VPC.
func (FunctionOutput) Xrole
deprecated
func (o FunctionOutput) Xrole() pulumi.StringPtrOutput
Deprecated: use agency instead
type FunctionState ¶
type FunctionState struct { // Specifies the agency. This parameter is mandatory if the function needs to access other // cloud services. Agency pulumi.StringPtrInput // Specifies the group to which the function belongs. App pulumi.StringPtrInput // Specifies An execution agency enables you to obtain a token or an AK/SK for // accessing other cloud services. AppAgency pulumi.StringPtrInput // Specifies the name of a function file, This field is mandatory only when coeType // is set to jar or zip. CodeFilename pulumi.StringPtrInput // Specifies the function code type, which can be: // + **inline**: inline code. // + **zip**: ZIP file. // + **jar**: JAR file or java functions. // + **obs**: function code stored in an OBS bucket. CodeType pulumi.StringPtrInput // Specifies the code url. This parameter is mandatory when codeType is set to obs. CodeUrl pulumi.StringPtrInput // Specifies the custom image configuration for creating function. // The object structure is documented below. CustomImage FunctionCustomImagePtrInput // Specifies the ID list of the dependencies. DependLists pulumi.StringArrayInput // Specifies the description of the function. Description pulumi.StringPtrInput // Specifies the key/value information defined to be encrypted for the // function. The format is the same as `userData`. EncryptedUserData pulumi.StringPtrInput // Specifies the enterprise project id of the function. // Changing this will create a new resource. EnterpriseProjectId pulumi.StringPtrInput // Specifies the function code. When codeType is set to inline, zip, or jar, this // parameter is mandatory, and the code can be encoded using Base64 or just with the text code. FuncCode pulumi.StringPtrInput // Specifies the file system list. The `funcMounts` object structure is documented // below. FuncMounts FunctionFuncMountArrayInput // Specifies the FunctionGraph version, defaults to **v1**. // + **v1**: Hosts event-driven functions in a serverless context. // + **v2**: Next-generation function hosting service powered by Huawei YuanRong architecture. FunctiongraphVersion pulumi.StringPtrInput // Specifies the entry point of the function. Handler pulumi.StringPtrInput // Specifies the initializer of the function. InitializerHandler pulumi.StringPtrInput // Specifies the maximum duration the function can be initialized. Value range: // 1s to 300s. InitializerTimeout pulumi.IntPtrInput // Specifies the maximum number of instances of the function.\ // The valid value ranges from `-1` to `1000`, defaults to `400`. // + The minimum value is `-1` and means the number of instances is unlimited. MaxInstanceNum pulumi.StringPtrInput // Specifies the memory size(MB) allocated to the function. MemorySize pulumi.IntPtrInput // Specifies the user group ID, a non-0 integer from –1 to 65534. Default to // -1. MountUserGroupId pulumi.IntPtrInput // Specifies the user ID, a non-0 integer from –1 to 65534. Default to -1. MountUserId pulumi.IntPtrInput // Specifies the name of the function. // Changing this will create a new resource. Name pulumi.StringPtrInput // Specifies the network ID of subnet. NetworkId pulumi.StringPtrInput // Deprecated: use app instead Package pulumi.StringPtrInput // Specifies the region in which to create the Function resource. If omitted, the // provider-level region will be used. Changing this will create a new resource. Region pulumi.StringPtrInput // Specifies the environment for executing the function. // If the function is created using an SWR image, set this parameter to `Custom Image`. // Changing this will create a new resource. Runtime pulumi.StringPtrInput // Specifies the key/value pairs to associate with the function. Tags pulumi.StringMapInput // Specifies the timeout interval of the function, ranges from 3s to 900s. Timeout pulumi.IntPtrInput // Uniform Resource Name Urn pulumi.StringPtrInput UserData pulumi.StringPtrInput // The version of the function Version pulumi.StringPtrInput // Specifies the ID of VPC. VpcId pulumi.StringPtrInput // Deprecated: use agency instead Xrole pulumi.StringPtrInput }
func (FunctionState) ElementType ¶
func (FunctionState) ElementType() reflect.Type
type GetDependenciesArgs ¶
type GetDependenciesArgs struct { // Specifies the dependent package runtime to match. Name *string `pulumi:"name"` // Specifies the region in which to obtain the dependent packages. If omitted, the // provider-level region will be used. Region *string `pulumi:"region"` // Specifies the dependent package runtime to match. Valid values: **Java8**, // **Node.js6.10**, **Node.js8.10**, **Node.js10.16**, **Node.js12.13**, **Python2.7**, **Python3.6**, **Go1.8**, // **Go1.x**, **C#(.NET Core 2.0)**, **C#(.NET Core 2.1)**, **C#(.NET Core 3.1)** and **PHP7.3**. Runtime *string `pulumi:"runtime"` // Specifies the dependent package type to match. Valid values: **public** and **private**. Type *string `pulumi:"type"` }
A collection of arguments for invoking getDependencies.
type GetDependenciesOutputArgs ¶
type GetDependenciesOutputArgs struct { // Specifies the dependent package runtime to match. Name pulumi.StringPtrInput `pulumi:"name"` // Specifies the region in which to obtain the dependent packages. If omitted, the // provider-level region will be used. Region pulumi.StringPtrInput `pulumi:"region"` // Specifies the dependent package runtime to match. Valid values: **Java8**, // **Node.js6.10**, **Node.js8.10**, **Node.js10.16**, **Node.js12.13**, **Python2.7**, **Python3.6**, **Go1.8**, // **Go1.x**, **C#(.NET Core 2.0)**, **C#(.NET Core 2.1)**, **C#(.NET Core 3.1)** and **PHP7.3**. Runtime pulumi.StringPtrInput `pulumi:"runtime"` // Specifies the dependent package type to match. Valid values: **public** and **private**. Type pulumi.StringPtrInput `pulumi:"type"` }
A collection of arguments for invoking getDependencies.
func (GetDependenciesOutputArgs) ElementType ¶
func (GetDependenciesOutputArgs) ElementType() reflect.Type
type GetDependenciesPackage ¶
type GetDependenciesPackage struct { // Unique ID of the dependent package. Etag string `pulumi:"etag"` // File name of the Dependent package. FileName string `pulumi:"fileName"` // Dependent package ID. Id string `pulumi:"id"` // URL of the dependent package in the OBS console. Link string `pulumi:"link"` // Specifies the dependent package runtime to match. Name string `pulumi:"name"` // Dependent package owner. Owner string `pulumi:"owner"` // Specifies the dependent package runtime to match. Valid values: **Java8**, // **Node.js6.10**, **Node.js8.10**, **Node.js10.16**, **Node.js12.13**, **Python2.7**, **Python3.6**, **Go1.8**, // **Go1.x**, **C#(.NET Core 2.0)**, **C#(.NET Core 2.1)**, **C#(.NET Core 3.1)** and **PHP7.3**. Runtime string `pulumi:"runtime"` // Dependent package size. Size int `pulumi:"size"` }
type GetDependenciesPackageArgs ¶
type GetDependenciesPackageArgs struct { // Unique ID of the dependent package. Etag pulumi.StringInput `pulumi:"etag"` // File name of the Dependent package. FileName pulumi.StringInput `pulumi:"fileName"` // Dependent package ID. Id pulumi.StringInput `pulumi:"id"` // URL of the dependent package in the OBS console. Link pulumi.StringInput `pulumi:"link"` // Specifies the dependent package runtime to match. Name pulumi.StringInput `pulumi:"name"` // Dependent package owner. Owner pulumi.StringInput `pulumi:"owner"` // Specifies the dependent package runtime to match. Valid values: **Java8**, // **Node.js6.10**, **Node.js8.10**, **Node.js10.16**, **Node.js12.13**, **Python2.7**, **Python3.6**, **Go1.8**, // **Go1.x**, **C#(.NET Core 2.0)**, **C#(.NET Core 2.1)**, **C#(.NET Core 3.1)** and **PHP7.3**. Runtime pulumi.StringInput `pulumi:"runtime"` // Dependent package size. Size pulumi.IntInput `pulumi:"size"` }
func (GetDependenciesPackageArgs) ElementType ¶
func (GetDependenciesPackageArgs) ElementType() reflect.Type
func (GetDependenciesPackageArgs) ToGetDependenciesPackageOutput ¶
func (i GetDependenciesPackageArgs) ToGetDependenciesPackageOutput() GetDependenciesPackageOutput
func (GetDependenciesPackageArgs) ToGetDependenciesPackageOutputWithContext ¶
func (i GetDependenciesPackageArgs) ToGetDependenciesPackageOutputWithContext(ctx context.Context) GetDependenciesPackageOutput
type GetDependenciesPackageArray ¶
type GetDependenciesPackageArray []GetDependenciesPackageInput
func (GetDependenciesPackageArray) ElementType ¶
func (GetDependenciesPackageArray) ElementType() reflect.Type
func (GetDependenciesPackageArray) ToGetDependenciesPackageArrayOutput ¶
func (i GetDependenciesPackageArray) ToGetDependenciesPackageArrayOutput() GetDependenciesPackageArrayOutput
func (GetDependenciesPackageArray) ToGetDependenciesPackageArrayOutputWithContext ¶
func (i GetDependenciesPackageArray) ToGetDependenciesPackageArrayOutputWithContext(ctx context.Context) GetDependenciesPackageArrayOutput
type GetDependenciesPackageArrayInput ¶
type GetDependenciesPackageArrayInput interface { pulumi.Input ToGetDependenciesPackageArrayOutput() GetDependenciesPackageArrayOutput ToGetDependenciesPackageArrayOutputWithContext(context.Context) GetDependenciesPackageArrayOutput }
GetDependenciesPackageArrayInput is an input type that accepts GetDependenciesPackageArray and GetDependenciesPackageArrayOutput values. You can construct a concrete instance of `GetDependenciesPackageArrayInput` via:
GetDependenciesPackageArray{ GetDependenciesPackageArgs{...} }
type GetDependenciesPackageArrayOutput ¶
type GetDependenciesPackageArrayOutput struct{ *pulumi.OutputState }
func (GetDependenciesPackageArrayOutput) ElementType ¶
func (GetDependenciesPackageArrayOutput) ElementType() reflect.Type
func (GetDependenciesPackageArrayOutput) Index ¶
func (o GetDependenciesPackageArrayOutput) Index(i pulumi.IntInput) GetDependenciesPackageOutput
func (GetDependenciesPackageArrayOutput) ToGetDependenciesPackageArrayOutput ¶
func (o GetDependenciesPackageArrayOutput) ToGetDependenciesPackageArrayOutput() GetDependenciesPackageArrayOutput
func (GetDependenciesPackageArrayOutput) ToGetDependenciesPackageArrayOutputWithContext ¶
func (o GetDependenciesPackageArrayOutput) ToGetDependenciesPackageArrayOutputWithContext(ctx context.Context) GetDependenciesPackageArrayOutput
type GetDependenciesPackageInput ¶
type GetDependenciesPackageInput interface { pulumi.Input ToGetDependenciesPackageOutput() GetDependenciesPackageOutput ToGetDependenciesPackageOutputWithContext(context.Context) GetDependenciesPackageOutput }
GetDependenciesPackageInput is an input type that accepts GetDependenciesPackageArgs and GetDependenciesPackageOutput values. You can construct a concrete instance of `GetDependenciesPackageInput` via:
GetDependenciesPackageArgs{...}
type GetDependenciesPackageOutput ¶
type GetDependenciesPackageOutput struct{ *pulumi.OutputState }
func (GetDependenciesPackageOutput) ElementType ¶
func (GetDependenciesPackageOutput) ElementType() reflect.Type
func (GetDependenciesPackageOutput) Etag ¶
func (o GetDependenciesPackageOutput) Etag() pulumi.StringOutput
Unique ID of the dependent package.
func (GetDependenciesPackageOutput) FileName ¶
func (o GetDependenciesPackageOutput) FileName() pulumi.StringOutput
File name of the Dependent package.
func (GetDependenciesPackageOutput) Id ¶
func (o GetDependenciesPackageOutput) Id() pulumi.StringOutput
Dependent package ID.
func (GetDependenciesPackageOutput) Link ¶
func (o GetDependenciesPackageOutput) Link() pulumi.StringOutput
URL of the dependent package in the OBS console.
func (GetDependenciesPackageOutput) Name ¶
func (o GetDependenciesPackageOutput) Name() pulumi.StringOutput
Specifies the dependent package runtime to match.
func (GetDependenciesPackageOutput) Owner ¶
func (o GetDependenciesPackageOutput) Owner() pulumi.StringOutput
Dependent package owner.
func (GetDependenciesPackageOutput) Runtime ¶
func (o GetDependenciesPackageOutput) Runtime() pulumi.StringOutput
Specifies the dependent package runtime to match. Valid values: **Java8**, **Node.js6.10**, **Node.js8.10**, **Node.js10.16**, **Node.js12.13**, **Python2.7**, **Python3.6**, **Go1.8**, **Go1.x**, **C#(.NET Core 2.0)**, **C#(.NET Core 2.1)**, **C#(.NET Core 3.1)** and **PHP7.3**.
func (GetDependenciesPackageOutput) Size ¶
func (o GetDependenciesPackageOutput) Size() pulumi.IntOutput
Dependent package size.
func (GetDependenciesPackageOutput) ToGetDependenciesPackageOutput ¶
func (o GetDependenciesPackageOutput) ToGetDependenciesPackageOutput() GetDependenciesPackageOutput
func (GetDependenciesPackageOutput) ToGetDependenciesPackageOutputWithContext ¶
func (o GetDependenciesPackageOutput) ToGetDependenciesPackageOutputWithContext(ctx context.Context) GetDependenciesPackageOutput
type GetDependenciesResult ¶
type GetDependenciesResult struct { // The provider-assigned unique ID for this managed resource. Id string `pulumi:"id"` // Dependent package name. Name *string `pulumi:"name"` // All dependent packages that match. Packages []GetDependenciesPackage `pulumi:"packages"` Region string `pulumi:"region"` // Dependent package runtime. Runtime *string `pulumi:"runtime"` Type *string `pulumi:"type"` }
A collection of values returned by getDependencies.
func GetDependencies ¶
func GetDependencies(ctx *pulumi.Context, args *GetDependenciesArgs, opts ...pulumi.InvokeOption) (*GetDependenciesResult, error)
Use this data source to filter dependent packages of FGS from HuaweiCloud.
## Example Usage ### Obtain all public dependent packages
```go package main
import (
"github.com/huaweicloud/pulumi-huaweicloud/sdk/go/huaweicloud/FunctionGraph" "github.com/pulumi/pulumi-huaweicloud/sdk/go/huaweicloud/FunctionGraph" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := FunctionGraph.GetDependencies(ctx, nil, nil) if err != nil { return err } return nil }) }
``` ### Obtain specific public dependent package by name
```go package main
import (
"github.com/huaweicloud/pulumi-huaweicloud/sdk/go/huaweicloud/FunctionGraph" "github.com/pulumi/pulumi-huaweicloud/sdk/go/huaweicloud/FunctionGraph" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := FunctionGraph.GetDependencies(ctx, &functiongraph.GetDependenciesArgs{ Name: pulumi.StringRef("obssdk-3.0.2"), Type: pulumi.StringRef("public"), }, nil) if err != nil { return err } return nil }) }
``` ### Obtain all public Python2.7 dependent packages
```go package main
import (
"github.com/huaweicloud/pulumi-huaweicloud/sdk/go/huaweicloud/FunctionGraph" "github.com/pulumi/pulumi-huaweicloud/sdk/go/huaweicloud/FunctionGraph" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := FunctionGraph.GetDependencies(ctx, &functiongraph.GetDependenciesArgs{ Runtime: pulumi.StringRef("Python2.7"), Type: pulumi.StringRef("public"), }, nil) if err != nil { return err } return nil }) }
```
type GetDependenciesResultOutput ¶
type GetDependenciesResultOutput struct{ *pulumi.OutputState }
A collection of values returned by getDependencies.
func GetDependenciesOutput ¶
func GetDependenciesOutput(ctx *pulumi.Context, args GetDependenciesOutputArgs, opts ...pulumi.InvokeOption) GetDependenciesResultOutput
func (GetDependenciesResultOutput) ElementType ¶
func (GetDependenciesResultOutput) ElementType() reflect.Type
func (GetDependenciesResultOutput) Id ¶
func (o GetDependenciesResultOutput) Id() pulumi.StringOutput
The provider-assigned unique ID for this managed resource.
func (GetDependenciesResultOutput) Name ¶
func (o GetDependenciesResultOutput) Name() pulumi.StringPtrOutput
Dependent package name.
func (GetDependenciesResultOutput) Packages ¶
func (o GetDependenciesResultOutput) Packages() GetDependenciesPackageArrayOutput
All dependent packages that match.
func (GetDependenciesResultOutput) Region ¶
func (o GetDependenciesResultOutput) Region() pulumi.StringOutput
func (GetDependenciesResultOutput) Runtime ¶
func (o GetDependenciesResultOutput) Runtime() pulumi.StringPtrOutput
Dependent package runtime.
func (GetDependenciesResultOutput) ToGetDependenciesResultOutput ¶
func (o GetDependenciesResultOutput) ToGetDependenciesResultOutput() GetDependenciesResultOutput
func (GetDependenciesResultOutput) ToGetDependenciesResultOutputWithContext ¶
func (o GetDependenciesResultOutput) ToGetDependenciesResultOutputWithContext(ctx context.Context) GetDependenciesResultOutput
func (GetDependenciesResultOutput) Type ¶
func (o GetDependenciesResultOutput) Type() pulumi.StringPtrOutput
type Trigger ¶
type Trigger struct { pulumi.CustomResourceState // Specifies the configuration of the shared APIG and dedicated APIG trigger. // Changing this will create a new trigger resource. // The object structure is documented below. Apig TriggerApigPtrOutput `pulumi:"apig"` // Specifies the configuration of the DIS trigger. // Changing this will create a new trigger resource. // The object structure is documented below. Dis TriggerDisPtrOutput `pulumi:"dis"` // Specifies the Uniform Resource Name (URN) of the function. // Changing this will create a new trigger resource. FunctionUrn pulumi.StringOutput `pulumi:"functionUrn"` // Specifies the configuration of the DMS trigger for Kafka. // Changing this will create a new trigger resource. // The object structure is documented below. Kafka TriggerKafkaPtrOutput `pulumi:"kafka"` // Specifies the configuration of the LTS trigger. // Changing this will create a new trigger resource. // The object structure is documented below. Lts TriggerLtsPtrOutput `pulumi:"lts"` // Specifies the configuration of the OBS trigger. // Changing this will create a new trigger resource. // The object structure is documented below. Obs TriggerObsPtrOutput `pulumi:"obs"` // Specifies the region in which to create the trigger resource. // If omitted, the provider-level region will be used. // Changing this will create a new trigger resource. Region pulumi.StringOutput `pulumi:"region"` // Specifies the configuration of the SMN trigger. // Changing this will create a new trigger resource. // The object structure is documented below. Smn TriggerSmnPtrOutput `pulumi:"smn"` // Specifies whether trigger is enabled. The valid values are **ACTIVE** and **DISABLED**. // About DMS kafka trigger, the default value is **ACTIVE**. Status pulumi.StringOutput `pulumi:"status"` // Specifies the configuration of the timing trigger. // Changing this will create a new trigger resource. // The object structure is documented below. Timer TriggerTimerPtrOutput `pulumi:"timer"` // Specifies the type of the function. // The valid values currently only support **TIMER**, **OBS**, **SMN**, **DIS**, **KAFKA**, **APIG**, **LTS**, and // **DEDICATEDGATEWAY**. Changing this will create a new trigger resource. Type pulumi.StringOutput `pulumi:"type"` }
Manages a trigger resource within HuaweiCloud FunctionGraph.
## Example Usage ### Create a Timing Trigger with rate schedule type
```go package main
import (
"github.com/huaweicloud/pulumi-huaweicloud/sdk/go/huaweicloud/FunctionGraph" "github.com/pulumi/pulumi-huaweicloud/sdk/go/huaweicloud/FunctionGraph" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" "github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { cfg := config.New(ctx, "") functionUrn := cfg.RequireObject("functionUrn") triggerName := cfg.RequireObject("triggerName") _, err := FunctionGraph.NewTrigger(ctx, "test", &FunctionGraph.TriggerArgs{ FunctionUrn: pulumi.Any(functionUrn), Type: pulumi.String("TIMER"), Timer: &functiongraph.TriggerTimerArgs{ Name: pulumi.Any(triggerName), ScheduleType: pulumi.String("Rate"), Schedule: pulumi.String("1d"), }, }) if err != nil { return err } return nil }) }
``` ### Create a Timing Trigger with cron schedule type
```go package main
import (
"github.com/huaweicloud/pulumi-huaweicloud/sdk/go/huaweicloud/FunctionGraph" "github.com/pulumi/pulumi-huaweicloud/sdk/go/huaweicloud/FunctionGraph" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" "github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { cfg := config.New(ctx, "") functionUrn := cfg.RequireObject("functionUrn") triggerName := cfg.RequireObject("triggerName") _, err := FunctionGraph.NewTrigger(ctx, "test", &FunctionGraph.TriggerArgs{ FunctionUrn: pulumi.Any(functionUrn), Type: pulumi.String("TIMER"), Timer: &functiongraph.TriggerTimerArgs{ Name: pulumi.Any(triggerName), ScheduleType: pulumi.String("Cron"), Schedule: pulumi.String("@every 1h30m"), }, }) if err != nil { return err } return nil }) }
``` ### Create an OBS trigger
```go package main
import (
"github.com/huaweicloud/pulumi-huaweicloud/sdk/go/huaweicloud/FunctionGraph" "github.com/pulumi/pulumi-huaweicloud/sdk/go/huaweicloud/FunctionGraph" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" "github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { cfg := config.New(ctx, "") functionUrn := cfg.RequireObject("functionUrn") bucketName := cfg.RequireObject("bucketName") triggerName := cfg.RequireObject("triggerName") _, err := FunctionGraph.NewTrigger(ctx, "test", &FunctionGraph.TriggerArgs{ FunctionUrn: pulumi.Any(functionUrn), Type: pulumi.String("OBS"), Status: pulumi.String("ACTIVE"), Obs: &functiongraph.TriggerObsArgs{ BucketName: pulumi.Any(bucketName), EventNotificationName: pulumi.Any(triggerName), Suffix: pulumi.String(".json"), Events: pulumi.StringArray{ pulumi.String("ObjectCreated"), }, }, }) if err != nil { return err } return nil }) }
``` ### Create an SMN trigger
```go package main
import (
"github.com/huaweicloud/pulumi-huaweicloud/sdk/go/huaweicloud/FunctionGraph" "github.com/pulumi/pulumi-huaweicloud/sdk/go/huaweicloud/FunctionGraph" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" "github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { cfg := config.New(ctx, "") functionUrn := cfg.RequireObject("functionUrn") topicUrn := cfg.RequireObject("topicUrn") _, err := FunctionGraph.NewTrigger(ctx, "test", &FunctionGraph.TriggerArgs{ FunctionUrn: pulumi.Any(functionUrn), Type: pulumi.String("SMN"), Status: pulumi.String("ACTIVE"), Smn: &functiongraph.TriggerSmnArgs{ TopicUrn: pulumi.Any(topicUrn), }, }) if err != nil { return err } return nil }) }
``` ### Create a DIS trigger
```go package main
import (
"github.com/huaweicloud/pulumi-huaweicloud/sdk/go/huaweicloud/FunctionGraph" "github.com/pulumi/pulumi-huaweicloud/sdk/go/huaweicloud/FunctionGraph" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" "github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { cfg := config.New(ctx, "") functionUrn := cfg.RequireObject("functionUrn") streamName := cfg.RequireObject("streamName") _, err := FunctionGraph.NewTrigger(ctx, "test", &FunctionGraph.TriggerArgs{ FunctionUrn: pulumi.Any(functionUrn), Type: pulumi.String("DIS"), Status: pulumi.String("ACTIVE"), Dis: &functiongraph.TriggerDisArgs{ StreamName: pulumi.Any(streamName), StartingPosition: pulumi.String("TRIM_HORIZON"), MaxFetchBytes: pulumi.Int(2097152), PullPeriod: pulumi.Int(30000), SerialEnable: pulumi.Bool(true), }, }) if err != nil { return err } return nil }) }
``` ### Create a DMS Kafka trigger
```go package main
import (
"github.com/huaweicloud/pulumi-huaweicloud/sdk/go/huaweicloud/FunctionGraph" "github.com/pulumi/pulumi-huaweicloud/sdk/go/huaweicloud/FunctionGraph" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" "github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { cfg := config.New(ctx, "") functionUrn := cfg.RequireObject("functionUrn") kafkaInstanceId := cfg.RequireObject("kafkaInstanceId") kafkaTopicId := cfg.RequireObject("kafkaTopicId") _, err := FunctionGraph.NewTrigger(ctx, "test", &FunctionGraph.TriggerArgs{ FunctionUrn: pulumi.Any(functionUrn), Type: pulumi.String("KAFKA"), Kafka: &functiongraph.TriggerKafkaArgs{ InstanceId: pulumi.Any(kafkaInstanceId), BatchSize: pulumi.Int(100), TopicIds: pulumi.StringArray{ pulumi.Any(kafkaTopicId), }, }, }) if err != nil { return err } return nil }) }
``` ### Create a Dedicated APIG trigger
```go package main
import (
"github.com/huaweicloud/pulumi-huaweicloud/sdk/go/huaweicloud/FunctionGraph" "github.com/pulumi/pulumi-huaweicloud/sdk/go/huaweicloud/FunctionGraph" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" "github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { cfg := config.New(ctx, "") functionUrn := cfg.RequireObject("functionUrn") instanceId := cfg.RequireObject("instanceId") groupId := cfg.RequireObject("groupId") apiName := cfg.RequireObject("apiName") _, err := FunctionGraph.NewTrigger(ctx, "test", &FunctionGraph.TriggerArgs{ FunctionUrn: pulumi.Any(functionUrn), Type: pulumi.String("DEDICATEDGATEWAY"), Status: pulumi.String("ACTIVE"), Apig: &functiongraph.TriggerApigArgs{ InstanceId: pulumi.Any(instanceId), GroupId: pulumi.Any(groupId), ApiName: pulumi.Any(apiName), EnvName: pulumi.String("RELEASE"), }, }) if err != nil { return err } return nil }) }
``` ### Create a Shared APIG trigger
```go package main
import (
"github.com/huaweicloud/pulumi-huaweicloud/sdk/go/huaweicloud/FunctionGraph" "github.com/pulumi/pulumi-huaweicloud/sdk/go/huaweicloud/FunctionGraph" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" "github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { cfg := config.New(ctx, "") functionUrn := cfg.RequireObject("functionUrn") groupId := cfg.RequireObject("groupId") apiName := cfg.RequireObject("apiName") _, err := FunctionGraph.NewTrigger(ctx, "test", &FunctionGraph.TriggerArgs{ FunctionUrn: pulumi.Any(functionUrn), Type: pulumi.String("APIG"), Status: pulumi.String("ACTIVE"), Apig: &functiongraph.TriggerApigArgs{ GroupId: pulumi.Any(groupId), ApiName: pulumi.Any(apiName), EnvName: pulumi.String("RELEASE"), }, }) if err != nil { return err } return nil }) }
``` ### Create a LTS trigger
```go package main
import (
"github.com/huaweicloud/pulumi-huaweicloud/sdk/go/huaweicloud/FunctionGraph" "github.com/pulumi/pulumi-huaweicloud/sdk/go/huaweicloud/FunctionGraph" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" "github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { cfg := config.New(ctx, "") logGroupId := cfg.RequireObject("logGroupId") logTopicId := cfg.RequireObject("logTopicId") _, err := FunctionGraph.NewTrigger(ctx, "test", &FunctionGraph.TriggerArgs{ FunctionUrn: pulumi.Any(_var.Function_urn), Type: pulumi.String("LTS"), Status: pulumi.String("ACTIVE"), Lts: &functiongraph.TriggerLtsArgs{ LogGroupId: pulumi.Any(logGroupId), LogTopicId: pulumi.Any(logTopicId), }, }) if err != nil { return err } return nil }) }
```
func GetTrigger ¶
func GetTrigger(ctx *pulumi.Context, name string, id pulumi.IDInput, state *TriggerState, opts ...pulumi.ResourceOption) (*Trigger, error)
GetTrigger gets an existing Trigger 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 NewTrigger ¶
func NewTrigger(ctx *pulumi.Context, name string, args *TriggerArgs, opts ...pulumi.ResourceOption) (*Trigger, error)
NewTrigger registers a new resource with the given unique name, arguments, and options.
func (*Trigger) ElementType ¶
func (*Trigger) ToTriggerOutput ¶
func (i *Trigger) ToTriggerOutput() TriggerOutput
func (*Trigger) ToTriggerOutputWithContext ¶
func (i *Trigger) ToTriggerOutputWithContext(ctx context.Context) TriggerOutput
type TriggerApig ¶
type TriggerApig struct { // Specifies the API name. Changing this will create a new trigger resource. ApiName string `pulumi:"apiName"` // Specifies the API environment name. // Changing this will create a new trigger resource. EnvName string `pulumi:"envName"` // Specifies the ID of the APIG group to which the API belongs. // Changing this will create a new trigger resource. GroupId string `pulumi:"groupId"` // Specifies the ID of the APIG dedicated instance to which the API belongs. // Required if the `type` is `DEDICATEDGATEWAY`. Changing this will create a new trigger resource. InstanceId *string `pulumi:"instanceId"` // Specifies the request protocol of the API. The valid value are // **HTTP** and **HTTPS**. Default to **HTTPS**. Changing this will create a new trigger resource. RequestProtocol *string `pulumi:"requestProtocol"` // Specifies the security authentication mode. The valid values // are **NONE**, **APP** and **IAM**, default to **IAM**. Changing this will create a new trigger resource. SecurityAuthentication *string `pulumi:"securityAuthentication"` // Specifies the timeout for request sending. The valid value is range form // `1` to `60,000`, default to `5,000`. Changing this will create a new trigger resource. Timeout *int `pulumi:"timeout"` }
type TriggerApigArgs ¶
type TriggerApigArgs struct { // Specifies the API name. Changing this will create a new trigger resource. ApiName pulumi.StringInput `pulumi:"apiName"` // Specifies the API environment name. // Changing this will create a new trigger resource. EnvName pulumi.StringInput `pulumi:"envName"` // Specifies the ID of the APIG group to which the API belongs. // Changing this will create a new trigger resource. GroupId pulumi.StringInput `pulumi:"groupId"` // Specifies the ID of the APIG dedicated instance to which the API belongs. // Required if the `type` is `DEDICATEDGATEWAY`. Changing this will create a new trigger resource. InstanceId pulumi.StringPtrInput `pulumi:"instanceId"` // Specifies the request protocol of the API. The valid value are // **HTTP** and **HTTPS**. Default to **HTTPS**. Changing this will create a new trigger resource. RequestProtocol pulumi.StringPtrInput `pulumi:"requestProtocol"` // Specifies the security authentication mode. The valid values // are **NONE**, **APP** and **IAM**, default to **IAM**. Changing this will create a new trigger resource. SecurityAuthentication pulumi.StringPtrInput `pulumi:"securityAuthentication"` // Specifies the timeout for request sending. The valid value is range form // `1` to `60,000`, default to `5,000`. Changing this will create a new trigger resource. Timeout pulumi.IntPtrInput `pulumi:"timeout"` }
func (TriggerApigArgs) ElementType ¶
func (TriggerApigArgs) ElementType() reflect.Type
func (TriggerApigArgs) ToTriggerApigOutput ¶
func (i TriggerApigArgs) ToTriggerApigOutput() TriggerApigOutput
func (TriggerApigArgs) ToTriggerApigOutputWithContext ¶
func (i TriggerApigArgs) ToTriggerApigOutputWithContext(ctx context.Context) TriggerApigOutput
func (TriggerApigArgs) ToTriggerApigPtrOutput ¶
func (i TriggerApigArgs) ToTriggerApigPtrOutput() TriggerApigPtrOutput
func (TriggerApigArgs) ToTriggerApigPtrOutputWithContext ¶
func (i TriggerApigArgs) ToTriggerApigPtrOutputWithContext(ctx context.Context) TriggerApigPtrOutput
type TriggerApigInput ¶
type TriggerApigInput interface { pulumi.Input ToTriggerApigOutput() TriggerApigOutput ToTriggerApigOutputWithContext(context.Context) TriggerApigOutput }
TriggerApigInput is an input type that accepts TriggerApigArgs and TriggerApigOutput values. You can construct a concrete instance of `TriggerApigInput` via:
TriggerApigArgs{...}
type TriggerApigOutput ¶
type TriggerApigOutput struct{ *pulumi.OutputState }
func (TriggerApigOutput) ApiName ¶
func (o TriggerApigOutput) ApiName() pulumi.StringOutput
Specifies the API name. Changing this will create a new trigger resource.
func (TriggerApigOutput) ElementType ¶
func (TriggerApigOutput) ElementType() reflect.Type
func (TriggerApigOutput) EnvName ¶
func (o TriggerApigOutput) EnvName() pulumi.StringOutput
Specifies the API environment name. Changing this will create a new trigger resource.
func (TriggerApigOutput) GroupId ¶
func (o TriggerApigOutput) GroupId() pulumi.StringOutput
Specifies the ID of the APIG group to which the API belongs. Changing this will create a new trigger resource.
func (TriggerApigOutput) InstanceId ¶
func (o TriggerApigOutput) InstanceId() pulumi.StringPtrOutput
Specifies the ID of the APIG dedicated instance to which the API belongs. Required if the `type` is `DEDICATEDGATEWAY`. Changing this will create a new trigger resource.
func (TriggerApigOutput) RequestProtocol ¶
func (o TriggerApigOutput) RequestProtocol() pulumi.StringPtrOutput
Specifies the request protocol of the API. The valid value are **HTTP** and **HTTPS**. Default to **HTTPS**. Changing this will create a new trigger resource.
func (TriggerApigOutput) SecurityAuthentication ¶
func (o TriggerApigOutput) SecurityAuthentication() pulumi.StringPtrOutput
Specifies the security authentication mode. The valid values are **NONE**, **APP** and **IAM**, default to **IAM**. Changing this will create a new trigger resource.
func (TriggerApigOutput) Timeout ¶
func (o TriggerApigOutput) Timeout() pulumi.IntPtrOutput
Specifies the timeout for request sending. The valid value is range form `1` to `60,000`, default to `5,000`. Changing this will create a new trigger resource.
func (TriggerApigOutput) ToTriggerApigOutput ¶
func (o TriggerApigOutput) ToTriggerApigOutput() TriggerApigOutput
func (TriggerApigOutput) ToTriggerApigOutputWithContext ¶
func (o TriggerApigOutput) ToTriggerApigOutputWithContext(ctx context.Context) TriggerApigOutput
func (TriggerApigOutput) ToTriggerApigPtrOutput ¶
func (o TriggerApigOutput) ToTriggerApigPtrOutput() TriggerApigPtrOutput
func (TriggerApigOutput) ToTriggerApigPtrOutputWithContext ¶
func (o TriggerApigOutput) ToTriggerApigPtrOutputWithContext(ctx context.Context) TriggerApigPtrOutput
type TriggerApigPtrInput ¶
type TriggerApigPtrInput interface { pulumi.Input ToTriggerApigPtrOutput() TriggerApigPtrOutput ToTriggerApigPtrOutputWithContext(context.Context) TriggerApigPtrOutput }
TriggerApigPtrInput is an input type that accepts TriggerApigArgs, TriggerApigPtr and TriggerApigPtrOutput values. You can construct a concrete instance of `TriggerApigPtrInput` via:
TriggerApigArgs{...} or: nil
func TriggerApigPtr ¶
func TriggerApigPtr(v *TriggerApigArgs) TriggerApigPtrInput
type TriggerApigPtrOutput ¶
type TriggerApigPtrOutput struct{ *pulumi.OutputState }
func (TriggerApigPtrOutput) ApiName ¶
func (o TriggerApigPtrOutput) ApiName() pulumi.StringPtrOutput
Specifies the API name. Changing this will create a new trigger resource.
func (TriggerApigPtrOutput) Elem ¶
func (o TriggerApigPtrOutput) Elem() TriggerApigOutput
func (TriggerApigPtrOutput) ElementType ¶
func (TriggerApigPtrOutput) ElementType() reflect.Type
func (TriggerApigPtrOutput) EnvName ¶
func (o TriggerApigPtrOutput) EnvName() pulumi.StringPtrOutput
Specifies the API environment name. Changing this will create a new trigger resource.
func (TriggerApigPtrOutput) GroupId ¶
func (o TriggerApigPtrOutput) GroupId() pulumi.StringPtrOutput
Specifies the ID of the APIG group to which the API belongs. Changing this will create a new trigger resource.
func (TriggerApigPtrOutput) InstanceId ¶
func (o TriggerApigPtrOutput) InstanceId() pulumi.StringPtrOutput
Specifies the ID of the APIG dedicated instance to which the API belongs. Required if the `type` is `DEDICATEDGATEWAY`. Changing this will create a new trigger resource.
func (TriggerApigPtrOutput) RequestProtocol ¶
func (o TriggerApigPtrOutput) RequestProtocol() pulumi.StringPtrOutput
Specifies the request protocol of the API. The valid value are **HTTP** and **HTTPS**. Default to **HTTPS**. Changing this will create a new trigger resource.
func (TriggerApigPtrOutput) SecurityAuthentication ¶
func (o TriggerApigPtrOutput) SecurityAuthentication() pulumi.StringPtrOutput
Specifies the security authentication mode. The valid values are **NONE**, **APP** and **IAM**, default to **IAM**. Changing this will create a new trigger resource.
func (TriggerApigPtrOutput) Timeout ¶
func (o TriggerApigPtrOutput) Timeout() pulumi.IntPtrOutput
Specifies the timeout for request sending. The valid value is range form `1` to `60,000`, default to `5,000`. Changing this will create a new trigger resource.
func (TriggerApigPtrOutput) ToTriggerApigPtrOutput ¶
func (o TriggerApigPtrOutput) ToTriggerApigPtrOutput() TriggerApigPtrOutput
func (TriggerApigPtrOutput) ToTriggerApigPtrOutputWithContext ¶
func (o TriggerApigPtrOutput) ToTriggerApigPtrOutputWithContext(ctx context.Context) TriggerApigPtrOutput
type TriggerArgs ¶
type TriggerArgs struct { // Specifies the configuration of the shared APIG and dedicated APIG trigger. // Changing this will create a new trigger resource. // The object structure is documented below. Apig TriggerApigPtrInput // Specifies the configuration of the DIS trigger. // Changing this will create a new trigger resource. // The object structure is documented below. Dis TriggerDisPtrInput // Specifies the Uniform Resource Name (URN) of the function. // Changing this will create a new trigger resource. FunctionUrn pulumi.StringInput // Specifies the configuration of the DMS trigger for Kafka. // Changing this will create a new trigger resource. // The object structure is documented below. Kafka TriggerKafkaPtrInput // Specifies the configuration of the LTS trigger. // Changing this will create a new trigger resource. // The object structure is documented below. Lts TriggerLtsPtrInput // Specifies the configuration of the OBS trigger. // Changing this will create a new trigger resource. // The object structure is documented below. Obs TriggerObsPtrInput // Specifies the region in which to create the trigger resource. // If omitted, the provider-level region will be used. // Changing this will create a new trigger resource. Region pulumi.StringPtrInput // Specifies the configuration of the SMN trigger. // Changing this will create a new trigger resource. // The object structure is documented below. Smn TriggerSmnPtrInput // Specifies whether trigger is enabled. The valid values are **ACTIVE** and **DISABLED**. // About DMS kafka trigger, the default value is **ACTIVE**. Status pulumi.StringPtrInput // Specifies the configuration of the timing trigger. // Changing this will create a new trigger resource. // The object structure is documented below. Timer TriggerTimerPtrInput // Specifies the type of the function. // The valid values currently only support **TIMER**, **OBS**, **SMN**, **DIS**, **KAFKA**, **APIG**, **LTS**, and // **DEDICATEDGATEWAY**. Changing this will create a new trigger resource. Type pulumi.StringInput }
The set of arguments for constructing a Trigger resource.
func (TriggerArgs) ElementType ¶
func (TriggerArgs) ElementType() reflect.Type
type TriggerArray ¶
type TriggerArray []TriggerInput
func (TriggerArray) ElementType ¶
func (TriggerArray) ElementType() reflect.Type
func (TriggerArray) ToTriggerArrayOutput ¶
func (i TriggerArray) ToTriggerArrayOutput() TriggerArrayOutput
func (TriggerArray) ToTriggerArrayOutputWithContext ¶
func (i TriggerArray) ToTriggerArrayOutputWithContext(ctx context.Context) TriggerArrayOutput
type TriggerArrayInput ¶
type TriggerArrayInput interface { pulumi.Input ToTriggerArrayOutput() TriggerArrayOutput ToTriggerArrayOutputWithContext(context.Context) TriggerArrayOutput }
TriggerArrayInput is an input type that accepts TriggerArray and TriggerArrayOutput values. You can construct a concrete instance of `TriggerArrayInput` via:
TriggerArray{ TriggerArgs{...} }
type TriggerArrayOutput ¶
type TriggerArrayOutput struct{ *pulumi.OutputState }
func (TriggerArrayOutput) ElementType ¶
func (TriggerArrayOutput) ElementType() reflect.Type
func (TriggerArrayOutput) Index ¶
func (o TriggerArrayOutput) Index(i pulumi.IntInput) TriggerOutput
func (TriggerArrayOutput) ToTriggerArrayOutput ¶
func (o TriggerArrayOutput) ToTriggerArrayOutput() TriggerArrayOutput
func (TriggerArrayOutput) ToTriggerArrayOutputWithContext ¶
func (o TriggerArrayOutput) ToTriggerArrayOutputWithContext(ctx context.Context) TriggerArrayOutput
type TriggerDis ¶
type TriggerDis struct { // Specifies the maximum volume of data that can be obtained for a single // request, in Byte. Only the records with a size smaller than this value can be obtained. // The valid value is range from `1,024` to `4,194,304`. // Changing this will create a new trigger resource. MaxFetchBytes int `pulumi:"maxFetchBytes"` // Specifies the interval at which data is pulled from the specified stream. // The valid value is range from `2` to `60,000`. // Changing this will create a new trigger resource. PullPeriod int `pulumi:"pullPeriod"` // Specifies the determines whether to pull data only after the data pulled // in the last period has been processed. // Changing this will create a new trigger resource. SerialEnable bool `pulumi:"serialEnable"` // Specifies the type of starting position for DIS queue. // The valid values are as follows: // + **TRIM_HORIZON**: Starts reading from the earliest data stored in the partitions. // + **LATEST**: Starts reading from the latest data stored in the partitions. // Changing this will create a new trigger resource. StartingPosition string `pulumi:"startingPosition"` // Specifies the name of the DIS stream resource. // Changing this will create a new trigger resource. StreamName string `pulumi:"streamName"` }
type TriggerDisArgs ¶
type TriggerDisArgs struct { // Specifies the maximum volume of data that can be obtained for a single // request, in Byte. Only the records with a size smaller than this value can be obtained. // The valid value is range from `1,024` to `4,194,304`. // Changing this will create a new trigger resource. MaxFetchBytes pulumi.IntInput `pulumi:"maxFetchBytes"` // Specifies the interval at which data is pulled from the specified stream. // The valid value is range from `2` to `60,000`. // Changing this will create a new trigger resource. PullPeriod pulumi.IntInput `pulumi:"pullPeriod"` // Specifies the determines whether to pull data only after the data pulled // in the last period has been processed. // Changing this will create a new trigger resource. SerialEnable pulumi.BoolInput `pulumi:"serialEnable"` // Specifies the type of starting position for DIS queue. // The valid values are as follows: // + **TRIM_HORIZON**: Starts reading from the earliest data stored in the partitions. // + **LATEST**: Starts reading from the latest data stored in the partitions. // Changing this will create a new trigger resource. StartingPosition pulumi.StringInput `pulumi:"startingPosition"` // Specifies the name of the DIS stream resource. // Changing this will create a new trigger resource. StreamName pulumi.StringInput `pulumi:"streamName"` }
func (TriggerDisArgs) ElementType ¶
func (TriggerDisArgs) ElementType() reflect.Type
func (TriggerDisArgs) ToTriggerDisOutput ¶
func (i TriggerDisArgs) ToTriggerDisOutput() TriggerDisOutput
func (TriggerDisArgs) ToTriggerDisOutputWithContext ¶
func (i TriggerDisArgs) ToTriggerDisOutputWithContext(ctx context.Context) TriggerDisOutput
func (TriggerDisArgs) ToTriggerDisPtrOutput ¶
func (i TriggerDisArgs) ToTriggerDisPtrOutput() TriggerDisPtrOutput
func (TriggerDisArgs) ToTriggerDisPtrOutputWithContext ¶
func (i TriggerDisArgs) ToTriggerDisPtrOutputWithContext(ctx context.Context) TriggerDisPtrOutput
type TriggerDisInput ¶
type TriggerDisInput interface { pulumi.Input ToTriggerDisOutput() TriggerDisOutput ToTriggerDisOutputWithContext(context.Context) TriggerDisOutput }
TriggerDisInput is an input type that accepts TriggerDisArgs and TriggerDisOutput values. You can construct a concrete instance of `TriggerDisInput` via:
TriggerDisArgs{...}
type TriggerDisOutput ¶
type TriggerDisOutput struct{ *pulumi.OutputState }
func (TriggerDisOutput) ElementType ¶
func (TriggerDisOutput) ElementType() reflect.Type
func (TriggerDisOutput) MaxFetchBytes ¶
func (o TriggerDisOutput) MaxFetchBytes() pulumi.IntOutput
Specifies the maximum volume of data that can be obtained for a single request, in Byte. Only the records with a size smaller than this value can be obtained. The valid value is range from `1,024` to `4,194,304`. Changing this will create a new trigger resource.
func (TriggerDisOutput) PullPeriod ¶
func (o TriggerDisOutput) PullPeriod() pulumi.IntOutput
Specifies the interval at which data is pulled from the specified stream. The valid value is range from `2` to `60,000`. Changing this will create a new trigger resource.
func (TriggerDisOutput) SerialEnable ¶
func (o TriggerDisOutput) SerialEnable() pulumi.BoolOutput
Specifies the determines whether to pull data only after the data pulled in the last period has been processed. Changing this will create a new trigger resource.
func (TriggerDisOutput) StartingPosition ¶
func (o TriggerDisOutput) StartingPosition() pulumi.StringOutput
Specifies the type of starting position for DIS queue. The valid values are as follows:
- **TRIM_HORIZON**: Starts reading from the earliest data stored in the partitions.
- **LATEST**: Starts reading from the latest data stored in the partitions. Changing this will create a new trigger resource.
func (TriggerDisOutput) StreamName ¶
func (o TriggerDisOutput) StreamName() pulumi.StringOutput
Specifies the name of the DIS stream resource. Changing this will create a new trigger resource.
func (TriggerDisOutput) ToTriggerDisOutput ¶
func (o TriggerDisOutput) ToTriggerDisOutput() TriggerDisOutput
func (TriggerDisOutput) ToTriggerDisOutputWithContext ¶
func (o TriggerDisOutput) ToTriggerDisOutputWithContext(ctx context.Context) TriggerDisOutput
func (TriggerDisOutput) ToTriggerDisPtrOutput ¶
func (o TriggerDisOutput) ToTriggerDisPtrOutput() TriggerDisPtrOutput
func (TriggerDisOutput) ToTriggerDisPtrOutputWithContext ¶
func (o TriggerDisOutput) ToTriggerDisPtrOutputWithContext(ctx context.Context) TriggerDisPtrOutput
type TriggerDisPtrInput ¶
type TriggerDisPtrInput interface { pulumi.Input ToTriggerDisPtrOutput() TriggerDisPtrOutput ToTriggerDisPtrOutputWithContext(context.Context) TriggerDisPtrOutput }
TriggerDisPtrInput is an input type that accepts TriggerDisArgs, TriggerDisPtr and TriggerDisPtrOutput values. You can construct a concrete instance of `TriggerDisPtrInput` via:
TriggerDisArgs{...} or: nil
func TriggerDisPtr ¶
func TriggerDisPtr(v *TriggerDisArgs) TriggerDisPtrInput
type TriggerDisPtrOutput ¶
type TriggerDisPtrOutput struct{ *pulumi.OutputState }
func (TriggerDisPtrOutput) Elem ¶
func (o TriggerDisPtrOutput) Elem() TriggerDisOutput
func (TriggerDisPtrOutput) ElementType ¶
func (TriggerDisPtrOutput) ElementType() reflect.Type
func (TriggerDisPtrOutput) MaxFetchBytes ¶
func (o TriggerDisPtrOutput) MaxFetchBytes() pulumi.IntPtrOutput
Specifies the maximum volume of data that can be obtained for a single request, in Byte. Only the records with a size smaller than this value can be obtained. The valid value is range from `1,024` to `4,194,304`. Changing this will create a new trigger resource.
func (TriggerDisPtrOutput) PullPeriod ¶
func (o TriggerDisPtrOutput) PullPeriod() pulumi.IntPtrOutput
Specifies the interval at which data is pulled from the specified stream. The valid value is range from `2` to `60,000`. Changing this will create a new trigger resource.
func (TriggerDisPtrOutput) SerialEnable ¶
func (o TriggerDisPtrOutput) SerialEnable() pulumi.BoolPtrOutput
Specifies the determines whether to pull data only after the data pulled in the last period has been processed. Changing this will create a new trigger resource.
func (TriggerDisPtrOutput) StartingPosition ¶
func (o TriggerDisPtrOutput) StartingPosition() pulumi.StringPtrOutput
Specifies the type of starting position for DIS queue. The valid values are as follows:
- **TRIM_HORIZON**: Starts reading from the earliest data stored in the partitions.
- **LATEST**: Starts reading from the latest data stored in the partitions. Changing this will create a new trigger resource.
func (TriggerDisPtrOutput) StreamName ¶
func (o TriggerDisPtrOutput) StreamName() pulumi.StringPtrOutput
Specifies the name of the DIS stream resource. Changing this will create a new trigger resource.
func (TriggerDisPtrOutput) ToTriggerDisPtrOutput ¶
func (o TriggerDisPtrOutput) ToTriggerDisPtrOutput() TriggerDisPtrOutput
func (TriggerDisPtrOutput) ToTriggerDisPtrOutputWithContext ¶
func (o TriggerDisPtrOutput) ToTriggerDisPtrOutputWithContext(ctx context.Context) TriggerDisPtrOutput
type TriggerInput ¶
type TriggerInput interface { pulumi.Input ToTriggerOutput() TriggerOutput ToTriggerOutputWithContext(ctx context.Context) TriggerOutput }
type TriggerKafka ¶
type TriggerKafka struct { // Specifies the The number of messages consumed from the topic each time. // The valid value is range from `1` to `1,000`. Defaults to `100`. // Changing this will create a new trigger resource. BatchSize *int `pulumi:"batchSize"` // Specifies the ID of the APIG dedicated instance to which the API belongs. // Required if the `type` is `DEDICATEDGATEWAY`. Changing this will create a new trigger resource. InstanceId string `pulumi:"instanceId"` // Specifies one or more topic IDs of DMS kafka instance. // Changing this will create a new trigger resource. TopicIds []string `pulumi:"topicIds"` }
type TriggerKafkaArgs ¶
type TriggerKafkaArgs struct { // Specifies the The number of messages consumed from the topic each time. // The valid value is range from `1` to `1,000`. Defaults to `100`. // Changing this will create a new trigger resource. BatchSize pulumi.IntPtrInput `pulumi:"batchSize"` // Specifies the ID of the APIG dedicated instance to which the API belongs. // Required if the `type` is `DEDICATEDGATEWAY`. Changing this will create a new trigger resource. InstanceId pulumi.StringInput `pulumi:"instanceId"` // Specifies one or more topic IDs of DMS kafka instance. // Changing this will create a new trigger resource. TopicIds pulumi.StringArrayInput `pulumi:"topicIds"` }
func (TriggerKafkaArgs) ElementType ¶
func (TriggerKafkaArgs) ElementType() reflect.Type
func (TriggerKafkaArgs) ToTriggerKafkaOutput ¶
func (i TriggerKafkaArgs) ToTriggerKafkaOutput() TriggerKafkaOutput
func (TriggerKafkaArgs) ToTriggerKafkaOutputWithContext ¶
func (i TriggerKafkaArgs) ToTriggerKafkaOutputWithContext(ctx context.Context) TriggerKafkaOutput
func (TriggerKafkaArgs) ToTriggerKafkaPtrOutput ¶
func (i TriggerKafkaArgs) ToTriggerKafkaPtrOutput() TriggerKafkaPtrOutput
func (TriggerKafkaArgs) ToTriggerKafkaPtrOutputWithContext ¶
func (i TriggerKafkaArgs) ToTriggerKafkaPtrOutputWithContext(ctx context.Context) TriggerKafkaPtrOutput
type TriggerKafkaInput ¶
type TriggerKafkaInput interface { pulumi.Input ToTriggerKafkaOutput() TriggerKafkaOutput ToTriggerKafkaOutputWithContext(context.Context) TriggerKafkaOutput }
TriggerKafkaInput is an input type that accepts TriggerKafkaArgs and TriggerKafkaOutput values. You can construct a concrete instance of `TriggerKafkaInput` via:
TriggerKafkaArgs{...}
type TriggerKafkaOutput ¶
type TriggerKafkaOutput struct{ *pulumi.OutputState }
func (TriggerKafkaOutput) BatchSize ¶
func (o TriggerKafkaOutput) BatchSize() pulumi.IntPtrOutput
Specifies the The number of messages consumed from the topic each time. The valid value is range from `1` to `1,000`. Defaults to `100`. Changing this will create a new trigger resource.
func (TriggerKafkaOutput) ElementType ¶
func (TriggerKafkaOutput) ElementType() reflect.Type
func (TriggerKafkaOutput) InstanceId ¶
func (o TriggerKafkaOutput) InstanceId() pulumi.StringOutput
Specifies the ID of the APIG dedicated instance to which the API belongs. Required if the `type` is `DEDICATEDGATEWAY`. Changing this will create a new trigger resource.
func (TriggerKafkaOutput) ToTriggerKafkaOutput ¶
func (o TriggerKafkaOutput) ToTriggerKafkaOutput() TriggerKafkaOutput
func (TriggerKafkaOutput) ToTriggerKafkaOutputWithContext ¶
func (o TriggerKafkaOutput) ToTriggerKafkaOutputWithContext(ctx context.Context) TriggerKafkaOutput
func (TriggerKafkaOutput) ToTriggerKafkaPtrOutput ¶
func (o TriggerKafkaOutput) ToTriggerKafkaPtrOutput() TriggerKafkaPtrOutput
func (TriggerKafkaOutput) ToTriggerKafkaPtrOutputWithContext ¶
func (o TriggerKafkaOutput) ToTriggerKafkaPtrOutputWithContext(ctx context.Context) TriggerKafkaPtrOutput
func (TriggerKafkaOutput) TopicIds ¶
func (o TriggerKafkaOutput) TopicIds() pulumi.StringArrayOutput
Specifies one or more topic IDs of DMS kafka instance. Changing this will create a new trigger resource.
type TriggerKafkaPtrInput ¶
type TriggerKafkaPtrInput interface { pulumi.Input ToTriggerKafkaPtrOutput() TriggerKafkaPtrOutput ToTriggerKafkaPtrOutputWithContext(context.Context) TriggerKafkaPtrOutput }
TriggerKafkaPtrInput is an input type that accepts TriggerKafkaArgs, TriggerKafkaPtr and TriggerKafkaPtrOutput values. You can construct a concrete instance of `TriggerKafkaPtrInput` via:
TriggerKafkaArgs{...} or: nil
func TriggerKafkaPtr ¶
func TriggerKafkaPtr(v *TriggerKafkaArgs) TriggerKafkaPtrInput
type TriggerKafkaPtrOutput ¶
type TriggerKafkaPtrOutput struct{ *pulumi.OutputState }
func (TriggerKafkaPtrOutput) BatchSize ¶
func (o TriggerKafkaPtrOutput) BatchSize() pulumi.IntPtrOutput
Specifies the The number of messages consumed from the topic each time. The valid value is range from `1` to `1,000`. Defaults to `100`. Changing this will create a new trigger resource.
func (TriggerKafkaPtrOutput) Elem ¶
func (o TriggerKafkaPtrOutput) Elem() TriggerKafkaOutput
func (TriggerKafkaPtrOutput) ElementType ¶
func (TriggerKafkaPtrOutput) ElementType() reflect.Type
func (TriggerKafkaPtrOutput) InstanceId ¶
func (o TriggerKafkaPtrOutput) InstanceId() pulumi.StringPtrOutput
Specifies the ID of the APIG dedicated instance to which the API belongs. Required if the `type` is `DEDICATEDGATEWAY`. Changing this will create a new trigger resource.
func (TriggerKafkaPtrOutput) ToTriggerKafkaPtrOutput ¶
func (o TriggerKafkaPtrOutput) ToTriggerKafkaPtrOutput() TriggerKafkaPtrOutput
func (TriggerKafkaPtrOutput) ToTriggerKafkaPtrOutputWithContext ¶
func (o TriggerKafkaPtrOutput) ToTriggerKafkaPtrOutputWithContext(ctx context.Context) TriggerKafkaPtrOutput
func (TriggerKafkaPtrOutput) TopicIds ¶
func (o TriggerKafkaPtrOutput) TopicIds() pulumi.StringArrayOutput
Specifies one or more topic IDs of DMS kafka instance. Changing this will create a new trigger resource.
type TriggerLts ¶
type TriggerLtsArgs ¶
type TriggerLtsArgs struct { // Specifies the log group ID. // Changing this will create a new trigger resource. LogGroupId pulumi.StringInput `pulumi:"logGroupId"` // Specifies the log stream ID. // Changing this will create a new trigger resource. LogTopicId pulumi.StringInput `pulumi:"logTopicId"` }
func (TriggerLtsArgs) ElementType ¶
func (TriggerLtsArgs) ElementType() reflect.Type
func (TriggerLtsArgs) ToTriggerLtsOutput ¶
func (i TriggerLtsArgs) ToTriggerLtsOutput() TriggerLtsOutput
func (TriggerLtsArgs) ToTriggerLtsOutputWithContext ¶
func (i TriggerLtsArgs) ToTriggerLtsOutputWithContext(ctx context.Context) TriggerLtsOutput
func (TriggerLtsArgs) ToTriggerLtsPtrOutput ¶
func (i TriggerLtsArgs) ToTriggerLtsPtrOutput() TriggerLtsPtrOutput
func (TriggerLtsArgs) ToTriggerLtsPtrOutputWithContext ¶
func (i TriggerLtsArgs) ToTriggerLtsPtrOutputWithContext(ctx context.Context) TriggerLtsPtrOutput
type TriggerLtsInput ¶
type TriggerLtsInput interface { pulumi.Input ToTriggerLtsOutput() TriggerLtsOutput ToTriggerLtsOutputWithContext(context.Context) TriggerLtsOutput }
TriggerLtsInput is an input type that accepts TriggerLtsArgs and TriggerLtsOutput values. You can construct a concrete instance of `TriggerLtsInput` via:
TriggerLtsArgs{...}
type TriggerLtsOutput ¶
type TriggerLtsOutput struct{ *pulumi.OutputState }
func (TriggerLtsOutput) ElementType ¶
func (TriggerLtsOutput) ElementType() reflect.Type
func (TriggerLtsOutput) LogGroupId ¶
func (o TriggerLtsOutput) LogGroupId() pulumi.StringOutput
Specifies the log group ID. Changing this will create a new trigger resource.
func (TriggerLtsOutput) LogTopicId ¶
func (o TriggerLtsOutput) LogTopicId() pulumi.StringOutput
Specifies the log stream ID. Changing this will create a new trigger resource.
func (TriggerLtsOutput) ToTriggerLtsOutput ¶
func (o TriggerLtsOutput) ToTriggerLtsOutput() TriggerLtsOutput
func (TriggerLtsOutput) ToTriggerLtsOutputWithContext ¶
func (o TriggerLtsOutput) ToTriggerLtsOutputWithContext(ctx context.Context) TriggerLtsOutput
func (TriggerLtsOutput) ToTriggerLtsPtrOutput ¶
func (o TriggerLtsOutput) ToTriggerLtsPtrOutput() TriggerLtsPtrOutput
func (TriggerLtsOutput) ToTriggerLtsPtrOutputWithContext ¶
func (o TriggerLtsOutput) ToTriggerLtsPtrOutputWithContext(ctx context.Context) TriggerLtsPtrOutput
type TriggerLtsPtrInput ¶
type TriggerLtsPtrInput interface { pulumi.Input ToTriggerLtsPtrOutput() TriggerLtsPtrOutput ToTriggerLtsPtrOutputWithContext(context.Context) TriggerLtsPtrOutput }
TriggerLtsPtrInput is an input type that accepts TriggerLtsArgs, TriggerLtsPtr and TriggerLtsPtrOutput values. You can construct a concrete instance of `TriggerLtsPtrInput` via:
TriggerLtsArgs{...} or: nil
func TriggerLtsPtr ¶
func TriggerLtsPtr(v *TriggerLtsArgs) TriggerLtsPtrInput
type TriggerLtsPtrOutput ¶
type TriggerLtsPtrOutput struct{ *pulumi.OutputState }
func (TriggerLtsPtrOutput) Elem ¶
func (o TriggerLtsPtrOutput) Elem() TriggerLtsOutput
func (TriggerLtsPtrOutput) ElementType ¶
func (TriggerLtsPtrOutput) ElementType() reflect.Type
func (TriggerLtsPtrOutput) LogGroupId ¶
func (o TriggerLtsPtrOutput) LogGroupId() pulumi.StringPtrOutput
Specifies the log group ID. Changing this will create a new trigger resource.
func (TriggerLtsPtrOutput) LogTopicId ¶
func (o TriggerLtsPtrOutput) LogTopicId() pulumi.StringPtrOutput
Specifies the log stream ID. Changing this will create a new trigger resource.
func (TriggerLtsPtrOutput) ToTriggerLtsPtrOutput ¶
func (o TriggerLtsPtrOutput) ToTriggerLtsPtrOutput() TriggerLtsPtrOutput
func (TriggerLtsPtrOutput) ToTriggerLtsPtrOutputWithContext ¶
func (o TriggerLtsPtrOutput) ToTriggerLtsPtrOutputWithContext(ctx context.Context) TriggerLtsPtrOutput
type TriggerMap ¶
type TriggerMap map[string]TriggerInput
func (TriggerMap) ElementType ¶
func (TriggerMap) ElementType() reflect.Type
func (TriggerMap) ToTriggerMapOutput ¶
func (i TriggerMap) ToTriggerMapOutput() TriggerMapOutput
func (TriggerMap) ToTriggerMapOutputWithContext ¶
func (i TriggerMap) ToTriggerMapOutputWithContext(ctx context.Context) TriggerMapOutput
type TriggerMapInput ¶
type TriggerMapInput interface { pulumi.Input ToTriggerMapOutput() TriggerMapOutput ToTriggerMapOutputWithContext(context.Context) TriggerMapOutput }
TriggerMapInput is an input type that accepts TriggerMap and TriggerMapOutput values. You can construct a concrete instance of `TriggerMapInput` via:
TriggerMap{ "key": TriggerArgs{...} }
type TriggerMapOutput ¶
type TriggerMapOutput struct{ *pulumi.OutputState }
func (TriggerMapOutput) ElementType ¶
func (TriggerMapOutput) ElementType() reflect.Type
func (TriggerMapOutput) MapIndex ¶
func (o TriggerMapOutput) MapIndex(k pulumi.StringInput) TriggerOutput
func (TriggerMapOutput) ToTriggerMapOutput ¶
func (o TriggerMapOutput) ToTriggerMapOutput() TriggerMapOutput
func (TriggerMapOutput) ToTriggerMapOutputWithContext ¶
func (o TriggerMapOutput) ToTriggerMapOutputWithContext(ctx context.Context) TriggerMapOutput
type TriggerObs ¶
type TriggerObs struct { // Specifies the OBS bucket name. // Changing this will create a new trigger resource. BucketName string `pulumi:"bucketName"` // Specifies the event notification name. // Changing this will create a new trigger resource. EventNotificationName string `pulumi:"eventNotificationName"` // Specifies the events that can trigger functions. // Changing this will create a new trigger resource. // The valid values are as follows: // + **ObjectCreated**, **Put**, **Post**, **Copy** and **CompleteMultipartUpload**. // + **ObjectRemoved**, **Delete** and **DeleteMarkerCreated**. Events []string `pulumi:"events"` // Specifies the prefix to limit notifications to objects beginning with this keyword. // Changing this will create a new trigger resource. Prefix *string `pulumi:"prefix"` // Specifies the suffix to limit notifications to objects ending with this keyword. // Changing this will create a new trigger resource. Suffix *string `pulumi:"suffix"` }
type TriggerObsArgs ¶
type TriggerObsArgs struct { // Specifies the OBS bucket name. // Changing this will create a new trigger resource. BucketName pulumi.StringInput `pulumi:"bucketName"` // Specifies the event notification name. // Changing this will create a new trigger resource. EventNotificationName pulumi.StringInput `pulumi:"eventNotificationName"` // Specifies the events that can trigger functions. // Changing this will create a new trigger resource. // The valid values are as follows: // + **ObjectCreated**, **Put**, **Post**, **Copy** and **CompleteMultipartUpload**. // + **ObjectRemoved**, **Delete** and **DeleteMarkerCreated**. Events pulumi.StringArrayInput `pulumi:"events"` // Specifies the prefix to limit notifications to objects beginning with this keyword. // Changing this will create a new trigger resource. Prefix pulumi.StringPtrInput `pulumi:"prefix"` // Specifies the suffix to limit notifications to objects ending with this keyword. // Changing this will create a new trigger resource. Suffix pulumi.StringPtrInput `pulumi:"suffix"` }
func (TriggerObsArgs) ElementType ¶
func (TriggerObsArgs) ElementType() reflect.Type
func (TriggerObsArgs) ToTriggerObsOutput ¶
func (i TriggerObsArgs) ToTriggerObsOutput() TriggerObsOutput
func (TriggerObsArgs) ToTriggerObsOutputWithContext ¶
func (i TriggerObsArgs) ToTriggerObsOutputWithContext(ctx context.Context) TriggerObsOutput
func (TriggerObsArgs) ToTriggerObsPtrOutput ¶
func (i TriggerObsArgs) ToTriggerObsPtrOutput() TriggerObsPtrOutput
func (TriggerObsArgs) ToTriggerObsPtrOutputWithContext ¶
func (i TriggerObsArgs) ToTriggerObsPtrOutputWithContext(ctx context.Context) TriggerObsPtrOutput
type TriggerObsInput ¶
type TriggerObsInput interface { pulumi.Input ToTriggerObsOutput() TriggerObsOutput ToTriggerObsOutputWithContext(context.Context) TriggerObsOutput }
TriggerObsInput is an input type that accepts TriggerObsArgs and TriggerObsOutput values. You can construct a concrete instance of `TriggerObsInput` via:
TriggerObsArgs{...}
type TriggerObsOutput ¶
type TriggerObsOutput struct{ *pulumi.OutputState }
func (TriggerObsOutput) BucketName ¶
func (o TriggerObsOutput) BucketName() pulumi.StringOutput
Specifies the OBS bucket name. Changing this will create a new trigger resource.
func (TriggerObsOutput) ElementType ¶
func (TriggerObsOutput) ElementType() reflect.Type
func (TriggerObsOutput) EventNotificationName ¶
func (o TriggerObsOutput) EventNotificationName() pulumi.StringOutput
Specifies the event notification name. Changing this will create a new trigger resource.
func (TriggerObsOutput) Events ¶
func (o TriggerObsOutput) Events() pulumi.StringArrayOutput
Specifies the events that can trigger functions. Changing this will create a new trigger resource. The valid values are as follows: + **ObjectCreated**, **Put**, **Post**, **Copy** and **CompleteMultipartUpload**. + **ObjectRemoved**, **Delete** and **DeleteMarkerCreated**.
func (TriggerObsOutput) Prefix ¶
func (o TriggerObsOutput) Prefix() pulumi.StringPtrOutput
Specifies the prefix to limit notifications to objects beginning with this keyword. Changing this will create a new trigger resource.
func (TriggerObsOutput) Suffix ¶
func (o TriggerObsOutput) Suffix() pulumi.StringPtrOutput
Specifies the suffix to limit notifications to objects ending with this keyword. Changing this will create a new trigger resource.
func (TriggerObsOutput) ToTriggerObsOutput ¶
func (o TriggerObsOutput) ToTriggerObsOutput() TriggerObsOutput
func (TriggerObsOutput) ToTriggerObsOutputWithContext ¶
func (o TriggerObsOutput) ToTriggerObsOutputWithContext(ctx context.Context) TriggerObsOutput
func (TriggerObsOutput) ToTriggerObsPtrOutput ¶
func (o TriggerObsOutput) ToTriggerObsPtrOutput() TriggerObsPtrOutput
func (TriggerObsOutput) ToTriggerObsPtrOutputWithContext ¶
func (o TriggerObsOutput) ToTriggerObsPtrOutputWithContext(ctx context.Context) TriggerObsPtrOutput
type TriggerObsPtrInput ¶
type TriggerObsPtrInput interface { pulumi.Input ToTriggerObsPtrOutput() TriggerObsPtrOutput ToTriggerObsPtrOutputWithContext(context.Context) TriggerObsPtrOutput }
TriggerObsPtrInput is an input type that accepts TriggerObsArgs, TriggerObsPtr and TriggerObsPtrOutput values. You can construct a concrete instance of `TriggerObsPtrInput` via:
TriggerObsArgs{...} or: nil
func TriggerObsPtr ¶
func TriggerObsPtr(v *TriggerObsArgs) TriggerObsPtrInput
type TriggerObsPtrOutput ¶
type TriggerObsPtrOutput struct{ *pulumi.OutputState }
func (TriggerObsPtrOutput) BucketName ¶
func (o TriggerObsPtrOutput) BucketName() pulumi.StringPtrOutput
Specifies the OBS bucket name. Changing this will create a new trigger resource.
func (TriggerObsPtrOutput) Elem ¶
func (o TriggerObsPtrOutput) Elem() TriggerObsOutput
func (TriggerObsPtrOutput) ElementType ¶
func (TriggerObsPtrOutput) ElementType() reflect.Type
func (TriggerObsPtrOutput) EventNotificationName ¶
func (o TriggerObsPtrOutput) EventNotificationName() pulumi.StringPtrOutput
Specifies the event notification name. Changing this will create a new trigger resource.
func (TriggerObsPtrOutput) Events ¶
func (o TriggerObsPtrOutput) Events() pulumi.StringArrayOutput
Specifies the events that can trigger functions. Changing this will create a new trigger resource. The valid values are as follows: + **ObjectCreated**, **Put**, **Post**, **Copy** and **CompleteMultipartUpload**. + **ObjectRemoved**, **Delete** and **DeleteMarkerCreated**.
func (TriggerObsPtrOutput) Prefix ¶
func (o TriggerObsPtrOutput) Prefix() pulumi.StringPtrOutput
Specifies the prefix to limit notifications to objects beginning with this keyword. Changing this will create a new trigger resource.
func (TriggerObsPtrOutput) Suffix ¶
func (o TriggerObsPtrOutput) Suffix() pulumi.StringPtrOutput
Specifies the suffix to limit notifications to objects ending with this keyword. Changing this will create a new trigger resource.
func (TriggerObsPtrOutput) ToTriggerObsPtrOutput ¶
func (o TriggerObsPtrOutput) ToTriggerObsPtrOutput() TriggerObsPtrOutput
func (TriggerObsPtrOutput) ToTriggerObsPtrOutputWithContext ¶
func (o TriggerObsPtrOutput) ToTriggerObsPtrOutputWithContext(ctx context.Context) TriggerObsPtrOutput
type TriggerOutput ¶
type TriggerOutput struct{ *pulumi.OutputState }
func (TriggerOutput) Apig ¶
func (o TriggerOutput) Apig() TriggerApigPtrOutput
Specifies the configuration of the shared APIG and dedicated APIG trigger. Changing this will create a new trigger resource. The object structure is documented below.
func (TriggerOutput) Dis ¶
func (o TriggerOutput) Dis() TriggerDisPtrOutput
Specifies the configuration of the DIS trigger. Changing this will create a new trigger resource. The object structure is documented below.
func (TriggerOutput) ElementType ¶
func (TriggerOutput) ElementType() reflect.Type
func (TriggerOutput) FunctionUrn ¶
func (o TriggerOutput) FunctionUrn() pulumi.StringOutput
Specifies the Uniform Resource Name (URN) of the function. Changing this will create a new trigger resource.
func (TriggerOutput) Kafka ¶
func (o TriggerOutput) Kafka() TriggerKafkaPtrOutput
Specifies the configuration of the DMS trigger for Kafka. Changing this will create a new trigger resource. The object structure is documented below.
func (TriggerOutput) Lts ¶
func (o TriggerOutput) Lts() TriggerLtsPtrOutput
Specifies the configuration of the LTS trigger. Changing this will create a new trigger resource. The object structure is documented below.
func (TriggerOutput) Obs ¶
func (o TriggerOutput) Obs() TriggerObsPtrOutput
Specifies the configuration of the OBS trigger. Changing this will create a new trigger resource. The object structure is documented below.
func (TriggerOutput) Region ¶
func (o TriggerOutput) Region() pulumi.StringOutput
Specifies the region in which to create the trigger resource. If omitted, the provider-level region will be used. Changing this will create a new trigger resource.
func (TriggerOutput) Smn ¶
func (o TriggerOutput) Smn() TriggerSmnPtrOutput
Specifies the configuration of the SMN trigger. Changing this will create a new trigger resource. The object structure is documented below.
func (TriggerOutput) Status ¶
func (o TriggerOutput) Status() pulumi.StringOutput
Specifies whether trigger is enabled. The valid values are **ACTIVE** and **DISABLED**. About DMS kafka trigger, the default value is **ACTIVE**.
func (TriggerOutput) Timer ¶
func (o TriggerOutput) Timer() TriggerTimerPtrOutput
Specifies the configuration of the timing trigger. Changing this will create a new trigger resource. The object structure is documented below.
func (TriggerOutput) ToTriggerOutput ¶
func (o TriggerOutput) ToTriggerOutput() TriggerOutput
func (TriggerOutput) ToTriggerOutputWithContext ¶
func (o TriggerOutput) ToTriggerOutputWithContext(ctx context.Context) TriggerOutput
func (TriggerOutput) Type ¶
func (o TriggerOutput) Type() pulumi.StringOutput
Specifies the type of the function. The valid values currently only support **TIMER**, **OBS**, **SMN**, **DIS**, **KAFKA**, **APIG**, **LTS**, and **DEDICATEDGATEWAY**. Changing this will create a new trigger resource.
type TriggerSmn ¶
type TriggerSmn struct { // Specifies the Uniform Resource Name (URN) for SMN topic. // Changing this will create a new trigger resource. TopicUrn string `pulumi:"topicUrn"` }
type TriggerSmnArgs ¶
type TriggerSmnArgs struct { // Specifies the Uniform Resource Name (URN) for SMN topic. // Changing this will create a new trigger resource. TopicUrn pulumi.StringInput `pulumi:"topicUrn"` }
func (TriggerSmnArgs) ElementType ¶
func (TriggerSmnArgs) ElementType() reflect.Type
func (TriggerSmnArgs) ToTriggerSmnOutput ¶
func (i TriggerSmnArgs) ToTriggerSmnOutput() TriggerSmnOutput
func (TriggerSmnArgs) ToTriggerSmnOutputWithContext ¶
func (i TriggerSmnArgs) ToTriggerSmnOutputWithContext(ctx context.Context) TriggerSmnOutput
func (TriggerSmnArgs) ToTriggerSmnPtrOutput ¶
func (i TriggerSmnArgs) ToTriggerSmnPtrOutput() TriggerSmnPtrOutput
func (TriggerSmnArgs) ToTriggerSmnPtrOutputWithContext ¶
func (i TriggerSmnArgs) ToTriggerSmnPtrOutputWithContext(ctx context.Context) TriggerSmnPtrOutput
type TriggerSmnInput ¶
type TriggerSmnInput interface { pulumi.Input ToTriggerSmnOutput() TriggerSmnOutput ToTriggerSmnOutputWithContext(context.Context) TriggerSmnOutput }
TriggerSmnInput is an input type that accepts TriggerSmnArgs and TriggerSmnOutput values. You can construct a concrete instance of `TriggerSmnInput` via:
TriggerSmnArgs{...}
type TriggerSmnOutput ¶
type TriggerSmnOutput struct{ *pulumi.OutputState }
func (TriggerSmnOutput) ElementType ¶
func (TriggerSmnOutput) ElementType() reflect.Type
func (TriggerSmnOutput) ToTriggerSmnOutput ¶
func (o TriggerSmnOutput) ToTriggerSmnOutput() TriggerSmnOutput
func (TriggerSmnOutput) ToTriggerSmnOutputWithContext ¶
func (o TriggerSmnOutput) ToTriggerSmnOutputWithContext(ctx context.Context) TriggerSmnOutput
func (TriggerSmnOutput) ToTriggerSmnPtrOutput ¶
func (o TriggerSmnOutput) ToTriggerSmnPtrOutput() TriggerSmnPtrOutput
func (TriggerSmnOutput) ToTriggerSmnPtrOutputWithContext ¶
func (o TriggerSmnOutput) ToTriggerSmnPtrOutputWithContext(ctx context.Context) TriggerSmnPtrOutput
func (TriggerSmnOutput) TopicUrn ¶
func (o TriggerSmnOutput) TopicUrn() pulumi.StringOutput
Specifies the Uniform Resource Name (URN) for SMN topic. Changing this will create a new trigger resource.
type TriggerSmnPtrInput ¶
type TriggerSmnPtrInput interface { pulumi.Input ToTriggerSmnPtrOutput() TriggerSmnPtrOutput ToTriggerSmnPtrOutputWithContext(context.Context) TriggerSmnPtrOutput }
TriggerSmnPtrInput is an input type that accepts TriggerSmnArgs, TriggerSmnPtr and TriggerSmnPtrOutput values. You can construct a concrete instance of `TriggerSmnPtrInput` via:
TriggerSmnArgs{...} or: nil
func TriggerSmnPtr ¶
func TriggerSmnPtr(v *TriggerSmnArgs) TriggerSmnPtrInput
type TriggerSmnPtrOutput ¶
type TriggerSmnPtrOutput struct{ *pulumi.OutputState }
func (TriggerSmnPtrOutput) Elem ¶
func (o TriggerSmnPtrOutput) Elem() TriggerSmnOutput
func (TriggerSmnPtrOutput) ElementType ¶
func (TriggerSmnPtrOutput) ElementType() reflect.Type
func (TriggerSmnPtrOutput) ToTriggerSmnPtrOutput ¶
func (o TriggerSmnPtrOutput) ToTriggerSmnPtrOutput() TriggerSmnPtrOutput
func (TriggerSmnPtrOutput) ToTriggerSmnPtrOutputWithContext ¶
func (o TriggerSmnPtrOutput) ToTriggerSmnPtrOutputWithContext(ctx context.Context) TriggerSmnPtrOutput
func (TriggerSmnPtrOutput) TopicUrn ¶
func (o TriggerSmnPtrOutput) TopicUrn() pulumi.StringPtrOutput
Specifies the Uniform Resource Name (URN) for SMN topic. Changing this will create a new trigger resource.
type TriggerState ¶
type TriggerState struct { // Specifies the configuration of the shared APIG and dedicated APIG trigger. // Changing this will create a new trigger resource. // The object structure is documented below. Apig TriggerApigPtrInput // Specifies the configuration of the DIS trigger. // Changing this will create a new trigger resource. // The object structure is documented below. Dis TriggerDisPtrInput // Specifies the Uniform Resource Name (URN) of the function. // Changing this will create a new trigger resource. FunctionUrn pulumi.StringPtrInput // Specifies the configuration of the DMS trigger for Kafka. // Changing this will create a new trigger resource. // The object structure is documented below. Kafka TriggerKafkaPtrInput // Specifies the configuration of the LTS trigger. // Changing this will create a new trigger resource. // The object structure is documented below. Lts TriggerLtsPtrInput // Specifies the configuration of the OBS trigger. // Changing this will create a new trigger resource. // The object structure is documented below. Obs TriggerObsPtrInput // Specifies the region in which to create the trigger resource. // If omitted, the provider-level region will be used. // Changing this will create a new trigger resource. Region pulumi.StringPtrInput // Specifies the configuration of the SMN trigger. // Changing this will create a new trigger resource. // The object structure is documented below. Smn TriggerSmnPtrInput // Specifies whether trigger is enabled. The valid values are **ACTIVE** and **DISABLED**. // About DMS kafka trigger, the default value is **ACTIVE**. Status pulumi.StringPtrInput // Specifies the configuration of the timing trigger. // Changing this will create a new trigger resource. // The object structure is documented below. Timer TriggerTimerPtrInput // Specifies the type of the function. // The valid values currently only support **TIMER**, **OBS**, **SMN**, **DIS**, **KAFKA**, **APIG**, **LTS**, and // **DEDICATEDGATEWAY**. Changing this will create a new trigger resource. Type pulumi.StringPtrInput }
func (TriggerState) ElementType ¶
func (TriggerState) ElementType() reflect.Type
type TriggerTimer ¶
type TriggerTimer struct { // Specifies the event used by the timer to trigger the function. // Changing this will create a new trigger resource. AdditionalInformation *string `pulumi:"additionalInformation"` // Specifies the trigger name, which can contains of 1 to 64 characters. // The name must start with a letter, only letters, digits, hyphens (-) and underscores (_) are allowed. // Changing this will create a new trigger resource. Name string `pulumi:"name"` // Specifies the time schedule. // For the rate type, schedule is composed of time and time unit. // The time unit supports minutes (m), hours (h) and days (d). // For the corn expression, please refer to the HuaweiCloud // [document](https://support.huaweicloud.com/en-us/usermanual-functiongraph/functiongraph_01_0908.html). // Changing this will create a new trigger resource. Schedule string `pulumi:"schedule"` // Specifies the type of the time schedule. // The valid values are **Rate** and **Cron**. // Changing this will create a new trigger resource. ScheduleType string `pulumi:"scheduleType"` }
type TriggerTimerArgs ¶
type TriggerTimerArgs struct { // Specifies the event used by the timer to trigger the function. // Changing this will create a new trigger resource. AdditionalInformation pulumi.StringPtrInput `pulumi:"additionalInformation"` // Specifies the trigger name, which can contains of 1 to 64 characters. // The name must start with a letter, only letters, digits, hyphens (-) and underscores (_) are allowed. // Changing this will create a new trigger resource. Name pulumi.StringInput `pulumi:"name"` // Specifies the time schedule. // For the rate type, schedule is composed of time and time unit. // The time unit supports minutes (m), hours (h) and days (d). // For the corn expression, please refer to the HuaweiCloud // [document](https://support.huaweicloud.com/en-us/usermanual-functiongraph/functiongraph_01_0908.html). // Changing this will create a new trigger resource. Schedule pulumi.StringInput `pulumi:"schedule"` // Specifies the type of the time schedule. // The valid values are **Rate** and **Cron**. // Changing this will create a new trigger resource. ScheduleType pulumi.StringInput `pulumi:"scheduleType"` }
func (TriggerTimerArgs) ElementType ¶
func (TriggerTimerArgs) ElementType() reflect.Type
func (TriggerTimerArgs) ToTriggerTimerOutput ¶
func (i TriggerTimerArgs) ToTriggerTimerOutput() TriggerTimerOutput
func (TriggerTimerArgs) ToTriggerTimerOutputWithContext ¶
func (i TriggerTimerArgs) ToTriggerTimerOutputWithContext(ctx context.Context) TriggerTimerOutput
func (TriggerTimerArgs) ToTriggerTimerPtrOutput ¶
func (i TriggerTimerArgs) ToTriggerTimerPtrOutput() TriggerTimerPtrOutput
func (TriggerTimerArgs) ToTriggerTimerPtrOutputWithContext ¶
func (i TriggerTimerArgs) ToTriggerTimerPtrOutputWithContext(ctx context.Context) TriggerTimerPtrOutput
type TriggerTimerInput ¶
type TriggerTimerInput interface { pulumi.Input ToTriggerTimerOutput() TriggerTimerOutput ToTriggerTimerOutputWithContext(context.Context) TriggerTimerOutput }
TriggerTimerInput is an input type that accepts TriggerTimerArgs and TriggerTimerOutput values. You can construct a concrete instance of `TriggerTimerInput` via:
TriggerTimerArgs{...}
type TriggerTimerOutput ¶
type TriggerTimerOutput struct{ *pulumi.OutputState }
func (TriggerTimerOutput) AdditionalInformation ¶
func (o TriggerTimerOutput) AdditionalInformation() pulumi.StringPtrOutput
Specifies the event used by the timer to trigger the function. Changing this will create a new trigger resource.
func (TriggerTimerOutput) ElementType ¶
func (TriggerTimerOutput) ElementType() reflect.Type
func (TriggerTimerOutput) Name ¶
func (o TriggerTimerOutput) Name() pulumi.StringOutput
Specifies the trigger name, which can contains of 1 to 64 characters. The name must start with a letter, only letters, digits, hyphens (-) and underscores (_) are allowed. Changing this will create a new trigger resource.
func (TriggerTimerOutput) Schedule ¶
func (o TriggerTimerOutput) Schedule() pulumi.StringOutput
Specifies the time schedule. For the rate type, schedule is composed of time and time unit. The time unit supports minutes (m), hours (h) and days (d). For the corn expression, please refer to the HuaweiCloud [document](https://support.huaweicloud.com/en-us/usermanual-functiongraph/functiongraph_01_0908.html). Changing this will create a new trigger resource.
func (TriggerTimerOutput) ScheduleType ¶
func (o TriggerTimerOutput) ScheduleType() pulumi.StringOutput
Specifies the type of the time schedule. The valid values are **Rate** and **Cron**. Changing this will create a new trigger resource.
func (TriggerTimerOutput) ToTriggerTimerOutput ¶
func (o TriggerTimerOutput) ToTriggerTimerOutput() TriggerTimerOutput
func (TriggerTimerOutput) ToTriggerTimerOutputWithContext ¶
func (o TriggerTimerOutput) ToTriggerTimerOutputWithContext(ctx context.Context) TriggerTimerOutput
func (TriggerTimerOutput) ToTriggerTimerPtrOutput ¶
func (o TriggerTimerOutput) ToTriggerTimerPtrOutput() TriggerTimerPtrOutput
func (TriggerTimerOutput) ToTriggerTimerPtrOutputWithContext ¶
func (o TriggerTimerOutput) ToTriggerTimerPtrOutputWithContext(ctx context.Context) TriggerTimerPtrOutput
type TriggerTimerPtrInput ¶
type TriggerTimerPtrInput interface { pulumi.Input ToTriggerTimerPtrOutput() TriggerTimerPtrOutput ToTriggerTimerPtrOutputWithContext(context.Context) TriggerTimerPtrOutput }
TriggerTimerPtrInput is an input type that accepts TriggerTimerArgs, TriggerTimerPtr and TriggerTimerPtrOutput values. You can construct a concrete instance of `TriggerTimerPtrInput` via:
TriggerTimerArgs{...} or: nil
func TriggerTimerPtr ¶
func TriggerTimerPtr(v *TriggerTimerArgs) TriggerTimerPtrInput
type TriggerTimerPtrOutput ¶
type TriggerTimerPtrOutput struct{ *pulumi.OutputState }
func (TriggerTimerPtrOutput) AdditionalInformation ¶
func (o TriggerTimerPtrOutput) AdditionalInformation() pulumi.StringPtrOutput
Specifies the event used by the timer to trigger the function. Changing this will create a new trigger resource.
func (TriggerTimerPtrOutput) Elem ¶
func (o TriggerTimerPtrOutput) Elem() TriggerTimerOutput
func (TriggerTimerPtrOutput) ElementType ¶
func (TriggerTimerPtrOutput) ElementType() reflect.Type
func (TriggerTimerPtrOutput) Name ¶
func (o TriggerTimerPtrOutput) Name() pulumi.StringPtrOutput
Specifies the trigger name, which can contains of 1 to 64 characters. The name must start with a letter, only letters, digits, hyphens (-) and underscores (_) are allowed. Changing this will create a new trigger resource.
func (TriggerTimerPtrOutput) Schedule ¶
func (o TriggerTimerPtrOutput) Schedule() pulumi.StringPtrOutput
Specifies the time schedule. For the rate type, schedule is composed of time and time unit. The time unit supports minutes (m), hours (h) and days (d). For the corn expression, please refer to the HuaweiCloud [document](https://support.huaweicloud.com/en-us/usermanual-functiongraph/functiongraph_01_0908.html). Changing this will create a new trigger resource.
func (TriggerTimerPtrOutput) ScheduleType ¶
func (o TriggerTimerPtrOutput) ScheduleType() pulumi.StringPtrOutput
Specifies the type of the time schedule. The valid values are **Rate** and **Cron**. Changing this will create a new trigger resource.
func (TriggerTimerPtrOutput) ToTriggerTimerPtrOutput ¶
func (o TriggerTimerPtrOutput) ToTriggerTimerPtrOutput() TriggerTimerPtrOutput
func (TriggerTimerPtrOutput) ToTriggerTimerPtrOutputWithContext ¶
func (o TriggerTimerPtrOutput) ToTriggerTimerPtrOutputWithContext(ctx context.Context) TriggerTimerPtrOutput