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.
- Internet
Access bool Whether to allow the service to access Internet. Default to “true”.
- Log
Config Pulumi.Ali Cloud. FC. Inputs. Service Log Config Args 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”.
- Name
Prefix 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.
- Vpc
Config Pulumi.Ali Cloud. FC. Inputs. Service Vpc Config Args 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.
- Internet
Access bool Whether to allow the service to access Internet. Default to “true”.
- Log
Config ServiceLog Config 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”.
- Name
Prefix 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.
- Vpc
Config ServiceVpc Config 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.
- internet
Access boolean Whether to allow the service to access Internet. Default to “true”.
- log
Config ServiceLog Config 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”.
- name
Prefix 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.
- vpc
Config ServiceVpc Config 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[ServiceLog Config] 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[ServiceVpc Config] 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 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): Servicestatic 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.
- Internet
Access bool Whether to allow the service to access Internet. Default to “true”.
- Last
Modified string The date this resource was last modified.
- Log
Config Pulumi.Ali Cloud. FC. Inputs. Service Log Config Args 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”.
- Name
Prefix 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.
- Service
Id string The Function Compute service ID.
- Vpc
Config Pulumi.Ali Cloud. FC. Inputs. Service Vpc Config Args 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.
- Internet
Access bool Whether to allow the service to access Internet. Default to “true”.
- Last
Modified string The date this resource was last modified.
- Log
Config ServiceLog Config 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”.
- Name
Prefix 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.
- Service
Id string The Function Compute service ID.
- Vpc
Config ServiceVpc Config 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.
- internet
Access boolean Whether to allow the service to access Internet. Default to “true”.
- last
Modified string The date this resource was last modified.
- log
Config ServiceLog Config 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”.
- name
Prefix 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.
- service
Id string The Function Compute service ID.
- vpc
Config ServiceVpc Config 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[ServiceLog Config] 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[ServiceVpc Config] Provide this to allow your FC service to access your VPC. Fields documented below. See Function Compute Service in VPC.
Supporting Types
ServiceLogConfig
ServiceVpcConfig
- Security
Group stringId A security group ID associated with the FC service.
- Vswitch
Ids List<string> A list of vswitch IDs associated with the FC service.
- Vpc
Id string
- Security
Group stringId A security group ID associated with the FC service.
- Vswitch
Ids []string A list of vswitch IDs associated with the FC service.
- Vpc
Id string
- security
Group stringId A security group ID associated with the FC service.
- vswitch
Ids string[] A list of vswitch IDs associated with the FC service.
- vpc
Id string
- security_
group_ strid 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
alicloudTerraform Provider.