Service

Create a Service Resource

new Service(name: string, args?: ServiceArgs, opts?: CustomResourceOptions);
def Service(resource_name, opts=None, description=None, internet_access=None, log_config=None, name=None, name_prefix=None, role=None, vpc_config=None, __props__=None);
func NewService(ctx *Context, name string, args *ServiceArgs, opts ...ResourceOption) (*Service, error)
public Service(string name, ServiceArgs? args = null, CustomResourceOptions? opts = null)
name string
The unique name of the resource.
args ServiceArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
opts ResourceOptions
A bag of options that control this resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args ServiceArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args ServiceArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.

Service Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.

Inputs

The Service resource accepts the following input properties:

Description string

The function compute service description.

InternetAccess bool

Whether to allow the service to access Internet. Default to “true”.

LogConfig Pulumi.AliCloud.FC.Inputs.ServiceLogConfigArgs

Provide this to store your FC service logs. Fields documented below. See Create a Service.

Name string

The Function Compute service name. It is the only in one Alicloud account and is conflict with “name_prefix”.

NamePrefix string

Setting a prefix to get a only name. It is conflict with “name”.

Role string

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 for more details.

VpcConfig Pulumi.AliCloud.FC.Inputs.ServiceVpcConfigArgs

Provide this to allow your FC service to access your VPC. Fields documented below. See Function Compute Service in VPC.

Description string

The function compute service description.

InternetAccess bool

Whether to allow the service to access Internet. Default to “true”.

LogConfig ServiceLogConfig

Provide this to store your FC service logs. Fields documented below. See Create a Service.

Name string

The Function Compute service name. It is the only in one Alicloud account and is conflict with “name_prefix”.

NamePrefix string

Setting a prefix to get a only name. It is conflict with “name”.

Role string

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 for more details.

VpcConfig ServiceVpcConfig

Provide this to allow your FC service to access your VPC. Fields documented below. See Function Compute Service in VPC.

description string

The function compute service description.

internetAccess boolean

Whether to allow the service to access Internet. Default to “true”.

logConfig ServiceLogConfig

Provide this to store your FC service logs. Fields documented below. See Create a Service.

name string

The Function Compute service name. It is the only in one Alicloud account and is conflict with “name_prefix”.

namePrefix string

Setting a prefix to get a only name. It is conflict with “name”.

role string

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 for more details.

vpcConfig ServiceVpcConfig

Provide this to allow your FC service to access your VPC. Fields documented below. See Function Compute Service in VPC.

description str

The function compute service description.

internet_access bool

Whether to allow the service to access Internet. Default to “true”.

log_config Dict[ServiceLogConfig]

Provide this to store your FC service logs. Fields documented below. See Create a Service.

name str

The Function Compute service name. It is the only in one Alicloud account and is conflict with “name_prefix”.

name_prefix str

Setting a prefix to get a only name. It is conflict with “name”.

role str

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 for more details.

vpc_config Dict[ServiceVpcConfig]

Provide this to allow your FC service to access your VPC. Fields documented below. See Function Compute Service in VPC.

Outputs

All input properties are implicitly available as output properties. Additionally, the Service resource produces the following output properties:

Id string
The provider-assigned unique ID for this managed resource.
LastModified string

The date this resource was last modified.

ServiceId string

The Function Compute service ID.

Id string
The provider-assigned unique ID for this managed resource.
LastModified string

The date this resource was last modified.

ServiceId string

The Function Compute service ID.

id string
The provider-assigned unique ID for this managed resource.
lastModified string

The date this resource was last modified.

serviceId string

The Function Compute service ID.

id str
The provider-assigned unique ID for this managed resource.
last_modified str

The date this resource was last modified.

service_id str

The Function Compute service ID.

Look up an Existing Service Resource

Get an existing Service resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: ServiceState, opts?: CustomResourceOptions): Service
static get(resource_name, id, opts=None, description=None, internet_access=None, last_modified=None, log_config=None, name=None, name_prefix=None, role=None, service_id=None, vpc_config=None, __props__=None);
func GetService(ctx *Context, name string, id IDInput, state *ServiceState, opts ...ResourceOption) (*Service, error)
public static Service Get(string name, Input<string> id, ServiceState? state, CustomResourceOptions? opts = null)
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.

The following state arguments are supported:

Description string

The function compute service description.

InternetAccess bool

Whether to allow the service to access Internet. Default to “true”.

LastModified string

The date this resource was last modified.

LogConfig Pulumi.AliCloud.FC.Inputs.ServiceLogConfigArgs

Provide this to store your FC service logs. Fields documented below. See Create a Service.

Name string

The Function Compute service name. It is the only in one Alicloud account and is conflict with “name_prefix”.

NamePrefix string

Setting a prefix to get a only name. It is conflict with “name”.

Role string

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 for more details.

ServiceId string

The Function Compute service ID.

VpcConfig Pulumi.AliCloud.FC.Inputs.ServiceVpcConfigArgs

Provide this to allow your FC service to access your VPC. Fields documented below. See Function Compute Service in VPC.

Description string

The function compute service description.

InternetAccess bool

Whether to allow the service to access Internet. Default to “true”.

LastModified string

The date this resource was last modified.

LogConfig ServiceLogConfig

Provide this to store your FC service logs. Fields documented below. See Create a Service.

Name string

The Function Compute service name. It is the only in one Alicloud account and is conflict with “name_prefix”.

NamePrefix string

Setting a prefix to get a only name. It is conflict with “name”.

Role string

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 for more details.

ServiceId string

The Function Compute service ID.

VpcConfig ServiceVpcConfig

Provide this to allow your FC service to access your VPC. Fields documented below. See Function Compute Service in VPC.

description string

The function compute service description.

internetAccess boolean

Whether to allow the service to access Internet. Default to “true”.

lastModified string

The date this resource was last modified.

logConfig ServiceLogConfig

Provide this to store your FC service logs. Fields documented below. See Create a Service.

name string

The Function Compute service name. It is the only in one Alicloud account and is conflict with “name_prefix”.

namePrefix string

Setting a prefix to get a only name. It is conflict with “name”.

role string

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 for more details.

serviceId string

The Function Compute service ID.

vpcConfig ServiceVpcConfig

Provide this to allow your FC service to access your VPC. Fields documented below. See Function Compute Service in VPC.

description str

The function compute service description.

internet_access bool

Whether to allow the service to access Internet. Default to “true”.

last_modified str

The date this resource was last modified.

log_config Dict[ServiceLogConfig]

Provide this to store your FC service logs. Fields documented below. See Create a Service.

name str

The Function Compute service name. It is the only in one Alicloud account and is conflict with “name_prefix”.

name_prefix str

Setting a prefix to get a only name. It is conflict with “name”.

role str

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 for more details.

service_id str

The Function Compute service ID.

vpc_config Dict[ServiceVpcConfig]

Provide this to allow your FC service to access your VPC. Fields documented below. See Function Compute Service in VPC.

Supporting Types

ServiceLogConfig

See the input and output API doc for this type.

See the input and output API doc for this type.

See the input and output API doc for this type.

Logstore string

The log store name of Logs service.

Project string

The project name of Logs service.

Logstore string

The log store name of Logs service.

Project string

The project name of Logs service.

logstore string

The log store name of Logs service.

project string

The project name of Logs service.

logstore str

The log store name of Logs service.

project str

The project name of Logs service.

ServiceVpcConfig

See the input and output API doc for this type.

See the input and output API doc for this type.

See the input and output API doc for this type.

SecurityGroupId string

A security group ID associated with the FC service.

VswitchIds List<string>

A list of vswitch IDs associated with the FC service.

VpcId string
SecurityGroupId string

A security group ID associated with the FC service.

VswitchIds []string

A list of vswitch IDs associated with the FC service.

VpcId string
securityGroupId string

A security group ID associated with the FC service.

vswitchIds string[]

A list of vswitch IDs associated with the FC service.

vpcId string
security_group_id str

A security group ID associated with the FC service.

vswitch_ids List[str]

A list of vswitch IDs associated with the FC service.

vpc_id str

Package Details

Repository
https://github.com/pulumi/pulumi-alicloud
License
Apache-2.0
Notes
This Pulumi package is based on the alicloud Terraform Provider.