tencentcloud.TeoSecurityIpGroup
Explore with Pulumi AI
Provides a resource to create a teo teo_security_ip_group
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const teoSecurityIpGroup = new tencentcloud.TeoSecurityIpGroup("teoSecurityIpGroup", {
ipGroup: {
contents: [
"10.1.1.1",
"10.1.1.2",
"10.1.1.3",
],
name: "bbbbb",
},
zoneId: "zone-2qtuhspy7cr6",
});
import pulumi
import pulumi_tencentcloud as tencentcloud
teo_security_ip_group = tencentcloud.TeoSecurityIpGroup("teoSecurityIpGroup",
ip_group={
"contents": [
"10.1.1.1",
"10.1.1.2",
"10.1.1.3",
],
"name": "bbbbb",
},
zone_id="zone-2qtuhspy7cr6")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := tencentcloud.NewTeoSecurityIpGroup(ctx, "teoSecurityIpGroup", &tencentcloud.TeoSecurityIpGroupArgs{
IpGroup: &tencentcloud.TeoSecurityIpGroupIpGroupArgs{
Contents: pulumi.StringArray{
pulumi.String("10.1.1.1"),
pulumi.String("10.1.1.2"),
pulumi.String("10.1.1.3"),
},
Name: pulumi.String("bbbbb"),
},
ZoneId: pulumi.String("zone-2qtuhspy7cr6"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Tencentcloud = Pulumi.Tencentcloud;
return await Deployment.RunAsync(() =>
{
var teoSecurityIpGroup = new Tencentcloud.TeoSecurityIpGroup("teoSecurityIpGroup", new()
{
IpGroup = new Tencentcloud.Inputs.TeoSecurityIpGroupIpGroupArgs
{
Contents = new[]
{
"10.1.1.1",
"10.1.1.2",
"10.1.1.3",
},
Name = "bbbbb",
},
ZoneId = "zone-2qtuhspy7cr6",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.TeoSecurityIpGroup;
import com.pulumi.tencentcloud.TeoSecurityIpGroupArgs;
import com.pulumi.tencentcloud.inputs.TeoSecurityIpGroupIpGroupArgs;
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) {
var teoSecurityIpGroup = new TeoSecurityIpGroup("teoSecurityIpGroup", TeoSecurityIpGroupArgs.builder()
.ipGroup(TeoSecurityIpGroupIpGroupArgs.builder()
.contents(
"10.1.1.1",
"10.1.1.2",
"10.1.1.3")
.name("bbbbb")
.build())
.zoneId("zone-2qtuhspy7cr6")
.build());
}
}
resources:
teoSecurityIpGroup:
type: tencentcloud:TeoSecurityIpGroup
properties:
ipGroup:
contents:
- 10.1.1.1
- 10.1.1.2
- 10.1.1.3
name: bbbbb
zoneId: zone-2qtuhspy7cr6
Create TeoSecurityIpGroup Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new TeoSecurityIpGroup(name: string, args: TeoSecurityIpGroupArgs, opts?: CustomResourceOptions);
@overload
def TeoSecurityIpGroup(resource_name: str,
args: TeoSecurityIpGroupArgs,
opts: Optional[ResourceOptions] = None)
@overload
def TeoSecurityIpGroup(resource_name: str,
opts: Optional[ResourceOptions] = None,
ip_group: Optional[TeoSecurityIpGroupIpGroupArgs] = None,
zone_id: Optional[str] = None,
teo_security_ip_group_id: Optional[str] = None)
func NewTeoSecurityIpGroup(ctx *Context, name string, args TeoSecurityIpGroupArgs, opts ...ResourceOption) (*TeoSecurityIpGroup, error)
public TeoSecurityIpGroup(string name, TeoSecurityIpGroupArgs args, CustomResourceOptions? opts = null)
public TeoSecurityIpGroup(String name, TeoSecurityIpGroupArgs args)
public TeoSecurityIpGroup(String name, TeoSecurityIpGroupArgs args, CustomResourceOptions options)
type: tencentcloud:TeoSecurityIpGroup
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 TeoSecurityIpGroupArgs
- 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 TeoSecurityIpGroupArgs
- 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 TeoSecurityIpGroupArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args TeoSecurityIpGroupArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args TeoSecurityIpGroupArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
TeoSecurityIpGroup 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 TeoSecurityIpGroup resource accepts the following input properties:
- Ip
Group TeoSecurity Ip Group Ip Group - IP group information, replace all when modifying.
- Zone
Id string - Site ID.
- Teo
Security stringIp Group Id - ID of the resource.
- Ip
Group TeoSecurity Ip Group Ip Group Args - IP group information, replace all when modifying.
- Zone
Id string - Site ID.
- Teo
Security stringIp Group Id - ID of the resource.
- ip
Group TeoSecurity Ip Group Ip Group - IP group information, replace all when modifying.
- zone
Id String - Site ID.
- teo
Security StringIp Group Id - ID of the resource.
- ip
Group TeoSecurity Ip Group Ip Group - IP group information, replace all when modifying.
- zone
Id string - Site ID.
- teo
Security stringIp Group Id - ID of the resource.
- ip_
group TeoSecurity Ip Group Ip Group Args - IP group information, replace all when modifying.
- zone_
id str - Site ID.
- teo_
security_ strip_ group_ id - ID of the resource.
- ip
Group Property Map - IP group information, replace all when modifying.
- zone
Id String - Site ID.
- teo
Security StringIp Group Id - ID of the resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the TeoSecurityIpGroup 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 TeoSecurityIpGroup Resource
Get an existing TeoSecurityIpGroup 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?: TeoSecurityIpGroupState, opts?: CustomResourceOptions): TeoSecurityIpGroup
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
ip_group: Optional[TeoSecurityIpGroupIpGroupArgs] = None,
teo_security_ip_group_id: Optional[str] = None,
zone_id: Optional[str] = None) -> TeoSecurityIpGroup
func GetTeoSecurityIpGroup(ctx *Context, name string, id IDInput, state *TeoSecurityIpGroupState, opts ...ResourceOption) (*TeoSecurityIpGroup, error)
public static TeoSecurityIpGroup Get(string name, Input<string> id, TeoSecurityIpGroupState? state, CustomResourceOptions? opts = null)
public static TeoSecurityIpGroup get(String name, Output<String> id, TeoSecurityIpGroupState state, CustomResourceOptions options)
resources: _: type: tencentcloud:TeoSecurityIpGroup 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.
- Ip
Group TeoSecurity Ip Group Ip Group - IP group information, replace all when modifying.
- Teo
Security stringIp Group Id - ID of the resource.
- Zone
Id string - Site ID.
- Ip
Group TeoSecurity Ip Group Ip Group Args - IP group information, replace all when modifying.
- Teo
Security stringIp Group Id - ID of the resource.
- Zone
Id string - Site ID.
- ip
Group TeoSecurity Ip Group Ip Group - IP group information, replace all when modifying.
- teo
Security StringIp Group Id - ID of the resource.
- zone
Id String - Site ID.
- ip
Group TeoSecurity Ip Group Ip Group - IP group information, replace all when modifying.
- teo
Security stringIp Group Id - ID of the resource.
- zone
Id string - Site ID.
- ip_
group TeoSecurity Ip Group Ip Group Args - IP group information, replace all when modifying.
- teo_
security_ strip_ group_ id - ID of the resource.
- zone_
id str - Site ID.
- ip
Group Property Map - IP group information, replace all when modifying.
- teo
Security StringIp Group Id - ID of the resource.
- zone
Id String - Site ID.
Supporting Types
TeoSecurityIpGroupIpGroup, TeoSecurityIpGroupIpGroupArgs
Import
teo teo_security_ip_group can be imported using the id, e.g.
$ pulumi import tencentcloud:index/teoSecurityIpGroup:TeoSecurityIpGroup teo_security_ip_group zone_id#group_id
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloud
Terraform Provider.