fc

package
v2.12.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 10, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Function

type Function struct {
	pulumi.CustomResourceState

	// The checksum (crc64) of the function code.
	CodeChecksum pulumi.StringOutput `pulumi:"codeChecksum"`
	// The Function Compute function description.
	Description pulumi.StringPtrOutput `pulumi:"description"`
	// A map that defines environment variables for the function.
	EnvironmentVariables pulumi.MapOutput `pulumi:"environmentVariables"`
	// The path to the function's deployment package within the local filesystem. It is conflict with the `oss_`-prefixed options.
	Filename pulumi.StringPtrOutput `pulumi:"filename"`
	// The Function Compute service ID.
	FunctionId pulumi.StringOutput `pulumi:"functionId"`
	// The function [entry point](https://www.alibabacloud.com/help/doc-detail/62213.htm) in your code.
	Handler pulumi.StringOutput `pulumi:"handler"`
	// The date this resource was last modified.
	LastModified pulumi.StringOutput `pulumi:"lastModified"`
	// Amount of memory in MB your Function can use at runtime. Defaults to `128`. Limits to [128, 3072].
	MemorySize pulumi.IntPtrOutput `pulumi:"memorySize"`
	// The Function Compute function name. It is the only in one service and is conflict with "namePrefix".
	Name pulumi.StringOutput `pulumi:"name"`
	// Setting a prefix to get a only function name. It is conflict with "name".
	NamePrefix pulumi.StringPtrOutput `pulumi:"namePrefix"`
	// The OSS bucket location containing the function's deployment package. Conflicts with `filename`. This bucket must reside in the same Alibaba Cloud region where you are creating the function.
	OssBucket pulumi.StringPtrOutput `pulumi:"ossBucket"`
	// The OSS key of an object containing the function's deployment package. Conflicts with `filename`.
	OssKey pulumi.StringPtrOutput `pulumi:"ossKey"`
	// See [Runtimes][https://www.alibabacloud.com/help/doc-detail/52077.htm] for valid values.
	Runtime pulumi.StringOutput `pulumi:"runtime"`
	// The Function Compute service name.
	Service pulumi.StringOutput `pulumi:"service"`
	// The amount of time your Function has to run in seconds.
	Timeout pulumi.IntPtrOutput `pulumi:"timeout"`
}

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.

type FunctionArgs

type FunctionArgs struct {
	// The checksum (crc64) of the function code.
	CodeChecksum pulumi.StringPtrInput
	// The Function Compute function description.
	Description pulumi.StringPtrInput
	// A map that defines environment variables for the function.
	EnvironmentVariables pulumi.MapInput
	// The path to the function's deployment package within the local filesystem. It is conflict with the `oss_`-prefixed options.
	Filename pulumi.StringPtrInput
	// The function [entry point](https://www.alibabacloud.com/help/doc-detail/62213.htm) in your code.
	Handler pulumi.StringInput
	// Amount of memory in MB your Function can use at runtime. Defaults to `128`. Limits to [128, 3072].
	MemorySize pulumi.IntPtrInput
	// The Function Compute function name. It is the only in one service and is conflict with "namePrefix".
	Name pulumi.StringPtrInput
	// Setting a prefix to get a only function name. It is conflict with "name".
	NamePrefix pulumi.StringPtrInput
	// The OSS bucket location containing the function's deployment package. Conflicts with `filename`. This bucket must reside in the same Alibaba Cloud region where you are creating the function.
	OssBucket pulumi.StringPtrInput
	// The OSS key of an object containing the function's deployment package. Conflicts with `filename`.
	OssKey pulumi.StringPtrInput
	// See [Runtimes][https://www.alibabacloud.com/help/doc-detail/52077.htm] for valid values.
	Runtime pulumi.StringInput
	// The Function Compute service name.
	Service pulumi.StringInput
	// The amount of time your Function has to run in seconds.
	Timeout pulumi.IntPtrInput
}

The set of arguments for constructing a Function resource.

func (FunctionArgs) ElementType

func (FunctionArgs) ElementType() reflect.Type

type FunctionState

type FunctionState struct {
	// The checksum (crc64) of the function code.
	CodeChecksum pulumi.StringPtrInput
	// The Function Compute function description.
	Description pulumi.StringPtrInput
	// A map that defines environment variables for the function.
	EnvironmentVariables pulumi.MapInput
	// The path to the function's deployment package within the local filesystem. It is conflict with the `oss_`-prefixed options.
	Filename pulumi.StringPtrInput
	// The Function Compute service ID.
	FunctionId pulumi.StringPtrInput
	// The function [entry point](https://www.alibabacloud.com/help/doc-detail/62213.htm) in your code.
	Handler pulumi.StringPtrInput
	// The date this resource was last modified.
	LastModified pulumi.StringPtrInput
	// Amount of memory in MB your Function can use at runtime. Defaults to `128`. Limits to [128, 3072].
	MemorySize pulumi.IntPtrInput
	// The Function Compute function name. It is the only in one service and is conflict with "namePrefix".
	Name pulumi.StringPtrInput
	// Setting a prefix to get a only function name. It is conflict with "name".
	NamePrefix pulumi.StringPtrInput
	// The OSS bucket location containing the function's deployment package. Conflicts with `filename`. This bucket must reside in the same Alibaba Cloud region where you are creating the function.
	OssBucket pulumi.StringPtrInput
	// The OSS key of an object containing the function's deployment package. Conflicts with `filename`.
	OssKey pulumi.StringPtrInput
	// See [Runtimes][https://www.alibabacloud.com/help/doc-detail/52077.htm] for valid values.
	Runtime pulumi.StringPtrInput
	// The Function Compute service name.
	Service pulumi.StringPtrInput
	// The amount of time your Function has to run in seconds.
	Timeout pulumi.IntPtrInput
}

func (FunctionState) ElementType

func (FunctionState) ElementType() reflect.Type

type GetFunctionsArgs

type GetFunctionsArgs struct {
	// - A list of functions ids.
	Ids []string `pulumi:"ids"`
	// A regex string to filter results by function name.
	NameRegex  *string `pulumi:"nameRegex"`
	OutputFile *string `pulumi:"outputFile"`
	// Name of the service that contains the functions to find.
	ServiceName string `pulumi:"serviceName"`
}

A collection of arguments for invoking getFunctions.

type GetFunctionsFunction

type GetFunctionsFunction struct {
	// Checksum (crc64) of the function code.
	CodeChecksum string `pulumi:"codeChecksum"`
	// Function code size in bytes.
	CodeSize int `pulumi:"codeSize"`
	// Function creation time.
	CreationTime string `pulumi:"creationTime"`
	// Function description.
	Description string `pulumi:"description"`
	// A map that defines environment variables for the function.
	EnvironmentVariables map[string]interface{} `pulumi:"environmentVariables"`
	// Function [entry point](https://www.alibabacloud.com/help/doc-detail/62213.htm) in the code.
	Handler string `pulumi:"handler"`
	// Function ID.
	Id string `pulumi:"id"`
	// Function last modification time.
	LastModificationTime string `pulumi:"lastModificationTime"`
	// Amount of memory in MB the function can use at runtime.
	MemorySize int `pulumi:"memorySize"`
	// Function name.
	Name string `pulumi:"name"`
	// Function runtime. The list of possible values is [available here](https://www.alibabacloud.com/help/doc-detail/52077.htm).
	Runtime string `pulumi:"runtime"`
	// Maximum amount of time the function can run in seconds.
	Timeout int `pulumi:"timeout"`
}

type GetFunctionsFunctionArgs

type GetFunctionsFunctionArgs struct {
	// Checksum (crc64) of the function code.
	CodeChecksum pulumi.StringInput `pulumi:"codeChecksum"`
	// Function code size in bytes.
	CodeSize pulumi.IntInput `pulumi:"codeSize"`
	// Function creation time.
	CreationTime pulumi.StringInput `pulumi:"creationTime"`
	// Function description.
	Description pulumi.StringInput `pulumi:"description"`
	// A map that defines environment variables for the function.
	EnvironmentVariables pulumi.MapInput `pulumi:"environmentVariables"`
	// Function [entry point](https://www.alibabacloud.com/help/doc-detail/62213.htm) in the code.
	Handler pulumi.StringInput `pulumi:"handler"`
	// Function ID.
	Id pulumi.StringInput `pulumi:"id"`
	// Function last modification time.
	LastModificationTime pulumi.StringInput `pulumi:"lastModificationTime"`
	// Amount of memory in MB the function can use at runtime.
	MemorySize pulumi.IntInput `pulumi:"memorySize"`
	// Function name.
	Name pulumi.StringInput `pulumi:"name"`
	// Function runtime. The list of possible values is [available here](https://www.alibabacloud.com/help/doc-detail/52077.htm).
	Runtime pulumi.StringInput `pulumi:"runtime"`
	// Maximum amount of time the function can run in seconds.
	Timeout pulumi.IntInput `pulumi:"timeout"`
}

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) Index

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) CodeChecksum

Checksum (crc64) of the function code.

func (GetFunctionsFunctionOutput) CodeSize

Function code size in bytes.

func (GetFunctionsFunctionOutput) CreationTime

Function creation time.

func (GetFunctionsFunctionOutput) Description

Function description.

func (GetFunctionsFunctionOutput) ElementType

func (GetFunctionsFunctionOutput) ElementType() reflect.Type

func (GetFunctionsFunctionOutput) EnvironmentVariables

func (o GetFunctionsFunctionOutput) EnvironmentVariables() pulumi.MapOutput

A map that defines environment variables for the function.

func (GetFunctionsFunctionOutput) Handler

Function [entry point](https://www.alibabacloud.com/help/doc-detail/62213.htm) in the code.

func (GetFunctionsFunctionOutput) Id

Function ID.

func (GetFunctionsFunctionOutput) LastModificationTime

func (o GetFunctionsFunctionOutput) LastModificationTime() pulumi.StringOutput

Function last modification time.

func (GetFunctionsFunctionOutput) MemorySize

Amount of memory in MB the function can use at runtime.

func (GetFunctionsFunctionOutput) Name

Function name.

func (GetFunctionsFunctionOutput) Runtime

Function runtime. The list of possible values is [available here](https://www.alibabacloud.com/help/doc-detail/52077.htm).

func (GetFunctionsFunctionOutput) Timeout

Maximum amount of time the function can run in seconds.

func (GetFunctionsFunctionOutput) ToGetFunctionsFunctionOutput

func (o GetFunctionsFunctionOutput) ToGetFunctionsFunctionOutput() GetFunctionsFunctionOutput

func (GetFunctionsFunctionOutput) ToGetFunctionsFunctionOutputWithContext

func (o GetFunctionsFunctionOutput) ToGetFunctionsFunctionOutputWithContext(ctx context.Context) GetFunctionsFunctionOutput

type GetFunctionsResult

type GetFunctionsResult struct {
	// A 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"`
	// A list of functions ids.
	Ids       []string `pulumi:"ids"`
	NameRegex *string  `pulumi:"nameRegex"`
	// A list of functions names.
	Names       []string `pulumi:"names"`
	OutputFile  *string  `pulumi:"outputFile"`
	ServiceName string   `pulumi:"serviceName"`
}

A collection of values returned by getFunctions.

func GetFunctions

func GetFunctions(ctx *pulumi.Context, args *GetFunctionsArgs, opts ...pulumi.InvokeOption) (*GetFunctionsResult, error)

This data source provides the Function Compute functions of the current Alibaba Cloud user.

type GetServicesArgs

type GetServicesArgs struct {
	// - A list of FC services ids.
	Ids []string `pulumi:"ids"`
	// A regex string to filter results by FC service name.
	NameRegex  *string `pulumi:"nameRegex"`
	OutputFile *string `pulumi:"outputFile"`
}

A collection of arguments for invoking getServices.

type GetServicesResult

type GetServicesResult struct {
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// A list of FC services ids.
	Ids       []string `pulumi:"ids"`
	NameRegex *string  `pulumi:"nameRegex"`
	// A list of FC services names.
	Names      []string `pulumi:"names"`
	OutputFile *string  `pulumi:"outputFile"`
	// A list of FC services. Each element contains the following attributes:
	Services []GetServicesService `pulumi:"services"`
}

A collection of values returned by getServices.

func GetServices

func GetServices(ctx *pulumi.Context, args *GetServicesArgs, opts ...pulumi.InvokeOption) (*GetServicesResult, error)

This data source provides the Function Compute services of the current Alibaba Cloud user.

type GetServicesService

type GetServicesService struct {
	// FC service creation time.
	CreationTime string `pulumi:"creationTime"`
	// FC service description.
	Description string `pulumi:"description"`
	// FC service ID.
	Id string `pulumi:"id"`
	// Indicate whether the service can access to internet or not.
	InternetAccess bool `pulumi:"internetAccess"`
	// FC service last modification time.
	LastModificationTime string `pulumi:"lastModificationTime"`
	// A list of one element containing information about the associated log store. It contains the following attributes:
	LogConfig GetServicesServiceLogConfig `pulumi:"logConfig"`
	// FC service name.
	Name string `pulumi:"name"`
	// FC service role ARN.
	Role string `pulumi:"role"`
	// A list of one element containing information about accessible VPC resources. It contains the following attributes:
	VpcConfig GetServicesServiceVpcConfig `pulumi:"vpcConfig"`
}

type GetServicesServiceArgs

type GetServicesServiceArgs struct {
	// FC service creation time.
	CreationTime pulumi.StringInput `pulumi:"creationTime"`
	// FC service description.
	Description pulumi.StringInput `pulumi:"description"`
	// FC service ID.
	Id pulumi.StringInput `pulumi:"id"`
	// Indicate whether the service can access to internet or not.
	InternetAccess pulumi.BoolInput `pulumi:"internetAccess"`
	// FC service last modification time.
	LastModificationTime pulumi.StringInput `pulumi:"lastModificationTime"`
	// A list of one element containing information about the associated log store. It contains the following attributes:
	LogConfig GetServicesServiceLogConfigInput `pulumi:"logConfig"`
	// FC service name.
	Name pulumi.StringInput `pulumi:"name"`
	// FC service role ARN.
	Role pulumi.StringInput `pulumi:"role"`
	// A list of one element containing information about accessible VPC resources. It contains the following attributes:
	VpcConfig GetServicesServiceVpcConfigInput `pulumi:"vpcConfig"`
}

func (GetServicesServiceArgs) ElementType

func (GetServicesServiceArgs) ElementType() reflect.Type

func (GetServicesServiceArgs) ToGetServicesServiceOutput

func (i GetServicesServiceArgs) ToGetServicesServiceOutput() GetServicesServiceOutput

func (GetServicesServiceArgs) ToGetServicesServiceOutputWithContext

func (i GetServicesServiceArgs) ToGetServicesServiceOutputWithContext(ctx context.Context) GetServicesServiceOutput

type GetServicesServiceArray

type GetServicesServiceArray []GetServicesServiceInput

func (GetServicesServiceArray) ElementType

func (GetServicesServiceArray) ElementType() reflect.Type

func (GetServicesServiceArray) ToGetServicesServiceArrayOutput

func (i GetServicesServiceArray) ToGetServicesServiceArrayOutput() GetServicesServiceArrayOutput

func (GetServicesServiceArray) ToGetServicesServiceArrayOutputWithContext

func (i GetServicesServiceArray) ToGetServicesServiceArrayOutputWithContext(ctx context.Context) GetServicesServiceArrayOutput

type GetServicesServiceArrayInput

type GetServicesServiceArrayInput interface {
	pulumi.Input

	ToGetServicesServiceArrayOutput() GetServicesServiceArrayOutput
	ToGetServicesServiceArrayOutputWithContext(context.Context) GetServicesServiceArrayOutput
}

GetServicesServiceArrayInput is an input type that accepts GetServicesServiceArray and GetServicesServiceArrayOutput values. You can construct a concrete instance of `GetServicesServiceArrayInput` via:

GetServicesServiceArray{ GetServicesServiceArgs{...} }

type GetServicesServiceArrayOutput

type GetServicesServiceArrayOutput struct{ *pulumi.OutputState }

func (GetServicesServiceArrayOutput) ElementType

func (GetServicesServiceArrayOutput) Index

func (GetServicesServiceArrayOutput) ToGetServicesServiceArrayOutput

func (o GetServicesServiceArrayOutput) ToGetServicesServiceArrayOutput() GetServicesServiceArrayOutput

func (GetServicesServiceArrayOutput) ToGetServicesServiceArrayOutputWithContext

func (o GetServicesServiceArrayOutput) ToGetServicesServiceArrayOutputWithContext(ctx context.Context) GetServicesServiceArrayOutput

type GetServicesServiceInput

type GetServicesServiceInput interface {
	pulumi.Input

	ToGetServicesServiceOutput() GetServicesServiceOutput
	ToGetServicesServiceOutputWithContext(context.Context) GetServicesServiceOutput
}

GetServicesServiceInput is an input type that accepts GetServicesServiceArgs and GetServicesServiceOutput values. You can construct a concrete instance of `GetServicesServiceInput` via:

GetServicesServiceArgs{...}

type GetServicesServiceLogConfig

type GetServicesServiceLogConfig struct {
	// Log Service store name.
	Logstore string `pulumi:"logstore"`
	// Log Service project name.
	Project string `pulumi:"project"`
}

type GetServicesServiceLogConfigArgs

type GetServicesServiceLogConfigArgs struct {
	// Log Service store name.
	Logstore pulumi.StringInput `pulumi:"logstore"`
	// Log Service project name.
	Project pulumi.StringInput `pulumi:"project"`
}

func (GetServicesServiceLogConfigArgs) ElementType

func (GetServicesServiceLogConfigArgs) ToGetServicesServiceLogConfigOutput

func (i GetServicesServiceLogConfigArgs) ToGetServicesServiceLogConfigOutput() GetServicesServiceLogConfigOutput

func (GetServicesServiceLogConfigArgs) ToGetServicesServiceLogConfigOutputWithContext

func (i GetServicesServiceLogConfigArgs) ToGetServicesServiceLogConfigOutputWithContext(ctx context.Context) GetServicesServiceLogConfigOutput

type GetServicesServiceLogConfigInput

type GetServicesServiceLogConfigInput interface {
	pulumi.Input

	ToGetServicesServiceLogConfigOutput() GetServicesServiceLogConfigOutput
	ToGetServicesServiceLogConfigOutputWithContext(context.Context) GetServicesServiceLogConfigOutput
}

GetServicesServiceLogConfigInput is an input type that accepts GetServicesServiceLogConfigArgs and GetServicesServiceLogConfigOutput values. You can construct a concrete instance of `GetServicesServiceLogConfigInput` via:

GetServicesServiceLogConfigArgs{...}

type GetServicesServiceLogConfigOutput

type GetServicesServiceLogConfigOutput struct{ *pulumi.OutputState }

func (GetServicesServiceLogConfigOutput) ElementType

func (GetServicesServiceLogConfigOutput) Logstore

Log Service store name.

func (GetServicesServiceLogConfigOutput) Project

Log Service project name.

func (GetServicesServiceLogConfigOutput) ToGetServicesServiceLogConfigOutput

func (o GetServicesServiceLogConfigOutput) ToGetServicesServiceLogConfigOutput() GetServicesServiceLogConfigOutput

func (GetServicesServiceLogConfigOutput) ToGetServicesServiceLogConfigOutputWithContext

func (o GetServicesServiceLogConfigOutput) ToGetServicesServiceLogConfigOutputWithContext(ctx context.Context) GetServicesServiceLogConfigOutput

type GetServicesServiceOutput

type GetServicesServiceOutput struct{ *pulumi.OutputState }

func (GetServicesServiceOutput) CreationTime

func (o GetServicesServiceOutput) CreationTime() pulumi.StringOutput

FC service creation time.

func (GetServicesServiceOutput) Description

FC service description.

func (GetServicesServiceOutput) ElementType

func (GetServicesServiceOutput) ElementType() reflect.Type

func (GetServicesServiceOutput) Id

FC service ID.

func (GetServicesServiceOutput) InternetAccess

func (o GetServicesServiceOutput) InternetAccess() pulumi.BoolOutput

Indicate whether the service can access to internet or not.

func (GetServicesServiceOutput) LastModificationTime

func (o GetServicesServiceOutput) LastModificationTime() pulumi.StringOutput

FC service last modification time.

func (GetServicesServiceOutput) LogConfig

A list of one element containing information about the associated log store. It contains the following attributes:

func (GetServicesServiceOutput) Name

FC service name.

func (GetServicesServiceOutput) Role

FC service role ARN.

func (GetServicesServiceOutput) ToGetServicesServiceOutput

func (o GetServicesServiceOutput) ToGetServicesServiceOutput() GetServicesServiceOutput

func (GetServicesServiceOutput) ToGetServicesServiceOutputWithContext

func (o GetServicesServiceOutput) ToGetServicesServiceOutputWithContext(ctx context.Context) GetServicesServiceOutput

func (GetServicesServiceOutput) VpcConfig

A list of one element containing information about accessible VPC resources. It contains the following attributes:

type GetServicesServiceVpcConfig

type GetServicesServiceVpcConfig struct {
	// Associated security group ID.
	SecurityGroupId string `pulumi:"securityGroupId"`
	// Associated VPC ID.
	VpcId string `pulumi:"vpcId"`
	// Associated VSwitch IDs.
	VswitchIds []string `pulumi:"vswitchIds"`
}

type GetServicesServiceVpcConfigArgs

type GetServicesServiceVpcConfigArgs struct {
	// Associated security group ID.
	SecurityGroupId pulumi.StringInput `pulumi:"securityGroupId"`
	// Associated VPC ID.
	VpcId pulumi.StringInput `pulumi:"vpcId"`
	// Associated VSwitch IDs.
	VswitchIds pulumi.StringArrayInput `pulumi:"vswitchIds"`
}

func (GetServicesServiceVpcConfigArgs) ElementType

func (GetServicesServiceVpcConfigArgs) ToGetServicesServiceVpcConfigOutput

func (i GetServicesServiceVpcConfigArgs) ToGetServicesServiceVpcConfigOutput() GetServicesServiceVpcConfigOutput

func (GetServicesServiceVpcConfigArgs) ToGetServicesServiceVpcConfigOutputWithContext

func (i GetServicesServiceVpcConfigArgs) ToGetServicesServiceVpcConfigOutputWithContext(ctx context.Context) GetServicesServiceVpcConfigOutput

type GetServicesServiceVpcConfigInput

type GetServicesServiceVpcConfigInput interface {
	pulumi.Input

	ToGetServicesServiceVpcConfigOutput() GetServicesServiceVpcConfigOutput
	ToGetServicesServiceVpcConfigOutputWithContext(context.Context) GetServicesServiceVpcConfigOutput
}

GetServicesServiceVpcConfigInput is an input type that accepts GetServicesServiceVpcConfigArgs and GetServicesServiceVpcConfigOutput values. You can construct a concrete instance of `GetServicesServiceVpcConfigInput` via:

GetServicesServiceVpcConfigArgs{...}

type GetServicesServiceVpcConfigOutput

type GetServicesServiceVpcConfigOutput struct{ *pulumi.OutputState }

func (GetServicesServiceVpcConfigOutput) ElementType

func (GetServicesServiceVpcConfigOutput) SecurityGroupId

Associated security group ID.

func (GetServicesServiceVpcConfigOutput) ToGetServicesServiceVpcConfigOutput

func (o GetServicesServiceVpcConfigOutput) ToGetServicesServiceVpcConfigOutput() GetServicesServiceVpcConfigOutput

func (GetServicesServiceVpcConfigOutput) ToGetServicesServiceVpcConfigOutputWithContext

func (o GetServicesServiceVpcConfigOutput) ToGetServicesServiceVpcConfigOutputWithContext(ctx context.Context) GetServicesServiceVpcConfigOutput

func (GetServicesServiceVpcConfigOutput) VpcId

Associated VPC ID.

func (GetServicesServiceVpcConfigOutput) VswitchIds

Associated VSwitch IDs.

type GetTriggersArgs

type GetTriggersArgs struct {
	// FC function name.
	FunctionName string `pulumi:"functionName"`
	// - A list of FC triggers ids.
	Ids []string `pulumi:"ids"`
	// A regex string to filter results by FC trigger name.
	NameRegex  *string `pulumi:"nameRegex"`
	OutputFile *string `pulumi:"outputFile"`
	// FC service name.
	ServiceName string `pulumi:"serviceName"`
}

A collection of arguments for invoking getTriggers.

type GetTriggersResult

type GetTriggersResult struct {
	FunctionName string `pulumi:"functionName"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// A list of FC triggers ids.
	Ids       []string `pulumi:"ids"`
	NameRegex *string  `pulumi:"nameRegex"`
	// A list of FC triggers names.
	Names       []string `pulumi:"names"`
	OutputFile  *string  `pulumi:"outputFile"`
	ServiceName string   `pulumi:"serviceName"`
	// A list of FC triggers. Each element contains the following attributes:
	Triggers []GetTriggersTrigger `pulumi:"triggers"`
}

A collection of values returned by getTriggers.

func GetTriggers

func GetTriggers(ctx *pulumi.Context, args *GetTriggersArgs, opts ...pulumi.InvokeOption) (*GetTriggersResult, error)

This data source provides the Function Compute triggers of the current Alibaba Cloud user.

type GetTriggersTrigger

type GetTriggersTrigger struct {
	// JSON-encoded trigger configuration. See [Configure triggers and events](https://www.alibabacloud.com/help/doc-detail/70140.htm) for more details.
	Config string `pulumi:"config"`
	// FC trigger creation time.
	CreationTime string `pulumi:"creationTime"`
	// FC trigger ID.
	Id string `pulumi:"id"`
	// RAM role arn attached to the Function Compute trigger. Role used by the event source to call the function. The value format is "acs:ram::$account-id:role/$role-name". See [Create a trigger](https://www.alibabacloud.com/help/doc-detail/53102.htm) for more details.
	InvocationRole string `pulumi:"invocationRole"`
	// FC trigger last modification time.
	LastModificationTime string `pulumi:"lastModificationTime"`
	// FC trigger name.
	Name string `pulumi:"name"`
	// Event source resource address. See [Create a trigger](https://www.alibabacloud.com/help/doc-detail/53102.htm) for more details.
	SourceArn string `pulumi:"sourceArn"`
	// Type of the trigger. Valid values: `oss`, `log`, `timer`, `http` and `mnsTopic`.
	Type string `pulumi:"type"`
}

type GetTriggersTriggerArgs

type GetTriggersTriggerArgs struct {
	// JSON-encoded trigger configuration. See [Configure triggers and events](https://www.alibabacloud.com/help/doc-detail/70140.htm) for more details.
	Config pulumi.StringInput `pulumi:"config"`
	// FC trigger creation time.
	CreationTime pulumi.StringInput `pulumi:"creationTime"`
	// FC trigger ID.
	Id pulumi.StringInput `pulumi:"id"`
	// RAM role arn attached to the Function Compute trigger. Role used by the event source to call the function. The value format is "acs:ram::$account-id:role/$role-name". See [Create a trigger](https://www.alibabacloud.com/help/doc-detail/53102.htm) for more details.
	InvocationRole pulumi.StringInput `pulumi:"invocationRole"`
	// FC trigger last modification time.
	LastModificationTime pulumi.StringInput `pulumi:"lastModificationTime"`
	// FC trigger name.
	Name pulumi.StringInput `pulumi:"name"`
	// Event source resource address. See [Create a trigger](https://www.alibabacloud.com/help/doc-detail/53102.htm) for more details.
	SourceArn pulumi.StringInput `pulumi:"sourceArn"`
	// Type of the trigger. Valid values: `oss`, `log`, `timer`, `http` and `mnsTopic`.
	Type pulumi.StringInput `pulumi:"type"`
}

func (GetTriggersTriggerArgs) ElementType

func (GetTriggersTriggerArgs) ElementType() reflect.Type

func (GetTriggersTriggerArgs) ToGetTriggersTriggerOutput

func (i GetTriggersTriggerArgs) ToGetTriggersTriggerOutput() GetTriggersTriggerOutput

func (GetTriggersTriggerArgs) ToGetTriggersTriggerOutputWithContext

func (i GetTriggersTriggerArgs) ToGetTriggersTriggerOutputWithContext(ctx context.Context) GetTriggersTriggerOutput

type GetTriggersTriggerArray

type GetTriggersTriggerArray []GetTriggersTriggerInput

func (GetTriggersTriggerArray) ElementType

func (GetTriggersTriggerArray) ElementType() reflect.Type

func (GetTriggersTriggerArray) ToGetTriggersTriggerArrayOutput

func (i GetTriggersTriggerArray) ToGetTriggersTriggerArrayOutput() GetTriggersTriggerArrayOutput

func (GetTriggersTriggerArray) ToGetTriggersTriggerArrayOutputWithContext

func (i GetTriggersTriggerArray) ToGetTriggersTriggerArrayOutputWithContext(ctx context.Context) GetTriggersTriggerArrayOutput

type GetTriggersTriggerArrayInput

type GetTriggersTriggerArrayInput interface {
	pulumi.Input

	ToGetTriggersTriggerArrayOutput() GetTriggersTriggerArrayOutput
	ToGetTriggersTriggerArrayOutputWithContext(context.Context) GetTriggersTriggerArrayOutput
}

GetTriggersTriggerArrayInput is an input type that accepts GetTriggersTriggerArray and GetTriggersTriggerArrayOutput values. You can construct a concrete instance of `GetTriggersTriggerArrayInput` via:

GetTriggersTriggerArray{ GetTriggersTriggerArgs{...} }

type GetTriggersTriggerArrayOutput

type GetTriggersTriggerArrayOutput struct{ *pulumi.OutputState }

func (GetTriggersTriggerArrayOutput) ElementType

func (GetTriggersTriggerArrayOutput) Index

func (GetTriggersTriggerArrayOutput) ToGetTriggersTriggerArrayOutput

func (o GetTriggersTriggerArrayOutput) ToGetTriggersTriggerArrayOutput() GetTriggersTriggerArrayOutput

func (GetTriggersTriggerArrayOutput) ToGetTriggersTriggerArrayOutputWithContext

func (o GetTriggersTriggerArrayOutput) ToGetTriggersTriggerArrayOutputWithContext(ctx context.Context) GetTriggersTriggerArrayOutput

type GetTriggersTriggerInput

type GetTriggersTriggerInput interface {
	pulumi.Input

	ToGetTriggersTriggerOutput() GetTriggersTriggerOutput
	ToGetTriggersTriggerOutputWithContext(context.Context) GetTriggersTriggerOutput
}

GetTriggersTriggerInput is an input type that accepts GetTriggersTriggerArgs and GetTriggersTriggerOutput values. You can construct a concrete instance of `GetTriggersTriggerInput` via:

GetTriggersTriggerArgs{...}

type GetTriggersTriggerOutput

type GetTriggersTriggerOutput struct{ *pulumi.OutputState }

func (GetTriggersTriggerOutput) Config

JSON-encoded trigger configuration. See [Configure triggers and events](https://www.alibabacloud.com/help/doc-detail/70140.htm) for more details.

func (GetTriggersTriggerOutput) CreationTime

func (o GetTriggersTriggerOutput) CreationTime() pulumi.StringOutput

FC trigger creation time.

func (GetTriggersTriggerOutput) ElementType

func (GetTriggersTriggerOutput) ElementType() reflect.Type

func (GetTriggersTriggerOutput) Id

FC trigger ID.

func (GetTriggersTriggerOutput) InvocationRole

func (o GetTriggersTriggerOutput) InvocationRole() pulumi.StringOutput

RAM role arn attached to the Function Compute trigger. Role used by the event source to call the function. The value format is "acs:ram::$account-id:role/$role-name". See [Create a trigger](https://www.alibabacloud.com/help/doc-detail/53102.htm) for more details.

func (GetTriggersTriggerOutput) LastModificationTime

func (o GetTriggersTriggerOutput) LastModificationTime() pulumi.StringOutput

FC trigger last modification time.

func (GetTriggersTriggerOutput) Name

FC trigger name.

func (GetTriggersTriggerOutput) SourceArn

Event source resource address. See [Create a trigger](https://www.alibabacloud.com/help/doc-detail/53102.htm) for more details.

func (GetTriggersTriggerOutput) ToGetTriggersTriggerOutput

func (o GetTriggersTriggerOutput) ToGetTriggersTriggerOutput() GetTriggersTriggerOutput

func (GetTriggersTriggerOutput) ToGetTriggersTriggerOutputWithContext

func (o GetTriggersTriggerOutput) ToGetTriggersTriggerOutputWithContext(ctx context.Context) GetTriggersTriggerOutput

func (GetTriggersTriggerOutput) Type

Type of the trigger. Valid values: `oss`, `log`, `timer`, `http` and `mnsTopic`.

type GetZonesArgs

type GetZonesArgs struct {
	OutputFile *string `pulumi:"outputFile"`
}

A collection of arguments for invoking getZones.

type GetZonesResult

type GetZonesResult struct {
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// A list of zone IDs.
	Ids        []string `pulumi:"ids"`
	OutputFile *string  `pulumi:"outputFile"`
	// A list of availability zones. Each element contains the following attributes:
	Zones []GetZonesZone `pulumi:"zones"`
}

A collection of values returned by getZones.

func GetZones

func GetZones(ctx *pulumi.Context, args *GetZonesArgs, opts ...pulumi.InvokeOption) (*GetZonesResult, error)

This data source provides availability zones for FunctionCompute that can be accessed by an Alibaba Cloud account within the region configured in the provider.

> **NOTE:** Available in v1.74.0+.

type GetZonesZone

type GetZonesZone struct {
	// ID of the zone.
	Id string `pulumi:"id"`
}

type GetZonesZoneArgs

type GetZonesZoneArgs struct {
	// ID of the zone.
	Id pulumi.StringInput `pulumi:"id"`
}

func (GetZonesZoneArgs) ElementType

func (GetZonesZoneArgs) ElementType() reflect.Type

func (GetZonesZoneArgs) ToGetZonesZoneOutput

func (i GetZonesZoneArgs) ToGetZonesZoneOutput() GetZonesZoneOutput

func (GetZonesZoneArgs) ToGetZonesZoneOutputWithContext

func (i GetZonesZoneArgs) ToGetZonesZoneOutputWithContext(ctx context.Context) GetZonesZoneOutput

type GetZonesZoneArray

type GetZonesZoneArray []GetZonesZoneInput

func (GetZonesZoneArray) ElementType

func (GetZonesZoneArray) ElementType() reflect.Type

func (GetZonesZoneArray) ToGetZonesZoneArrayOutput

func (i GetZonesZoneArray) ToGetZonesZoneArrayOutput() GetZonesZoneArrayOutput

func (GetZonesZoneArray) ToGetZonesZoneArrayOutputWithContext

func (i GetZonesZoneArray) ToGetZonesZoneArrayOutputWithContext(ctx context.Context) GetZonesZoneArrayOutput

type GetZonesZoneArrayInput

type GetZonesZoneArrayInput interface {
	pulumi.Input

	ToGetZonesZoneArrayOutput() GetZonesZoneArrayOutput
	ToGetZonesZoneArrayOutputWithContext(context.Context) GetZonesZoneArrayOutput
}

GetZonesZoneArrayInput is an input type that accepts GetZonesZoneArray and GetZonesZoneArrayOutput values. You can construct a concrete instance of `GetZonesZoneArrayInput` via:

GetZonesZoneArray{ GetZonesZoneArgs{...} }

type GetZonesZoneArrayOutput

type GetZonesZoneArrayOutput struct{ *pulumi.OutputState }

func (GetZonesZoneArrayOutput) ElementType

func (GetZonesZoneArrayOutput) ElementType() reflect.Type

func (GetZonesZoneArrayOutput) Index

func (GetZonesZoneArrayOutput) ToGetZonesZoneArrayOutput

func (o GetZonesZoneArrayOutput) ToGetZonesZoneArrayOutput() GetZonesZoneArrayOutput

func (GetZonesZoneArrayOutput) ToGetZonesZoneArrayOutputWithContext

func (o GetZonesZoneArrayOutput) ToGetZonesZoneArrayOutputWithContext(ctx context.Context) GetZonesZoneArrayOutput

type GetZonesZoneInput

type GetZonesZoneInput interface {
	pulumi.Input

	ToGetZonesZoneOutput() GetZonesZoneOutput
	ToGetZonesZoneOutputWithContext(context.Context) GetZonesZoneOutput
}

GetZonesZoneInput is an input type that accepts GetZonesZoneArgs and GetZonesZoneOutput values. You can construct a concrete instance of `GetZonesZoneInput` via:

GetZonesZoneArgs{...}

type GetZonesZoneOutput

type GetZonesZoneOutput struct{ *pulumi.OutputState }

func (GetZonesZoneOutput) ElementType

func (GetZonesZoneOutput) ElementType() reflect.Type

func (GetZonesZoneOutput) Id

ID of the zone.

func (GetZonesZoneOutput) ToGetZonesZoneOutput

func (o GetZonesZoneOutput) ToGetZonesZoneOutput() GetZonesZoneOutput

func (GetZonesZoneOutput) ToGetZonesZoneOutputWithContext

func (o GetZonesZoneOutput) ToGetZonesZoneOutputWithContext(ctx context.Context) GetZonesZoneOutput

type Service

type Service struct {
	pulumi.CustomResourceState

	// The function compute service description.
	Description pulumi.StringPtrOutput `pulumi:"description"`
	// Whether to allow the service to access Internet. Default to "true".
	InternetAccess pulumi.BoolPtrOutput `pulumi:"internetAccess"`
	// The date this resource was last modified.
	LastModified pulumi.StringOutput `pulumi:"lastModified"`
	// Provide this to store your FC service logs. Fields documented below. See [Create a Service](https://www.alibabacloud.com/help/doc-detail/51924.htm).
	LogConfig ServiceLogConfigPtrOutput `pulumi:"logConfig"`
	// The Function Compute service name. It is the only in one Alicloud account and is conflict with "namePrefix".
	Name pulumi.StringOutput `pulumi:"name"`
	// Setting a prefix to get a only name. It is conflict with "name".
	NamePrefix pulumi.StringPtrOutput `pulumi:"namePrefix"`
	// RAM role arn attached to the Function Compute service. This governs both who / what can invoke your Function, as well as what resources our Function has access to. See [User Permissions](https://www.alibabacloud.com/help/doc-detail/52885.htm) for more details.
	Role pulumi.StringPtrOutput `pulumi:"role"`
	// The Function Compute service ID.
	ServiceId pulumi.StringOutput `pulumi:"serviceId"`
	// Provide this to allow your FC service to access your VPC. Fields documented below. See [Function Compute Service in VPC](https://www.alibabacloud.com/help/faq-detail/72959.htm).
	VpcConfig ServiceVpcConfigPtrOutput `pulumi:"vpcConfig"`
}

func GetService

func GetService(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *ServiceState, opts ...pulumi.ResourceOption) (*Service, error)

GetService gets an existing Service 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 NewService

func NewService(ctx *pulumi.Context,
	name string, args *ServiceArgs, opts ...pulumi.ResourceOption) (*Service, error)

NewService registers a new resource with the given unique name, arguments, and options.

type ServiceArgs

type ServiceArgs struct {
	// The function compute service description.
	Description pulumi.StringPtrInput
	// Whether to allow the service to access Internet. Default to "true".
	InternetAccess pulumi.BoolPtrInput
	// Provide this to store your FC service logs. Fields documented below. See [Create a Service](https://www.alibabacloud.com/help/doc-detail/51924.htm).
	LogConfig ServiceLogConfigPtrInput
	// The Function Compute service name. It is the only in one Alicloud account and is conflict with "namePrefix".
	Name pulumi.StringPtrInput
	// Setting a prefix to get a only name. It is conflict with "name".
	NamePrefix pulumi.StringPtrInput
	// RAM role arn attached to the Function Compute service. This governs both who / what can invoke your Function, as well as what resources our Function has access to. See [User Permissions](https://www.alibabacloud.com/help/doc-detail/52885.htm) for more details.
	Role pulumi.StringPtrInput
	// Provide this to allow your FC service to access your VPC. Fields documented below. See [Function Compute Service in VPC](https://www.alibabacloud.com/help/faq-detail/72959.htm).
	VpcConfig ServiceVpcConfigPtrInput
}

The set of arguments for constructing a Service resource.

func (ServiceArgs) ElementType

func (ServiceArgs) ElementType() reflect.Type

type ServiceLogConfig

type ServiceLogConfig struct {
	// The log store name of Logs service.
	Logstore string `pulumi:"logstore"`
	// The project name of Logs service.
	Project string `pulumi:"project"`
}

type ServiceLogConfigArgs

type ServiceLogConfigArgs struct {
	// The log store name of Logs service.
	Logstore pulumi.StringInput `pulumi:"logstore"`
	// The project name of Logs service.
	Project pulumi.StringInput `pulumi:"project"`
}

func (ServiceLogConfigArgs) ElementType

func (ServiceLogConfigArgs) ElementType() reflect.Type

func (ServiceLogConfigArgs) ToServiceLogConfigOutput

func (i ServiceLogConfigArgs) ToServiceLogConfigOutput() ServiceLogConfigOutput

func (ServiceLogConfigArgs) ToServiceLogConfigOutputWithContext

func (i ServiceLogConfigArgs) ToServiceLogConfigOutputWithContext(ctx context.Context) ServiceLogConfigOutput

func (ServiceLogConfigArgs) ToServiceLogConfigPtrOutput

func (i ServiceLogConfigArgs) ToServiceLogConfigPtrOutput() ServiceLogConfigPtrOutput

func (ServiceLogConfigArgs) ToServiceLogConfigPtrOutputWithContext

func (i ServiceLogConfigArgs) ToServiceLogConfigPtrOutputWithContext(ctx context.Context) ServiceLogConfigPtrOutput

type ServiceLogConfigInput

type ServiceLogConfigInput interface {
	pulumi.Input

	ToServiceLogConfigOutput() ServiceLogConfigOutput
	ToServiceLogConfigOutputWithContext(context.Context) ServiceLogConfigOutput
}

ServiceLogConfigInput is an input type that accepts ServiceLogConfigArgs and ServiceLogConfigOutput values. You can construct a concrete instance of `ServiceLogConfigInput` via:

ServiceLogConfigArgs{...}

type ServiceLogConfigOutput

type ServiceLogConfigOutput struct{ *pulumi.OutputState }

func (ServiceLogConfigOutput) ElementType

func (ServiceLogConfigOutput) ElementType() reflect.Type

func (ServiceLogConfigOutput) Logstore

The log store name of Logs service.

func (ServiceLogConfigOutput) Project

The project name of Logs service.

func (ServiceLogConfigOutput) ToServiceLogConfigOutput

func (o ServiceLogConfigOutput) ToServiceLogConfigOutput() ServiceLogConfigOutput

func (ServiceLogConfigOutput) ToServiceLogConfigOutputWithContext

func (o ServiceLogConfigOutput) ToServiceLogConfigOutputWithContext(ctx context.Context) ServiceLogConfigOutput

func (ServiceLogConfigOutput) ToServiceLogConfigPtrOutput

func (o ServiceLogConfigOutput) ToServiceLogConfigPtrOutput() ServiceLogConfigPtrOutput

func (ServiceLogConfigOutput) ToServiceLogConfigPtrOutputWithContext

func (o ServiceLogConfigOutput) ToServiceLogConfigPtrOutputWithContext(ctx context.Context) ServiceLogConfigPtrOutput

type ServiceLogConfigPtrInput

type ServiceLogConfigPtrInput interface {
	pulumi.Input

	ToServiceLogConfigPtrOutput() ServiceLogConfigPtrOutput
	ToServiceLogConfigPtrOutputWithContext(context.Context) ServiceLogConfigPtrOutput
}

ServiceLogConfigPtrInput is an input type that accepts ServiceLogConfigArgs, ServiceLogConfigPtr and ServiceLogConfigPtrOutput values. You can construct a concrete instance of `ServiceLogConfigPtrInput` via:

		 ServiceLogConfigArgs{...}

 or:

		 nil

type ServiceLogConfigPtrOutput

type ServiceLogConfigPtrOutput struct{ *pulumi.OutputState }

func (ServiceLogConfigPtrOutput) Elem

func (ServiceLogConfigPtrOutput) ElementType

func (ServiceLogConfigPtrOutput) ElementType() reflect.Type

func (ServiceLogConfigPtrOutput) Logstore

The log store name of Logs service.

func (ServiceLogConfigPtrOutput) Project

The project name of Logs service.

func (ServiceLogConfigPtrOutput) ToServiceLogConfigPtrOutput

func (o ServiceLogConfigPtrOutput) ToServiceLogConfigPtrOutput() ServiceLogConfigPtrOutput

func (ServiceLogConfigPtrOutput) ToServiceLogConfigPtrOutputWithContext

func (o ServiceLogConfigPtrOutput) ToServiceLogConfigPtrOutputWithContext(ctx context.Context) ServiceLogConfigPtrOutput

type ServiceState

type ServiceState struct {
	// The function compute service description.
	Description pulumi.StringPtrInput
	// Whether to allow the service to access Internet. Default to "true".
	InternetAccess pulumi.BoolPtrInput
	// The date this resource was last modified.
	LastModified pulumi.StringPtrInput
	// Provide this to store your FC service logs. Fields documented below. See [Create a Service](https://www.alibabacloud.com/help/doc-detail/51924.htm).
	LogConfig ServiceLogConfigPtrInput
	// The Function Compute service name. It is the only in one Alicloud account and is conflict with "namePrefix".
	Name pulumi.StringPtrInput
	// Setting a prefix to get a only name. It is conflict with "name".
	NamePrefix pulumi.StringPtrInput
	// RAM role arn attached to the Function Compute service. This governs both who / what can invoke your Function, as well as what resources our Function has access to. See [User Permissions](https://www.alibabacloud.com/help/doc-detail/52885.htm) for more details.
	Role pulumi.StringPtrInput
	// The Function Compute service ID.
	ServiceId pulumi.StringPtrInput
	// Provide this to allow your FC service to access your VPC. Fields documented below. See [Function Compute Service in VPC](https://www.alibabacloud.com/help/faq-detail/72959.htm).
	VpcConfig ServiceVpcConfigPtrInput
}

func (ServiceState) ElementType

func (ServiceState) ElementType() reflect.Type

type ServiceVpcConfig

type ServiceVpcConfig struct {
	// A security group ID associated with the FC service.
	SecurityGroupId string  `pulumi:"securityGroupId"`
	VpcId           *string `pulumi:"vpcId"`
	// A list of vswitch IDs associated with the FC service.
	VswitchIds []string `pulumi:"vswitchIds"`
}

type ServiceVpcConfigArgs

type ServiceVpcConfigArgs struct {
	// A security group ID associated with the FC service.
	SecurityGroupId pulumi.StringInput    `pulumi:"securityGroupId"`
	VpcId           pulumi.StringPtrInput `pulumi:"vpcId"`
	// A list of vswitch IDs associated with the FC service.
	VswitchIds pulumi.StringArrayInput `pulumi:"vswitchIds"`
}

func (ServiceVpcConfigArgs) ElementType

func (ServiceVpcConfigArgs) ElementType() reflect.Type

func (ServiceVpcConfigArgs) ToServiceVpcConfigOutput

func (i ServiceVpcConfigArgs) ToServiceVpcConfigOutput() ServiceVpcConfigOutput

func (ServiceVpcConfigArgs) ToServiceVpcConfigOutputWithContext

func (i ServiceVpcConfigArgs) ToServiceVpcConfigOutputWithContext(ctx context.Context) ServiceVpcConfigOutput

func (ServiceVpcConfigArgs) ToServiceVpcConfigPtrOutput

func (i ServiceVpcConfigArgs) ToServiceVpcConfigPtrOutput() ServiceVpcConfigPtrOutput

func (ServiceVpcConfigArgs) ToServiceVpcConfigPtrOutputWithContext

func (i ServiceVpcConfigArgs) ToServiceVpcConfigPtrOutputWithContext(ctx context.Context) ServiceVpcConfigPtrOutput

type ServiceVpcConfigInput

type ServiceVpcConfigInput interface {
	pulumi.Input

	ToServiceVpcConfigOutput() ServiceVpcConfigOutput
	ToServiceVpcConfigOutputWithContext(context.Context) ServiceVpcConfigOutput
}

ServiceVpcConfigInput is an input type that accepts ServiceVpcConfigArgs and ServiceVpcConfigOutput values. You can construct a concrete instance of `ServiceVpcConfigInput` via:

ServiceVpcConfigArgs{...}

type ServiceVpcConfigOutput

type ServiceVpcConfigOutput struct{ *pulumi.OutputState }

func (ServiceVpcConfigOutput) ElementType

func (ServiceVpcConfigOutput) ElementType() reflect.Type

func (ServiceVpcConfigOutput) SecurityGroupId

func (o ServiceVpcConfigOutput) SecurityGroupId() pulumi.StringOutput

A security group ID associated with the FC service.

func (ServiceVpcConfigOutput) ToServiceVpcConfigOutput

func (o ServiceVpcConfigOutput) ToServiceVpcConfigOutput() ServiceVpcConfigOutput

func (ServiceVpcConfigOutput) ToServiceVpcConfigOutputWithContext

func (o ServiceVpcConfigOutput) ToServiceVpcConfigOutputWithContext(ctx context.Context) ServiceVpcConfigOutput

func (ServiceVpcConfigOutput) ToServiceVpcConfigPtrOutput

func (o ServiceVpcConfigOutput) ToServiceVpcConfigPtrOutput() ServiceVpcConfigPtrOutput

func (ServiceVpcConfigOutput) ToServiceVpcConfigPtrOutputWithContext

func (o ServiceVpcConfigOutput) ToServiceVpcConfigPtrOutputWithContext(ctx context.Context) ServiceVpcConfigPtrOutput

func (ServiceVpcConfigOutput) VpcId

func (ServiceVpcConfigOutput) VswitchIds

A list of vswitch IDs associated with the FC service.

type ServiceVpcConfigPtrInput

type ServiceVpcConfigPtrInput interface {
	pulumi.Input

	ToServiceVpcConfigPtrOutput() ServiceVpcConfigPtrOutput
	ToServiceVpcConfigPtrOutputWithContext(context.Context) ServiceVpcConfigPtrOutput
}

ServiceVpcConfigPtrInput is an input type that accepts ServiceVpcConfigArgs, ServiceVpcConfigPtr and ServiceVpcConfigPtrOutput values. You can construct a concrete instance of `ServiceVpcConfigPtrInput` via:

		 ServiceVpcConfigArgs{...}

 or:

		 nil

type ServiceVpcConfigPtrOutput

type ServiceVpcConfigPtrOutput struct{ *pulumi.OutputState }

func (ServiceVpcConfigPtrOutput) Elem

func (ServiceVpcConfigPtrOutput) ElementType

func (ServiceVpcConfigPtrOutput) ElementType() reflect.Type

func (ServiceVpcConfigPtrOutput) SecurityGroupId

func (o ServiceVpcConfigPtrOutput) SecurityGroupId() pulumi.StringPtrOutput

A security group ID associated with the FC service.

func (ServiceVpcConfigPtrOutput) ToServiceVpcConfigPtrOutput

func (o ServiceVpcConfigPtrOutput) ToServiceVpcConfigPtrOutput() ServiceVpcConfigPtrOutput

func (ServiceVpcConfigPtrOutput) ToServiceVpcConfigPtrOutputWithContext

func (o ServiceVpcConfigPtrOutput) ToServiceVpcConfigPtrOutputWithContext(ctx context.Context) ServiceVpcConfigPtrOutput

func (ServiceVpcConfigPtrOutput) VpcId

func (ServiceVpcConfigPtrOutput) VswitchIds

A list of vswitch IDs associated with the FC service.

type Trigger

type Trigger struct {
	pulumi.CustomResourceState

	// The config of Function Compute trigger.It is valid when `type` is not "mnsTopic".See [Configure triggers and events](https://www.alibabacloud.com/help/doc-detail/70140.htm) for more details.
	Config pulumi.StringPtrOutput `pulumi:"config"`
	// The config of Function Compute trigger when the type is "mnsTopic".It is conflict with `config`.
	ConfigMns pulumi.StringPtrOutput `pulumi:"configMns"`
	// The Function Compute function name.
	Function pulumi.StringOutput `pulumi:"function"`
	// The date this resource was last modified.
	LastModified pulumi.StringOutput `pulumi:"lastModified"`
	// The Function Compute trigger name. It is the only in one service and is conflict with "namePrefix".
	Name pulumi.StringOutput `pulumi:"name"`
	// Setting a prefix to get a only trigger name. It is conflict with "name".
	NamePrefix pulumi.StringPtrOutput `pulumi:"namePrefix"`
	// RAM role arn attached to the Function Compute trigger. Role used by the event source to call the function. The value format is "acs:ram::$account-id:role/$role-name". See [Create a trigger](https://www.alibabacloud.com/help/doc-detail/53102.htm) for more details.
	Role pulumi.StringPtrOutput `pulumi:"role"`
	// The Function Compute service name.
	Service pulumi.StringOutput `pulumi:"service"`
	// Event source resource address. See [Create a trigger](https://www.alibabacloud.com/help/doc-detail/53102.htm) for more details.
	SourceArn pulumi.StringPtrOutput `pulumi:"sourceArn"`
	// The Function Compute trigger ID.
	TriggerId pulumi.StringOutput `pulumi:"triggerId"`
	// The Type of the trigger. Valid values: ["oss", "log", "timer", "http", "mnsTopic", "cdnEvents"].
	Type pulumi.StringOutput `pulumi:"type"`
}

func GetTrigger

func GetTrigger(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *TriggerState, opts ...pulumi.ResourceOption) (*Trigger, error)

GetTrigger gets an existing Trigger resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewTrigger

func NewTrigger(ctx *pulumi.Context,
	name string, args *TriggerArgs, opts ...pulumi.ResourceOption) (*Trigger, error)

NewTrigger registers a new resource with the given unique name, arguments, and options.

type TriggerArgs

type TriggerArgs struct {
	// The config of Function Compute trigger.It is valid when `type` is not "mnsTopic".See [Configure triggers and events](https://www.alibabacloud.com/help/doc-detail/70140.htm) for more details.
	Config pulumi.StringPtrInput
	// The config of Function Compute trigger when the type is "mnsTopic".It is conflict with `config`.
	ConfigMns pulumi.StringPtrInput
	// The Function Compute function name.
	Function pulumi.StringInput
	// The Function Compute trigger name. It is the only in one service and is conflict with "namePrefix".
	Name pulumi.StringPtrInput
	// Setting a prefix to get a only trigger name. It is conflict with "name".
	NamePrefix pulumi.StringPtrInput
	// RAM role arn attached to the Function Compute trigger. Role used by the event source to call the function. The value format is "acs:ram::$account-id:role/$role-name". See [Create a trigger](https://www.alibabacloud.com/help/doc-detail/53102.htm) for more details.
	Role pulumi.StringPtrInput
	// The Function Compute service name.
	Service pulumi.StringInput
	// Event source resource address. See [Create a trigger](https://www.alibabacloud.com/help/doc-detail/53102.htm) for more details.
	SourceArn pulumi.StringPtrInput
	// The Type of the trigger. Valid values: ["oss", "log", "timer", "http", "mnsTopic", "cdnEvents"].
	Type pulumi.StringInput
}

The set of arguments for constructing a Trigger resource.

func (TriggerArgs) ElementType

func (TriggerArgs) ElementType() reflect.Type

type TriggerState

type TriggerState struct {
	// The config of Function Compute trigger.It is valid when `type` is not "mnsTopic".See [Configure triggers and events](https://www.alibabacloud.com/help/doc-detail/70140.htm) for more details.
	Config pulumi.StringPtrInput
	// The config of Function Compute trigger when the type is "mnsTopic".It is conflict with `config`.
	ConfigMns pulumi.StringPtrInput
	// The Function Compute function name.
	Function pulumi.StringPtrInput
	// The date this resource was last modified.
	LastModified pulumi.StringPtrInput
	// The Function Compute trigger name. It is the only in one service and is conflict with "namePrefix".
	Name pulumi.StringPtrInput
	// Setting a prefix to get a only trigger name. It is conflict with "name".
	NamePrefix pulumi.StringPtrInput
	// RAM role arn attached to the Function Compute trigger. Role used by the event source to call the function. The value format is "acs:ram::$account-id:role/$role-name". See [Create a trigger](https://www.alibabacloud.com/help/doc-detail/53102.htm) for more details.
	Role pulumi.StringPtrInput
	// The Function Compute service name.
	Service pulumi.StringPtrInput
	// Event source resource address. See [Create a trigger](https://www.alibabacloud.com/help/doc-detail/53102.htm) for more details.
	SourceArn pulumi.StringPtrInput
	// The Function Compute trigger ID.
	TriggerId pulumi.StringPtrInput
	// The Type of the trigger. Valid values: ["oss", "log", "timer", "http", "mnsTopic", "cdnEvents"].
	Type pulumi.StringPtrInput
}

func (TriggerState) ElementType

func (TriggerState) ElementType() reflect.Type

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL