Skip to content

Latest commit

 

History

History
997 lines (845 loc) · 40.3 KB

File metadata and controls

997 lines (845 loc) · 40.3 KB
title title_tag meta_desc layout no_edit_this_page
Template
tencentcloud.Address.Template
Documentation for the tencentcloud.Address.Template resource with examples, input properties, output properties, lookup functions, and supporting types.
api
true

Provides a resource to manage address template.

Example Usage

using Pulumi;
using Tencentcloud = TencentCloudIAC.PulumiPackage.Tencentcloud;

class MyStack : Stack
{
    public MyStack()
    {
        var foo = new Tencentcloud.Address.Template("foo", new Tencentcloud.Address.TemplateArgs
        {
            Addresses = 
            {
                "10.0.0.1",
                "10.0.1.0/24",
                "10.0.0.1-10.0.0.100",
            },
        });
    }

}
package main

import (
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
	"github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Address"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := Address.NewTemplate(ctx, "foo", &Address.TemplateArgs{
			Addresses: pulumi.StringArray{
				pulumi.String("10.0.0.1"),
				pulumi.String("10.0.1.0/24"),
				pulumi.String("10.0.0.1-10.0.0.100"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import java.util.*;
import java.io.*;
import java.nio.*;
import com.pulumi.*;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        var foo = new Template("foo", TemplateArgs.builder()        
            .addresses(            
                "10.0.0.1",
                "10.0.1.0/24",
                "10.0.0.1-10.0.0.100")
            .build());

    }
}
import pulumi
import tencentcloud_iac_pulumi as tencentcloud

foo = tencentcloud.address.Template("foo", addresses=[
    "10.0.0.1",
    "10.0.1.0/24",
    "10.0.0.1-10.0.0.100",
])
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@tencentcloud_iac/pulumi";

const foo = new tencentcloud.Address.Template("foo", {
    addresses: [
        "10.0.0.1",
        "10.0.1.0/24",
        "10.0.0.1-10.0.0.100",
    ],
});
resources:
  foo:
    type: tencentcloud:Address:Template
    properties:
      addresses:
        - 10.0.0.1
        - 10.0.1.0/24
        - 10.0.0.1-10.0.0.100

Create Template Resource {#create}

new Template(name: string, args: TemplateArgs, opts?: CustomResourceOptions);
@overload
def Template(resource_name: str,
             opts: Optional[ResourceOptions] = None,
             addresses: Optional[Sequence[str]] = None,
             name: Optional[str] = None)
@overload
def Template(resource_name: str,
             args: TemplateArgs,
             opts: Optional[ResourceOptions] = None)
func NewTemplate(ctx *Context, name string, args TemplateArgs, opts ...ResourceOption) (*Template, error)
public Template(string name, TemplateArgs args, CustomResourceOptions? opts = null)
public Template(String name, TemplateArgs args)
public Template(String name, TemplateArgs args, CustomResourceOptions options)
type: tencentcloud:Address:Template
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args TemplateArgs
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 TemplateArgs
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 TemplateArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args TemplateArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args TemplateArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Template Resource Properties {#properties}

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

Inputs

The Template resource accepts the following input properties:

Addresses List<string>

Address list. IP(10.0.0.1), CIDR(10.0.1.0/24), IP range(10.0.0.1-10.0.0.100) format are supported.

Name string

Name of the address template.

Addresses []string

Address list. IP(10.0.0.1), CIDR(10.0.1.0/24), IP range(10.0.0.1-10.0.0.100) format are supported.

Name string

Name of the address template.

addresses List<String>

Address list. IP(10.0.0.1), CIDR(10.0.1.0/24), IP range(10.0.0.1-10.0.0.100) format are supported.

name String

Name of the address template.

addresses string[]

Address list. IP(10.0.0.1), CIDR(10.0.1.0/24), IP range(10.0.0.1-10.0.0.100) format are supported.

name string

Name of the address template.

addresses Sequence[str]

Address list. IP(10.0.0.1), CIDR(10.0.1.0/24), IP range(10.0.0.1-10.0.0.100) format are supported.

name str

Name of the address template.

addresses List<String>

Address list. IP(10.0.0.1), CIDR(10.0.1.0/24), IP range(10.0.0.1-10.0.0.100) format are supported.

name String

Name of the address template.

Outputs

All input properties are implicitly available as output properties. Additionally, the Template 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 Template Resource {#look-up}

Get an existing Template 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?: TemplateState, opts?: CustomResourceOptions): Template
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        addresses: Optional[Sequence[str]] = None,
        name: Optional[str] = None) -> Template
func GetTemplate(ctx *Context, name string, id IDInput, state *TemplateState, opts ...ResourceOption) (*Template, error)
public static Template Get(string name, Input<string> id, TemplateState? state, CustomResourceOptions? opts = null)
public static Template get(String name, Output<String> id, TemplateState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
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.
The following state arguments are supported:
Addresses List<string>

Address list. IP(10.0.0.1), CIDR(10.0.1.0/24), IP range(10.0.0.1-10.0.0.100) format are supported.

Name string

Name of the address template.

Addresses []string

Address list. IP(10.0.0.1), CIDR(10.0.1.0/24), IP range(10.0.0.1-10.0.0.100) format are supported.

Name string

Name of the address template.

addresses List<String>

Address list. IP(10.0.0.1), CIDR(10.0.1.0/24), IP range(10.0.0.1-10.0.0.100) format are supported.

name String

Name of the address template.

addresses string[]

Address list. IP(10.0.0.1), CIDR(10.0.1.0/24), IP range(10.0.0.1-10.0.0.100) format are supported.

name string

Name of the address template.

addresses Sequence[str]

Address list. IP(10.0.0.1), CIDR(10.0.1.0/24), IP range(10.0.0.1-10.0.0.100) format are supported.

name str

Name of the address template.

addresses List<String>

Address list. IP(10.0.0.1), CIDR(10.0.1.0/24), IP range(10.0.0.1-10.0.0.100) format are supported.

name String

Name of the address template.

Import

Address template can be imported using the id, e.g.

 $ pulumi import tencentcloud:Address/template:Template foo ipm-makf7k9e"

Package Details

Repository
tencentcloud tencentcloudstack/pulumi-tencentcloud
License
Apache-2.0
Notes

This Pulumi package is based on the tencentcloud Terraform Provider.