InternalDnsServer resource
Create InternalDnsServer Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new InternalDnsServer(name: string, args: InternalDnsServerArgs, opts?: CustomResourceOptions);@overload
def InternalDnsServer(resource_name: str,
args: InternalDnsServerArgs,
opts: Optional[ResourceOptions] = None)
@overload
def InternalDnsServer(resource_name: str,
opts: Optional[ResourceOptions] = None,
domain_names: Optional[Sequence[str]] = None,
primary: Optional[str] = None,
name: Optional[str] = None,
secondary: Optional[str] = None)func NewInternalDnsServer(ctx *Context, name string, args InternalDnsServerArgs, opts ...ResourceOption) (*InternalDnsServer, error)public InternalDnsServer(string name, InternalDnsServerArgs args, CustomResourceOptions? opts = null)
public InternalDnsServer(String name, InternalDnsServerArgs args)
public InternalDnsServer(String name, InternalDnsServerArgs args, CustomResourceOptions options)
type: scm:InternalDnsServer
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 InternalDnsServerArgs
- 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 InternalDnsServerArgs
- 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 InternalDnsServerArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args InternalDnsServerArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args InternalDnsServerArgs
- 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 internalDnsServerResource = new Scm.InternalDnsServer("internalDnsServerResource", new()
{
DomainNames = new[]
{
"string",
},
Primary = "string",
Name = "string",
Secondary = "string",
});
example, err := scm.NewInternalDnsServer(ctx, "internalDnsServerResource", &scm.InternalDnsServerArgs{
DomainNames: pulumi.StringArray{
pulumi.String("string"),
},
Primary: pulumi.String("string"),
Name: pulumi.String("string"),
Secondary: pulumi.String("string"),
})
var internalDnsServerResource = new InternalDnsServer("internalDnsServerResource", InternalDnsServerArgs.builder()
.domainNames("string")
.primary("string")
.name("string")
.secondary("string")
.build());
internal_dns_server_resource = scm.InternalDnsServer("internalDnsServerResource",
domain_names=["string"],
primary="string",
name="string",
secondary="string")
const internalDnsServerResource = new scm.InternalDnsServer("internalDnsServerResource", {
domainNames: ["string"],
primary: "string",
name: "string",
secondary: "string",
});
type: scm:InternalDnsServer
properties:
domainNames:
- string
name: string
primary: string
secondary: string
InternalDnsServer 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 InternalDnsServer resource accepts the following input properties:
- Domain
Names List<string> - The DNS domain name(s)
- Primary string
- The IP address of the primary DNS server
- Name string
- The name of the internet DNS server resource
- Secondary string
- The IP address of the secondary DNS server
- Domain
Names []string - The DNS domain name(s)
- Primary string
- The IP address of the primary DNS server
- Name string
- The name of the internet DNS server resource
- Secondary string
- The IP address of the secondary DNS server
- domain
Names List<String> - The DNS domain name(s)
- primary String
- The IP address of the primary DNS server
- name String
- The name of the internet DNS server resource
- secondary String
- The IP address of the secondary DNS server
- domain
Names string[] - The DNS domain name(s)
- primary string
- The IP address of the primary DNS server
- name string
- The name of the internet DNS server resource
- secondary string
- The IP address of the secondary DNS server
- domain_
names Sequence[str] - The DNS domain name(s)
- primary str
- The IP address of the primary DNS server
- name str
- The name of the internet DNS server resource
- secondary str
- The IP address of the secondary DNS server
- domain
Names List<String> - The DNS domain name(s)
- primary String
- The IP address of the primary DNS server
- name String
- The name of the internet DNS server resource
- secondary String
- The IP address of the secondary DNS server
Outputs
All input properties are implicitly available as output properties. Additionally, the InternalDnsServer resource produces the following output properties:
Look up Existing InternalDnsServer Resource
Get an existing InternalDnsServer 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?: InternalDnsServerState, opts?: CustomResourceOptions): InternalDnsServer@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
domain_names: Optional[Sequence[str]] = None,
name: Optional[str] = None,
primary: Optional[str] = None,
secondary: Optional[str] = None,
tfid: Optional[str] = None) -> InternalDnsServerfunc GetInternalDnsServer(ctx *Context, name string, id IDInput, state *InternalDnsServerState, opts ...ResourceOption) (*InternalDnsServer, error)public static InternalDnsServer Get(string name, Input<string> id, InternalDnsServerState? state, CustomResourceOptions? opts = null)public static InternalDnsServer get(String name, Output<String> id, InternalDnsServerState state, CustomResourceOptions options)resources: _: type: scm:InternalDnsServer 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.
- Domain
Names List<string> - The DNS domain name(s)
- Name string
- The name of the internet DNS server resource
- Primary string
- The IP address of the primary DNS server
- Secondary string
- The IP address of the secondary DNS server
- Tfid string
- Domain
Names []string - The DNS domain name(s)
- Name string
- The name of the internet DNS server resource
- Primary string
- The IP address of the primary DNS server
- Secondary string
- The IP address of the secondary DNS server
- Tfid string
- domain
Names List<String> - The DNS domain name(s)
- name String
- The name of the internet DNS server resource
- primary String
- The IP address of the primary DNS server
- secondary String
- The IP address of the secondary DNS server
- tfid String
- domain
Names string[] - The DNS domain name(s)
- name string
- The name of the internet DNS server resource
- primary string
- The IP address of the primary DNS server
- secondary string
- The IP address of the secondary DNS server
- tfid string
- domain_
names Sequence[str] - The DNS domain name(s)
- name str
- The name of the internet DNS server resource
- primary str
- The IP address of the primary DNS server
- secondary str
- The IP address of the secondary DNS server
- tfid str
- domain
Names List<String> - The DNS domain name(s)
- name String
- The name of the internet DNS server resource
- primary String
- The IP address of the primary DNS server
- secondary String
- The IP address of the secondary DNS server
- tfid String
Package Details
- Repository
- scm pulumi/pulumi-scm
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
scmTerraform Provider.
