Alibaba Cloud

Pulumi Official
Package maintained by Pulumi
v3.26.0 published on Friday, Jul 29, 2022 by Pulumi

CustomLine

Provides a Alidns Custom Line resource.

For information about Alidns Custom Line and how to use it, see What is Custom Line.

NOTE: Available in v1.151.0+.

Example Usage

using Pulumi;
using AliCloud = Pulumi.AliCloud;

class MyStack : Stack
{
    public MyStack()
    {
        var @default = new AliCloud.Dns.CustomLine("default", new AliCloud.Dns.CustomLineArgs
        {
            CustomLineName = "tf-testacc",
            DomainName = "your_domain_name",
            IpSegmentLists = 
            {
                new AliCloud.Dns.Inputs.CustomLineIpSegmentListArgs
                {
                    EndIp = "192.0.2.125",
                    StartIp = "192.0.2.123",
                },
            },
        });
    }

}
package main

import (
	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/dns"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := dns.NewCustomLine(ctx, "default", &dns.CustomLineArgs{
			CustomLineName: pulumi.String("tf-testacc"),
			DomainName:     pulumi.String("your_domain_name"),
			IpSegmentLists: dns.CustomLineIpSegmentListArray{
				&dns.CustomLineIpSegmentListArgs{
					EndIp:   pulumi.String("192.0.2.125"),
					StartIp: pulumi.String("192.0.2.123"),
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

Coming soon!

import pulumi
import pulumi_alicloud as alicloud

default = alicloud.dns.CustomLine("default",
    custom_line_name="tf-testacc",
    domain_name="your_domain_name",
    ip_segment_lists=[alicloud.dns.CustomLineIpSegmentListArgs(
        end_ip="192.0.2.125",
        start_ip="192.0.2.123",
    )])
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";

const defaultCustomLine = new alicloud.dns.CustomLine("default", {
    customLineName: "tf-testacc",
    domainName: "your_domain_name",
    ipSegmentLists: [{
        endIp: "192.0.2.125",
        startIp: "192.0.2.123",
    }],
});

Coming soon!

Create a CustomLine Resource

new CustomLine(name: string, args: CustomLineArgs, opts?: CustomResourceOptions);
@overload
def CustomLine(resource_name: str,
               opts: Optional[ResourceOptions] = None,
               custom_line_name: Optional[str] = None,
               domain_name: Optional[str] = None,
               ip_segment_lists: Optional[Sequence[CustomLineIpSegmentListArgs]] = None,
               lang: Optional[str] = None)
@overload
def CustomLine(resource_name: str,
               args: CustomLineArgs,
               opts: Optional[ResourceOptions] = None)
func NewCustomLine(ctx *Context, name string, args CustomLineArgs, opts ...ResourceOption) (*CustomLine, error)
public CustomLine(string name, CustomLineArgs args, CustomResourceOptions? opts = null)
public CustomLine(String name, CustomLineArgs args)
public CustomLine(String name, CustomLineArgs args, CustomResourceOptions options)
type: alicloud:dns:CustomLine
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

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

CustomLine Resource Properties

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

Inputs

The CustomLine resource accepts the following input properties:

CustomLineName string

The name of the Custom Line.

DomainName string

The Domain name.

IpSegmentLists List<Pulumi.AliCloud.Dns.Inputs.CustomLineIpSegmentListArgs>

The IP segment list. See the following Block ip_segment_list.

Lang string

The lang.

CustomLineName string

The name of the Custom Line.

DomainName string

The Domain name.

IpSegmentLists []CustomLineIpSegmentListArgs

The IP segment list. See the following Block ip_segment_list.

Lang string

The lang.

customLineName String

The name of the Custom Line.

domainName String

The Domain name.

ipSegmentLists List<CustomLineIpSegmentListArgs>

The IP segment list. See the following Block ip_segment_list.

lang String

The lang.

customLineName string

The name of the Custom Line.

domainName string

The Domain name.

ipSegmentLists CustomLineIpSegmentListArgs[]

The IP segment list. See the following Block ip_segment_list.

lang string

The lang.

custom_line_name str

The name of the Custom Line.

domain_name str

The Domain name.

ip_segment_lists Sequence[CustomLineIpSegmentListArgs]

The IP segment list. See the following Block ip_segment_list.

lang str

The lang.

customLineName String

The name of the Custom Line.

domainName String

The Domain name.

ipSegmentLists List<Property Map>

The IP segment list. See the following Block ip_segment_list.

lang String

The lang.

Outputs

All input properties are implicitly available as output properties. Additionally, the CustomLine 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 an Existing CustomLine Resource

Get an existing CustomLine 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?: CustomLineState, opts?: CustomResourceOptions): CustomLine
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        custom_line_name: Optional[str] = None,
        domain_name: Optional[str] = None,
        ip_segment_lists: Optional[Sequence[CustomLineIpSegmentListArgs]] = None,
        lang: Optional[str] = None) -> CustomLine
func GetCustomLine(ctx *Context, name string, id IDInput, state *CustomLineState, opts ...ResourceOption) (*CustomLine, error)
public static CustomLine Get(string name, Input<string> id, CustomLineState? state, CustomResourceOptions? opts = null)
public static CustomLine get(String name, Output<String> id, CustomLineState 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:
CustomLineName string

The name of the Custom Line.

DomainName string

The Domain name.

IpSegmentLists List<Pulumi.AliCloud.Dns.Inputs.CustomLineIpSegmentListArgs>

The IP segment list. See the following Block ip_segment_list.

Lang string

The lang.

CustomLineName string

The name of the Custom Line.

DomainName string

The Domain name.

IpSegmentLists []CustomLineIpSegmentListArgs

The IP segment list. See the following Block ip_segment_list.

Lang string

The lang.

customLineName String

The name of the Custom Line.

domainName String

The Domain name.

ipSegmentLists List<CustomLineIpSegmentListArgs>

The IP segment list. See the following Block ip_segment_list.

lang String

The lang.

customLineName string

The name of the Custom Line.

domainName string

The Domain name.

ipSegmentLists CustomLineIpSegmentListArgs[]

The IP segment list. See the following Block ip_segment_list.

lang string

The lang.

custom_line_name str

The name of the Custom Line.

domain_name str

The Domain name.

ip_segment_lists Sequence[CustomLineIpSegmentListArgs]

The IP segment list. See the following Block ip_segment_list.

lang str

The lang.

customLineName String

The name of the Custom Line.

domainName String

The Domain name.

ipSegmentLists List<Property Map>

The IP segment list. See the following Block ip_segment_list.

lang String

The lang.

Supporting Types

CustomLineIpSegmentList

EndIp string

The end IP address of the CIDR block.

StartIp string

The start IP address of the CIDR block.

EndIp string

The end IP address of the CIDR block.

StartIp string

The start IP address of the CIDR block.

endIp String

The end IP address of the CIDR block.

startIp String

The start IP address of the CIDR block.

endIp string

The end IP address of the CIDR block.

startIp string

The start IP address of the CIDR block.

end_ip str

The end IP address of the CIDR block.

start_ip str

The start IP address of the CIDR block.

endIp String

The end IP address of the CIDR block.

startIp String

The start IP address of the CIDR block.

Import

Alidns Custom Line can be imported using the id, e.g.

 $ pulumi import alicloud:dns/customLine:CustomLine example <id>

Package Details

Repository
https://github.com/pulumi/pulumi-alicloud
License
Apache-2.0
Notes

This Pulumi package is based on the alicloud Terraform Provider.