Alibaba Cloud v3.37.0, May 15 23
Alibaba Cloud v3.37.0, May 15 23
alicloud.dns.CustomLine
Explore with Pulumi AI
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
Basic Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var @default = new AliCloud.Dns.CustomLine("default", new()
{
CustomLineName = "tf-testacc",
DomainName = "your_domain_name",
IpSegmentLists = new[]
{
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
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.dns.CustomLine;
import com.pulumi.alicloud.dns.CustomLineArgs;
import com.pulumi.alicloud.dns.inputs.CustomLineIpSegmentListArgs;
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 default_ = new CustomLine("default", CustomLineArgs.builder()
.customLineName("tf-testacc")
.domainName("your_domain_name")
.ipSegmentLists(CustomLineIpSegmentListArgs.builder()
.endIp("192.0.2.125")
.startIp("192.0.2.123")
.build())
.build());
}
}
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 _default = new alicloud.dns.CustomLine("default", {
customLineName: "tf-testacc",
domainName: "your_domain_name",
ipSegmentLists: [{
endIp: "192.0.2.125",
startIp: "192.0.2.123",
}],
});
resources:
default:
type: alicloud:dns:CustomLine
properties:
customLineName: tf-testacc
domainName: your_domain_name
ipSegmentLists:
- endIp: 192.0.2.125
startIp: 192.0.2.123
Create 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:
- Custom
Line stringName The name of the Custom Line.
- Domain
Name string The Domain name.
- Ip
Segment List<Pulumi.Lists Ali Cloud. Dns. Inputs. Custom Line Ip Segment List Args> The IP segment list. See the following
Block ip_segment_list
.- Lang string
The lang.
- Custom
Line stringName The name of the Custom Line.
- Domain
Name string The Domain name.
- Ip
Segment []CustomLists Line Ip Segment List Args The IP segment list. See the following
Block ip_segment_list
.- Lang string
The lang.
- custom
Line StringName The name of the Custom Line.
- domain
Name String The Domain name.
- ip
Segment List<CustomLists Line Ip Segment List Args> The IP segment list. See the following
Block ip_segment_list
.- lang String
The lang.
- custom
Line stringName The name of the Custom Line.
- domain
Name string The Domain name.
- ip
Segment CustomLists Line Ip Segment List Args[] The IP segment list. See the following
Block ip_segment_list
.- lang string
The lang.
- custom_
line_ strname The name of the Custom Line.
- domain_
name str The Domain name.
- ip_
segment_ Sequence[Customlists Line Ip Segment List Args] The IP segment list. See the following
Block ip_segment_list
.- lang str
The lang.
- custom
Line StringName The name of the Custom Line.
- domain
Name String The Domain name.
- ip
Segment List<Property Map>Lists 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 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.
- Custom
Line stringName The name of the Custom Line.
- Domain
Name string The Domain name.
- Ip
Segment List<Pulumi.Lists Ali Cloud. Dns. Inputs. Custom Line Ip Segment List Args> The IP segment list. See the following
Block ip_segment_list
.- Lang string
The lang.
- Custom
Line stringName The name of the Custom Line.
- Domain
Name string The Domain name.
- Ip
Segment []CustomLists Line Ip Segment List Args The IP segment list. See the following
Block ip_segment_list
.- Lang string
The lang.
- custom
Line StringName The name of the Custom Line.
- domain
Name String The Domain name.
- ip
Segment List<CustomLists Line Ip Segment List Args> The IP segment list. See the following
Block ip_segment_list
.- lang String
The lang.
- custom
Line stringName The name of the Custom Line.
- domain
Name string The Domain name.
- ip
Segment CustomLists Line Ip Segment List Args[] The IP segment list. See the following
Block ip_segment_list
.- lang string
The lang.
- custom_
line_ strname The name of the Custom Line.
- domain_
name str The Domain name.
- ip_
segment_ Sequence[Customlists Line Ip Segment List Args] The IP segment list. See the following
Block ip_segment_list
.- lang str
The lang.
- custom
Line StringName The name of the Custom Line.
- domain
Name String The Domain name.
- ip
Segment List<Property Map>Lists The IP segment list. See the following
Block ip_segment_list
.- lang String
The lang.
Supporting Types
CustomLineIpSegmentList
Import
Alidns Custom Line can be imported using the id, e.g.
$ pulumi import alicloud:dns/customLine:CustomLine example <id>
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
alicloud
Terraform Provider.