Documentation
¶
Index ¶
- type Function
- type FunctionArgs
- type FunctionArray
- type FunctionArrayInput
- type FunctionArrayOutput
- type FunctionCfsConfig
- type FunctionCfsConfigArgs
- type FunctionCfsConfigArray
- type FunctionCfsConfigArrayInput
- type FunctionCfsConfigArrayOutput
- func (FunctionCfsConfigArrayOutput) ElementType() reflect.Type
- func (o FunctionCfsConfigArrayOutput) Index(i pulumi.IntInput) FunctionCfsConfigOutput
- func (o FunctionCfsConfigArrayOutput) ToFunctionCfsConfigArrayOutput() FunctionCfsConfigArrayOutput
- func (o FunctionCfsConfigArrayOutput) ToFunctionCfsConfigArrayOutputWithContext(ctx context.Context) FunctionCfsConfigArrayOutput
- type FunctionCfsConfigInput
- type FunctionCfsConfigOutput
- func (o FunctionCfsConfigOutput) CfsId() pulumi.StringOutput
- func (FunctionCfsConfigOutput) ElementType() reflect.Type
- func (o FunctionCfsConfigOutput) IpAddress() pulumi.StringPtrOutput
- func (o FunctionCfsConfigOutput) LocalMountDir() pulumi.StringOutput
- func (o FunctionCfsConfigOutput) MountInsId() pulumi.StringOutput
- func (o FunctionCfsConfigOutput) MountSubnetId() pulumi.StringPtrOutput
- func (o FunctionCfsConfigOutput) MountVpcId() pulumi.StringPtrOutput
- func (o FunctionCfsConfigOutput) RemoteMountDir() pulumi.StringOutput
- func (o FunctionCfsConfigOutput) ToFunctionCfsConfigOutput() FunctionCfsConfigOutput
- func (o FunctionCfsConfigOutput) ToFunctionCfsConfigOutputWithContext(ctx context.Context) FunctionCfsConfigOutput
- func (o FunctionCfsConfigOutput) UserGroupId() pulumi.StringOutput
- func (o FunctionCfsConfigOutput) UserId() pulumi.StringOutput
- type FunctionImageConfig
- type FunctionImageConfigArgs
- type FunctionImageConfigArray
- type FunctionImageConfigArrayInput
- type FunctionImageConfigArrayOutput
- func (FunctionImageConfigArrayOutput) ElementType() reflect.Type
- func (o FunctionImageConfigArrayOutput) Index(i pulumi.IntInput) FunctionImageConfigOutput
- func (o FunctionImageConfigArrayOutput) ToFunctionImageConfigArrayOutput() FunctionImageConfigArrayOutput
- func (o FunctionImageConfigArrayOutput) ToFunctionImageConfigArrayOutputWithContext(ctx context.Context) FunctionImageConfigArrayOutput
- type FunctionImageConfigInput
- type FunctionImageConfigOutput
- func (o FunctionImageConfigOutput) Args() pulumi.StringPtrOutput
- func (o FunctionImageConfigOutput) Command() pulumi.StringPtrOutput
- func (FunctionImageConfigOutput) ElementType() reflect.Type
- func (o FunctionImageConfigOutput) EntryPoint() pulumi.StringPtrOutput
- func (o FunctionImageConfigOutput) ImageType() pulumi.StringOutput
- func (o FunctionImageConfigOutput) ImageUri() pulumi.StringOutput
- func (o FunctionImageConfigOutput) RegistryId() pulumi.StringPtrOutput
- func (o FunctionImageConfigOutput) ToFunctionImageConfigOutput() FunctionImageConfigOutput
- func (o FunctionImageConfigOutput) ToFunctionImageConfigOutputWithContext(ctx context.Context) FunctionImageConfigOutput
- type FunctionInput
- type FunctionLayer
- type FunctionLayerArgs
- type FunctionLayerArray
- type FunctionLayerArrayInput
- type FunctionLayerArrayOutput
- func (FunctionLayerArrayOutput) ElementType() reflect.Type
- func (o FunctionLayerArrayOutput) Index(i pulumi.IntInput) FunctionLayerOutput
- func (o FunctionLayerArrayOutput) ToFunctionLayerArrayOutput() FunctionLayerArrayOutput
- func (o FunctionLayerArrayOutput) ToFunctionLayerArrayOutputWithContext(ctx context.Context) FunctionLayerArrayOutput
- type FunctionLayerInput
- type FunctionLayerOutput
- func (FunctionLayerOutput) ElementType() reflect.Type
- func (o FunctionLayerOutput) LayerName() pulumi.StringOutput
- func (o FunctionLayerOutput) LayerVersion() pulumi.IntOutput
- func (o FunctionLayerOutput) ToFunctionLayerOutput() FunctionLayerOutput
- func (o FunctionLayerOutput) ToFunctionLayerOutputWithContext(ctx context.Context) FunctionLayerOutput
- type FunctionMap
- type FunctionMapInput
- type FunctionMapOutput
- type FunctionOutput
- func (o FunctionOutput) CfsConfigs() FunctionCfsConfigArrayOutput
- func (o FunctionOutput) ClsLogsetId() pulumi.StringOutput
- func (o FunctionOutput) ClsTopicId() pulumi.StringOutput
- func (o FunctionOutput) CodeError() pulumi.StringOutput
- func (o FunctionOutput) CodeResult() pulumi.StringOutput
- func (o FunctionOutput) CodeSize() pulumi.IntOutput
- func (o FunctionOutput) CosBucketName() pulumi.StringPtrOutput
- func (o FunctionOutput) CosBucketRegion() pulumi.StringPtrOutput
- func (o FunctionOutput) CosObjectName() pulumi.StringPtrOutput
- func (o FunctionOutput) Description() pulumi.StringPtrOutput
- func (o FunctionOutput) EipFixed() pulumi.BoolOutput
- func (o FunctionOutput) Eips() pulumi.StringArrayOutput
- func (FunctionOutput) ElementType() reflect.Type
- func (o FunctionOutput) EnableEipConfig() pulumi.BoolPtrOutput
- func (o FunctionOutput) EnablePublicNet() pulumi.BoolPtrOutput
- func (o FunctionOutput) Environment() pulumi.MapOutput
- func (o FunctionOutput) ErrNo() pulumi.IntOutput
- func (o FunctionOutput) Handler() pulumi.StringOutput
- func (o FunctionOutput) Host() pulumi.StringOutput
- func (o FunctionOutput) ImageConfigs() FunctionImageConfigArrayOutput
- func (o FunctionOutput) InstallDependency() pulumi.BoolOutput
- func (o FunctionOutput) L5Enable() pulumi.BoolPtrOutput
- func (o FunctionOutput) Layers() FunctionLayerArrayOutput
- func (o FunctionOutput) MemSize() pulumi.IntPtrOutput
- func (o FunctionOutput) ModifyTime() pulumi.StringOutput
- func (o FunctionOutput) Name() pulumi.StringOutput
- func (o FunctionOutput) Namespace() pulumi.StringPtrOutput
- func (o FunctionOutput) Role() pulumi.StringPtrOutput
- func (o FunctionOutput) Runtime() pulumi.StringOutput
- func (o FunctionOutput) Status() pulumi.StringOutput
- func (o FunctionOutput) StatusDesc() pulumi.StringOutput
- func (o FunctionOutput) SubnetId() pulumi.StringPtrOutput
- func (o FunctionOutput) Tags() pulumi.MapOutput
- func (o FunctionOutput) Timeout() pulumi.IntPtrOutput
- func (o FunctionOutput) ToFunctionOutput() FunctionOutput
- func (o FunctionOutput) ToFunctionOutputWithContext(ctx context.Context) FunctionOutput
- func (o FunctionOutput) TriggerInfos() FunctionTriggerInfoArrayOutput
- func (o FunctionOutput) Triggers() FunctionTriggerArrayOutput
- func (o FunctionOutput) Vip() pulumi.StringOutput
- func (o FunctionOutput) VpcId() pulumi.StringPtrOutput
- func (o FunctionOutput) ZipFile() pulumi.StringPtrOutput
- type FunctionState
- type FunctionTrigger
- type FunctionTriggerArgs
- type FunctionTriggerArray
- type FunctionTriggerArrayInput
- type FunctionTriggerArrayOutput
- func (FunctionTriggerArrayOutput) ElementType() reflect.Type
- func (o FunctionTriggerArrayOutput) Index(i pulumi.IntInput) FunctionTriggerOutput
- func (o FunctionTriggerArrayOutput) ToFunctionTriggerArrayOutput() FunctionTriggerArrayOutput
- func (o FunctionTriggerArrayOutput) ToFunctionTriggerArrayOutputWithContext(ctx context.Context) FunctionTriggerArrayOutput
- type FunctionTriggerInfo
- type FunctionTriggerInfoArgs
- type FunctionTriggerInfoArray
- type FunctionTriggerInfoArrayInput
- type FunctionTriggerInfoArrayOutput
- func (FunctionTriggerInfoArrayOutput) ElementType() reflect.Type
- func (o FunctionTriggerInfoArrayOutput) Index(i pulumi.IntInput) FunctionTriggerInfoOutput
- func (o FunctionTriggerInfoArrayOutput) ToFunctionTriggerInfoArrayOutput() FunctionTriggerInfoArrayOutput
- func (o FunctionTriggerInfoArrayOutput) ToFunctionTriggerInfoArrayOutputWithContext(ctx context.Context) FunctionTriggerInfoArrayOutput
- type FunctionTriggerInfoInput
- type FunctionTriggerInfoOutput
- func (o FunctionTriggerInfoOutput) CreateTime() pulumi.StringPtrOutput
- func (o FunctionTriggerInfoOutput) CustomArgument() pulumi.StringPtrOutput
- func (FunctionTriggerInfoOutput) ElementType() reflect.Type
- func (o FunctionTriggerInfoOutput) Enable() pulumi.BoolPtrOutput
- func (o FunctionTriggerInfoOutput) ModifyTime() pulumi.StringPtrOutput
- func (o FunctionTriggerInfoOutput) Name() pulumi.StringPtrOutput
- func (o FunctionTriggerInfoOutput) ToFunctionTriggerInfoOutput() FunctionTriggerInfoOutput
- func (o FunctionTriggerInfoOutput) ToFunctionTriggerInfoOutputWithContext(ctx context.Context) FunctionTriggerInfoOutput
- func (o FunctionTriggerInfoOutput) TriggerDesc() pulumi.StringPtrOutput
- func (o FunctionTriggerInfoOutput) Type() pulumi.StringPtrOutput
- type FunctionTriggerInput
- type FunctionTriggerOutput
- func (o FunctionTriggerOutput) CosRegion() pulumi.StringPtrOutput
- func (FunctionTriggerOutput) ElementType() reflect.Type
- func (o FunctionTriggerOutput) Name() pulumi.StringOutput
- func (o FunctionTriggerOutput) ToFunctionTriggerOutput() FunctionTriggerOutput
- func (o FunctionTriggerOutput) ToFunctionTriggerOutputWithContext(ctx context.Context) FunctionTriggerOutput
- func (o FunctionTriggerOutput) TriggerDesc() pulumi.StringOutput
- func (o FunctionTriggerOutput) Type() pulumi.StringOutput
- type GetFunctionsArgs
- type GetFunctionsFunction
- type GetFunctionsFunctionArgs
- type GetFunctionsFunctionArray
- type GetFunctionsFunctionArrayInput
- type GetFunctionsFunctionArrayOutput
- func (GetFunctionsFunctionArrayOutput) ElementType() reflect.Type
- func (o GetFunctionsFunctionArrayOutput) Index(i pulumi.IntInput) GetFunctionsFunctionOutput
- func (o GetFunctionsFunctionArrayOutput) ToGetFunctionsFunctionArrayOutput() GetFunctionsFunctionArrayOutput
- func (o GetFunctionsFunctionArrayOutput) ToGetFunctionsFunctionArrayOutputWithContext(ctx context.Context) GetFunctionsFunctionArrayOutput
- type GetFunctionsFunctionInput
- type GetFunctionsFunctionOutput
- func (o GetFunctionsFunctionOutput) ClsLogsetId() pulumi.StringOutput
- func (o GetFunctionsFunctionOutput) ClsTopicId() pulumi.StringOutput
- func (o GetFunctionsFunctionOutput) CodeError() pulumi.StringOutput
- func (o GetFunctionsFunctionOutput) CodeResult() pulumi.StringOutput
- func (o GetFunctionsFunctionOutput) CodeSize() pulumi.IntOutput
- func (o GetFunctionsFunctionOutput) CreateTime() pulumi.StringOutput
- func (o GetFunctionsFunctionOutput) Description() pulumi.StringOutput
- func (o GetFunctionsFunctionOutput) EipFixed() pulumi.BoolOutput
- func (o GetFunctionsFunctionOutput) Eips() pulumi.StringArrayOutput
- func (GetFunctionsFunctionOutput) ElementType() reflect.Type
- func (o GetFunctionsFunctionOutput) EnableEipConfig() pulumi.BoolOutput
- func (o GetFunctionsFunctionOutput) EnablePublicNet() pulumi.BoolOutput
- func (o GetFunctionsFunctionOutput) Environment() pulumi.MapOutput
- func (o GetFunctionsFunctionOutput) ErrNo() pulumi.IntOutput
- func (o GetFunctionsFunctionOutput) Handler() pulumi.StringOutput
- func (o GetFunctionsFunctionOutput) Host() pulumi.StringOutput
- func (o GetFunctionsFunctionOutput) InstallDependency() pulumi.BoolOutput
- func (o GetFunctionsFunctionOutput) L5Enable() pulumi.BoolOutput
- func (o GetFunctionsFunctionOutput) MemSize() pulumi.IntOutput
- func (o GetFunctionsFunctionOutput) ModifyTime() pulumi.StringOutput
- func (o GetFunctionsFunctionOutput) Name() pulumi.StringOutput
- func (o GetFunctionsFunctionOutput) Namespace() pulumi.StringOutput
- func (o GetFunctionsFunctionOutput) Role() pulumi.StringOutput
- func (o GetFunctionsFunctionOutput) Runtime() pulumi.StringOutput
- func (o GetFunctionsFunctionOutput) Status() pulumi.StringOutput
- func (o GetFunctionsFunctionOutput) StatusDesc() pulumi.StringOutput
- func (o GetFunctionsFunctionOutput) SubnetId() pulumi.StringOutput
- func (o GetFunctionsFunctionOutput) Tags() pulumi.MapOutput
- func (o GetFunctionsFunctionOutput) Timeout() pulumi.IntOutput
- func (o GetFunctionsFunctionOutput) ToGetFunctionsFunctionOutput() GetFunctionsFunctionOutput
- func (o GetFunctionsFunctionOutput) ToGetFunctionsFunctionOutputWithContext(ctx context.Context) GetFunctionsFunctionOutput
- func (o GetFunctionsFunctionOutput) TriggerInfos() GetFunctionsFunctionTriggerInfoArrayOutput
- func (o GetFunctionsFunctionOutput) Vip() pulumi.StringOutput
- func (o GetFunctionsFunctionOutput) VpcId() pulumi.StringOutput
- type GetFunctionsFunctionTriggerInfo
- type GetFunctionsFunctionTriggerInfoArgs
- func (GetFunctionsFunctionTriggerInfoArgs) ElementType() reflect.Type
- func (i GetFunctionsFunctionTriggerInfoArgs) ToGetFunctionsFunctionTriggerInfoOutput() GetFunctionsFunctionTriggerInfoOutput
- func (i GetFunctionsFunctionTriggerInfoArgs) ToGetFunctionsFunctionTriggerInfoOutputWithContext(ctx context.Context) GetFunctionsFunctionTriggerInfoOutput
- type GetFunctionsFunctionTriggerInfoArray
- func (GetFunctionsFunctionTriggerInfoArray) ElementType() reflect.Type
- func (i GetFunctionsFunctionTriggerInfoArray) ToGetFunctionsFunctionTriggerInfoArrayOutput() GetFunctionsFunctionTriggerInfoArrayOutput
- func (i GetFunctionsFunctionTriggerInfoArray) ToGetFunctionsFunctionTriggerInfoArrayOutputWithContext(ctx context.Context) GetFunctionsFunctionTriggerInfoArrayOutput
- type GetFunctionsFunctionTriggerInfoArrayInput
- type GetFunctionsFunctionTriggerInfoArrayOutput
- func (GetFunctionsFunctionTriggerInfoArrayOutput) ElementType() reflect.Type
- func (o GetFunctionsFunctionTriggerInfoArrayOutput) Index(i pulumi.IntInput) GetFunctionsFunctionTriggerInfoOutput
- func (o GetFunctionsFunctionTriggerInfoArrayOutput) ToGetFunctionsFunctionTriggerInfoArrayOutput() GetFunctionsFunctionTriggerInfoArrayOutput
- func (o GetFunctionsFunctionTriggerInfoArrayOutput) ToGetFunctionsFunctionTriggerInfoArrayOutputWithContext(ctx context.Context) GetFunctionsFunctionTriggerInfoArrayOutput
- type GetFunctionsFunctionTriggerInfoInput
- type GetFunctionsFunctionTriggerInfoOutput
- func (o GetFunctionsFunctionTriggerInfoOutput) CreateTime() pulumi.StringOutput
- func (o GetFunctionsFunctionTriggerInfoOutput) CustomArgument() pulumi.StringOutput
- func (GetFunctionsFunctionTriggerInfoOutput) ElementType() reflect.Type
- func (o GetFunctionsFunctionTriggerInfoOutput) Enable() pulumi.BoolOutput
- func (o GetFunctionsFunctionTriggerInfoOutput) ModifyTime() pulumi.StringOutput
- func (o GetFunctionsFunctionTriggerInfoOutput) Name() pulumi.StringOutput
- func (o GetFunctionsFunctionTriggerInfoOutput) ToGetFunctionsFunctionTriggerInfoOutput() GetFunctionsFunctionTriggerInfoOutput
- func (o GetFunctionsFunctionTriggerInfoOutput) ToGetFunctionsFunctionTriggerInfoOutputWithContext(ctx context.Context) GetFunctionsFunctionTriggerInfoOutput
- func (o GetFunctionsFunctionTriggerInfoOutput) TriggerDesc() pulumi.StringOutput
- func (o GetFunctionsFunctionTriggerInfoOutput) Type() pulumi.StringOutput
- type GetFunctionsOutputArgs
- type GetFunctionsResult
- type GetFunctionsResultOutput
- func (o GetFunctionsResultOutput) Description() pulumi.StringPtrOutput
- func (GetFunctionsResultOutput) ElementType() reflect.Type
- func (o GetFunctionsResultOutput) Functions() GetFunctionsFunctionArrayOutput
- func (o GetFunctionsResultOutput) Id() pulumi.StringOutput
- func (o GetFunctionsResultOutput) Name() pulumi.StringPtrOutput
- func (o GetFunctionsResultOutput) Namespace() pulumi.StringPtrOutput
- func (o GetFunctionsResultOutput) ResultOutputFile() pulumi.StringPtrOutput
- func (o GetFunctionsResultOutput) Tags() pulumi.MapOutput
- func (o GetFunctionsResultOutput) ToGetFunctionsResultOutput() GetFunctionsResultOutput
- func (o GetFunctionsResultOutput) ToGetFunctionsResultOutputWithContext(ctx context.Context) GetFunctionsResultOutput
- type GetLogsArgs
- type GetLogsLog
- type GetLogsLogArgs
- type GetLogsLogArray
- type GetLogsLogArrayInput
- type GetLogsLogArrayOutput
- func (GetLogsLogArrayOutput) ElementType() reflect.Type
- func (o GetLogsLogArrayOutput) Index(i pulumi.IntInput) GetLogsLogOutput
- func (o GetLogsLogArrayOutput) ToGetLogsLogArrayOutput() GetLogsLogArrayOutput
- func (o GetLogsLogArrayOutput) ToGetLogsLogArrayOutputWithContext(ctx context.Context) GetLogsLogArrayOutput
- type GetLogsLogInput
- type GetLogsLogOutput
- func (o GetLogsLogOutput) BillDuration() pulumi.IntOutput
- func (o GetLogsLogOutput) Duration() pulumi.Float64Output
- func (GetLogsLogOutput) ElementType() reflect.Type
- func (o GetLogsLogOutput) FunctionName() pulumi.StringOutput
- func (o GetLogsLogOutput) InvokeFinished() pulumi.IntOutput
- func (o GetLogsLogOutput) Level() pulumi.StringOutput
- func (o GetLogsLogOutput) Log() pulumi.StringOutput
- func (o GetLogsLogOutput) MemUsage() pulumi.IntOutput
- func (o GetLogsLogOutput) RequestId() pulumi.StringOutput
- func (o GetLogsLogOutput) RetCode() pulumi.IntOutput
- func (o GetLogsLogOutput) RetMsg() pulumi.StringOutput
- func (o GetLogsLogOutput) Source() pulumi.StringOutput
- func (o GetLogsLogOutput) StartTime() pulumi.StringOutput
- func (o GetLogsLogOutput) ToGetLogsLogOutput() GetLogsLogOutput
- func (o GetLogsLogOutput) ToGetLogsLogOutputWithContext(ctx context.Context) GetLogsLogOutput
- type GetLogsOutputArgs
- type GetLogsResult
- type GetLogsResultOutput
- func (GetLogsResultOutput) ElementType() reflect.Type
- func (o GetLogsResultOutput) EndTime() pulumi.StringPtrOutput
- func (o GetLogsResultOutput) FunctionName() pulumi.StringOutput
- func (o GetLogsResultOutput) Id() pulumi.StringOutput
- func (o GetLogsResultOutput) InvokeRequestId() pulumi.StringPtrOutput
- func (o GetLogsResultOutput) Limit() pulumi.IntPtrOutput
- func (o GetLogsResultOutput) Logs() GetLogsLogArrayOutput
- func (o GetLogsResultOutput) Namespace() pulumi.StringPtrOutput
- func (o GetLogsResultOutput) Offset() pulumi.IntPtrOutput
- func (o GetLogsResultOutput) Order() pulumi.StringPtrOutput
- func (o GetLogsResultOutput) OrderBy() pulumi.StringPtrOutput
- func (o GetLogsResultOutput) ResultOutputFile() pulumi.StringPtrOutput
- func (o GetLogsResultOutput) RetCode() pulumi.StringPtrOutput
- func (o GetLogsResultOutput) StartTime() pulumi.StringPtrOutput
- func (o GetLogsResultOutput) ToGetLogsResultOutput() GetLogsResultOutput
- func (o GetLogsResultOutput) ToGetLogsResultOutputWithContext(ctx context.Context) GetLogsResultOutput
- type GetNamespacesArgs
- type GetNamespacesNamespace
- type GetNamespacesNamespaceArgs
- type GetNamespacesNamespaceArray
- func (GetNamespacesNamespaceArray) ElementType() reflect.Type
- func (i GetNamespacesNamespaceArray) ToGetNamespacesNamespaceArrayOutput() GetNamespacesNamespaceArrayOutput
- func (i GetNamespacesNamespaceArray) ToGetNamespacesNamespaceArrayOutputWithContext(ctx context.Context) GetNamespacesNamespaceArrayOutput
- type GetNamespacesNamespaceArrayInput
- type GetNamespacesNamespaceArrayOutput
- func (GetNamespacesNamespaceArrayOutput) ElementType() reflect.Type
- func (o GetNamespacesNamespaceArrayOutput) Index(i pulumi.IntInput) GetNamespacesNamespaceOutput
- func (o GetNamespacesNamespaceArrayOutput) ToGetNamespacesNamespaceArrayOutput() GetNamespacesNamespaceArrayOutput
- func (o GetNamespacesNamespaceArrayOutput) ToGetNamespacesNamespaceArrayOutputWithContext(ctx context.Context) GetNamespacesNamespaceArrayOutput
- type GetNamespacesNamespaceInput
- type GetNamespacesNamespaceOutput
- func (o GetNamespacesNamespaceOutput) CreateTime() pulumi.StringOutput
- func (o GetNamespacesNamespaceOutput) Description() pulumi.StringOutput
- func (GetNamespacesNamespaceOutput) ElementType() reflect.Type
- func (o GetNamespacesNamespaceOutput) ModifyTime() pulumi.StringOutput
- func (o GetNamespacesNamespaceOutput) Namespace() pulumi.StringOutput
- func (o GetNamespacesNamespaceOutput) ToGetNamespacesNamespaceOutput() GetNamespacesNamespaceOutput
- func (o GetNamespacesNamespaceOutput) ToGetNamespacesNamespaceOutputWithContext(ctx context.Context) GetNamespacesNamespaceOutput
- func (o GetNamespacesNamespaceOutput) Type() pulumi.StringOutput
- type GetNamespacesOutputArgs
- type GetNamespacesResult
- type GetNamespacesResultOutput
- func (o GetNamespacesResultOutput) Description() pulumi.StringPtrOutput
- func (GetNamespacesResultOutput) ElementType() reflect.Type
- func (o GetNamespacesResultOutput) Id() pulumi.StringOutput
- func (o GetNamespacesResultOutput) Namespace() pulumi.StringPtrOutput
- func (o GetNamespacesResultOutput) Namespaces() GetNamespacesNamespaceArrayOutput
- func (o GetNamespacesResultOutput) ResultOutputFile() pulumi.StringPtrOutput
- func (o GetNamespacesResultOutput) ToGetNamespacesResultOutput() GetNamespacesResultOutput
- func (o GetNamespacesResultOutput) ToGetNamespacesResultOutputWithContext(ctx context.Context) GetNamespacesResultOutput
- type Layer
- type LayerArgs
- type LayerArray
- type LayerArrayInput
- type LayerArrayOutput
- type LayerContent
- type LayerContentArgs
- func (LayerContentArgs) ElementType() reflect.Type
- func (i LayerContentArgs) ToLayerContentOutput() LayerContentOutput
- func (i LayerContentArgs) ToLayerContentOutputWithContext(ctx context.Context) LayerContentOutput
- func (i LayerContentArgs) ToLayerContentPtrOutput() LayerContentPtrOutput
- func (i LayerContentArgs) ToLayerContentPtrOutputWithContext(ctx context.Context) LayerContentPtrOutput
- type LayerContentInput
- type LayerContentOutput
- func (o LayerContentOutput) CosBucketName() pulumi.StringPtrOutput
- func (o LayerContentOutput) CosBucketRegion() pulumi.StringPtrOutput
- func (o LayerContentOutput) CosObjectName() pulumi.StringPtrOutput
- func (LayerContentOutput) ElementType() reflect.Type
- func (o LayerContentOutput) ToLayerContentOutput() LayerContentOutput
- func (o LayerContentOutput) ToLayerContentOutputWithContext(ctx context.Context) LayerContentOutput
- func (o LayerContentOutput) ToLayerContentPtrOutput() LayerContentPtrOutput
- func (o LayerContentOutput) ToLayerContentPtrOutputWithContext(ctx context.Context) LayerContentPtrOutput
- func (o LayerContentOutput) ZipFile() pulumi.StringPtrOutput
- type LayerContentPtrInput
- type LayerContentPtrOutput
- func (o LayerContentPtrOutput) CosBucketName() pulumi.StringPtrOutput
- func (o LayerContentPtrOutput) CosBucketRegion() pulumi.StringPtrOutput
- func (o LayerContentPtrOutput) CosObjectName() pulumi.StringPtrOutput
- func (o LayerContentPtrOutput) Elem() LayerContentOutput
- func (LayerContentPtrOutput) ElementType() reflect.Type
- func (o LayerContentPtrOutput) ToLayerContentPtrOutput() LayerContentPtrOutput
- func (o LayerContentPtrOutput) ToLayerContentPtrOutputWithContext(ctx context.Context) LayerContentPtrOutput
- func (o LayerContentPtrOutput) ZipFile() pulumi.StringPtrOutput
- type LayerInput
- type LayerMap
- type LayerMapInput
- type LayerMapOutput
- type LayerOutput
- func (o LayerOutput) CodeSha256() pulumi.StringOutput
- func (o LayerOutput) CompatibleRuntimes() pulumi.StringArrayOutput
- func (o LayerOutput) Content() LayerContentOutput
- func (o LayerOutput) CreateTime() pulumi.StringOutput
- func (o LayerOutput) Description() pulumi.StringPtrOutput
- func (LayerOutput) ElementType() reflect.Type
- func (o LayerOutput) LayerName() pulumi.StringOutput
- func (o LayerOutput) LayerVersion() pulumi.IntOutput
- func (o LayerOutput) LicenseInfo() pulumi.StringPtrOutput
- func (o LayerOutput) Location() pulumi.StringOutput
- func (o LayerOutput) Status() pulumi.StringOutput
- func (o LayerOutput) ToLayerOutput() LayerOutput
- func (o LayerOutput) ToLayerOutputWithContext(ctx context.Context) LayerOutput
- type LayerState
- type Namespace
- type NamespaceArgs
- type NamespaceArray
- type NamespaceArrayInput
- type NamespaceArrayOutput
- func (NamespaceArrayOutput) ElementType() reflect.Type
- func (o NamespaceArrayOutput) Index(i pulumi.IntInput) NamespaceOutput
- func (o NamespaceArrayOutput) ToNamespaceArrayOutput() NamespaceArrayOutput
- func (o NamespaceArrayOutput) ToNamespaceArrayOutputWithContext(ctx context.Context) NamespaceArrayOutput
- type NamespaceInput
- type NamespaceMap
- type NamespaceMapInput
- type NamespaceMapOutput
- type NamespaceOutput
- func (o NamespaceOutput) CreateTime() pulumi.StringOutput
- func (o NamespaceOutput) Description() pulumi.StringPtrOutput
- func (NamespaceOutput) ElementType() reflect.Type
- func (o NamespaceOutput) ModifyTime() pulumi.StringOutput
- func (o NamespaceOutput) Namespace() pulumi.StringOutput
- func (o NamespaceOutput) ToNamespaceOutput() NamespaceOutput
- func (o NamespaceOutput) ToNamespaceOutputWithContext(ctx context.Context) NamespaceOutput
- func (o NamespaceOutput) Type() pulumi.StringOutput
- type NamespaceState
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Function ¶
type Function struct { pulumi.CustomResourceState // List of CFS configurations. CfsConfigs FunctionCfsConfigArrayOutput `pulumi:"cfsConfigs"` // cls logset id of the SCF function. ClsLogsetId pulumi.StringOutput `pulumi:"clsLogsetId"` // cls topic id of the SCF function. ClsTopicId pulumi.StringOutput `pulumi:"clsTopicId"` // SCF function code error message. CodeError pulumi.StringOutput `pulumi:"codeError"` // SCF function code is correct. CodeResult pulumi.StringOutput `pulumi:"codeResult"` // SCF function code size, unit is M. CodeSize pulumi.IntOutput `pulumi:"codeSize"` // Cos bucket name of the SCF function, such as `cos-1234567890`, conflict with `zipFile`. CosBucketName pulumi.StringPtrOutput `pulumi:"cosBucketName"` // Cos bucket region of the SCF function, conflict with `zipFile`. CosBucketRegion pulumi.StringPtrOutput `pulumi:"cosBucketRegion"` // Cos object name of the SCF function, should have suffix `.zip` or `.jar`, conflict with `zipFile`. CosObjectName pulumi.StringPtrOutput `pulumi:"cosObjectName"` // Description of the SCF function. Description supports English letters, numbers, spaces, commas, newlines, periods and Chinese, the maximum length is 1000. Description pulumi.StringPtrOutput `pulumi:"description"` // Whether EIP is a fixed IP. EipFixed pulumi.BoolOutput `pulumi:"eipFixed"` // SCF function EIP list. Eips pulumi.StringArrayOutput `pulumi:"eips"` // Indicates whether EIP config set to `ENABLE` when `enablePublicNet` was true. EnableEipConfig pulumi.BoolPtrOutput `pulumi:"enableEipConfig"` // Indicates whether public net config enabled. NOTE: only `vpcId` specified can disable public net config. EnablePublicNet pulumi.BoolPtrOutput `pulumi:"enablePublicNet"` // Environment of the SCF function. Environment pulumi.MapOutput `pulumi:"environment"` // SCF function code error code. ErrNo pulumi.IntOutput `pulumi:"errNo"` // Handler of the SCF function. The format of name is `<filename>.<method_name>`, and it supports 26 English letters, numbers, connectors, and underscores, it should start with a letter. The last character cannot be `-` or `_`. Available length is 2-60. Handler pulumi.StringOutput `pulumi:"handler"` // SCF function domain name. Host pulumi.StringOutput `pulumi:"host"` // Image of the SCF function, conflict with “. ImageConfigs FunctionImageConfigArrayOutput `pulumi:"imageConfigs"` // Whether to automatically install dependencies. InstallDependency pulumi.BoolOutput `pulumi:"installDependency"` // Enable L5 for SCF function, default is `false`. L5Enable pulumi.BoolPtrOutput `pulumi:"l5Enable"` // The list of association layers. Layers FunctionLayerArrayOutput `pulumi:"layers"` // Memory size of the SCF function, unit is MB. The default is `128`MB. The ladder is 128M. MemSize pulumi.IntPtrOutput `pulumi:"memSize"` // Modify time of SCF function trigger. ModifyTime pulumi.StringOutput `pulumi:"modifyTime"` // Name of the SCF function. Name supports 26 English letters, numbers, connectors, and underscores, it should start with a letter. The last character cannot be `-` or `_`. Available length is 2-60. Name pulumi.StringOutput `pulumi:"name"` // Namespace of the SCF function, default is `default`. Namespace pulumi.StringPtrOutput `pulumi:"namespace"` // Role of the SCF function. Role pulumi.StringPtrOutput `pulumi:"role"` // Runtime of the SCF function, only supports `Python2.7`, `Python3.6`, `Nodejs6.10`, `Nodejs8.9`, `Nodejs10.15`, `PHP5`, `PHP7`, `Golang1`, and `Java8`. Runtime pulumi.StringOutput `pulumi:"runtime"` // SCF function status. Status pulumi.StringOutput `pulumi:"status"` // SCF status description. StatusDesc pulumi.StringOutput `pulumi:"statusDesc"` // Subnet ID of the SCF function. SubnetId pulumi.StringPtrOutput `pulumi:"subnetId"` // Tags of the SCF function. Tags pulumi.MapOutput `pulumi:"tags"` // Timeout of the SCF function, unit is second. Default `3`. Available value is 1-900. Timeout pulumi.IntPtrOutput `pulumi:"timeout"` // SCF trigger details list. Each element contains the following attributes: TriggerInfos FunctionTriggerInfoArrayOutput `pulumi:"triggerInfos"` // Trigger list of the SCF function, note that if you modify the trigger list, all existing triggers will be deleted, and then create triggers in the new list. Each element contains the following attributes: Triggers FunctionTriggerArrayOutput `pulumi:"triggers"` // SCF function vip. Vip pulumi.StringOutput `pulumi:"vip"` // VPC ID of the SCF function. VpcId pulumi.StringPtrOutput `pulumi:"vpcId"` // Zip file of the SCF function, conflict with `cosBucketName`, `cosObjectName`, `cosBucketRegion`. ZipFile pulumi.StringPtrOutput `pulumi:"zipFile"` }
Provide a resource to create a SCF function.
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi" "github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Scf"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := Scf.NewFunction(ctx, "foo", &Scf.FunctionArgs{ CosBucketName: pulumi.String("scf-code-1234567890"), CosBucketRegion: pulumi.String("ap-guangzhou"), CosObjectName: pulumi.String("code.zip"), Handler: pulumi.String("main.do_it"), Runtime: pulumi.String("Python3.6"), }) if err != nil { return err } return nil }) }
```
Using CFS config ¶
```go package main
import (
"github.com/pulumi/pulumi-tencentcloud/sdk/go/tencentcloud/Scf" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" "github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Scf"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := Scf.NewFunction(ctx, "foo", &Scf.FunctionArgs{ CfsConfigs: scf.FunctionCfsConfigArray{ &scf.FunctionCfsConfigArgs{ CfsId: pulumi.String("cfs-xxxxxxxx"), LocalMountDir: pulumi.String("/mnt"), MountInsId: pulumi.String("cfs-xxxxxxxx"), RemoteMountDir: pulumi.String("/"), UserGroupId: pulumi.String("10000"), UserId: pulumi.String("10000"), }, }, Handler: pulumi.String("main.do_it"), Runtime: pulumi.String("Python3.6"), }) if err != nil { return err } return nil }) }
```
## Import
SCF function can be imported, e.g.
```sh
$ pulumi import tencentcloud:Scf/function:Function test default+test
```
func GetFunction ¶
func GetFunction(ctx *pulumi.Context, name string, id pulumi.IDInput, state *FunctionState, opts ...pulumi.ResourceOption) (*Function, error)
GetFunction gets an existing Function resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewFunction ¶
func NewFunction(ctx *pulumi.Context, name string, args *FunctionArgs, opts ...pulumi.ResourceOption) (*Function, error)
NewFunction registers a new resource with the given unique name, arguments, and options.
func (*Function) ElementType ¶
func (*Function) ToFunctionOutput ¶
func (i *Function) ToFunctionOutput() FunctionOutput
func (*Function) ToFunctionOutputWithContext ¶
func (i *Function) ToFunctionOutputWithContext(ctx context.Context) FunctionOutput
type FunctionArgs ¶
type FunctionArgs struct { // List of CFS configurations. CfsConfigs FunctionCfsConfigArrayInput // cls logset id of the SCF function. ClsLogsetId pulumi.StringPtrInput // cls topic id of the SCF function. ClsTopicId pulumi.StringPtrInput // Cos bucket name of the SCF function, such as `cos-1234567890`, conflict with `zipFile`. CosBucketName pulumi.StringPtrInput // Cos bucket region of the SCF function, conflict with `zipFile`. CosBucketRegion pulumi.StringPtrInput // Cos object name of the SCF function, should have suffix `.zip` or `.jar`, conflict with `zipFile`. CosObjectName pulumi.StringPtrInput // Description of the SCF function. Description supports English letters, numbers, spaces, commas, newlines, periods and Chinese, the maximum length is 1000. Description pulumi.StringPtrInput // Indicates whether EIP config set to `ENABLE` when `enablePublicNet` was true. EnableEipConfig pulumi.BoolPtrInput // Indicates whether public net config enabled. NOTE: only `vpcId` specified can disable public net config. EnablePublicNet pulumi.BoolPtrInput // Environment of the SCF function. Environment pulumi.MapInput // Handler of the SCF function. The format of name is `<filename>.<method_name>`, and it supports 26 English letters, numbers, connectors, and underscores, it should start with a letter. The last character cannot be `-` or `_`. Available length is 2-60. Handler pulumi.StringInput // Image of the SCF function, conflict with “. ImageConfigs FunctionImageConfigArrayInput // Enable L5 for SCF function, default is `false`. L5Enable pulumi.BoolPtrInput // The list of association layers. Layers FunctionLayerArrayInput // Memory size of the SCF function, unit is MB. The default is `128`MB. The ladder is 128M. MemSize pulumi.IntPtrInput // Name of the SCF function. Name supports 26 English letters, numbers, connectors, and underscores, it should start with a letter. The last character cannot be `-` or `_`. Available length is 2-60. Name pulumi.StringPtrInput // Namespace of the SCF function, default is `default`. Namespace pulumi.StringPtrInput // Role of the SCF function. Role pulumi.StringPtrInput // Runtime of the SCF function, only supports `Python2.7`, `Python3.6`, `Nodejs6.10`, `Nodejs8.9`, `Nodejs10.15`, `PHP5`, `PHP7`, `Golang1`, and `Java8`. Runtime pulumi.StringInput // Subnet ID of the SCF function. SubnetId pulumi.StringPtrInput // Tags of the SCF function. Tags pulumi.MapInput // Timeout of the SCF function, unit is second. Default `3`. Available value is 1-900. Timeout pulumi.IntPtrInput // Trigger list of the SCF function, note that if you modify the trigger list, all existing triggers will be deleted, and then create triggers in the new list. Each element contains the following attributes: Triggers FunctionTriggerArrayInput // VPC ID of the SCF function. VpcId pulumi.StringPtrInput // Zip file of the SCF function, conflict with `cosBucketName`, `cosObjectName`, `cosBucketRegion`. ZipFile 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 FunctionCfsConfig ¶
type FunctionCfsConfig struct { // File system instance ID. CfsId string `pulumi:"cfsId"` IpAddress *string `pulumi:"ipAddress"` // Local mount directory. LocalMountDir string `pulumi:"localMountDir"` // File system mount instance ID. MountInsId string `pulumi:"mountInsId"` MountSubnetId *string `pulumi:"mountSubnetId"` MountVpcId *string `pulumi:"mountVpcId"` // Remote mount directory. RemoteMountDir string `pulumi:"remoteMountDir"` // ID of user group. UserGroupId string `pulumi:"userGroupId"` // ID of user. UserId string `pulumi:"userId"` }
type FunctionCfsConfigArgs ¶
type FunctionCfsConfigArgs struct { // File system instance ID. CfsId pulumi.StringInput `pulumi:"cfsId"` IpAddress pulumi.StringPtrInput `pulumi:"ipAddress"` // Local mount directory. LocalMountDir pulumi.StringInput `pulumi:"localMountDir"` // File system mount instance ID. MountInsId pulumi.StringInput `pulumi:"mountInsId"` MountSubnetId pulumi.StringPtrInput `pulumi:"mountSubnetId"` MountVpcId pulumi.StringPtrInput `pulumi:"mountVpcId"` // Remote mount directory. RemoteMountDir pulumi.StringInput `pulumi:"remoteMountDir"` // ID of user group. UserGroupId pulumi.StringInput `pulumi:"userGroupId"` // ID of user. UserId pulumi.StringInput `pulumi:"userId"` }
func (FunctionCfsConfigArgs) ElementType ¶
func (FunctionCfsConfigArgs) ElementType() reflect.Type
func (FunctionCfsConfigArgs) ToFunctionCfsConfigOutput ¶
func (i FunctionCfsConfigArgs) ToFunctionCfsConfigOutput() FunctionCfsConfigOutput
func (FunctionCfsConfigArgs) ToFunctionCfsConfigOutputWithContext ¶
func (i FunctionCfsConfigArgs) ToFunctionCfsConfigOutputWithContext(ctx context.Context) FunctionCfsConfigOutput
type FunctionCfsConfigArray ¶
type FunctionCfsConfigArray []FunctionCfsConfigInput
func (FunctionCfsConfigArray) ElementType ¶
func (FunctionCfsConfigArray) ElementType() reflect.Type
func (FunctionCfsConfigArray) ToFunctionCfsConfigArrayOutput ¶
func (i FunctionCfsConfigArray) ToFunctionCfsConfigArrayOutput() FunctionCfsConfigArrayOutput
func (FunctionCfsConfigArray) ToFunctionCfsConfigArrayOutputWithContext ¶
func (i FunctionCfsConfigArray) ToFunctionCfsConfigArrayOutputWithContext(ctx context.Context) FunctionCfsConfigArrayOutput
type FunctionCfsConfigArrayInput ¶
type FunctionCfsConfigArrayInput interface { pulumi.Input ToFunctionCfsConfigArrayOutput() FunctionCfsConfigArrayOutput ToFunctionCfsConfigArrayOutputWithContext(context.Context) FunctionCfsConfigArrayOutput }
FunctionCfsConfigArrayInput is an input type that accepts FunctionCfsConfigArray and FunctionCfsConfigArrayOutput values. You can construct a concrete instance of `FunctionCfsConfigArrayInput` via:
FunctionCfsConfigArray{ FunctionCfsConfigArgs{...} }
type FunctionCfsConfigArrayOutput ¶
type FunctionCfsConfigArrayOutput struct{ *pulumi.OutputState }
func (FunctionCfsConfigArrayOutput) ElementType ¶
func (FunctionCfsConfigArrayOutput) ElementType() reflect.Type
func (FunctionCfsConfigArrayOutput) Index ¶
func (o FunctionCfsConfigArrayOutput) Index(i pulumi.IntInput) FunctionCfsConfigOutput
func (FunctionCfsConfigArrayOutput) ToFunctionCfsConfigArrayOutput ¶
func (o FunctionCfsConfigArrayOutput) ToFunctionCfsConfigArrayOutput() FunctionCfsConfigArrayOutput
func (FunctionCfsConfigArrayOutput) ToFunctionCfsConfigArrayOutputWithContext ¶
func (o FunctionCfsConfigArrayOutput) ToFunctionCfsConfigArrayOutputWithContext(ctx context.Context) FunctionCfsConfigArrayOutput
type FunctionCfsConfigInput ¶
type FunctionCfsConfigInput interface { pulumi.Input ToFunctionCfsConfigOutput() FunctionCfsConfigOutput ToFunctionCfsConfigOutputWithContext(context.Context) FunctionCfsConfigOutput }
FunctionCfsConfigInput is an input type that accepts FunctionCfsConfigArgs and FunctionCfsConfigOutput values. You can construct a concrete instance of `FunctionCfsConfigInput` via:
FunctionCfsConfigArgs{...}
type FunctionCfsConfigOutput ¶
type FunctionCfsConfigOutput struct{ *pulumi.OutputState }
func (FunctionCfsConfigOutput) CfsId ¶
func (o FunctionCfsConfigOutput) CfsId() pulumi.StringOutput
File system instance ID.
func (FunctionCfsConfigOutput) ElementType ¶
func (FunctionCfsConfigOutput) ElementType() reflect.Type
func (FunctionCfsConfigOutput) IpAddress ¶
func (o FunctionCfsConfigOutput) IpAddress() pulumi.StringPtrOutput
func (FunctionCfsConfigOutput) LocalMountDir ¶
func (o FunctionCfsConfigOutput) LocalMountDir() pulumi.StringOutput
Local mount directory.
func (FunctionCfsConfigOutput) MountInsId ¶
func (o FunctionCfsConfigOutput) MountInsId() pulumi.StringOutput
File system mount instance ID.
func (FunctionCfsConfigOutput) MountSubnetId ¶
func (o FunctionCfsConfigOutput) MountSubnetId() pulumi.StringPtrOutput
func (FunctionCfsConfigOutput) MountVpcId ¶
func (o FunctionCfsConfigOutput) MountVpcId() pulumi.StringPtrOutput
func (FunctionCfsConfigOutput) RemoteMountDir ¶
func (o FunctionCfsConfigOutput) RemoteMountDir() pulumi.StringOutput
Remote mount directory.
func (FunctionCfsConfigOutput) ToFunctionCfsConfigOutput ¶
func (o FunctionCfsConfigOutput) ToFunctionCfsConfigOutput() FunctionCfsConfigOutput
func (FunctionCfsConfigOutput) ToFunctionCfsConfigOutputWithContext ¶
func (o FunctionCfsConfigOutput) ToFunctionCfsConfigOutputWithContext(ctx context.Context) FunctionCfsConfigOutput
func (FunctionCfsConfigOutput) UserGroupId ¶
func (o FunctionCfsConfigOutput) UserGroupId() pulumi.StringOutput
ID of user group.
func (FunctionCfsConfigOutput) UserId ¶
func (o FunctionCfsConfigOutput) UserId() pulumi.StringOutput
ID of user.
type FunctionImageConfig ¶
type FunctionImageConfig struct { // the parameters of command. Args *string `pulumi:"args"` // The command of entrypoint. Command *string `pulumi:"command"` // The entrypoint of app. EntryPoint *string `pulumi:"entryPoint"` // The image type. personal or enterprise. ImageType string `pulumi:"imageType"` // The uri of image. ImageUri string `pulumi:"imageUri"` // The registry id of TCR. When image type is enterprise, it must be set. RegistryId *string `pulumi:"registryId"` }
type FunctionImageConfigArgs ¶
type FunctionImageConfigArgs struct { // the parameters of command. Args pulumi.StringPtrInput `pulumi:"args"` // The command of entrypoint. Command pulumi.StringPtrInput `pulumi:"command"` // The entrypoint of app. EntryPoint pulumi.StringPtrInput `pulumi:"entryPoint"` // The image type. personal or enterprise. ImageType pulumi.StringInput `pulumi:"imageType"` // The uri of image. ImageUri pulumi.StringInput `pulumi:"imageUri"` // The registry id of TCR. When image type is enterprise, it must be set. RegistryId pulumi.StringPtrInput `pulumi:"registryId"` }
func (FunctionImageConfigArgs) ElementType ¶
func (FunctionImageConfigArgs) ElementType() reflect.Type
func (FunctionImageConfigArgs) ToFunctionImageConfigOutput ¶
func (i FunctionImageConfigArgs) ToFunctionImageConfigOutput() FunctionImageConfigOutput
func (FunctionImageConfigArgs) ToFunctionImageConfigOutputWithContext ¶
func (i FunctionImageConfigArgs) ToFunctionImageConfigOutputWithContext(ctx context.Context) FunctionImageConfigOutput
type FunctionImageConfigArray ¶
type FunctionImageConfigArray []FunctionImageConfigInput
func (FunctionImageConfigArray) ElementType ¶
func (FunctionImageConfigArray) ElementType() reflect.Type
func (FunctionImageConfigArray) ToFunctionImageConfigArrayOutput ¶
func (i FunctionImageConfigArray) ToFunctionImageConfigArrayOutput() FunctionImageConfigArrayOutput
func (FunctionImageConfigArray) ToFunctionImageConfigArrayOutputWithContext ¶
func (i FunctionImageConfigArray) ToFunctionImageConfigArrayOutputWithContext(ctx context.Context) FunctionImageConfigArrayOutput
type FunctionImageConfigArrayInput ¶
type FunctionImageConfigArrayInput interface { pulumi.Input ToFunctionImageConfigArrayOutput() FunctionImageConfigArrayOutput ToFunctionImageConfigArrayOutputWithContext(context.Context) FunctionImageConfigArrayOutput }
FunctionImageConfigArrayInput is an input type that accepts FunctionImageConfigArray and FunctionImageConfigArrayOutput values. You can construct a concrete instance of `FunctionImageConfigArrayInput` via:
FunctionImageConfigArray{ FunctionImageConfigArgs{...} }
type FunctionImageConfigArrayOutput ¶
type FunctionImageConfigArrayOutput struct{ *pulumi.OutputState }
func (FunctionImageConfigArrayOutput) ElementType ¶
func (FunctionImageConfigArrayOutput) ElementType() reflect.Type
func (FunctionImageConfigArrayOutput) Index ¶
func (o FunctionImageConfigArrayOutput) Index(i pulumi.IntInput) FunctionImageConfigOutput
func (FunctionImageConfigArrayOutput) ToFunctionImageConfigArrayOutput ¶
func (o FunctionImageConfigArrayOutput) ToFunctionImageConfigArrayOutput() FunctionImageConfigArrayOutput
func (FunctionImageConfigArrayOutput) ToFunctionImageConfigArrayOutputWithContext ¶
func (o FunctionImageConfigArrayOutput) ToFunctionImageConfigArrayOutputWithContext(ctx context.Context) FunctionImageConfigArrayOutput
type FunctionImageConfigInput ¶
type FunctionImageConfigInput interface { pulumi.Input ToFunctionImageConfigOutput() FunctionImageConfigOutput ToFunctionImageConfigOutputWithContext(context.Context) FunctionImageConfigOutput }
FunctionImageConfigInput is an input type that accepts FunctionImageConfigArgs and FunctionImageConfigOutput values. You can construct a concrete instance of `FunctionImageConfigInput` via:
FunctionImageConfigArgs{...}
type FunctionImageConfigOutput ¶
type FunctionImageConfigOutput struct{ *pulumi.OutputState }
func (FunctionImageConfigOutput) Args ¶
func (o FunctionImageConfigOutput) Args() pulumi.StringPtrOutput
the parameters of command.
func (FunctionImageConfigOutput) Command ¶
func (o FunctionImageConfigOutput) Command() pulumi.StringPtrOutput
The command of entrypoint.
func (FunctionImageConfigOutput) ElementType ¶
func (FunctionImageConfigOutput) ElementType() reflect.Type
func (FunctionImageConfigOutput) EntryPoint ¶
func (o FunctionImageConfigOutput) EntryPoint() pulumi.StringPtrOutput
The entrypoint of app.
func (FunctionImageConfigOutput) ImageType ¶
func (o FunctionImageConfigOutput) ImageType() pulumi.StringOutput
The image type. personal or enterprise.
func (FunctionImageConfigOutput) ImageUri ¶
func (o FunctionImageConfigOutput) ImageUri() pulumi.StringOutput
The uri of image.
func (FunctionImageConfigOutput) RegistryId ¶
func (o FunctionImageConfigOutput) RegistryId() pulumi.StringPtrOutput
The registry id of TCR. When image type is enterprise, it must be set.
func (FunctionImageConfigOutput) ToFunctionImageConfigOutput ¶
func (o FunctionImageConfigOutput) ToFunctionImageConfigOutput() FunctionImageConfigOutput
func (FunctionImageConfigOutput) ToFunctionImageConfigOutputWithContext ¶
func (o FunctionImageConfigOutput) ToFunctionImageConfigOutputWithContext(ctx context.Context) FunctionImageConfigOutput
type FunctionInput ¶
type FunctionInput interface { pulumi.Input ToFunctionOutput() FunctionOutput ToFunctionOutputWithContext(ctx context.Context) FunctionOutput }
type FunctionLayer ¶
type FunctionLayerArgs ¶
type FunctionLayerArgs struct { // The name of Layer. LayerName pulumi.StringInput `pulumi:"layerName"` // The version of layer. LayerVersion pulumi.IntInput `pulumi:"layerVersion"` }
func (FunctionLayerArgs) ElementType ¶
func (FunctionLayerArgs) ElementType() reflect.Type
func (FunctionLayerArgs) ToFunctionLayerOutput ¶
func (i FunctionLayerArgs) ToFunctionLayerOutput() FunctionLayerOutput
func (FunctionLayerArgs) ToFunctionLayerOutputWithContext ¶
func (i FunctionLayerArgs) ToFunctionLayerOutputWithContext(ctx context.Context) FunctionLayerOutput
type FunctionLayerArray ¶
type FunctionLayerArray []FunctionLayerInput
func (FunctionLayerArray) ElementType ¶
func (FunctionLayerArray) ElementType() reflect.Type
func (FunctionLayerArray) ToFunctionLayerArrayOutput ¶
func (i FunctionLayerArray) ToFunctionLayerArrayOutput() FunctionLayerArrayOutput
func (FunctionLayerArray) ToFunctionLayerArrayOutputWithContext ¶
func (i FunctionLayerArray) ToFunctionLayerArrayOutputWithContext(ctx context.Context) FunctionLayerArrayOutput
type FunctionLayerArrayInput ¶
type FunctionLayerArrayInput interface { pulumi.Input ToFunctionLayerArrayOutput() FunctionLayerArrayOutput ToFunctionLayerArrayOutputWithContext(context.Context) FunctionLayerArrayOutput }
FunctionLayerArrayInput is an input type that accepts FunctionLayerArray and FunctionLayerArrayOutput values. You can construct a concrete instance of `FunctionLayerArrayInput` via:
FunctionLayerArray{ FunctionLayerArgs{...} }
type FunctionLayerArrayOutput ¶
type FunctionLayerArrayOutput struct{ *pulumi.OutputState }
func (FunctionLayerArrayOutput) ElementType ¶
func (FunctionLayerArrayOutput) ElementType() reflect.Type
func (FunctionLayerArrayOutput) Index ¶
func (o FunctionLayerArrayOutput) Index(i pulumi.IntInput) FunctionLayerOutput
func (FunctionLayerArrayOutput) ToFunctionLayerArrayOutput ¶
func (o FunctionLayerArrayOutput) ToFunctionLayerArrayOutput() FunctionLayerArrayOutput
func (FunctionLayerArrayOutput) ToFunctionLayerArrayOutputWithContext ¶
func (o FunctionLayerArrayOutput) ToFunctionLayerArrayOutputWithContext(ctx context.Context) FunctionLayerArrayOutput
type FunctionLayerInput ¶
type FunctionLayerInput interface { pulumi.Input ToFunctionLayerOutput() FunctionLayerOutput ToFunctionLayerOutputWithContext(context.Context) FunctionLayerOutput }
FunctionLayerInput is an input type that accepts FunctionLayerArgs and FunctionLayerOutput values. You can construct a concrete instance of `FunctionLayerInput` via:
FunctionLayerArgs{...}
type FunctionLayerOutput ¶
type FunctionLayerOutput struct{ *pulumi.OutputState }
func (FunctionLayerOutput) ElementType ¶
func (FunctionLayerOutput) ElementType() reflect.Type
func (FunctionLayerOutput) LayerName ¶
func (o FunctionLayerOutput) LayerName() pulumi.StringOutput
The name of Layer.
func (FunctionLayerOutput) LayerVersion ¶
func (o FunctionLayerOutput) LayerVersion() pulumi.IntOutput
The version of layer.
func (FunctionLayerOutput) ToFunctionLayerOutput ¶
func (o FunctionLayerOutput) ToFunctionLayerOutput() FunctionLayerOutput
func (FunctionLayerOutput) ToFunctionLayerOutputWithContext ¶
func (o FunctionLayerOutput) ToFunctionLayerOutputWithContext(ctx context.Context) FunctionLayerOutput
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) CfsConfigs ¶
func (o FunctionOutput) CfsConfigs() FunctionCfsConfigArrayOutput
List of CFS configurations.
func (FunctionOutput) ClsLogsetId ¶
func (o FunctionOutput) ClsLogsetId() pulumi.StringOutput
cls logset id of the SCF function.
func (FunctionOutput) ClsTopicId ¶
func (o FunctionOutput) ClsTopicId() pulumi.StringOutput
cls topic id of the SCF function.
func (FunctionOutput) CodeError ¶
func (o FunctionOutput) CodeError() pulumi.StringOutput
SCF function code error message.
func (FunctionOutput) CodeResult ¶
func (o FunctionOutput) CodeResult() pulumi.StringOutput
SCF function code is correct.
func (FunctionOutput) CodeSize ¶
func (o FunctionOutput) CodeSize() pulumi.IntOutput
SCF function code size, unit is M.
func (FunctionOutput) CosBucketName ¶
func (o FunctionOutput) CosBucketName() pulumi.StringPtrOutput
Cos bucket name of the SCF function, such as `cos-1234567890`, conflict with `zipFile`.
func (FunctionOutput) CosBucketRegion ¶
func (o FunctionOutput) CosBucketRegion() pulumi.StringPtrOutput
Cos bucket region of the SCF function, conflict with `zipFile`.
func (FunctionOutput) CosObjectName ¶
func (o FunctionOutput) CosObjectName() pulumi.StringPtrOutput
Cos object name of the SCF function, should have suffix `.zip` or `.jar`, conflict with `zipFile`.
func (FunctionOutput) Description ¶
func (o FunctionOutput) Description() pulumi.StringPtrOutput
Description of the SCF function. Description supports English letters, numbers, spaces, commas, newlines, periods and Chinese, the maximum length is 1000.
func (FunctionOutput) EipFixed ¶
func (o FunctionOutput) EipFixed() pulumi.BoolOutput
Whether EIP is a fixed IP.
func (FunctionOutput) Eips ¶
func (o FunctionOutput) Eips() pulumi.StringArrayOutput
SCF function EIP list.
func (FunctionOutput) ElementType ¶
func (FunctionOutput) ElementType() reflect.Type
func (FunctionOutput) EnableEipConfig ¶
func (o FunctionOutput) EnableEipConfig() pulumi.BoolPtrOutput
Indicates whether EIP config set to `ENABLE` when `enablePublicNet` was true.
func (FunctionOutput) EnablePublicNet ¶
func (o FunctionOutput) EnablePublicNet() pulumi.BoolPtrOutput
Indicates whether public net config enabled. NOTE: only `vpcId` specified can disable public net config.
func (FunctionOutput) Environment ¶
func (o FunctionOutput) Environment() pulumi.MapOutput
Environment of the SCF function.
func (FunctionOutput) ErrNo ¶
func (o FunctionOutput) ErrNo() pulumi.IntOutput
SCF function code error code.
func (FunctionOutput) Handler ¶
func (o FunctionOutput) Handler() pulumi.StringOutput
Handler of the SCF function. The format of name is `<filename>.<method_name>`, and it supports 26 English letters, numbers, connectors, and underscores, it should start with a letter. The last character cannot be `-` or `_`. Available length is 2-60.
func (FunctionOutput) Host ¶
func (o FunctionOutput) Host() pulumi.StringOutput
SCF function domain name.
func (FunctionOutput) ImageConfigs ¶
func (o FunctionOutput) ImageConfigs() FunctionImageConfigArrayOutput
Image of the SCF function, conflict with “.
func (FunctionOutput) InstallDependency ¶
func (o FunctionOutput) InstallDependency() pulumi.BoolOutput
Whether to automatically install dependencies.
func (FunctionOutput) L5Enable ¶
func (o FunctionOutput) L5Enable() pulumi.BoolPtrOutput
Enable L5 for SCF function, default is `false`.
func (FunctionOutput) Layers ¶
func (o FunctionOutput) Layers() FunctionLayerArrayOutput
The list of association layers.
func (FunctionOutput) MemSize ¶
func (o FunctionOutput) MemSize() pulumi.IntPtrOutput
Memory size of the SCF function, unit is MB. The default is `128`MB. The ladder is 128M.
func (FunctionOutput) ModifyTime ¶
func (o FunctionOutput) ModifyTime() pulumi.StringOutput
Modify time of SCF function trigger.
func (FunctionOutput) Name ¶
func (o FunctionOutput) Name() pulumi.StringOutput
Name of the SCF function. Name supports 26 English letters, numbers, connectors, and underscores, it should start with a letter. The last character cannot be `-` or `_`. Available length is 2-60.
func (FunctionOutput) Namespace ¶
func (o FunctionOutput) Namespace() pulumi.StringPtrOutput
Namespace of the SCF function, default is `default`.
func (FunctionOutput) Role ¶
func (o FunctionOutput) Role() pulumi.StringPtrOutput
Role of the SCF function.
func (FunctionOutput) Runtime ¶
func (o FunctionOutput) Runtime() pulumi.StringOutput
Runtime of the SCF function, only supports `Python2.7`, `Python3.6`, `Nodejs6.10`, `Nodejs8.9`, `Nodejs10.15`, `PHP5`, `PHP7`, `Golang1`, and `Java8`.
func (FunctionOutput) Status ¶
func (o FunctionOutput) Status() pulumi.StringOutput
SCF function status.
func (FunctionOutput) StatusDesc ¶
func (o FunctionOutput) StatusDesc() pulumi.StringOutput
SCF status description.
func (FunctionOutput) SubnetId ¶
func (o FunctionOutput) SubnetId() pulumi.StringPtrOutput
Subnet ID of the SCF function.
func (FunctionOutput) Tags ¶
func (o FunctionOutput) Tags() pulumi.MapOutput
Tags of the SCF function.
func (FunctionOutput) Timeout ¶
func (o FunctionOutput) Timeout() pulumi.IntPtrOutput
Timeout of the SCF function, unit is second. Default `3`. Available value is 1-900.
func (FunctionOutput) ToFunctionOutput ¶
func (o FunctionOutput) ToFunctionOutput() FunctionOutput
func (FunctionOutput) ToFunctionOutputWithContext ¶
func (o FunctionOutput) ToFunctionOutputWithContext(ctx context.Context) FunctionOutput
func (FunctionOutput) TriggerInfos ¶
func (o FunctionOutput) TriggerInfos() FunctionTriggerInfoArrayOutput
SCF trigger details list. Each element contains the following attributes:
func (FunctionOutput) Triggers ¶
func (o FunctionOutput) Triggers() FunctionTriggerArrayOutput
Trigger list of the SCF function, note that if you modify the trigger list, all existing triggers will be deleted, and then create triggers in the new list. Each element contains the following attributes:
func (FunctionOutput) VpcId ¶
func (o FunctionOutput) VpcId() pulumi.StringPtrOutput
VPC ID of the SCF function.
func (FunctionOutput) ZipFile ¶
func (o FunctionOutput) ZipFile() pulumi.StringPtrOutput
Zip file of the SCF function, conflict with `cosBucketName`, `cosObjectName`, `cosBucketRegion`.
type FunctionState ¶
type FunctionState struct { // List of CFS configurations. CfsConfigs FunctionCfsConfigArrayInput // cls logset id of the SCF function. ClsLogsetId pulumi.StringPtrInput // cls topic id of the SCF function. ClsTopicId pulumi.StringPtrInput // SCF function code error message. CodeError pulumi.StringPtrInput // SCF function code is correct. CodeResult pulumi.StringPtrInput // SCF function code size, unit is M. CodeSize pulumi.IntPtrInput // Cos bucket name of the SCF function, such as `cos-1234567890`, conflict with `zipFile`. CosBucketName pulumi.StringPtrInput // Cos bucket region of the SCF function, conflict with `zipFile`. CosBucketRegion pulumi.StringPtrInput // Cos object name of the SCF function, should have suffix `.zip` or `.jar`, conflict with `zipFile`. CosObjectName pulumi.StringPtrInput // Description of the SCF function. Description supports English letters, numbers, spaces, commas, newlines, periods and Chinese, the maximum length is 1000. Description pulumi.StringPtrInput // Whether EIP is a fixed IP. EipFixed pulumi.BoolPtrInput // SCF function EIP list. Eips pulumi.StringArrayInput // Indicates whether EIP config set to `ENABLE` when `enablePublicNet` was true. EnableEipConfig pulumi.BoolPtrInput // Indicates whether public net config enabled. NOTE: only `vpcId` specified can disable public net config. EnablePublicNet pulumi.BoolPtrInput // Environment of the SCF function. Environment pulumi.MapInput // SCF function code error code. ErrNo pulumi.IntPtrInput // Handler of the SCF function. The format of name is `<filename>.<method_name>`, and it supports 26 English letters, numbers, connectors, and underscores, it should start with a letter. The last character cannot be `-` or `_`. Available length is 2-60. Handler pulumi.StringPtrInput // SCF function domain name. Host pulumi.StringPtrInput // Image of the SCF function, conflict with “. ImageConfigs FunctionImageConfigArrayInput // Whether to automatically install dependencies. InstallDependency pulumi.BoolPtrInput // Enable L5 for SCF function, default is `false`. L5Enable pulumi.BoolPtrInput // The list of association layers. Layers FunctionLayerArrayInput // Memory size of the SCF function, unit is MB. The default is `128`MB. The ladder is 128M. MemSize pulumi.IntPtrInput // Modify time of SCF function trigger. ModifyTime pulumi.StringPtrInput // Name of the SCF function. Name supports 26 English letters, numbers, connectors, and underscores, it should start with a letter. The last character cannot be `-` or `_`. Available length is 2-60. Name pulumi.StringPtrInput // Namespace of the SCF function, default is `default`. Namespace pulumi.StringPtrInput // Role of the SCF function. Role pulumi.StringPtrInput // Runtime of the SCF function, only supports `Python2.7`, `Python3.6`, `Nodejs6.10`, `Nodejs8.9`, `Nodejs10.15`, `PHP5`, `PHP7`, `Golang1`, and `Java8`. Runtime pulumi.StringPtrInput // SCF function status. Status pulumi.StringPtrInput // SCF status description. StatusDesc pulumi.StringPtrInput // Subnet ID of the SCF function. SubnetId pulumi.StringPtrInput // Tags of the SCF function. Tags pulumi.MapInput // Timeout of the SCF function, unit is second. Default `3`. Available value is 1-900. Timeout pulumi.IntPtrInput // SCF trigger details list. Each element contains the following attributes: TriggerInfos FunctionTriggerInfoArrayInput // Trigger list of the SCF function, note that if you modify the trigger list, all existing triggers will be deleted, and then create triggers in the new list. Each element contains the following attributes: Triggers FunctionTriggerArrayInput // SCF function vip. Vip pulumi.StringPtrInput // VPC ID of the SCF function. VpcId pulumi.StringPtrInput // Zip file of the SCF function, conflict with `cosBucketName`, `cosObjectName`, `cosBucketRegion`. ZipFile pulumi.StringPtrInput }
func (FunctionState) ElementType ¶
func (FunctionState) ElementType() reflect.Type
type FunctionTrigger ¶
type FunctionTrigger struct { // Region of cos bucket. if `type` is `cos`, `cosRegion` is required. CosRegion *string `pulumi:"cosRegion"` // Name of the SCF function trigger, if `type` is `ckafka`, the format of name must be `<ckafkaInstanceId>-<topicId>`; if `type` is `cos`, the name is cos bucket id, other In any case, it can be combined arbitrarily. It can only contain English letters, numbers, connectors and underscores. The maximum length is 100. Name string `pulumi:"name"` // TriggerDesc of the SCF function trigger, parameter format of `timer` is linux cron expression; parameter of `cos` type is json string `{"bucketUrl":"<name-appid>.cos.<region>.myqcloud.com","event":"cos:ObjectCreated:*","filter":{"Prefix":"","Suffix":""}}`, where `bucketUrl` is cos bucket (optional), `event` is the cos event trigger, `Prefix` is the corresponding file prefix filter condition, `Suffix` is the suffix filter condition, if not need filter condition can not pass; `cmq` type does not pass this parameter; `ckafka` type parameter format is json string `{"maxMsgNum":"1","offset":"latest"}`; `apigw` type parameter format is json string `{"api":{"authRequired":"FALSE","requestConfig":{"method":"ANY"},"isIntegratedResponse":"FALSE"},"service":{"serviceId":"service-dqzh68sg"},"release":{"environmentName":"test"}}`. TriggerDesc string `pulumi:"triggerDesc"` // Type of the SCF function trigger, support `cos`, `cmq`, `timer`, `ckafka`, `apigw`. Type string `pulumi:"type"` }
type FunctionTriggerArgs ¶
type FunctionTriggerArgs struct { // Region of cos bucket. if `type` is `cos`, `cosRegion` is required. CosRegion pulumi.StringPtrInput `pulumi:"cosRegion"` // Name of the SCF function trigger, if `type` is `ckafka`, the format of name must be `<ckafkaInstanceId>-<topicId>`; if `type` is `cos`, the name is cos bucket id, other In any case, it can be combined arbitrarily. It can only contain English letters, numbers, connectors and underscores. The maximum length is 100. Name pulumi.StringInput `pulumi:"name"` // TriggerDesc of the SCF function trigger, parameter format of `timer` is linux cron expression; parameter of `cos` type is json string `{"bucketUrl":"<name-appid>.cos.<region>.myqcloud.com","event":"cos:ObjectCreated:*","filter":{"Prefix":"","Suffix":""}}`, where `bucketUrl` is cos bucket (optional), `event` is the cos event trigger, `Prefix` is the corresponding file prefix filter condition, `Suffix` is the suffix filter condition, if not need filter condition can not pass; `cmq` type does not pass this parameter; `ckafka` type parameter format is json string `{"maxMsgNum":"1","offset":"latest"}`; `apigw` type parameter format is json string `{"api":{"authRequired":"FALSE","requestConfig":{"method":"ANY"},"isIntegratedResponse":"FALSE"},"service":{"serviceId":"service-dqzh68sg"},"release":{"environmentName":"test"}}`. TriggerDesc pulumi.StringInput `pulumi:"triggerDesc"` // Type of the SCF function trigger, support `cos`, `cmq`, `timer`, `ckafka`, `apigw`. Type pulumi.StringInput `pulumi:"type"` }
func (FunctionTriggerArgs) ElementType ¶
func (FunctionTriggerArgs) ElementType() reflect.Type
func (FunctionTriggerArgs) ToFunctionTriggerOutput ¶
func (i FunctionTriggerArgs) ToFunctionTriggerOutput() FunctionTriggerOutput
func (FunctionTriggerArgs) ToFunctionTriggerOutputWithContext ¶
func (i FunctionTriggerArgs) ToFunctionTriggerOutputWithContext(ctx context.Context) FunctionTriggerOutput
type FunctionTriggerArray ¶
type FunctionTriggerArray []FunctionTriggerInput
func (FunctionTriggerArray) ElementType ¶
func (FunctionTriggerArray) ElementType() reflect.Type
func (FunctionTriggerArray) ToFunctionTriggerArrayOutput ¶
func (i FunctionTriggerArray) ToFunctionTriggerArrayOutput() FunctionTriggerArrayOutput
func (FunctionTriggerArray) ToFunctionTriggerArrayOutputWithContext ¶
func (i FunctionTriggerArray) ToFunctionTriggerArrayOutputWithContext(ctx context.Context) FunctionTriggerArrayOutput
type FunctionTriggerArrayInput ¶
type FunctionTriggerArrayInput interface { pulumi.Input ToFunctionTriggerArrayOutput() FunctionTriggerArrayOutput ToFunctionTriggerArrayOutputWithContext(context.Context) FunctionTriggerArrayOutput }
FunctionTriggerArrayInput is an input type that accepts FunctionTriggerArray and FunctionTriggerArrayOutput values. You can construct a concrete instance of `FunctionTriggerArrayInput` via:
FunctionTriggerArray{ FunctionTriggerArgs{...} }
type FunctionTriggerArrayOutput ¶
type FunctionTriggerArrayOutput struct{ *pulumi.OutputState }
func (FunctionTriggerArrayOutput) ElementType ¶
func (FunctionTriggerArrayOutput) ElementType() reflect.Type
func (FunctionTriggerArrayOutput) Index ¶
func (o FunctionTriggerArrayOutput) Index(i pulumi.IntInput) FunctionTriggerOutput
func (FunctionTriggerArrayOutput) ToFunctionTriggerArrayOutput ¶
func (o FunctionTriggerArrayOutput) ToFunctionTriggerArrayOutput() FunctionTriggerArrayOutput
func (FunctionTriggerArrayOutput) ToFunctionTriggerArrayOutputWithContext ¶
func (o FunctionTriggerArrayOutput) ToFunctionTriggerArrayOutputWithContext(ctx context.Context) FunctionTriggerArrayOutput
type FunctionTriggerInfo ¶
type FunctionTriggerInfo struct { // Create time of SCF function trigger. CreateTime *string `pulumi:"createTime"` // User-defined parameters of SCF function trigger. CustomArgument *string `pulumi:"customArgument"` // Whether SCF function trigger is enable. Enable *bool `pulumi:"enable"` // Modify time of SCF function trigger. ModifyTime *string `pulumi:"modifyTime"` // Name of the SCF function. Name supports 26 English letters, numbers, connectors, and underscores, it should start with a letter. The last character cannot be `-` or `_`. Available length is 2-60. Name *string `pulumi:"name"` // TriggerDesc of the SCF function trigger, parameter format of `timer` is linux cron expression; parameter of `cos` type is json string `{"bucketUrl":"<name-appid>.cos.<region>.myqcloud.com","event":"cos:ObjectCreated:*","filter":{"Prefix":"","Suffix":""}}`, where `bucketUrl` is cos bucket (optional), `event` is the cos event trigger, `Prefix` is the corresponding file prefix filter condition, `Suffix` is the suffix filter condition, if not need filter condition can not pass; `cmq` type does not pass this parameter; `ckafka` type parameter format is json string `{"maxMsgNum":"1","offset":"latest"}`; `apigw` type parameter format is json string `{"api":{"authRequired":"FALSE","requestConfig":{"method":"ANY"},"isIntegratedResponse":"FALSE"},"service":{"serviceId":"service-dqzh68sg"},"release":{"environmentName":"test"}}`. TriggerDesc *string `pulumi:"triggerDesc"` // Type of the SCF function trigger, support `cos`, `cmq`, `timer`, `ckafka`, `apigw`. Type *string `pulumi:"type"` }
type FunctionTriggerInfoArgs ¶
type FunctionTriggerInfoArgs struct { // Create time of SCF function trigger. CreateTime pulumi.StringPtrInput `pulumi:"createTime"` // User-defined parameters of SCF function trigger. CustomArgument pulumi.StringPtrInput `pulumi:"customArgument"` // Whether SCF function trigger is enable. Enable pulumi.BoolPtrInput `pulumi:"enable"` // Modify time of SCF function trigger. ModifyTime pulumi.StringPtrInput `pulumi:"modifyTime"` // Name of the SCF function. Name supports 26 English letters, numbers, connectors, and underscores, it should start with a letter. The last character cannot be `-` or `_`. Available length is 2-60. Name pulumi.StringPtrInput `pulumi:"name"` // TriggerDesc of the SCF function trigger, parameter format of `timer` is linux cron expression; parameter of `cos` type is json string `{"bucketUrl":"<name-appid>.cos.<region>.myqcloud.com","event":"cos:ObjectCreated:*","filter":{"Prefix":"","Suffix":""}}`, where `bucketUrl` is cos bucket (optional), `event` is the cos event trigger, `Prefix` is the corresponding file prefix filter condition, `Suffix` is the suffix filter condition, if not need filter condition can not pass; `cmq` type does not pass this parameter; `ckafka` type parameter format is json string `{"maxMsgNum":"1","offset":"latest"}`; `apigw` type parameter format is json string `{"api":{"authRequired":"FALSE","requestConfig":{"method":"ANY"},"isIntegratedResponse":"FALSE"},"service":{"serviceId":"service-dqzh68sg"},"release":{"environmentName":"test"}}`. TriggerDesc pulumi.StringPtrInput `pulumi:"triggerDesc"` // Type of the SCF function trigger, support `cos`, `cmq`, `timer`, `ckafka`, `apigw`. Type pulumi.StringPtrInput `pulumi:"type"` }
func (FunctionTriggerInfoArgs) ElementType ¶
func (FunctionTriggerInfoArgs) ElementType() reflect.Type
func (FunctionTriggerInfoArgs) ToFunctionTriggerInfoOutput ¶
func (i FunctionTriggerInfoArgs) ToFunctionTriggerInfoOutput() FunctionTriggerInfoOutput
func (FunctionTriggerInfoArgs) ToFunctionTriggerInfoOutputWithContext ¶
func (i FunctionTriggerInfoArgs) ToFunctionTriggerInfoOutputWithContext(ctx context.Context) FunctionTriggerInfoOutput
type FunctionTriggerInfoArray ¶
type FunctionTriggerInfoArray []FunctionTriggerInfoInput
func (FunctionTriggerInfoArray) ElementType ¶
func (FunctionTriggerInfoArray) ElementType() reflect.Type
func (FunctionTriggerInfoArray) ToFunctionTriggerInfoArrayOutput ¶
func (i FunctionTriggerInfoArray) ToFunctionTriggerInfoArrayOutput() FunctionTriggerInfoArrayOutput
func (FunctionTriggerInfoArray) ToFunctionTriggerInfoArrayOutputWithContext ¶
func (i FunctionTriggerInfoArray) ToFunctionTriggerInfoArrayOutputWithContext(ctx context.Context) FunctionTriggerInfoArrayOutput
type FunctionTriggerInfoArrayInput ¶
type FunctionTriggerInfoArrayInput interface { pulumi.Input ToFunctionTriggerInfoArrayOutput() FunctionTriggerInfoArrayOutput ToFunctionTriggerInfoArrayOutputWithContext(context.Context) FunctionTriggerInfoArrayOutput }
FunctionTriggerInfoArrayInput is an input type that accepts FunctionTriggerInfoArray and FunctionTriggerInfoArrayOutput values. You can construct a concrete instance of `FunctionTriggerInfoArrayInput` via:
FunctionTriggerInfoArray{ FunctionTriggerInfoArgs{...} }
type FunctionTriggerInfoArrayOutput ¶
type FunctionTriggerInfoArrayOutput struct{ *pulumi.OutputState }
func (FunctionTriggerInfoArrayOutput) ElementType ¶
func (FunctionTriggerInfoArrayOutput) ElementType() reflect.Type
func (FunctionTriggerInfoArrayOutput) Index ¶
func (o FunctionTriggerInfoArrayOutput) Index(i pulumi.IntInput) FunctionTriggerInfoOutput
func (FunctionTriggerInfoArrayOutput) ToFunctionTriggerInfoArrayOutput ¶
func (o FunctionTriggerInfoArrayOutput) ToFunctionTriggerInfoArrayOutput() FunctionTriggerInfoArrayOutput
func (FunctionTriggerInfoArrayOutput) ToFunctionTriggerInfoArrayOutputWithContext ¶
func (o FunctionTriggerInfoArrayOutput) ToFunctionTriggerInfoArrayOutputWithContext(ctx context.Context) FunctionTriggerInfoArrayOutput
type FunctionTriggerInfoInput ¶
type FunctionTriggerInfoInput interface { pulumi.Input ToFunctionTriggerInfoOutput() FunctionTriggerInfoOutput ToFunctionTriggerInfoOutputWithContext(context.Context) FunctionTriggerInfoOutput }
FunctionTriggerInfoInput is an input type that accepts FunctionTriggerInfoArgs and FunctionTriggerInfoOutput values. You can construct a concrete instance of `FunctionTriggerInfoInput` via:
FunctionTriggerInfoArgs{...}
type FunctionTriggerInfoOutput ¶
type FunctionTriggerInfoOutput struct{ *pulumi.OutputState }
func (FunctionTriggerInfoOutput) CreateTime ¶
func (o FunctionTriggerInfoOutput) CreateTime() pulumi.StringPtrOutput
Create time of SCF function trigger.
func (FunctionTriggerInfoOutput) CustomArgument ¶
func (o FunctionTriggerInfoOutput) CustomArgument() pulumi.StringPtrOutput
User-defined parameters of SCF function trigger.
func (FunctionTriggerInfoOutput) ElementType ¶
func (FunctionTriggerInfoOutput) ElementType() reflect.Type
func (FunctionTriggerInfoOutput) Enable ¶
func (o FunctionTriggerInfoOutput) Enable() pulumi.BoolPtrOutput
Whether SCF function trigger is enable.
func (FunctionTriggerInfoOutput) ModifyTime ¶
func (o FunctionTriggerInfoOutput) ModifyTime() pulumi.StringPtrOutput
Modify time of SCF function trigger.
func (FunctionTriggerInfoOutput) Name ¶
func (o FunctionTriggerInfoOutput) Name() pulumi.StringPtrOutput
Name of the SCF function. Name supports 26 English letters, numbers, connectors, and underscores, it should start with a letter. The last character cannot be `-` or `_`. Available length is 2-60.
func (FunctionTriggerInfoOutput) ToFunctionTriggerInfoOutput ¶
func (o FunctionTriggerInfoOutput) ToFunctionTriggerInfoOutput() FunctionTriggerInfoOutput
func (FunctionTriggerInfoOutput) ToFunctionTriggerInfoOutputWithContext ¶
func (o FunctionTriggerInfoOutput) ToFunctionTriggerInfoOutputWithContext(ctx context.Context) FunctionTriggerInfoOutput
func (FunctionTriggerInfoOutput) TriggerDesc ¶
func (o FunctionTriggerInfoOutput) TriggerDesc() pulumi.StringPtrOutput
TriggerDesc of the SCF function trigger, parameter format of `timer` is linux cron expression; parameter of `cos` type is json string `{"bucketUrl":"<name-appid>.cos.<region>.myqcloud.com","event":"cos:ObjectCreated:*","filter":{"Prefix":"","Suffix":""}}`, where `bucketUrl` is cos bucket (optional), `event` is the cos event trigger, `Prefix` is the corresponding file prefix filter condition, `Suffix` is the suffix filter condition, if not need filter condition can not pass; `cmq` type does not pass this parameter; `ckafka` type parameter format is json string `{"maxMsgNum":"1","offset":"latest"}`; `apigw` type parameter format is json string `{"api":{"authRequired":"FALSE","requestConfig":{"method":"ANY"},"isIntegratedResponse":"FALSE"},"service":{"serviceId":"service-dqzh68sg"},"release":{"environmentName":"test"}}`.
func (FunctionTriggerInfoOutput) Type ¶
func (o FunctionTriggerInfoOutput) Type() pulumi.StringPtrOutput
Type of the SCF function trigger, support `cos`, `cmq`, `timer`, `ckafka`, `apigw`.
type FunctionTriggerInput ¶
type FunctionTriggerInput interface { pulumi.Input ToFunctionTriggerOutput() FunctionTriggerOutput ToFunctionTriggerOutputWithContext(context.Context) FunctionTriggerOutput }
FunctionTriggerInput is an input type that accepts FunctionTriggerArgs and FunctionTriggerOutput values. You can construct a concrete instance of `FunctionTriggerInput` via:
FunctionTriggerArgs{...}
type FunctionTriggerOutput ¶
type FunctionTriggerOutput struct{ *pulumi.OutputState }
func (FunctionTriggerOutput) CosRegion ¶
func (o FunctionTriggerOutput) CosRegion() pulumi.StringPtrOutput
Region of cos bucket. if `type` is `cos`, `cosRegion` is required.
func (FunctionTriggerOutput) ElementType ¶
func (FunctionTriggerOutput) ElementType() reflect.Type
func (FunctionTriggerOutput) Name ¶
func (o FunctionTriggerOutput) Name() pulumi.StringOutput
Name of the SCF function trigger, if `type` is `ckafka`, the format of name must be `<ckafkaInstanceId>-<topicId>`; if `type` is `cos`, the name is cos bucket id, other In any case, it can be combined arbitrarily. It can only contain English letters, numbers, connectors and underscores. The maximum length is 100.
func (FunctionTriggerOutput) ToFunctionTriggerOutput ¶
func (o FunctionTriggerOutput) ToFunctionTriggerOutput() FunctionTriggerOutput
func (FunctionTriggerOutput) ToFunctionTriggerOutputWithContext ¶
func (o FunctionTriggerOutput) ToFunctionTriggerOutputWithContext(ctx context.Context) FunctionTriggerOutput
func (FunctionTriggerOutput) TriggerDesc ¶
func (o FunctionTriggerOutput) TriggerDesc() pulumi.StringOutput
TriggerDesc of the SCF function trigger, parameter format of `timer` is linux cron expression; parameter of `cos` type is json string `{"bucketUrl":"<name-appid>.cos.<region>.myqcloud.com","event":"cos:ObjectCreated:*","filter":{"Prefix":"","Suffix":""}}`, where `bucketUrl` is cos bucket (optional), `event` is the cos event trigger, `Prefix` is the corresponding file prefix filter condition, `Suffix` is the suffix filter condition, if not need filter condition can not pass; `cmq` type does not pass this parameter; `ckafka` type parameter format is json string `{"maxMsgNum":"1","offset":"latest"}`; `apigw` type parameter format is json string `{"api":{"authRequired":"FALSE","requestConfig":{"method":"ANY"},"isIntegratedResponse":"FALSE"},"service":{"serviceId":"service-dqzh68sg"},"release":{"environmentName":"test"}}`.
func (FunctionTriggerOutput) Type ¶
func (o FunctionTriggerOutput) Type() pulumi.StringOutput
Type of the SCF function trigger, support `cos`, `cmq`, `timer`, `ckafka`, `apigw`.
type GetFunctionsArgs ¶
type GetFunctionsArgs struct { // Description of the SCF function to be queried. Description *string `pulumi:"description"` // Name of the SCF function to be queried. Name *string `pulumi:"name"` // Namespace of the SCF function to be queried. Namespace *string `pulumi:"namespace"` // Used to save results. ResultOutputFile *string `pulumi:"resultOutputFile"` // Tags of the SCF function to be queried, can use up to 10 tags. Tags map[string]interface{} `pulumi:"tags"` }
A collection of arguments for invoking getFunctions.
type GetFunctionsFunction ¶
type GetFunctionsFunction struct { // CLS logset ID of the SCF function. ClsLogsetId string `pulumi:"clsLogsetId"` // CLS topic ID of the SCF function. ClsTopicId string `pulumi:"clsTopicId"` // Code error of the SCF function. CodeError string `pulumi:"codeError"` // Code result of the SCF function. CodeResult string `pulumi:"codeResult"` // Code size of the SCF function. CodeSize int `pulumi:"codeSize"` // Create time of the SCF function trigger. CreateTime string `pulumi:"createTime"` // Description of the SCF function to be queried. Description string `pulumi:"description"` // Whether EIP is a fixed IP. EipFixed bool `pulumi:"eipFixed"` // EIP list of the SCF function. Eips []string `pulumi:"eips"` // Whether the EIP enabled. EnableEipConfig bool `pulumi:"enableEipConfig"` // Whether the public net enabled. EnablePublicNet bool `pulumi:"enablePublicNet"` // Environment variable of the SCF function. Environment map[string]interface{} `pulumi:"environment"` // Errno of the SCF function. ErrNo int `pulumi:"errNo"` // Handler of the SCF function. Handler string `pulumi:"handler"` // Host of the SCF function. Host string `pulumi:"host"` // Whether to automatically install dependencies. InstallDependency bool `pulumi:"installDependency"` // Whether to enable L5. L5Enable bool `pulumi:"l5Enable"` // Memory size of the SCF function runtime, unit is M. MemSize int `pulumi:"memSize"` // Modify time of the SCF function trigger. ModifyTime string `pulumi:"modifyTime"` // Name of the SCF function to be queried. Name string `pulumi:"name"` // Namespace of the SCF function to be queried. Namespace string `pulumi:"namespace"` // CAM role of the SCF function. Role string `pulumi:"role"` // Runtime of the SCF function. Runtime string `pulumi:"runtime"` // Status of the SCF function. Status string `pulumi:"status"` // Status description of the SCF function. StatusDesc string `pulumi:"statusDesc"` // Subnet ID of the SCF function. SubnetId string `pulumi:"subnetId"` // Tags of the SCF function to be queried, can use up to 10 tags. Tags map[string]interface{} `pulumi:"tags"` // Timeout of the SCF function maximum execution time, unit is second. Timeout int `pulumi:"timeout"` // Trigger details list the SCF function. Each element contains the following attributes: TriggerInfos []GetFunctionsFunctionTriggerInfo `pulumi:"triggerInfos"` // Vip of the SCF function. Vip string `pulumi:"vip"` // VPC ID of the SCF function. VpcId string `pulumi:"vpcId"` }
type GetFunctionsFunctionArgs ¶
type GetFunctionsFunctionArgs struct { // CLS logset ID of the SCF function. ClsLogsetId pulumi.StringInput `pulumi:"clsLogsetId"` // CLS topic ID of the SCF function. ClsTopicId pulumi.StringInput `pulumi:"clsTopicId"` // Code error of the SCF function. CodeError pulumi.StringInput `pulumi:"codeError"` // Code result of the SCF function. CodeResult pulumi.StringInput `pulumi:"codeResult"` // Code size of the SCF function. CodeSize pulumi.IntInput `pulumi:"codeSize"` // Create time of the SCF function trigger. CreateTime pulumi.StringInput `pulumi:"createTime"` // Description of the SCF function to be queried. Description pulumi.StringInput `pulumi:"description"` // Whether EIP is a fixed IP. EipFixed pulumi.BoolInput `pulumi:"eipFixed"` // EIP list of the SCF function. Eips pulumi.StringArrayInput `pulumi:"eips"` // Whether the EIP enabled. EnableEipConfig pulumi.BoolInput `pulumi:"enableEipConfig"` // Whether the public net enabled. EnablePublicNet pulumi.BoolInput `pulumi:"enablePublicNet"` // Environment variable of the SCF function. Environment pulumi.MapInput `pulumi:"environment"` // Errno of the SCF function. ErrNo pulumi.IntInput `pulumi:"errNo"` // Handler of the SCF function. Handler pulumi.StringInput `pulumi:"handler"` // Host of the SCF function. Host pulumi.StringInput `pulumi:"host"` // Whether to automatically install dependencies. InstallDependency pulumi.BoolInput `pulumi:"installDependency"` // Whether to enable L5. L5Enable pulumi.BoolInput `pulumi:"l5Enable"` // Memory size of the SCF function runtime, unit is M. MemSize pulumi.IntInput `pulumi:"memSize"` // Modify time of the SCF function trigger. ModifyTime pulumi.StringInput `pulumi:"modifyTime"` // Name of the SCF function to be queried. Name pulumi.StringInput `pulumi:"name"` // Namespace of the SCF function to be queried. Namespace pulumi.StringInput `pulumi:"namespace"` // CAM role of the SCF function. Role pulumi.StringInput `pulumi:"role"` // Runtime of the SCF function. Runtime pulumi.StringInput `pulumi:"runtime"` // Status of the SCF function. Status pulumi.StringInput `pulumi:"status"` // Status description of the SCF function. StatusDesc pulumi.StringInput `pulumi:"statusDesc"` // Subnet ID of the SCF function. SubnetId pulumi.StringInput `pulumi:"subnetId"` // Tags of the SCF function to be queried, can use up to 10 tags. Tags pulumi.MapInput `pulumi:"tags"` // Timeout of the SCF function maximum execution time, unit is second. Timeout pulumi.IntInput `pulumi:"timeout"` // Trigger details list the SCF function. Each element contains the following attributes: TriggerInfos GetFunctionsFunctionTriggerInfoArrayInput `pulumi:"triggerInfos"` // Vip of the SCF function. Vip pulumi.StringInput `pulumi:"vip"` // VPC ID of the SCF function. VpcId pulumi.StringInput `pulumi:"vpcId"` }
func (GetFunctionsFunctionArgs) ElementType ¶
func (GetFunctionsFunctionArgs) ElementType() reflect.Type
func (GetFunctionsFunctionArgs) ToGetFunctionsFunctionOutput ¶
func (i GetFunctionsFunctionArgs) ToGetFunctionsFunctionOutput() GetFunctionsFunctionOutput
func (GetFunctionsFunctionArgs) ToGetFunctionsFunctionOutputWithContext ¶
func (i GetFunctionsFunctionArgs) ToGetFunctionsFunctionOutputWithContext(ctx context.Context) GetFunctionsFunctionOutput
type GetFunctionsFunctionArray ¶
type GetFunctionsFunctionArray []GetFunctionsFunctionInput
func (GetFunctionsFunctionArray) ElementType ¶
func (GetFunctionsFunctionArray) ElementType() reflect.Type
func (GetFunctionsFunctionArray) ToGetFunctionsFunctionArrayOutput ¶
func (i GetFunctionsFunctionArray) ToGetFunctionsFunctionArrayOutput() GetFunctionsFunctionArrayOutput
func (GetFunctionsFunctionArray) ToGetFunctionsFunctionArrayOutputWithContext ¶
func (i GetFunctionsFunctionArray) ToGetFunctionsFunctionArrayOutputWithContext(ctx context.Context) GetFunctionsFunctionArrayOutput
type GetFunctionsFunctionArrayInput ¶
type GetFunctionsFunctionArrayInput interface { pulumi.Input ToGetFunctionsFunctionArrayOutput() GetFunctionsFunctionArrayOutput ToGetFunctionsFunctionArrayOutputWithContext(context.Context) GetFunctionsFunctionArrayOutput }
GetFunctionsFunctionArrayInput is an input type that accepts GetFunctionsFunctionArray and GetFunctionsFunctionArrayOutput values. You can construct a concrete instance of `GetFunctionsFunctionArrayInput` via:
GetFunctionsFunctionArray{ GetFunctionsFunctionArgs{...} }
type GetFunctionsFunctionArrayOutput ¶
type GetFunctionsFunctionArrayOutput struct{ *pulumi.OutputState }
func (GetFunctionsFunctionArrayOutput) ElementType ¶
func (GetFunctionsFunctionArrayOutput) ElementType() reflect.Type
func (GetFunctionsFunctionArrayOutput) Index ¶
func (o GetFunctionsFunctionArrayOutput) Index(i pulumi.IntInput) GetFunctionsFunctionOutput
func (GetFunctionsFunctionArrayOutput) ToGetFunctionsFunctionArrayOutput ¶
func (o GetFunctionsFunctionArrayOutput) ToGetFunctionsFunctionArrayOutput() GetFunctionsFunctionArrayOutput
func (GetFunctionsFunctionArrayOutput) ToGetFunctionsFunctionArrayOutputWithContext ¶
func (o GetFunctionsFunctionArrayOutput) ToGetFunctionsFunctionArrayOutputWithContext(ctx context.Context) GetFunctionsFunctionArrayOutput
type GetFunctionsFunctionInput ¶
type GetFunctionsFunctionInput interface { pulumi.Input ToGetFunctionsFunctionOutput() GetFunctionsFunctionOutput ToGetFunctionsFunctionOutputWithContext(context.Context) GetFunctionsFunctionOutput }
GetFunctionsFunctionInput is an input type that accepts GetFunctionsFunctionArgs and GetFunctionsFunctionOutput values. You can construct a concrete instance of `GetFunctionsFunctionInput` via:
GetFunctionsFunctionArgs{...}
type GetFunctionsFunctionOutput ¶
type GetFunctionsFunctionOutput struct{ *pulumi.OutputState }
func (GetFunctionsFunctionOutput) ClsLogsetId ¶
func (o GetFunctionsFunctionOutput) ClsLogsetId() pulumi.StringOutput
CLS logset ID of the SCF function.
func (GetFunctionsFunctionOutput) ClsTopicId ¶
func (o GetFunctionsFunctionOutput) ClsTopicId() pulumi.StringOutput
CLS topic ID of the SCF function.
func (GetFunctionsFunctionOutput) CodeError ¶
func (o GetFunctionsFunctionOutput) CodeError() pulumi.StringOutput
Code error of the SCF function.
func (GetFunctionsFunctionOutput) CodeResult ¶
func (o GetFunctionsFunctionOutput) CodeResult() pulumi.StringOutput
Code result of the SCF function.
func (GetFunctionsFunctionOutput) CodeSize ¶
func (o GetFunctionsFunctionOutput) CodeSize() pulumi.IntOutput
Code size of the SCF function.
func (GetFunctionsFunctionOutput) CreateTime ¶
func (o GetFunctionsFunctionOutput) CreateTime() pulumi.StringOutput
Create time of the SCF function trigger.
func (GetFunctionsFunctionOutput) Description ¶
func (o GetFunctionsFunctionOutput) Description() pulumi.StringOutput
Description of the SCF function to be queried.
func (GetFunctionsFunctionOutput) EipFixed ¶
func (o GetFunctionsFunctionOutput) EipFixed() pulumi.BoolOutput
Whether EIP is a fixed IP.
func (GetFunctionsFunctionOutput) Eips ¶
func (o GetFunctionsFunctionOutput) Eips() pulumi.StringArrayOutput
EIP list of the SCF function.
func (GetFunctionsFunctionOutput) ElementType ¶
func (GetFunctionsFunctionOutput) ElementType() reflect.Type
func (GetFunctionsFunctionOutput) EnableEipConfig ¶
func (o GetFunctionsFunctionOutput) EnableEipConfig() pulumi.BoolOutput
Whether the EIP enabled.
func (GetFunctionsFunctionOutput) EnablePublicNet ¶
func (o GetFunctionsFunctionOutput) EnablePublicNet() pulumi.BoolOutput
Whether the public net enabled.
func (GetFunctionsFunctionOutput) Environment ¶
func (o GetFunctionsFunctionOutput) Environment() pulumi.MapOutput
Environment variable of the SCF function.
func (GetFunctionsFunctionOutput) ErrNo ¶
func (o GetFunctionsFunctionOutput) ErrNo() pulumi.IntOutput
Errno of the SCF function.
func (GetFunctionsFunctionOutput) Handler ¶
func (o GetFunctionsFunctionOutput) Handler() pulumi.StringOutput
Handler of the SCF function.
func (GetFunctionsFunctionOutput) Host ¶
func (o GetFunctionsFunctionOutput) Host() pulumi.StringOutput
Host of the SCF function.
func (GetFunctionsFunctionOutput) InstallDependency ¶
func (o GetFunctionsFunctionOutput) InstallDependency() pulumi.BoolOutput
Whether to automatically install dependencies.
func (GetFunctionsFunctionOutput) L5Enable ¶
func (o GetFunctionsFunctionOutput) L5Enable() pulumi.BoolOutput
Whether to enable L5.
func (GetFunctionsFunctionOutput) MemSize ¶
func (o GetFunctionsFunctionOutput) MemSize() pulumi.IntOutput
Memory size of the SCF function runtime, unit is M.
func (GetFunctionsFunctionOutput) ModifyTime ¶
func (o GetFunctionsFunctionOutput) ModifyTime() pulumi.StringOutput
Modify time of the SCF function trigger.
func (GetFunctionsFunctionOutput) Name ¶
func (o GetFunctionsFunctionOutput) Name() pulumi.StringOutput
Name of the SCF function to be queried.
func (GetFunctionsFunctionOutput) Namespace ¶
func (o GetFunctionsFunctionOutput) Namespace() pulumi.StringOutput
Namespace of the SCF function to be queried.
func (GetFunctionsFunctionOutput) Role ¶
func (o GetFunctionsFunctionOutput) Role() pulumi.StringOutput
CAM role of the SCF function.
func (GetFunctionsFunctionOutput) Runtime ¶
func (o GetFunctionsFunctionOutput) Runtime() pulumi.StringOutput
Runtime of the SCF function.
func (GetFunctionsFunctionOutput) Status ¶
func (o GetFunctionsFunctionOutput) Status() pulumi.StringOutput
Status of the SCF function.
func (GetFunctionsFunctionOutput) StatusDesc ¶
func (o GetFunctionsFunctionOutput) StatusDesc() pulumi.StringOutput
Status description of the SCF function.
func (GetFunctionsFunctionOutput) SubnetId ¶
func (o GetFunctionsFunctionOutput) SubnetId() pulumi.StringOutput
Subnet ID of the SCF function.
func (GetFunctionsFunctionOutput) Tags ¶
func (o GetFunctionsFunctionOutput) Tags() pulumi.MapOutput
Tags of the SCF function to be queried, can use up to 10 tags.
func (GetFunctionsFunctionOutput) Timeout ¶
func (o GetFunctionsFunctionOutput) Timeout() pulumi.IntOutput
Timeout of the SCF function maximum execution time, unit is second.
func (GetFunctionsFunctionOutput) ToGetFunctionsFunctionOutput ¶
func (o GetFunctionsFunctionOutput) ToGetFunctionsFunctionOutput() GetFunctionsFunctionOutput
func (GetFunctionsFunctionOutput) ToGetFunctionsFunctionOutputWithContext ¶
func (o GetFunctionsFunctionOutput) ToGetFunctionsFunctionOutputWithContext(ctx context.Context) GetFunctionsFunctionOutput
func (GetFunctionsFunctionOutput) TriggerInfos ¶
func (o GetFunctionsFunctionOutput) TriggerInfos() GetFunctionsFunctionTriggerInfoArrayOutput
Trigger details list the SCF function. Each element contains the following attributes:
func (GetFunctionsFunctionOutput) Vip ¶
func (o GetFunctionsFunctionOutput) Vip() pulumi.StringOutput
Vip of the SCF function.
func (GetFunctionsFunctionOutput) VpcId ¶
func (o GetFunctionsFunctionOutput) VpcId() pulumi.StringOutput
VPC ID of the SCF function.
type GetFunctionsFunctionTriggerInfo ¶
type GetFunctionsFunctionTriggerInfo struct { // Create time of the SCF function trigger. CreateTime string `pulumi:"createTime"` // user-defined parameter of the SCF function trigger. CustomArgument string `pulumi:"customArgument"` // Whether to enable SCF function trigger. Enable bool `pulumi:"enable"` // Modify time of the SCF function trigger. ModifyTime string `pulumi:"modifyTime"` // Name of the SCF function to be queried. Name string `pulumi:"name"` // TriggerDesc of the SCF function trigger. TriggerDesc string `pulumi:"triggerDesc"` // Type of the SCF function trigger. Type string `pulumi:"type"` }
type GetFunctionsFunctionTriggerInfoArgs ¶
type GetFunctionsFunctionTriggerInfoArgs struct { // Create time of the SCF function trigger. CreateTime pulumi.StringInput `pulumi:"createTime"` // user-defined parameter of the SCF function trigger. CustomArgument pulumi.StringInput `pulumi:"customArgument"` // Whether to enable SCF function trigger. Enable pulumi.BoolInput `pulumi:"enable"` // Modify time of the SCF function trigger. ModifyTime pulumi.StringInput `pulumi:"modifyTime"` // Name of the SCF function to be queried. Name pulumi.StringInput `pulumi:"name"` // TriggerDesc of the SCF function trigger. TriggerDesc pulumi.StringInput `pulumi:"triggerDesc"` // Type of the SCF function trigger. Type pulumi.StringInput `pulumi:"type"` }
func (GetFunctionsFunctionTriggerInfoArgs) ElementType ¶
func (GetFunctionsFunctionTriggerInfoArgs) ElementType() reflect.Type
func (GetFunctionsFunctionTriggerInfoArgs) ToGetFunctionsFunctionTriggerInfoOutput ¶
func (i GetFunctionsFunctionTriggerInfoArgs) ToGetFunctionsFunctionTriggerInfoOutput() GetFunctionsFunctionTriggerInfoOutput
func (GetFunctionsFunctionTriggerInfoArgs) ToGetFunctionsFunctionTriggerInfoOutputWithContext ¶
func (i GetFunctionsFunctionTriggerInfoArgs) ToGetFunctionsFunctionTriggerInfoOutputWithContext(ctx context.Context) GetFunctionsFunctionTriggerInfoOutput
type GetFunctionsFunctionTriggerInfoArray ¶
type GetFunctionsFunctionTriggerInfoArray []GetFunctionsFunctionTriggerInfoInput
func (GetFunctionsFunctionTriggerInfoArray) ElementType ¶
func (GetFunctionsFunctionTriggerInfoArray) ElementType() reflect.Type
func (GetFunctionsFunctionTriggerInfoArray) ToGetFunctionsFunctionTriggerInfoArrayOutput ¶
func (i GetFunctionsFunctionTriggerInfoArray) ToGetFunctionsFunctionTriggerInfoArrayOutput() GetFunctionsFunctionTriggerInfoArrayOutput
func (GetFunctionsFunctionTriggerInfoArray) ToGetFunctionsFunctionTriggerInfoArrayOutputWithContext ¶
func (i GetFunctionsFunctionTriggerInfoArray) ToGetFunctionsFunctionTriggerInfoArrayOutputWithContext(ctx context.Context) GetFunctionsFunctionTriggerInfoArrayOutput
type GetFunctionsFunctionTriggerInfoArrayInput ¶
type GetFunctionsFunctionTriggerInfoArrayInput interface { pulumi.Input ToGetFunctionsFunctionTriggerInfoArrayOutput() GetFunctionsFunctionTriggerInfoArrayOutput ToGetFunctionsFunctionTriggerInfoArrayOutputWithContext(context.Context) GetFunctionsFunctionTriggerInfoArrayOutput }
GetFunctionsFunctionTriggerInfoArrayInput is an input type that accepts GetFunctionsFunctionTriggerInfoArray and GetFunctionsFunctionTriggerInfoArrayOutput values. You can construct a concrete instance of `GetFunctionsFunctionTriggerInfoArrayInput` via:
GetFunctionsFunctionTriggerInfoArray{ GetFunctionsFunctionTriggerInfoArgs{...} }
type GetFunctionsFunctionTriggerInfoArrayOutput ¶
type GetFunctionsFunctionTriggerInfoArrayOutput struct{ *pulumi.OutputState }
func (GetFunctionsFunctionTriggerInfoArrayOutput) ElementType ¶
func (GetFunctionsFunctionTriggerInfoArrayOutput) ElementType() reflect.Type
func (GetFunctionsFunctionTriggerInfoArrayOutput) ToGetFunctionsFunctionTriggerInfoArrayOutput ¶
func (o GetFunctionsFunctionTriggerInfoArrayOutput) ToGetFunctionsFunctionTriggerInfoArrayOutput() GetFunctionsFunctionTriggerInfoArrayOutput
func (GetFunctionsFunctionTriggerInfoArrayOutput) ToGetFunctionsFunctionTriggerInfoArrayOutputWithContext ¶
func (o GetFunctionsFunctionTriggerInfoArrayOutput) ToGetFunctionsFunctionTriggerInfoArrayOutputWithContext(ctx context.Context) GetFunctionsFunctionTriggerInfoArrayOutput
type GetFunctionsFunctionTriggerInfoInput ¶
type GetFunctionsFunctionTriggerInfoInput interface { pulumi.Input ToGetFunctionsFunctionTriggerInfoOutput() GetFunctionsFunctionTriggerInfoOutput ToGetFunctionsFunctionTriggerInfoOutputWithContext(context.Context) GetFunctionsFunctionTriggerInfoOutput }
GetFunctionsFunctionTriggerInfoInput is an input type that accepts GetFunctionsFunctionTriggerInfoArgs and GetFunctionsFunctionTriggerInfoOutput values. You can construct a concrete instance of `GetFunctionsFunctionTriggerInfoInput` via:
GetFunctionsFunctionTriggerInfoArgs{...}
type GetFunctionsFunctionTriggerInfoOutput ¶
type GetFunctionsFunctionTriggerInfoOutput struct{ *pulumi.OutputState }
func (GetFunctionsFunctionTriggerInfoOutput) CreateTime ¶
func (o GetFunctionsFunctionTriggerInfoOutput) CreateTime() pulumi.StringOutput
Create time of the SCF function trigger.
func (GetFunctionsFunctionTriggerInfoOutput) CustomArgument ¶
func (o GetFunctionsFunctionTriggerInfoOutput) CustomArgument() pulumi.StringOutput
user-defined parameter of the SCF function trigger.
func (GetFunctionsFunctionTriggerInfoOutput) ElementType ¶
func (GetFunctionsFunctionTriggerInfoOutput) ElementType() reflect.Type
func (GetFunctionsFunctionTriggerInfoOutput) Enable ¶
func (o GetFunctionsFunctionTriggerInfoOutput) Enable() pulumi.BoolOutput
Whether to enable SCF function trigger.
func (GetFunctionsFunctionTriggerInfoOutput) ModifyTime ¶
func (o GetFunctionsFunctionTriggerInfoOutput) ModifyTime() pulumi.StringOutput
Modify time of the SCF function trigger.
func (GetFunctionsFunctionTriggerInfoOutput) Name ¶
func (o GetFunctionsFunctionTriggerInfoOutput) Name() pulumi.StringOutput
Name of the SCF function to be queried.
func (GetFunctionsFunctionTriggerInfoOutput) ToGetFunctionsFunctionTriggerInfoOutput ¶
func (o GetFunctionsFunctionTriggerInfoOutput) ToGetFunctionsFunctionTriggerInfoOutput() GetFunctionsFunctionTriggerInfoOutput
func (GetFunctionsFunctionTriggerInfoOutput) ToGetFunctionsFunctionTriggerInfoOutputWithContext ¶
func (o GetFunctionsFunctionTriggerInfoOutput) ToGetFunctionsFunctionTriggerInfoOutputWithContext(ctx context.Context) GetFunctionsFunctionTriggerInfoOutput
func (GetFunctionsFunctionTriggerInfoOutput) TriggerDesc ¶
func (o GetFunctionsFunctionTriggerInfoOutput) TriggerDesc() pulumi.StringOutput
TriggerDesc of the SCF function trigger.
func (GetFunctionsFunctionTriggerInfoOutput) Type ¶
func (o GetFunctionsFunctionTriggerInfoOutput) Type() pulumi.StringOutput
Type of the SCF function trigger.
type GetFunctionsOutputArgs ¶
type GetFunctionsOutputArgs struct { // Description of the SCF function to be queried. Description pulumi.StringPtrInput `pulumi:"description"` // Name of the SCF function to be queried. Name pulumi.StringPtrInput `pulumi:"name"` // Namespace of the SCF function to be queried. Namespace pulumi.StringPtrInput `pulumi:"namespace"` // Used to save results. ResultOutputFile pulumi.StringPtrInput `pulumi:"resultOutputFile"` // Tags of the SCF function to be queried, can use up to 10 tags. Tags pulumi.MapInput `pulumi:"tags"` }
A collection of arguments for invoking getFunctions.
func (GetFunctionsOutputArgs) ElementType ¶
func (GetFunctionsOutputArgs) ElementType() reflect.Type
type GetFunctionsResult ¶
type GetFunctionsResult struct { // Description of the SCF function. Description *string `pulumi:"description"` // An information list of functions. Each element contains the following attributes: Functions []GetFunctionsFunction `pulumi:"functions"` // The provider-assigned unique ID for this managed resource. Id string `pulumi:"id"` // Name of the SCF function trigger. Name *string `pulumi:"name"` // Namespace of the SCF function. Namespace *string `pulumi:"namespace"` ResultOutputFile *string `pulumi:"resultOutputFile"` // Tags of the SCF function. Tags map[string]interface{} `pulumi:"tags"` }
A collection of values returned by getFunctions.
func GetFunctions ¶
func GetFunctions(ctx *pulumi.Context, args *GetFunctionsArgs, opts ...pulumi.InvokeOption) (*GetFunctionsResult, error)
Use this data source to query SCF functions.
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-tencentcloud/sdk/go/tencentcloud/Scf" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" "github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Scf"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { fooFunction, err := Scf.NewFunction(ctx, "fooFunction", &Scf.FunctionArgs{ Handler: pulumi.String("main.do_it"), Runtime: pulumi.String("Python3.6"), CosBucketName: pulumi.String("scf-code-1234567890"), CosObjectName: pulumi.String("code.zip"), CosBucketRegion: pulumi.String("ap-guangzhou"), }) if err != nil { return err } _ = Scf.GetFunctionsOutput(ctx, scf.GetFunctionsOutputArgs{ Name: fooFunction.Name, }, nil) return nil }) }
```
type GetFunctionsResultOutput ¶
type GetFunctionsResultOutput struct{ *pulumi.OutputState }
A collection of values returned by getFunctions.
func GetFunctionsOutput ¶
func GetFunctionsOutput(ctx *pulumi.Context, args GetFunctionsOutputArgs, opts ...pulumi.InvokeOption) GetFunctionsResultOutput
func (GetFunctionsResultOutput) Description ¶
func (o GetFunctionsResultOutput) Description() pulumi.StringPtrOutput
Description of the SCF function.
func (GetFunctionsResultOutput) ElementType ¶
func (GetFunctionsResultOutput) ElementType() reflect.Type
func (GetFunctionsResultOutput) Functions ¶
func (o GetFunctionsResultOutput) Functions() GetFunctionsFunctionArrayOutput
An information list of functions. Each element contains the following attributes:
func (GetFunctionsResultOutput) Id ¶
func (o GetFunctionsResultOutput) Id() pulumi.StringOutput
The provider-assigned unique ID for this managed resource.
func (GetFunctionsResultOutput) Name ¶
func (o GetFunctionsResultOutput) Name() pulumi.StringPtrOutput
Name of the SCF function trigger.
func (GetFunctionsResultOutput) Namespace ¶
func (o GetFunctionsResultOutput) Namespace() pulumi.StringPtrOutput
Namespace of the SCF function.
func (GetFunctionsResultOutput) ResultOutputFile ¶
func (o GetFunctionsResultOutput) ResultOutputFile() pulumi.StringPtrOutput
func (GetFunctionsResultOutput) Tags ¶
func (o GetFunctionsResultOutput) Tags() pulumi.MapOutput
Tags of the SCF function.
func (GetFunctionsResultOutput) ToGetFunctionsResultOutput ¶
func (o GetFunctionsResultOutput) ToGetFunctionsResultOutput() GetFunctionsResultOutput
func (GetFunctionsResultOutput) ToGetFunctionsResultOutputWithContext ¶
func (o GetFunctionsResultOutput) ToGetFunctionsResultOutputWithContext(ctx context.Context) GetFunctionsResultOutput
type GetLogsArgs ¶
type GetLogsArgs struct { // The end time of the query, the format is `2017-05-16 20:00:00`, which can only be within one day from `startTime`. EndTime *string `pulumi:"endTime"` // Name of the SCF function to be queried. FunctionName string `pulumi:"functionName"` // Corresponding requestId when executing function. InvokeRequestId *string `pulumi:"invokeRequestId"` // Number of logs, the default is `10000`, offset+limit cannot be greater than 10000. Limit *int `pulumi:"limit"` // Namespace of the SCF function to be queried. Namespace *string `pulumi:"namespace"` // Log offset, default is `0`, offset+limit cannot be greater than 10000. Offset *int `pulumi:"offset"` // Order to sort the log, optional values `desc` and `asc`, default `desc`. Order *string `pulumi:"order"` // Sort the logs according to the following fields: `functionName`, `duration`, `memUsage`, `startTime`, default `startTime`. OrderBy *string `pulumi:"orderBy"` // Used to save results. ResultOutputFile *string `pulumi:"resultOutputFile"` // Use to filter log, optional value: `not0` only returns the error log. `is0` only returns the correct log. `TimeLimitExceeded` returns the log of the function call timeout. `ResourceLimitExceeded` returns the function call generation resource overrun log. `UserCodeException` returns logs of the user code error that occurred in the function call. Not passing the parameter means returning all logs. RetCode *string `pulumi:"retCode"` // The start time of the query, the format is `2017-05-16 20:00:00`, which can only be within one day from `endTime`. StartTime *string `pulumi:"startTime"` }
A collection of arguments for invoking getLogs.
type GetLogsLog ¶
type GetLogsLog struct { // Function billing time, according to duration up to the last 100ms, unit is ms. BillDuration int `pulumi:"billDuration"` // Function execution time-consuming, unit is ms. Duration float64 `pulumi:"duration"` // Name of the SCF function to be queried. FunctionName string `pulumi:"functionName"` // Whether the function call ends, `1` means the execution ends, other values indicate the call exception. InvokeFinished int `pulumi:"invokeFinished"` // Log level. Level string `pulumi:"level"` // Log output during function execution. Log string `pulumi:"log"` // The actual memory size consumed in the execution of the function, unit is Byte. MemUsage int `pulumi:"memUsage"` // Execute the requestId corresponding to the function. RequestId string `pulumi:"requestId"` // Use to filter log, optional value: `not0` only returns the error log. `is0` only returns the correct log. `TimeLimitExceeded` returns the log of the function call timeout. `ResourceLimitExceeded` returns the function call generation resource overrun log. `UserCodeException` returns logs of the user code error that occurred in the function call. Not passing the parameter means returning all logs. RetCode int `pulumi:"retCode"` // Return value after function execution is completed. RetMsg string `pulumi:"retMsg"` // Log source. Source string `pulumi:"source"` // The start time of the query, the format is `2017-05-16 20:00:00`, which can only be within one day from `endTime`. StartTime string `pulumi:"startTime"` }
type GetLogsLogArgs ¶
type GetLogsLogArgs struct { // Function billing time, according to duration up to the last 100ms, unit is ms. BillDuration pulumi.IntInput `pulumi:"billDuration"` // Function execution time-consuming, unit is ms. Duration pulumi.Float64Input `pulumi:"duration"` // Name of the SCF function to be queried. FunctionName pulumi.StringInput `pulumi:"functionName"` // Whether the function call ends, `1` means the execution ends, other values indicate the call exception. InvokeFinished pulumi.IntInput `pulumi:"invokeFinished"` // Log level. Level pulumi.StringInput `pulumi:"level"` // Log output during function execution. Log pulumi.StringInput `pulumi:"log"` // The actual memory size consumed in the execution of the function, unit is Byte. MemUsage pulumi.IntInput `pulumi:"memUsage"` // Execute the requestId corresponding to the function. RequestId pulumi.StringInput `pulumi:"requestId"` // Use to filter log, optional value: `not0` only returns the error log. `is0` only returns the correct log. `TimeLimitExceeded` returns the log of the function call timeout. `ResourceLimitExceeded` returns the function call generation resource overrun log. `UserCodeException` returns logs of the user code error that occurred in the function call. Not passing the parameter means returning all logs. RetCode pulumi.IntInput `pulumi:"retCode"` // Return value after function execution is completed. RetMsg pulumi.StringInput `pulumi:"retMsg"` // Log source. Source pulumi.StringInput `pulumi:"source"` // The start time of the query, the format is `2017-05-16 20:00:00`, which can only be within one day from `endTime`. StartTime pulumi.StringInput `pulumi:"startTime"` }
func (GetLogsLogArgs) ElementType ¶
func (GetLogsLogArgs) ElementType() reflect.Type
func (GetLogsLogArgs) ToGetLogsLogOutput ¶
func (i GetLogsLogArgs) ToGetLogsLogOutput() GetLogsLogOutput
func (GetLogsLogArgs) ToGetLogsLogOutputWithContext ¶
func (i GetLogsLogArgs) ToGetLogsLogOutputWithContext(ctx context.Context) GetLogsLogOutput
type GetLogsLogArray ¶
type GetLogsLogArray []GetLogsLogInput
func (GetLogsLogArray) ElementType ¶
func (GetLogsLogArray) ElementType() reflect.Type
func (GetLogsLogArray) ToGetLogsLogArrayOutput ¶
func (i GetLogsLogArray) ToGetLogsLogArrayOutput() GetLogsLogArrayOutput
func (GetLogsLogArray) ToGetLogsLogArrayOutputWithContext ¶
func (i GetLogsLogArray) ToGetLogsLogArrayOutputWithContext(ctx context.Context) GetLogsLogArrayOutput
type GetLogsLogArrayInput ¶
type GetLogsLogArrayInput interface { pulumi.Input ToGetLogsLogArrayOutput() GetLogsLogArrayOutput ToGetLogsLogArrayOutputWithContext(context.Context) GetLogsLogArrayOutput }
GetLogsLogArrayInput is an input type that accepts GetLogsLogArray and GetLogsLogArrayOutput values. You can construct a concrete instance of `GetLogsLogArrayInput` via:
GetLogsLogArray{ GetLogsLogArgs{...} }
type GetLogsLogArrayOutput ¶
type GetLogsLogArrayOutput struct{ *pulumi.OutputState }
func (GetLogsLogArrayOutput) ElementType ¶
func (GetLogsLogArrayOutput) ElementType() reflect.Type
func (GetLogsLogArrayOutput) Index ¶
func (o GetLogsLogArrayOutput) Index(i pulumi.IntInput) GetLogsLogOutput
func (GetLogsLogArrayOutput) ToGetLogsLogArrayOutput ¶
func (o GetLogsLogArrayOutput) ToGetLogsLogArrayOutput() GetLogsLogArrayOutput
func (GetLogsLogArrayOutput) ToGetLogsLogArrayOutputWithContext ¶
func (o GetLogsLogArrayOutput) ToGetLogsLogArrayOutputWithContext(ctx context.Context) GetLogsLogArrayOutput
type GetLogsLogInput ¶
type GetLogsLogInput interface { pulumi.Input ToGetLogsLogOutput() GetLogsLogOutput ToGetLogsLogOutputWithContext(context.Context) GetLogsLogOutput }
GetLogsLogInput is an input type that accepts GetLogsLogArgs and GetLogsLogOutput values. You can construct a concrete instance of `GetLogsLogInput` via:
GetLogsLogArgs{...}
type GetLogsLogOutput ¶
type GetLogsLogOutput struct{ *pulumi.OutputState }
func (GetLogsLogOutput) BillDuration ¶
func (o GetLogsLogOutput) BillDuration() pulumi.IntOutput
Function billing time, according to duration up to the last 100ms, unit is ms.
func (GetLogsLogOutput) Duration ¶
func (o GetLogsLogOutput) Duration() pulumi.Float64Output
Function execution time-consuming, unit is ms.
func (GetLogsLogOutput) ElementType ¶
func (GetLogsLogOutput) ElementType() reflect.Type
func (GetLogsLogOutput) FunctionName ¶
func (o GetLogsLogOutput) FunctionName() pulumi.StringOutput
Name of the SCF function to be queried.
func (GetLogsLogOutput) InvokeFinished ¶
func (o GetLogsLogOutput) InvokeFinished() pulumi.IntOutput
Whether the function call ends, `1` means the execution ends, other values indicate the call exception.
func (GetLogsLogOutput) Log ¶
func (o GetLogsLogOutput) Log() pulumi.StringOutput
Log output during function execution.
func (GetLogsLogOutput) MemUsage ¶
func (o GetLogsLogOutput) MemUsage() pulumi.IntOutput
The actual memory size consumed in the execution of the function, unit is Byte.
func (GetLogsLogOutput) RequestId ¶
func (o GetLogsLogOutput) RequestId() pulumi.StringOutput
Execute the requestId corresponding to the function.
func (GetLogsLogOutput) RetCode ¶
func (o GetLogsLogOutput) RetCode() pulumi.IntOutput
Use to filter log, optional value: `not0` only returns the error log. `is0` only returns the correct log. `TimeLimitExceeded` returns the log of the function call timeout. `ResourceLimitExceeded` returns the function call generation resource overrun log. `UserCodeException` returns logs of the user code error that occurred in the function call. Not passing the parameter means returning all logs.
func (GetLogsLogOutput) RetMsg ¶
func (o GetLogsLogOutput) RetMsg() pulumi.StringOutput
Return value after function execution is completed.
func (GetLogsLogOutput) StartTime ¶
func (o GetLogsLogOutput) StartTime() pulumi.StringOutput
The start time of the query, the format is `2017-05-16 20:00:00`, which can only be within one day from `endTime`.
func (GetLogsLogOutput) ToGetLogsLogOutput ¶
func (o GetLogsLogOutput) ToGetLogsLogOutput() GetLogsLogOutput
func (GetLogsLogOutput) ToGetLogsLogOutputWithContext ¶
func (o GetLogsLogOutput) ToGetLogsLogOutputWithContext(ctx context.Context) GetLogsLogOutput
type GetLogsOutputArgs ¶
type GetLogsOutputArgs struct { // The end time of the query, the format is `2017-05-16 20:00:00`, which can only be within one day from `startTime`. EndTime pulumi.StringPtrInput `pulumi:"endTime"` // Name of the SCF function to be queried. FunctionName pulumi.StringInput `pulumi:"functionName"` // Corresponding requestId when executing function. InvokeRequestId pulumi.StringPtrInput `pulumi:"invokeRequestId"` // Number of logs, the default is `10000`, offset+limit cannot be greater than 10000. Limit pulumi.IntPtrInput `pulumi:"limit"` // Namespace of the SCF function to be queried. Namespace pulumi.StringPtrInput `pulumi:"namespace"` // Log offset, default is `0`, offset+limit cannot be greater than 10000. Offset pulumi.IntPtrInput `pulumi:"offset"` // Order to sort the log, optional values `desc` and `asc`, default `desc`. Order pulumi.StringPtrInput `pulumi:"order"` // Sort the logs according to the following fields: `functionName`, `duration`, `memUsage`, `startTime`, default `startTime`. OrderBy pulumi.StringPtrInput `pulumi:"orderBy"` // Used to save results. ResultOutputFile pulumi.StringPtrInput `pulumi:"resultOutputFile"` // Use to filter log, optional value: `not0` only returns the error log. `is0` only returns the correct log. `TimeLimitExceeded` returns the log of the function call timeout. `ResourceLimitExceeded` returns the function call generation resource overrun log. `UserCodeException` returns logs of the user code error that occurred in the function call. Not passing the parameter means returning all logs. RetCode pulumi.StringPtrInput `pulumi:"retCode"` // The start time of the query, the format is `2017-05-16 20:00:00`, which can only be within one day from `endTime`. StartTime pulumi.StringPtrInput `pulumi:"startTime"` }
A collection of arguments for invoking getLogs.
func (GetLogsOutputArgs) ElementType ¶
func (GetLogsOutputArgs) ElementType() reflect.Type
type GetLogsResult ¶
type GetLogsResult struct { EndTime *string `pulumi:"endTime"` // Name of the SCF function. FunctionName string `pulumi:"functionName"` // The provider-assigned unique ID for this managed resource. Id string `pulumi:"id"` InvokeRequestId *string `pulumi:"invokeRequestId"` Limit *int `pulumi:"limit"` // An information list of logs. Each element contains the following attributes: Logs []GetLogsLog `pulumi:"logs"` Namespace *string `pulumi:"namespace"` Offset *int `pulumi:"offset"` Order *string `pulumi:"order"` OrderBy *string `pulumi:"orderBy"` ResultOutputFile *string `pulumi:"resultOutputFile"` // Execution result of function, `0` means the execution is successful, other values indicate failure. RetCode *string `pulumi:"retCode"` // Point in time at which the function begins execution. StartTime *string `pulumi:"startTime"` }
A collection of values returned by getLogs.
func GetLogs ¶
func GetLogs(ctx *pulumi.Context, args *GetLogsArgs, opts ...pulumi.InvokeOption) (*GetLogsResult, error)
Use this data source to query SCF function logs.
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-tencentcloud/sdk/go/tencentcloud/Scf" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" "github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Scf"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { fooFunction, err := Scf.NewFunction(ctx, "fooFunction", &Scf.FunctionArgs{ Handler: pulumi.String("main.do_it"), Runtime: pulumi.String("Python3.6"), CosBucketName: pulumi.String("scf-code-1234567890"), CosObjectName: pulumi.String("code.zip"), CosBucketRegion: pulumi.String("ap-guangzhou"), }) if err != nil { return err } _ = Scf.GetLogsOutput(ctx, scf.GetLogsOutputArgs{ FunctionName: fooFunction.Name, }, nil) return nil }) }
```
type GetLogsResultOutput ¶
type GetLogsResultOutput struct{ *pulumi.OutputState }
A collection of values returned by getLogs.
func GetLogsOutput ¶
func GetLogsOutput(ctx *pulumi.Context, args GetLogsOutputArgs, opts ...pulumi.InvokeOption) GetLogsResultOutput
func (GetLogsResultOutput) ElementType ¶
func (GetLogsResultOutput) ElementType() reflect.Type
func (GetLogsResultOutput) EndTime ¶
func (o GetLogsResultOutput) EndTime() pulumi.StringPtrOutput
func (GetLogsResultOutput) FunctionName ¶
func (o GetLogsResultOutput) FunctionName() pulumi.StringOutput
Name of the SCF function.
func (GetLogsResultOutput) Id ¶
func (o GetLogsResultOutput) Id() pulumi.StringOutput
The provider-assigned unique ID for this managed resource.
func (GetLogsResultOutput) InvokeRequestId ¶
func (o GetLogsResultOutput) InvokeRequestId() pulumi.StringPtrOutput
func (GetLogsResultOutput) Limit ¶
func (o GetLogsResultOutput) Limit() pulumi.IntPtrOutput
func (GetLogsResultOutput) Logs ¶
func (o GetLogsResultOutput) Logs() GetLogsLogArrayOutput
An information list of logs. Each element contains the following attributes:
func (GetLogsResultOutput) Namespace ¶
func (o GetLogsResultOutput) Namespace() pulumi.StringPtrOutput
func (GetLogsResultOutput) Offset ¶
func (o GetLogsResultOutput) Offset() pulumi.IntPtrOutput
func (GetLogsResultOutput) Order ¶
func (o GetLogsResultOutput) Order() pulumi.StringPtrOutput
func (GetLogsResultOutput) OrderBy ¶
func (o GetLogsResultOutput) OrderBy() pulumi.StringPtrOutput
func (GetLogsResultOutput) ResultOutputFile ¶
func (o GetLogsResultOutput) ResultOutputFile() pulumi.StringPtrOutput
func (GetLogsResultOutput) RetCode ¶
func (o GetLogsResultOutput) RetCode() pulumi.StringPtrOutput
Execution result of function, `0` means the execution is successful, other values indicate failure.
func (GetLogsResultOutput) StartTime ¶
func (o GetLogsResultOutput) StartTime() pulumi.StringPtrOutput
Point in time at which the function begins execution.
func (GetLogsResultOutput) ToGetLogsResultOutput ¶
func (o GetLogsResultOutput) ToGetLogsResultOutput() GetLogsResultOutput
func (GetLogsResultOutput) ToGetLogsResultOutputWithContext ¶
func (o GetLogsResultOutput) ToGetLogsResultOutputWithContext(ctx context.Context) GetLogsResultOutput
type GetNamespacesArgs ¶
type GetNamespacesArgs struct { // Description of the SCF namespace to be queried. Description *string `pulumi:"description"` // Name of the SCF namespace to be queried. Namespace *string `pulumi:"namespace"` // Used to save results. ResultOutputFile *string `pulumi:"resultOutputFile"` }
A collection of arguments for invoking getNamespaces.
type GetNamespacesNamespace ¶
type GetNamespacesNamespace struct { // Create time of the SCF namespace. CreateTime string `pulumi:"createTime"` // Description of the SCF namespace to be queried. Description string `pulumi:"description"` // Modify time of the SCF namespace. ModifyTime string `pulumi:"modifyTime"` // Name of the SCF namespace to be queried. Namespace string `pulumi:"namespace"` // Type of the SCF namespace. Type string `pulumi:"type"` }
type GetNamespacesNamespaceArgs ¶
type GetNamespacesNamespaceArgs struct { // Create time of the SCF namespace. CreateTime pulumi.StringInput `pulumi:"createTime"` // Description of the SCF namespace to be queried. Description pulumi.StringInput `pulumi:"description"` // Modify time of the SCF namespace. ModifyTime pulumi.StringInput `pulumi:"modifyTime"` // Name of the SCF namespace to be queried. Namespace pulumi.StringInput `pulumi:"namespace"` // Type of the SCF namespace. Type pulumi.StringInput `pulumi:"type"` }
func (GetNamespacesNamespaceArgs) ElementType ¶
func (GetNamespacesNamespaceArgs) ElementType() reflect.Type
func (GetNamespacesNamespaceArgs) ToGetNamespacesNamespaceOutput ¶
func (i GetNamespacesNamespaceArgs) ToGetNamespacesNamespaceOutput() GetNamespacesNamespaceOutput
func (GetNamespacesNamespaceArgs) ToGetNamespacesNamespaceOutputWithContext ¶
func (i GetNamespacesNamespaceArgs) ToGetNamespacesNamespaceOutputWithContext(ctx context.Context) GetNamespacesNamespaceOutput
type GetNamespacesNamespaceArray ¶
type GetNamespacesNamespaceArray []GetNamespacesNamespaceInput
func (GetNamespacesNamespaceArray) ElementType ¶
func (GetNamespacesNamespaceArray) ElementType() reflect.Type
func (GetNamespacesNamespaceArray) ToGetNamespacesNamespaceArrayOutput ¶
func (i GetNamespacesNamespaceArray) ToGetNamespacesNamespaceArrayOutput() GetNamespacesNamespaceArrayOutput
func (GetNamespacesNamespaceArray) ToGetNamespacesNamespaceArrayOutputWithContext ¶
func (i GetNamespacesNamespaceArray) ToGetNamespacesNamespaceArrayOutputWithContext(ctx context.Context) GetNamespacesNamespaceArrayOutput
type GetNamespacesNamespaceArrayInput ¶
type GetNamespacesNamespaceArrayInput interface { pulumi.Input ToGetNamespacesNamespaceArrayOutput() GetNamespacesNamespaceArrayOutput ToGetNamespacesNamespaceArrayOutputWithContext(context.Context) GetNamespacesNamespaceArrayOutput }
GetNamespacesNamespaceArrayInput is an input type that accepts GetNamespacesNamespaceArray and GetNamespacesNamespaceArrayOutput values. You can construct a concrete instance of `GetNamespacesNamespaceArrayInput` via:
GetNamespacesNamespaceArray{ GetNamespacesNamespaceArgs{...} }
type GetNamespacesNamespaceArrayOutput ¶
type GetNamespacesNamespaceArrayOutput struct{ *pulumi.OutputState }
func (GetNamespacesNamespaceArrayOutput) ElementType ¶
func (GetNamespacesNamespaceArrayOutput) ElementType() reflect.Type
func (GetNamespacesNamespaceArrayOutput) Index ¶
func (o GetNamespacesNamespaceArrayOutput) Index(i pulumi.IntInput) GetNamespacesNamespaceOutput
func (GetNamespacesNamespaceArrayOutput) ToGetNamespacesNamespaceArrayOutput ¶
func (o GetNamespacesNamespaceArrayOutput) ToGetNamespacesNamespaceArrayOutput() GetNamespacesNamespaceArrayOutput
func (GetNamespacesNamespaceArrayOutput) ToGetNamespacesNamespaceArrayOutputWithContext ¶
func (o GetNamespacesNamespaceArrayOutput) ToGetNamespacesNamespaceArrayOutputWithContext(ctx context.Context) GetNamespacesNamespaceArrayOutput
type GetNamespacesNamespaceInput ¶
type GetNamespacesNamespaceInput interface { pulumi.Input ToGetNamespacesNamespaceOutput() GetNamespacesNamespaceOutput ToGetNamespacesNamespaceOutputWithContext(context.Context) GetNamespacesNamespaceOutput }
GetNamespacesNamespaceInput is an input type that accepts GetNamespacesNamespaceArgs and GetNamespacesNamespaceOutput values. You can construct a concrete instance of `GetNamespacesNamespaceInput` via:
GetNamespacesNamespaceArgs{...}
type GetNamespacesNamespaceOutput ¶
type GetNamespacesNamespaceOutput struct{ *pulumi.OutputState }
func (GetNamespacesNamespaceOutput) CreateTime ¶
func (o GetNamespacesNamespaceOutput) CreateTime() pulumi.StringOutput
Create time of the SCF namespace.
func (GetNamespacesNamespaceOutput) Description ¶
func (o GetNamespacesNamespaceOutput) Description() pulumi.StringOutput
Description of the SCF namespace to be queried.
func (GetNamespacesNamespaceOutput) ElementType ¶
func (GetNamespacesNamespaceOutput) ElementType() reflect.Type
func (GetNamespacesNamespaceOutput) ModifyTime ¶
func (o GetNamespacesNamespaceOutput) ModifyTime() pulumi.StringOutput
Modify time of the SCF namespace.
func (GetNamespacesNamespaceOutput) Namespace ¶
func (o GetNamespacesNamespaceOutput) Namespace() pulumi.StringOutput
Name of the SCF namespace to be queried.
func (GetNamespacesNamespaceOutput) ToGetNamespacesNamespaceOutput ¶
func (o GetNamespacesNamespaceOutput) ToGetNamespacesNamespaceOutput() GetNamespacesNamespaceOutput
func (GetNamespacesNamespaceOutput) ToGetNamespacesNamespaceOutputWithContext ¶
func (o GetNamespacesNamespaceOutput) ToGetNamespacesNamespaceOutputWithContext(ctx context.Context) GetNamespacesNamespaceOutput
func (GetNamespacesNamespaceOutput) Type ¶
func (o GetNamespacesNamespaceOutput) Type() pulumi.StringOutput
Type of the SCF namespace.
type GetNamespacesOutputArgs ¶
type GetNamespacesOutputArgs struct { // Description of the SCF namespace to be queried. Description pulumi.StringPtrInput `pulumi:"description"` // Name of the SCF namespace to be queried. Namespace pulumi.StringPtrInput `pulumi:"namespace"` // Used to save results. ResultOutputFile pulumi.StringPtrInput `pulumi:"resultOutputFile"` }
A collection of arguments for invoking getNamespaces.
func (GetNamespacesOutputArgs) ElementType ¶
func (GetNamespacesOutputArgs) ElementType() reflect.Type
type GetNamespacesResult ¶
type GetNamespacesResult struct { // Description of the SCF namespace. Description *string `pulumi:"description"` // The provider-assigned unique ID for this managed resource. Id string `pulumi:"id"` // Name of the SCF namespace. Namespace *string `pulumi:"namespace"` // An information list of namespace. Each element contains the following attributes: Namespaces []GetNamespacesNamespace `pulumi:"namespaces"` ResultOutputFile *string `pulumi:"resultOutputFile"` }
A collection of values returned by getNamespaces.
func GetNamespaces ¶
func GetNamespaces(ctx *pulumi.Context, args *GetNamespacesArgs, opts ...pulumi.InvokeOption) (*GetNamespacesResult, error)
Use this data source to query SCF namespaces.
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-tencentcloud/sdk/go/tencentcloud/Scf" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" "github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Scf"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { fooNamespace, err := Scf.NewNamespace(ctx, "fooNamespace", &Scf.NamespaceArgs{ Namespace: pulumi.String("ci-test-scf"), }) if err != nil { return err } _ = Scf.GetNamespacesOutput(ctx, scf.GetNamespacesOutputArgs{ Namespace: fooNamespace.ID(), }, nil) return nil }) }
```
type GetNamespacesResultOutput ¶
type GetNamespacesResultOutput struct{ *pulumi.OutputState }
A collection of values returned by getNamespaces.
func GetNamespacesOutput ¶
func GetNamespacesOutput(ctx *pulumi.Context, args GetNamespacesOutputArgs, opts ...pulumi.InvokeOption) GetNamespacesResultOutput
func (GetNamespacesResultOutput) Description ¶
func (o GetNamespacesResultOutput) Description() pulumi.StringPtrOutput
Description of the SCF namespace.
func (GetNamespacesResultOutput) ElementType ¶
func (GetNamespacesResultOutput) ElementType() reflect.Type
func (GetNamespacesResultOutput) Id ¶
func (o GetNamespacesResultOutput) Id() pulumi.StringOutput
The provider-assigned unique ID for this managed resource.
func (GetNamespacesResultOutput) Namespace ¶
func (o GetNamespacesResultOutput) Namespace() pulumi.StringPtrOutput
Name of the SCF namespace.
func (GetNamespacesResultOutput) Namespaces ¶
func (o GetNamespacesResultOutput) Namespaces() GetNamespacesNamespaceArrayOutput
An information list of namespace. Each element contains the following attributes:
func (GetNamespacesResultOutput) ResultOutputFile ¶
func (o GetNamespacesResultOutput) ResultOutputFile() pulumi.StringPtrOutput
func (GetNamespacesResultOutput) ToGetNamespacesResultOutput ¶
func (o GetNamespacesResultOutput) ToGetNamespacesResultOutput() GetNamespacesResultOutput
func (GetNamespacesResultOutput) ToGetNamespacesResultOutputWithContext ¶
func (o GetNamespacesResultOutput) ToGetNamespacesResultOutputWithContext(ctx context.Context) GetNamespacesResultOutput
type Layer ¶
type Layer struct { pulumi.CustomResourceState // The code type of layer. CodeSha256 pulumi.StringOutput `pulumi:"codeSha256"` // The compatible runtimes of layer. CompatibleRuntimes pulumi.StringArrayOutput `pulumi:"compatibleRuntimes"` // The source code of layer. Content LayerContentOutput `pulumi:"content"` // The create time of layer. CreateTime pulumi.StringOutput `pulumi:"createTime"` // The description of layer. Description pulumi.StringPtrOutput `pulumi:"description"` // The name of layer. LayerName pulumi.StringOutput `pulumi:"layerName"` // The version of layer. LayerVersion pulumi.IntOutput `pulumi:"layerVersion"` // The license info of layer. LicenseInfo pulumi.StringPtrOutput `pulumi:"licenseInfo"` // The download location url of layer. Location pulumi.StringOutput `pulumi:"location"` // The current status of layer. Status pulumi.StringOutput `pulumi:"status"` }
Provide a resource to create a SCF layer.
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-tencentcloud/sdk/go/tencentcloud/Scf" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" "github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Scf"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := Scf.NewLayer(ctx, "foo", &Scf.LayerArgs{ CompatibleRuntimes: pulumi.StringArray{ pulumi.String("Python3.6"), }, Content: &scf.LayerContentArgs{ CosBucketName: pulumi.String("test-bucket"), CosBucketRegion: pulumi.String("ap-guangzhou"), CosObjectName: pulumi.String("/foo.zip"), }, Description: pulumi.String("foo"), LayerName: pulumi.String("foo"), LicenseInfo: pulumi.String("foo"), }) if err != nil { return err } return nil }) }
```
## Import
Scf layer can be imported, e.g.
```sh
$ pulumi import tencentcloud:Scf/layer:Layer layer layerId#layerVersion
```
func GetLayer ¶
func GetLayer(ctx *pulumi.Context, name string, id pulumi.IDInput, state *LayerState, opts ...pulumi.ResourceOption) (*Layer, error)
GetLayer gets an existing Layer 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 NewLayer ¶
func NewLayer(ctx *pulumi.Context, name string, args *LayerArgs, opts ...pulumi.ResourceOption) (*Layer, error)
NewLayer registers a new resource with the given unique name, arguments, and options.
func (*Layer) ElementType ¶
func (*Layer) ToLayerOutput ¶
func (i *Layer) ToLayerOutput() LayerOutput
func (*Layer) ToLayerOutputWithContext ¶
func (i *Layer) ToLayerOutputWithContext(ctx context.Context) LayerOutput
type LayerArgs ¶
type LayerArgs struct { // The compatible runtimes of layer. CompatibleRuntimes pulumi.StringArrayInput // The source code of layer. Content LayerContentInput // The description of layer. Description pulumi.StringPtrInput // The name of layer. LayerName pulumi.StringInput // The license info of layer. LicenseInfo pulumi.StringPtrInput }
The set of arguments for constructing a Layer resource.
func (LayerArgs) ElementType ¶
type LayerArray ¶
type LayerArray []LayerInput
func (LayerArray) ElementType ¶
func (LayerArray) ElementType() reflect.Type
func (LayerArray) ToLayerArrayOutput ¶
func (i LayerArray) ToLayerArrayOutput() LayerArrayOutput
func (LayerArray) ToLayerArrayOutputWithContext ¶
func (i LayerArray) ToLayerArrayOutputWithContext(ctx context.Context) LayerArrayOutput
type LayerArrayInput ¶
type LayerArrayInput interface { pulumi.Input ToLayerArrayOutput() LayerArrayOutput ToLayerArrayOutputWithContext(context.Context) LayerArrayOutput }
LayerArrayInput is an input type that accepts LayerArray and LayerArrayOutput values. You can construct a concrete instance of `LayerArrayInput` via:
LayerArray{ LayerArgs{...} }
type LayerArrayOutput ¶
type LayerArrayOutput struct{ *pulumi.OutputState }
func (LayerArrayOutput) ElementType ¶
func (LayerArrayOutput) ElementType() reflect.Type
func (LayerArrayOutput) Index ¶
func (o LayerArrayOutput) Index(i pulumi.IntInput) LayerOutput
func (LayerArrayOutput) ToLayerArrayOutput ¶
func (o LayerArrayOutput) ToLayerArrayOutput() LayerArrayOutput
func (LayerArrayOutput) ToLayerArrayOutputWithContext ¶
func (o LayerArrayOutput) ToLayerArrayOutputWithContext(ctx context.Context) LayerArrayOutput
type LayerContent ¶
type LayerContent struct { // Cos bucket name of the SCF layer, such as `cos-1234567890`, conflict with `zipFile`. CosBucketName *string `pulumi:"cosBucketName"` // Cos bucket region of the SCF layer, conflict with `zipFile`. CosBucketRegion *string `pulumi:"cosBucketRegion"` // Cos object name of the SCF layer, should have suffix `.zip` or `.jar`, conflict with `zipFile`. CosObjectName *string `pulumi:"cosObjectName"` // Zip file of the SCF layer, conflict with `cosBucketName`, `cosObjectName`, `cosBucketRegion`. ZipFile *string `pulumi:"zipFile"` }
type LayerContentArgs ¶
type LayerContentArgs struct { // Cos bucket name of the SCF layer, such as `cos-1234567890`, conflict with `zipFile`. CosBucketName pulumi.StringPtrInput `pulumi:"cosBucketName"` // Cos bucket region of the SCF layer, conflict with `zipFile`. CosBucketRegion pulumi.StringPtrInput `pulumi:"cosBucketRegion"` // Cos object name of the SCF layer, should have suffix `.zip` or `.jar`, conflict with `zipFile`. CosObjectName pulumi.StringPtrInput `pulumi:"cosObjectName"` // Zip file of the SCF layer, conflict with `cosBucketName`, `cosObjectName`, `cosBucketRegion`. ZipFile pulumi.StringPtrInput `pulumi:"zipFile"` }
func (LayerContentArgs) ElementType ¶
func (LayerContentArgs) ElementType() reflect.Type
func (LayerContentArgs) ToLayerContentOutput ¶
func (i LayerContentArgs) ToLayerContentOutput() LayerContentOutput
func (LayerContentArgs) ToLayerContentOutputWithContext ¶
func (i LayerContentArgs) ToLayerContentOutputWithContext(ctx context.Context) LayerContentOutput
func (LayerContentArgs) ToLayerContentPtrOutput ¶
func (i LayerContentArgs) ToLayerContentPtrOutput() LayerContentPtrOutput
func (LayerContentArgs) ToLayerContentPtrOutputWithContext ¶
func (i LayerContentArgs) ToLayerContentPtrOutputWithContext(ctx context.Context) LayerContentPtrOutput
type LayerContentInput ¶
type LayerContentInput interface { pulumi.Input ToLayerContentOutput() LayerContentOutput ToLayerContentOutputWithContext(context.Context) LayerContentOutput }
LayerContentInput is an input type that accepts LayerContentArgs and LayerContentOutput values. You can construct a concrete instance of `LayerContentInput` via:
LayerContentArgs{...}
type LayerContentOutput ¶
type LayerContentOutput struct{ *pulumi.OutputState }
func (LayerContentOutput) CosBucketName ¶
func (o LayerContentOutput) CosBucketName() pulumi.StringPtrOutput
Cos bucket name of the SCF layer, such as `cos-1234567890`, conflict with `zipFile`.
func (LayerContentOutput) CosBucketRegion ¶
func (o LayerContentOutput) CosBucketRegion() pulumi.StringPtrOutput
Cos bucket region of the SCF layer, conflict with `zipFile`.
func (LayerContentOutput) CosObjectName ¶
func (o LayerContentOutput) CosObjectName() pulumi.StringPtrOutput
Cos object name of the SCF layer, should have suffix `.zip` or `.jar`, conflict with `zipFile`.
func (LayerContentOutput) ElementType ¶
func (LayerContentOutput) ElementType() reflect.Type
func (LayerContentOutput) ToLayerContentOutput ¶
func (o LayerContentOutput) ToLayerContentOutput() LayerContentOutput
func (LayerContentOutput) ToLayerContentOutputWithContext ¶
func (o LayerContentOutput) ToLayerContentOutputWithContext(ctx context.Context) LayerContentOutput
func (LayerContentOutput) ToLayerContentPtrOutput ¶
func (o LayerContentOutput) ToLayerContentPtrOutput() LayerContentPtrOutput
func (LayerContentOutput) ToLayerContentPtrOutputWithContext ¶
func (o LayerContentOutput) ToLayerContentPtrOutputWithContext(ctx context.Context) LayerContentPtrOutput
func (LayerContentOutput) ZipFile ¶
func (o LayerContentOutput) ZipFile() pulumi.StringPtrOutput
Zip file of the SCF layer, conflict with `cosBucketName`, `cosObjectName`, `cosBucketRegion`.
type LayerContentPtrInput ¶
type LayerContentPtrInput interface { pulumi.Input ToLayerContentPtrOutput() LayerContentPtrOutput ToLayerContentPtrOutputWithContext(context.Context) LayerContentPtrOutput }
LayerContentPtrInput is an input type that accepts LayerContentArgs, LayerContentPtr and LayerContentPtrOutput values. You can construct a concrete instance of `LayerContentPtrInput` via:
LayerContentArgs{...} or: nil
func LayerContentPtr ¶
func LayerContentPtr(v *LayerContentArgs) LayerContentPtrInput
type LayerContentPtrOutput ¶
type LayerContentPtrOutput struct{ *pulumi.OutputState }
func (LayerContentPtrOutput) CosBucketName ¶
func (o LayerContentPtrOutput) CosBucketName() pulumi.StringPtrOutput
Cos bucket name of the SCF layer, such as `cos-1234567890`, conflict with `zipFile`.
func (LayerContentPtrOutput) CosBucketRegion ¶
func (o LayerContentPtrOutput) CosBucketRegion() pulumi.StringPtrOutput
Cos bucket region of the SCF layer, conflict with `zipFile`.
func (LayerContentPtrOutput) CosObjectName ¶
func (o LayerContentPtrOutput) CosObjectName() pulumi.StringPtrOutput
Cos object name of the SCF layer, should have suffix `.zip` or `.jar`, conflict with `zipFile`.
func (LayerContentPtrOutput) Elem ¶
func (o LayerContentPtrOutput) Elem() LayerContentOutput
func (LayerContentPtrOutput) ElementType ¶
func (LayerContentPtrOutput) ElementType() reflect.Type
func (LayerContentPtrOutput) ToLayerContentPtrOutput ¶
func (o LayerContentPtrOutput) ToLayerContentPtrOutput() LayerContentPtrOutput
func (LayerContentPtrOutput) ToLayerContentPtrOutputWithContext ¶
func (o LayerContentPtrOutput) ToLayerContentPtrOutputWithContext(ctx context.Context) LayerContentPtrOutput
func (LayerContentPtrOutput) ZipFile ¶
func (o LayerContentPtrOutput) ZipFile() pulumi.StringPtrOutput
Zip file of the SCF layer, conflict with `cosBucketName`, `cosObjectName`, `cosBucketRegion`.
type LayerInput ¶
type LayerInput interface { pulumi.Input ToLayerOutput() LayerOutput ToLayerOutputWithContext(ctx context.Context) LayerOutput }
type LayerMap ¶
type LayerMap map[string]LayerInput
func (LayerMap) ElementType ¶
func (LayerMap) ToLayerMapOutput ¶
func (i LayerMap) ToLayerMapOutput() LayerMapOutput
func (LayerMap) ToLayerMapOutputWithContext ¶
func (i LayerMap) ToLayerMapOutputWithContext(ctx context.Context) LayerMapOutput
type LayerMapInput ¶
type LayerMapInput interface { pulumi.Input ToLayerMapOutput() LayerMapOutput ToLayerMapOutputWithContext(context.Context) LayerMapOutput }
LayerMapInput is an input type that accepts LayerMap and LayerMapOutput values. You can construct a concrete instance of `LayerMapInput` via:
LayerMap{ "key": LayerArgs{...} }
type LayerMapOutput ¶
type LayerMapOutput struct{ *pulumi.OutputState }
func (LayerMapOutput) ElementType ¶
func (LayerMapOutput) ElementType() reflect.Type
func (LayerMapOutput) MapIndex ¶
func (o LayerMapOutput) MapIndex(k pulumi.StringInput) LayerOutput
func (LayerMapOutput) ToLayerMapOutput ¶
func (o LayerMapOutput) ToLayerMapOutput() LayerMapOutput
func (LayerMapOutput) ToLayerMapOutputWithContext ¶
func (o LayerMapOutput) ToLayerMapOutputWithContext(ctx context.Context) LayerMapOutput
type LayerOutput ¶
type LayerOutput struct{ *pulumi.OutputState }
func (LayerOutput) CodeSha256 ¶
func (o LayerOutput) CodeSha256() pulumi.StringOutput
The code type of layer.
func (LayerOutput) CompatibleRuntimes ¶
func (o LayerOutput) CompatibleRuntimes() pulumi.StringArrayOutput
The compatible runtimes of layer.
func (LayerOutput) Content ¶
func (o LayerOutput) Content() LayerContentOutput
The source code of layer.
func (LayerOutput) CreateTime ¶
func (o LayerOutput) CreateTime() pulumi.StringOutput
The create time of layer.
func (LayerOutput) Description ¶
func (o LayerOutput) Description() pulumi.StringPtrOutput
The description of layer.
func (LayerOutput) ElementType ¶
func (LayerOutput) ElementType() reflect.Type
func (LayerOutput) LayerName ¶
func (o LayerOutput) LayerName() pulumi.StringOutput
The name of layer.
func (LayerOutput) LayerVersion ¶
func (o LayerOutput) LayerVersion() pulumi.IntOutput
The version of layer.
func (LayerOutput) LicenseInfo ¶
func (o LayerOutput) LicenseInfo() pulumi.StringPtrOutput
The license info of layer.
func (LayerOutput) Location ¶
func (o LayerOutput) Location() pulumi.StringOutput
The download location url of layer.
func (LayerOutput) Status ¶
func (o LayerOutput) Status() pulumi.StringOutput
The current status of layer.
func (LayerOutput) ToLayerOutput ¶
func (o LayerOutput) ToLayerOutput() LayerOutput
func (LayerOutput) ToLayerOutputWithContext ¶
func (o LayerOutput) ToLayerOutputWithContext(ctx context.Context) LayerOutput
type LayerState ¶
type LayerState struct { // The code type of layer. CodeSha256 pulumi.StringPtrInput // The compatible runtimes of layer. CompatibleRuntimes pulumi.StringArrayInput // The source code of layer. Content LayerContentPtrInput // The create time of layer. CreateTime pulumi.StringPtrInput // The description of layer. Description pulumi.StringPtrInput // The name of layer. LayerName pulumi.StringPtrInput // The version of layer. LayerVersion pulumi.IntPtrInput // The license info of layer. LicenseInfo pulumi.StringPtrInput // The download location url of layer. Location pulumi.StringPtrInput // The current status of layer. Status pulumi.StringPtrInput }
func (LayerState) ElementType ¶
func (LayerState) ElementType() reflect.Type
type Namespace ¶
type Namespace struct { pulumi.CustomResourceState // SCF namespace creation time. CreateTime pulumi.StringOutput `pulumi:"createTime"` // Description of the SCF namespace. Description pulumi.StringPtrOutput `pulumi:"description"` // SCF namespace last modified time. ModifyTime pulumi.StringOutput `pulumi:"modifyTime"` // Name of the SCF namespace. Namespace pulumi.StringOutput `pulumi:"namespace"` // SCF namespace type. Type pulumi.StringOutput `pulumi:"type"` }
Provide a resource to create a SCF namespace.
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi" "github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Scf"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := Scf.NewNamespace(ctx, "foo", &Scf.NamespaceArgs{ Namespace: pulumi.String("ci-test-scf"), }) if err != nil { return err } return nil }) }
```
## Import
SCF namespace can be imported, e.g.
```sh
$ pulumi import tencentcloud:Scf/namespace:Namespace test default
```
func GetNamespace ¶
func GetNamespace(ctx *pulumi.Context, name string, id pulumi.IDInput, state *NamespaceState, opts ...pulumi.ResourceOption) (*Namespace, error)
GetNamespace gets an existing Namespace 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 NewNamespace ¶
func NewNamespace(ctx *pulumi.Context, name string, args *NamespaceArgs, opts ...pulumi.ResourceOption) (*Namespace, error)
NewNamespace registers a new resource with the given unique name, arguments, and options.
func (*Namespace) ElementType ¶
func (*Namespace) ToNamespaceOutput ¶
func (i *Namespace) ToNamespaceOutput() NamespaceOutput
func (*Namespace) ToNamespaceOutputWithContext ¶
func (i *Namespace) ToNamespaceOutputWithContext(ctx context.Context) NamespaceOutput
type NamespaceArgs ¶
type NamespaceArgs struct { // Description of the SCF namespace. Description pulumi.StringPtrInput // Name of the SCF namespace. Namespace pulumi.StringInput }
The set of arguments for constructing a Namespace resource.
func (NamespaceArgs) ElementType ¶
func (NamespaceArgs) ElementType() reflect.Type
type NamespaceArray ¶
type NamespaceArray []NamespaceInput
func (NamespaceArray) ElementType ¶
func (NamespaceArray) ElementType() reflect.Type
func (NamespaceArray) ToNamespaceArrayOutput ¶
func (i NamespaceArray) ToNamespaceArrayOutput() NamespaceArrayOutput
func (NamespaceArray) ToNamespaceArrayOutputWithContext ¶
func (i NamespaceArray) ToNamespaceArrayOutputWithContext(ctx context.Context) NamespaceArrayOutput
type NamespaceArrayInput ¶
type NamespaceArrayInput interface { pulumi.Input ToNamespaceArrayOutput() NamespaceArrayOutput ToNamespaceArrayOutputWithContext(context.Context) NamespaceArrayOutput }
NamespaceArrayInput is an input type that accepts NamespaceArray and NamespaceArrayOutput values. You can construct a concrete instance of `NamespaceArrayInput` via:
NamespaceArray{ NamespaceArgs{...} }
type NamespaceArrayOutput ¶
type NamespaceArrayOutput struct{ *pulumi.OutputState }
func (NamespaceArrayOutput) ElementType ¶
func (NamespaceArrayOutput) ElementType() reflect.Type
func (NamespaceArrayOutput) Index ¶
func (o NamespaceArrayOutput) Index(i pulumi.IntInput) NamespaceOutput
func (NamespaceArrayOutput) ToNamespaceArrayOutput ¶
func (o NamespaceArrayOutput) ToNamespaceArrayOutput() NamespaceArrayOutput
func (NamespaceArrayOutput) ToNamespaceArrayOutputWithContext ¶
func (o NamespaceArrayOutput) ToNamespaceArrayOutputWithContext(ctx context.Context) NamespaceArrayOutput
type NamespaceInput ¶
type NamespaceInput interface { pulumi.Input ToNamespaceOutput() NamespaceOutput ToNamespaceOutputWithContext(ctx context.Context) NamespaceOutput }
type NamespaceMap ¶
type NamespaceMap map[string]NamespaceInput
func (NamespaceMap) ElementType ¶
func (NamespaceMap) ElementType() reflect.Type
func (NamespaceMap) ToNamespaceMapOutput ¶
func (i NamespaceMap) ToNamespaceMapOutput() NamespaceMapOutput
func (NamespaceMap) ToNamespaceMapOutputWithContext ¶
func (i NamespaceMap) ToNamespaceMapOutputWithContext(ctx context.Context) NamespaceMapOutput
type NamespaceMapInput ¶
type NamespaceMapInput interface { pulumi.Input ToNamespaceMapOutput() NamespaceMapOutput ToNamespaceMapOutputWithContext(context.Context) NamespaceMapOutput }
NamespaceMapInput is an input type that accepts NamespaceMap and NamespaceMapOutput values. You can construct a concrete instance of `NamespaceMapInput` via:
NamespaceMap{ "key": NamespaceArgs{...} }
type NamespaceMapOutput ¶
type NamespaceMapOutput struct{ *pulumi.OutputState }
func (NamespaceMapOutput) ElementType ¶
func (NamespaceMapOutput) ElementType() reflect.Type
func (NamespaceMapOutput) MapIndex ¶
func (o NamespaceMapOutput) MapIndex(k pulumi.StringInput) NamespaceOutput
func (NamespaceMapOutput) ToNamespaceMapOutput ¶
func (o NamespaceMapOutput) ToNamespaceMapOutput() NamespaceMapOutput
func (NamespaceMapOutput) ToNamespaceMapOutputWithContext ¶
func (o NamespaceMapOutput) ToNamespaceMapOutputWithContext(ctx context.Context) NamespaceMapOutput
type NamespaceOutput ¶
type NamespaceOutput struct{ *pulumi.OutputState }
func (NamespaceOutput) CreateTime ¶
func (o NamespaceOutput) CreateTime() pulumi.StringOutput
SCF namespace creation time.
func (NamespaceOutput) Description ¶
func (o NamespaceOutput) Description() pulumi.StringPtrOutput
Description of the SCF namespace.
func (NamespaceOutput) ElementType ¶
func (NamespaceOutput) ElementType() reflect.Type
func (NamespaceOutput) ModifyTime ¶
func (o NamespaceOutput) ModifyTime() pulumi.StringOutput
SCF namespace last modified time.
func (NamespaceOutput) Namespace ¶
func (o NamespaceOutput) Namespace() pulumi.StringOutput
Name of the SCF namespace.
func (NamespaceOutput) ToNamespaceOutput ¶
func (o NamespaceOutput) ToNamespaceOutput() NamespaceOutput
func (NamespaceOutput) ToNamespaceOutputWithContext ¶
func (o NamespaceOutput) ToNamespaceOutputWithContext(ctx context.Context) NamespaceOutput
func (NamespaceOutput) Type ¶
func (o NamespaceOutput) Type() pulumi.StringOutput
SCF namespace type.
type NamespaceState ¶
type NamespaceState struct { // SCF namespace creation time. CreateTime pulumi.StringPtrInput // Description of the SCF namespace. Description pulumi.StringPtrInput // SCF namespace last modified time. ModifyTime pulumi.StringPtrInput // Name of the SCF namespace. Namespace pulumi.StringPtrInput // SCF namespace type. Type pulumi.StringPtrInput }
func (NamespaceState) ElementType ¶
func (NamespaceState) ElementType() reflect.Type