opentelekomcloud.CfwServiceGroupMemberV1
Explore with Pulumi AI
Up-to-date reference of API arguments for CFW service group member you can get at documentation portal
Manages a CFW Service Group Member resource within OpenTelekomCloud.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as opentelekomcloud from "@pulumi/opentelekomcloud";
const config = new pulumi.Config();
const setId = config.requireObject("setId");
const member1 = new opentelekomcloud.CfwServiceGroupMemberV1("member1", {
setId: setId,
protocol: 6,
sourcePort: "1",
destPort: "1",
description: "Test611",
});
import pulumi
import pulumi_opentelekomcloud as opentelekomcloud
config = pulumi.Config()
set_id = config.require_object("setId")
member1 = opentelekomcloud.CfwServiceGroupMemberV1("member1",
set_id=set_id,
protocol=6,
source_port="1",
dest_port="1",
description="Test611")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/opentelekomcloud/opentelekomcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
cfg := config.New(ctx, "")
setId := cfg.RequireObject("setId")
_, err := opentelekomcloud.NewCfwServiceGroupMemberV1(ctx, "member1", &opentelekomcloud.CfwServiceGroupMemberV1Args{
SetId: pulumi.Any(setId),
Protocol: pulumi.Float64(6),
SourcePort: pulumi.String("1"),
DestPort: pulumi.String("1"),
Description: pulumi.String("Test611"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Opentelekomcloud = Pulumi.Opentelekomcloud;
return await Deployment.RunAsync(() =>
{
var config = new Config();
var setId = config.RequireObject<dynamic>("setId");
var member1 = new Opentelekomcloud.CfwServiceGroupMemberV1("member1", new()
{
SetId = setId,
Protocol = 6,
SourcePort = "1",
DestPort = "1",
Description = "Test611",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.opentelekomcloud.CfwServiceGroupMemberV1;
import com.pulumi.opentelekomcloud.CfwServiceGroupMemberV1Args;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var config = ctx.config();
final var setId = config.get("setId");
var member1 = new CfwServiceGroupMemberV1("member1", CfwServiceGroupMemberV1Args.builder()
.setId(setId)
.protocol(6)
.sourcePort("1")
.destPort("1")
.description("Test611")
.build());
}
}
configuration:
setId:
type: dynamic
resources:
member1:
type: opentelekomcloud:CfwServiceGroupMemberV1
properties:
setId: ${setId}
protocol: 6
sourcePort: '1'
destPort: '1'
description: Test611
Create CfwServiceGroupMemberV1 Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new CfwServiceGroupMemberV1(name: string, args: CfwServiceGroupMemberV1Args, opts?: CustomResourceOptions);
@overload
def CfwServiceGroupMemberV1(resource_name: str,
args: CfwServiceGroupMemberV1Args,
opts: Optional[ResourceOptions] = None)
@overload
def CfwServiceGroupMemberV1(resource_name: str,
opts: Optional[ResourceOptions] = None,
dest_port: Optional[str] = None,
protocol: Optional[float] = None,
set_id: Optional[str] = None,
source_port: Optional[str] = None,
description: Optional[str] = None,
timeouts: Optional[CfwServiceGroupMemberV1TimeoutsArgs] = None)
func NewCfwServiceGroupMemberV1(ctx *Context, name string, args CfwServiceGroupMemberV1Args, opts ...ResourceOption) (*CfwServiceGroupMemberV1, error)
public CfwServiceGroupMemberV1(string name, CfwServiceGroupMemberV1Args args, CustomResourceOptions? opts = null)
public CfwServiceGroupMemberV1(String name, CfwServiceGroupMemberV1Args args)
public CfwServiceGroupMemberV1(String name, CfwServiceGroupMemberV1Args args, CustomResourceOptions options)
type: opentelekomcloud:CfwServiceGroupMemberV1
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args CfwServiceGroupMemberV1Args
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args CfwServiceGroupMemberV1Args
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args CfwServiceGroupMemberV1Args
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CfwServiceGroupMemberV1Args
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args CfwServiceGroupMemberV1Args
- 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 cfwServiceGroupMemberV1Resource = new Opentelekomcloud.CfwServiceGroupMemberV1("cfwServiceGroupMemberV1Resource", new()
{
DestPort = "string",
Protocol = 0,
SetId = "string",
SourcePort = "string",
Description = "string",
Timeouts = new Opentelekomcloud.Inputs.CfwServiceGroupMemberV1TimeoutsArgs
{
Create = "string",
Delete = "string",
Update = "string",
},
});
example, err := opentelekomcloud.NewCfwServiceGroupMemberV1(ctx, "cfwServiceGroupMemberV1Resource", &opentelekomcloud.CfwServiceGroupMemberV1Args{
DestPort: pulumi.String("string"),
Protocol: pulumi.Float64(0),
SetId: pulumi.String("string"),
SourcePort: pulumi.String("string"),
Description: pulumi.String("string"),
Timeouts: &opentelekomcloud.CfwServiceGroupMemberV1TimeoutsArgs{
Create: pulumi.String("string"),
Delete: pulumi.String("string"),
Update: pulumi.String("string"),
},
})
var cfwServiceGroupMemberV1Resource = new CfwServiceGroupMemberV1("cfwServiceGroupMemberV1Resource", CfwServiceGroupMemberV1Args.builder()
.destPort("string")
.protocol(0.0)
.setId("string")
.sourcePort("string")
.description("string")
.timeouts(CfwServiceGroupMemberV1TimeoutsArgs.builder()
.create("string")
.delete("string")
.update("string")
.build())
.build());
cfw_service_group_member_v1_resource = opentelekomcloud.CfwServiceGroupMemberV1("cfwServiceGroupMemberV1Resource",
dest_port="string",
protocol=0,
set_id="string",
source_port="string",
description="string",
timeouts={
"create": "string",
"delete": "string",
"update": "string",
})
const cfwServiceGroupMemberV1Resource = new opentelekomcloud.CfwServiceGroupMemberV1("cfwServiceGroupMemberV1Resource", {
destPort: "string",
protocol: 0,
setId: "string",
sourcePort: "string",
description: "string",
timeouts: {
create: "string",
"delete": "string",
update: "string",
},
});
type: opentelekomcloud:CfwServiceGroupMemberV1
properties:
description: string
destPort: string
protocol: 0
setId: string
sourcePort: string
timeouts:
create: string
delete: string
update: string
CfwServiceGroupMemberV1 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 CfwServiceGroupMemberV1 resource accepts the following input properties:
- Dest
Port string - Specifies the destination port.
- Protocol double
- Specifies the Protocol type:
6
(TCP),17
(UDP),1
(ICMP),58
(ICMPv6), or -1
(any). - Set
Id string - Specifies the service group ID.
- Source
Port string - Specifies the source port.
- Description string
- Specifies the description of the service group member.
- Timeouts
Cfw
Service Group Member V1Timeouts
- Dest
Port string - Specifies the destination port.
- Protocol float64
- Specifies the Protocol type:
6
(TCP),17
(UDP),1
(ICMP),58
(ICMPv6), or -1
(any). - Set
Id string - Specifies the service group ID.
- Source
Port string - Specifies the source port.
- Description string
- Specifies the description of the service group member.
- Timeouts
Cfw
Service Group Member V1Timeouts Args
- dest
Port String - Specifies the destination port.
- protocol Double
- Specifies the Protocol type:
6
(TCP),17
(UDP),1
(ICMP),58
(ICMPv6), or -1
(any). - set
Id String - Specifies the service group ID.
- source
Port String - Specifies the source port.
- description String
- Specifies the description of the service group member.
- timeouts
Cfw
Service Group Member V1Timeouts
- dest
Port string - Specifies the destination port.
- protocol number
- Specifies the Protocol type:
6
(TCP),17
(UDP),1
(ICMP),58
(ICMPv6), or -1
(any). - set
Id string - Specifies the service group ID.
- source
Port string - Specifies the source port.
- description string
- Specifies the description of the service group member.
- timeouts
Cfw
Service Group Member V1Timeouts
- dest_
port str - Specifies the destination port.
- protocol float
- Specifies the Protocol type:
6
(TCP),17
(UDP),1
(ICMP),58
(ICMPv6), or -1
(any). - set_
id str - Specifies the service group ID.
- source_
port str - Specifies the source port.
- description str
- Specifies the description of the service group member.
- timeouts
Cfw
Service Group Member V1Timeouts Args
- dest
Port String - Specifies the destination port.
- protocol Number
- Specifies the Protocol type:
6
(TCP),17
(UDP),1
(ICMP),58
(ICMPv6), or -1
(any). - set
Id String - Specifies the service group ID.
- source
Port String - Specifies the source port.
- description String
- Specifies the description of the service group member.
- timeouts Property Map
Outputs
All input properties are implicitly available as output properties. Additionally, the CfwServiceGroupMemberV1 resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing CfwServiceGroupMemberV1 Resource
Get an existing CfwServiceGroupMemberV1 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?: CfwServiceGroupMemberV1State, opts?: CustomResourceOptions): CfwServiceGroupMemberV1
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
dest_port: Optional[str] = None,
protocol: Optional[float] = None,
set_id: Optional[str] = None,
source_port: Optional[str] = None,
timeouts: Optional[CfwServiceGroupMemberV1TimeoutsArgs] = None) -> CfwServiceGroupMemberV1
func GetCfwServiceGroupMemberV1(ctx *Context, name string, id IDInput, state *CfwServiceGroupMemberV1State, opts ...ResourceOption) (*CfwServiceGroupMemberV1, error)
public static CfwServiceGroupMemberV1 Get(string name, Input<string> id, CfwServiceGroupMemberV1State? state, CustomResourceOptions? opts = null)
public static CfwServiceGroupMemberV1 get(String name, Output<String> id, CfwServiceGroupMemberV1State state, CustomResourceOptions options)
resources: _: type: opentelekomcloud:CfwServiceGroupMemberV1 get: id: ${id}
- 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.
- 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.
- Description string
- Specifies the description of the service group member.
- Dest
Port string - Specifies the destination port.
- Protocol double
- Specifies the Protocol type:
6
(TCP),17
(UDP),1
(ICMP),58
(ICMPv6), or -1
(any). - Set
Id string - Specifies the service group ID.
- Source
Port string - Specifies the source port.
- Timeouts
Cfw
Service Group Member V1Timeouts
- Description string
- Specifies the description of the service group member.
- Dest
Port string - Specifies the destination port.
- Protocol float64
- Specifies the Protocol type:
6
(TCP),17
(UDP),1
(ICMP),58
(ICMPv6), or -1
(any). - Set
Id string - Specifies the service group ID.
- Source
Port string - Specifies the source port.
- Timeouts
Cfw
Service Group Member V1Timeouts Args
- description String
- Specifies the description of the service group member.
- dest
Port String - Specifies the destination port.
- protocol Double
- Specifies the Protocol type:
6
(TCP),17
(UDP),1
(ICMP),58
(ICMPv6), or -1
(any). - set
Id String - Specifies the service group ID.
- source
Port String - Specifies the source port.
- timeouts
Cfw
Service Group Member V1Timeouts
- description string
- Specifies the description of the service group member.
- dest
Port string - Specifies the destination port.
- protocol number
- Specifies the Protocol type:
6
(TCP),17
(UDP),1
(ICMP),58
(ICMPv6), or -1
(any). - set
Id string - Specifies the service group ID.
- source
Port string - Specifies the source port.
- timeouts
Cfw
Service Group Member V1Timeouts
- description str
- Specifies the description of the service group member.
- dest_
port str - Specifies the destination port.
- protocol float
- Specifies the Protocol type:
6
(TCP),17
(UDP),1
(ICMP),58
(ICMPv6), or -1
(any). - set_
id str - Specifies the service group ID.
- source_
port str - Specifies the source port.
- timeouts
Cfw
Service Group Member V1Timeouts Args
- description String
- Specifies the description of the service group member.
- dest
Port String - Specifies the destination port.
- protocol Number
- Specifies the Protocol type:
6
(TCP),17
(UDP),1
(ICMP),58
(ICMPv6), or -1
(any). - set
Id String - Specifies the service group ID.
- source
Port String - Specifies the source port.
- timeouts Property Map
Supporting Types
CfwServiceGroupMemberV1Timeouts, CfwServiceGroupMemberV1TimeoutsArgs
Import
CFW Service Group Member V1 resource can be imported using the service group ID, set_id
and member ID, id
, e.g.
$ pulumi import opentelekomcloud:index/cfwServiceGroupMemberV1:CfwServiceGroupMemberV1 member_1 <set_id>/<id>
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- opentelekomcloud opentelekomcloud/terraform-provider-opentelekomcloud
- License
- Notes
- This Pulumi package is based on the
opentelekomcloud
Terraform Provider.