alicloud.fc.Service
Explore with Pulumi AI
Create Service Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Service(name: string, args?: ServiceArgs, opts?: CustomResourceOptions);
@overload
def Service(resource_name: str,
args: Optional[ServiceArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def Service(resource_name: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
internet_access: Optional[bool] = None,
log_config: Optional[ServiceLogConfigArgs] = None,
name: Optional[str] = None,
name_prefix: Optional[str] = None,
nas_config: Optional[ServiceNasConfigArgs] = None,
publish: Optional[bool] = None,
role: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
tracing_config: Optional[ServiceTracingConfigArgs] = None,
vpc_config: Optional[ServiceVpcConfigArgs] = None)
func NewService(ctx *Context, name string, args *ServiceArgs, opts ...ResourceOption) (*Service, error)
public Service(string name, ServiceArgs? args = null, CustomResourceOptions? opts = null)
public Service(String name, ServiceArgs args)
public Service(String name, ServiceArgs args, CustomResourceOptions options)
type: alicloud:fc:Service
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name
This property is required. 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
This property is required. str - The unique name of the resource.
- args ServiceArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name
This property is required. 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
This property is required. string - The unique name of the resource.
- args ServiceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name
This property is required. String - The unique name of the resource.
- args
This property is required. ServiceArgs - The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var serviceResource = new AliCloud.FC.Service("serviceResource", new()
{
Description = "string",
InternetAccess = false,
LogConfig = new AliCloud.FC.Inputs.ServiceLogConfigArgs
{
Logstore = "string",
Project = "string",
EnableInstanceMetrics = false,
EnableRequestMetrics = false,
},
Name = "string",
NamePrefix = "string",
NasConfig = new AliCloud.FC.Inputs.ServiceNasConfigArgs
{
GroupId = 0,
MountPoints = new[]
{
new AliCloud.FC.Inputs.ServiceNasConfigMountPointArgs
{
MountDir = "string",
ServerAddr = "string",
},
},
UserId = 0,
},
Publish = false,
Role = "string",
Tags =
{
{ "string", "string" },
},
TracingConfig = new AliCloud.FC.Inputs.ServiceTracingConfigArgs
{
Params =
{
{ "string", "string" },
},
Type = "string",
},
VpcConfig = new AliCloud.FC.Inputs.ServiceVpcConfigArgs
{
SecurityGroupId = "string",
VswitchIds = new[]
{
"string",
},
VpcId = "string",
},
});
example, err := fc.NewService(ctx, "serviceResource", &fc.ServiceArgs{
Description: pulumi.String("string"),
InternetAccess: pulumi.Bool(false),
LogConfig: &fc.ServiceLogConfigArgs{
Logstore: pulumi.String("string"),
Project: pulumi.String("string"),
EnableInstanceMetrics: pulumi.Bool(false),
EnableRequestMetrics: pulumi.Bool(false),
},
Name: pulumi.String("string"),
NamePrefix: pulumi.String("string"),
NasConfig: &fc.ServiceNasConfigArgs{
GroupId: pulumi.Int(0),
MountPoints: fc.ServiceNasConfigMountPointArray{
&fc.ServiceNasConfigMountPointArgs{
MountDir: pulumi.String("string"),
ServerAddr: pulumi.String("string"),
},
},
UserId: pulumi.Int(0),
},
Publish: pulumi.Bool(false),
Role: pulumi.String("string"),
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
TracingConfig: &fc.ServiceTracingConfigArgs{
Params: pulumi.StringMap{
"string": pulumi.String("string"),
},
Type: pulumi.String("string"),
},
VpcConfig: &fc.ServiceVpcConfigArgs{
SecurityGroupId: pulumi.String("string"),
VswitchIds: pulumi.StringArray{
pulumi.String("string"),
},
VpcId: pulumi.String("string"),
},
})
var serviceResource = new Service("serviceResource", ServiceArgs.builder()
.description("string")
.internetAccess(false)
.logConfig(ServiceLogConfigArgs.builder()
.logstore("string")
.project("string")
.enableInstanceMetrics(false)
.enableRequestMetrics(false)
.build())
.name("string")
.namePrefix("string")
.nasConfig(ServiceNasConfigArgs.builder()
.groupId(0)
.mountPoints(ServiceNasConfigMountPointArgs.builder()
.mountDir("string")
.serverAddr("string")
.build())
.userId(0)
.build())
.publish(false)
.role("string")
.tags(Map.of("string", "string"))
.tracingConfig(ServiceTracingConfigArgs.builder()
.params(Map.of("string", "string"))
.type("string")
.build())
.vpcConfig(ServiceVpcConfigArgs.builder()
.securityGroupId("string")
.vswitchIds("string")
.vpcId("string")
.build())
.build());
service_resource = alicloud.fc.Service("serviceResource",
description="string",
internet_access=False,
log_config={
"logstore": "string",
"project": "string",
"enable_instance_metrics": False,
"enable_request_metrics": False,
},
name="string",
name_prefix="string",
nas_config={
"group_id": 0,
"mount_points": [{
"mount_dir": "string",
"server_addr": "string",
}],
"user_id": 0,
},
publish=False,
role="string",
tags={
"string": "string",
},
tracing_config={
"params": {
"string": "string",
},
"type": "string",
},
vpc_config={
"security_group_id": "string",
"vswitch_ids": ["string"],
"vpc_id": "string",
})
const serviceResource = new alicloud.fc.Service("serviceResource", {
description: "string",
internetAccess: false,
logConfig: {
logstore: "string",
project: "string",
enableInstanceMetrics: false,
enableRequestMetrics: false,
},
name: "string",
namePrefix: "string",
nasConfig: {
groupId: 0,
mountPoints: [{
mountDir: "string",
serverAddr: "string",
}],
userId: 0,
},
publish: false,
role: "string",
tags: {
string: "string",
},
tracingConfig: {
params: {
string: "string",
},
type: "string",
},
vpcConfig: {
securityGroupId: "string",
vswitchIds: ["string"],
vpcId: "string",
},
});
type: alicloud:fc:Service
properties:
description: string
internetAccess: false
logConfig:
enableInstanceMetrics: false
enableRequestMetrics: false
logstore: string
project: string
name: string
namePrefix: string
nasConfig:
groupId: 0
mountPoints:
- mountDir: string
serverAddr: string
userId: 0
publish: false
role: string
tags:
string: string
tracingConfig:
params:
string: string
type: string
vpcConfig:
securityGroupId: string
vpcId: string
vswitchIds:
- string
Service Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Service resource accepts the following input properties:
- Description string
- Internet
Access bool - Log
Config Pulumi.Ali Cloud. FC. Inputs. Service Log Config - Name
Changes to this property will trigger replacement.
- Name
Prefix Changes to this property will trigger replacement.
- Nas
Config Pulumi.Ali Cloud. FC. Inputs. Service Nas Config - Publish bool
- Role string
- Dictionary<string, string>
- Tracing
Config Pulumi.Ali Cloud. FC. Inputs. Service Tracing Config - Vpc
Config Pulumi.Ali Cloud. FC. Inputs. Service Vpc Config
- Description string
- Internet
Access bool - Log
Config ServiceLog Config Args - Name
Changes to this property will trigger replacement.
- Name
Prefix Changes to this property will trigger replacement.
- Nas
Config ServiceNas Config Args - Publish bool
- Role string
- map[string]string
- Tracing
Config ServiceTracing Config Args - Vpc
Config ServiceVpc Config Args
- description String
- internet
Access Boolean - log
Config ServiceLog Config - name
Changes to this property will trigger replacement.
- name
Prefix Changes to this property will trigger replacement.
- nas
Config ServiceNas Config - publish Boolean
- role String
- Map<String,String>
- tracing
Config ServiceTracing Config - vpc
Config ServiceVpc Config
- description string
- internet
Access boolean - log
Config ServiceLog Config - name
Changes to this property will trigger replacement.
- name
Prefix Changes to this property will trigger replacement.
- nas
Config ServiceNas Config - publish boolean
- role string
- {[key: string]: string}
- tracing
Config ServiceTracing Config - vpc
Config ServiceVpc Config
- description str
- internet_
access bool - log_
config ServiceLog Config Args - name
Changes to this property will trigger replacement.
- name_
prefix Changes to this property will trigger replacement.
- nas_
config ServiceNas Config Args - publish bool
- role str
- Mapping[str, str]
- tracing_
config ServiceTracing Config Args - vpc_
config ServiceVpc Config Args
- description String
- internet
Access Boolean - log
Config Property Map - name
Changes to this property will trigger replacement.
- name
Prefix Changes to this property will trigger replacement.
- nas
Config Property Map - publish Boolean
- role String
- Map<String>
- tracing
Config Property Map - vpc
Config Property Map
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.
- Last
Modified string - Service
Id string - Version string
- Id string
- The provider-assigned unique ID for this managed resource.
- Last
Modified string - Service
Id string - Version string
- id String
- The provider-assigned unique ID for this managed resource.
- last
Modified String - service
Id String - version String
- id string
- The provider-assigned unique ID for this managed resource.
- last
Modified string - service
Id string - version string
- id str
- The provider-assigned unique ID for this managed resource.
- last_
modified str - service_
id str - version str
- id String
- The provider-assigned unique ID for this managed resource.
- last
Modified String - service
Id String - version String
Look up 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
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
internet_access: Optional[bool] = None,
last_modified: Optional[str] = None,
log_config: Optional[ServiceLogConfigArgs] = None,
name: Optional[str] = None,
name_prefix: Optional[str] = None,
nas_config: Optional[ServiceNasConfigArgs] = None,
publish: Optional[bool] = None,
role: Optional[str] = None,
service_id: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
tracing_config: Optional[ServiceTracingConfigArgs] = None,
version: Optional[str] = None,
vpc_config: Optional[ServiceVpcConfigArgs] = None) -> Service
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)
public static Service get(String name, Output<String> id, ServiceState state, CustomResourceOptions options)
resources: _: type: alicloud:fc:Service get: id: ${id}
- name
This property is required. - The unique name of the resulting resource.
- id
This property is required. - 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
This property is required. - The unique name of the resulting resource.
- id
This property is required. - The unique provider ID of the resource to lookup.
- name
This property is required. - The unique name of the resulting resource.
- id
This property is required. - 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
This property is required. - The unique name of the resulting resource.
- id
This property is required. - 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
This property is required. - The unique name of the resulting resource.
- id
This property is required. - 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.
- Description string
- Internet
Access bool - Last
Modified string - Log
Config Pulumi.Ali Cloud. FC. Inputs. Service Log Config - Name
Changes to this property will trigger replacement.
- Name
Prefix Changes to this property will trigger replacement.
- Nas
Config Pulumi.Ali Cloud. FC. Inputs. Service Nas Config - Publish bool
- Role string
- Service
Id string - Dictionary<string, string>
- Tracing
Config Pulumi.Ali Cloud. FC. Inputs. Service Tracing Config - Version string
- Vpc
Config Pulumi.Ali Cloud. FC. Inputs. Service Vpc Config
- Description string
- Internet
Access bool - Last
Modified string - Log
Config ServiceLog Config Args - Name
Changes to this property will trigger replacement.
- Name
Prefix Changes to this property will trigger replacement.
- Nas
Config ServiceNas Config Args - Publish bool
- Role string
- Service
Id string - map[string]string
- Tracing
Config ServiceTracing Config Args - Version string
- Vpc
Config ServiceVpc Config Args
- description String
- internet
Access Boolean - last
Modified String - log
Config ServiceLog Config - name
Changes to this property will trigger replacement.
- name
Prefix Changes to this property will trigger replacement.
- nas
Config ServiceNas Config - publish Boolean
- role String
- service
Id String - Map<String,String>
- tracing
Config ServiceTracing Config - version String
- vpc
Config ServiceVpc Config
- description string
- internet
Access boolean - last
Modified string - log
Config ServiceLog Config - name
Changes to this property will trigger replacement.
- name
Prefix Changes to this property will trigger replacement.
- nas
Config ServiceNas Config - publish boolean
- role string
- service
Id string - {[key: string]: string}
- tracing
Config ServiceTracing Config - version string
- vpc
Config ServiceVpc Config
- description str
- internet_
access bool - last_
modified str - log_
config ServiceLog Config Args - name
Changes to this property will trigger replacement.
- name_
prefix Changes to this property will trigger replacement.
- nas_
config ServiceNas Config Args - publish bool
- role str
- service_
id str - Mapping[str, str]
- tracing_
config ServiceTracing Config Args - version str
- vpc_
config ServiceVpc Config Args
- description String
- internet
Access Boolean - last
Modified String - log
Config Property Map - name
Changes to this property will trigger replacement.
- name
Prefix Changes to this property will trigger replacement.
- nas
Config Property Map - publish Boolean
- role String
- service
Id String - Map<String>
- tracing
Config Property Map - version String
- vpc
Config Property Map
Supporting Types
ServiceLogConfig, ServiceLogConfigArgs
- Logstore
This property is required. string - The log store name of Alicloud Simple Log Service.
- Project
This property is required. string - The project name of the Alicloud Simple Log Service.
- Enable
Instance boolMetrics - Enable instance level metrics.
- Enable
Request boolMetrics - Enable request level metrics.
- Logstore
This property is required. string - The log store name of Alicloud Simple Log Service.
- Project
This property is required. string - The project name of the Alicloud Simple Log Service.
- Enable
Instance boolMetrics - Enable instance level metrics.
- Enable
Request boolMetrics - Enable request level metrics.
- logstore
This property is required. String - The log store name of Alicloud Simple Log Service.
- project
This property is required. String - The project name of the Alicloud Simple Log Service.
- enable
Instance BooleanMetrics - Enable instance level metrics.
- enable
Request BooleanMetrics - Enable request level metrics.
- logstore
This property is required. string - The log store name of Alicloud Simple Log Service.
- project
This property is required. string - The project name of the Alicloud Simple Log Service.
- enable
Instance booleanMetrics - Enable instance level metrics.
- enable
Request booleanMetrics - Enable request level metrics.
- logstore
This property is required. str - The log store name of Alicloud Simple Log Service.
- project
This property is required. str - The project name of the Alicloud Simple Log Service.
- enable_
instance_ boolmetrics - Enable instance level metrics.
- enable_
request_ boolmetrics - Enable request level metrics.
- logstore
This property is required. String - The log store name of Alicloud Simple Log Service.
- project
This property is required. String - The project name of the Alicloud Simple Log Service.
- enable
Instance BooleanMetrics - Enable instance level metrics.
- enable
Request BooleanMetrics - Enable request level metrics.
ServiceNasConfig, ServiceNasConfigArgs
- Group
Id This property is required. int - The group id of your NAS file system.
- Mount
Points This property is required. List<Pulumi.Ali Cloud. FC. Inputs. Service Nas Config Mount Point> - Config the NAS mount points.See
mount_points
below. - User
Id This property is required. int - The user id of your NAS file system.
- Group
Id This property is required. int - The group id of your NAS file system.
- Mount
Points This property is required. []ServiceNas Config Mount Point - Config the NAS mount points.See
mount_points
below. - User
Id This property is required. int - The user id of your NAS file system.
- group
Id This property is required. Integer - The group id of your NAS file system.
- mount
Points This property is required. List<ServiceNas Config Mount Point> - Config the NAS mount points.See
mount_points
below. - user
Id This property is required. Integer - The user id of your NAS file system.
- group
Id This property is required. number - The group id of your NAS file system.
- mount
Points This property is required. ServiceNas Config Mount Point[] - Config the NAS mount points.See
mount_points
below. - user
Id This property is required. number - The user id of your NAS file system.
- group_
id This property is required. int - The group id of your NAS file system.
- mount_
points This property is required. Sequence[ServiceNas Config Mount Point] - Config the NAS mount points.See
mount_points
below. - user_
id This property is required. int - The user id of your NAS file system.
- group
Id This property is required. Number - The group id of your NAS file system.
- mount
Points This property is required. List<Property Map> - Config the NAS mount points.See
mount_points
below. - user
Id This property is required. Number - The user id of your NAS file system.
ServiceNasConfigMountPoint, ServiceNasConfigMountPointArgs
- Mount
Dir This property is required. string - The local address where to mount your remote NAS directory.
- Server
Addr This property is required. string - The address of the remote NAS directory.
- Mount
Dir This property is required. string - The local address where to mount your remote NAS directory.
- Server
Addr This property is required. string - The address of the remote NAS directory.
- mount
Dir This property is required. String - The local address where to mount your remote NAS directory.
- server
Addr This property is required. String - The address of the remote NAS directory.
- mount
Dir This property is required. string - The local address where to mount your remote NAS directory.
- server
Addr This property is required. string - The address of the remote NAS directory.
- mount_
dir This property is required. str - The local address where to mount your remote NAS directory.
- server_
addr This property is required. str - The address of the remote NAS directory.
- mount
Dir This property is required. String - The local address where to mount your remote NAS directory.
- server
Addr This property is required. String - The address of the remote NAS directory.
ServiceTracingConfig, ServiceTracingConfigArgs
- Params
This property is required. Dictionary<string, string> - Tracing parameters, which type is map[string]string. When the protocol type is Jaeger, the key is "endpoint" and the value is your tracing intranet endpoint. For example endpoint: http://tracing-analysis-dc-hz.aliyuncs.com/adapt_xxx/api/traces.
- Type
This property is required. string - Tracing protocol type. Currently, only Jaeger is supported.
- Params
This property is required. map[string]string - Tracing parameters, which type is map[string]string. When the protocol type is Jaeger, the key is "endpoint" and the value is your tracing intranet endpoint. For example endpoint: http://tracing-analysis-dc-hz.aliyuncs.com/adapt_xxx/api/traces.
- Type
This property is required. string - Tracing protocol type. Currently, only Jaeger is supported.
- params
This property is required. Map<String,String> - Tracing parameters, which type is map[string]string. When the protocol type is Jaeger, the key is "endpoint" and the value is your tracing intranet endpoint. For example endpoint: http://tracing-analysis-dc-hz.aliyuncs.com/adapt_xxx/api/traces.
- type
This property is required. String - Tracing protocol type. Currently, only Jaeger is supported.
- params
This property is required. {[key: string]: string} - Tracing parameters, which type is map[string]string. When the protocol type is Jaeger, the key is "endpoint" and the value is your tracing intranet endpoint. For example endpoint: http://tracing-analysis-dc-hz.aliyuncs.com/adapt_xxx/api/traces.
- type
This property is required. string - Tracing protocol type. Currently, only Jaeger is supported.
- params
This property is required. Mapping[str, str] - Tracing parameters, which type is map[string]string. When the protocol type is Jaeger, the key is "endpoint" and the value is your tracing intranet endpoint. For example endpoint: http://tracing-analysis-dc-hz.aliyuncs.com/adapt_xxx/api/traces.
- type
This property is required. str - Tracing protocol type. Currently, only Jaeger is supported.
- params
This property is required. Map<String> - Tracing parameters, which type is map[string]string. When the protocol type is Jaeger, the key is "endpoint" and the value is your tracing intranet endpoint. For example endpoint: http://tracing-analysis-dc-hz.aliyuncs.com/adapt_xxx/api/traces.
- type
This property is required. String - Tracing protocol type. Currently, only Jaeger is supported.
ServiceVpcConfig, ServiceVpcConfigArgs
- Security
Group Id This property is required. string - A security group ID associated with the Function Compute Service.
- Vswitch
Ids This property is required. List<string> - A list of vswitch IDs associated with the Function Compute Service.
- Vpc
Id string - A vpc ID associated with the Function Compute Service.
- Security
Group Id This property is required. string - A security group ID associated with the Function Compute Service.
- Vswitch
Ids This property is required. []string - A list of vswitch IDs associated with the Function Compute Service.
- Vpc
Id string - A vpc ID associated with the Function Compute Service.
- security
Group Id This property is required. String - A security group ID associated with the Function Compute Service.
- vswitch
Ids This property is required. List<String> - A list of vswitch IDs associated with the Function Compute Service.
- vpc
Id String - A vpc ID associated with the Function Compute Service.
- security
Group Id This property is required. string - A security group ID associated with the Function Compute Service.
- vswitch
Ids This property is required. string[] - A list of vswitch IDs associated with the Function Compute Service.
- vpc
Id string - A vpc ID associated with the Function Compute Service.
- security_
group_ id This property is required. str - A security group ID associated with the Function Compute Service.
- vswitch_
ids This property is required. Sequence[str] - A list of vswitch IDs associated with the Function Compute Service.
- vpc_
id str - A vpc ID associated with the Function Compute Service.
- security
Group Id This property is required. String - A security group ID associated with the Function Compute Service.
- vswitch
Ids This property is required. List<String> - A list of vswitch IDs associated with the Function Compute Service.
- vpc
Id String - A vpc ID associated with the Function Compute Service.
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloud
Terraform Provider.