Strata Cloud Manager v0.1.1 published on Friday, May 31, 2024 by Pulumi
scm.InternalDnsServer
Explore with Pulumi AI
Retrieves a config item.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as scm from "@pulumi/scm";
const example = new scm.InternalDnsServer("example", {});
import pulumi
import pulumi_scm as scm
example = scm.InternalDnsServer("example")
package main
import (
"github.com/pulumi/pulumi-scm/sdk/go/scm"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := scm.NewInternalDnsServer(ctx, "example", nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Scm = Pulumi.Scm;
return await Deployment.RunAsync(() =>
{
var example = new Scm.InternalDnsServer("example");
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.scm.InternalDnsServer;
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 example = new InternalDnsServer("example");
}
}
resources:
example:
type: scm:InternalDnsServer
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
The InternalDnsServer resource accepts the following input properties:
- Domain
Names List<string> - The DomainNames param.
- Primary string
- The Primary param.
- Name string
- The Name param.
- Secondary string
- The Secondary param.
- Domain
Names []string - The DomainNames param.
- Primary string
- The Primary param.
- Name string
- The Name param.
- Secondary string
- The Secondary param.
- domain
Names List<String> - The DomainNames param.
- primary String
- The Primary param.
- name String
- The Name param.
- secondary String
- The Secondary param.
- domain
Names string[] - The DomainNames param.
- primary string
- The Primary param.
- name string
- The Name param.
- secondary string
- The Secondary param.
- domain_
names Sequence[str] - The DomainNames param.
- primary str
- The Primary param.
- name str
- The Name param.
- secondary str
- The Secondary param.
- domain
Names List<String> - The DomainNames param.
- primary String
- The Primary param.
- name String
- The Name param.
- secondary String
- The Secondary param.
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) -> InternalDnsServer
func 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)
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.
- Domain
Names List<string> - The DomainNames param.
- Name string
- The Name param.
- Primary string
- The Primary param.
- Secondary string
- The Secondary param.
- Tfid string
- Domain
Names []string - The DomainNames param.
- Name string
- The Name param.
- Primary string
- The Primary param.
- Secondary string
- The Secondary param.
- Tfid string
- domain
Names List<String> - The DomainNames param.
- name String
- The Name param.
- primary String
- The Primary param.
- secondary String
- The Secondary param.
- tfid String
- domain
Names string[] - The DomainNames param.
- name string
- The Name param.
- primary string
- The Primary param.
- secondary string
- The Secondary param.
- tfid string
- domain_
names Sequence[str] - The DomainNames param.
- name str
- The Name param.
- primary str
- The Primary param.
- secondary str
- The Secondary param.
- tfid str
- domain
Names List<String> - The DomainNames param.
- name String
- The Name param.
- primary String
- The Primary param.
- secondary String
- The Secondary param.
- tfid String
Package Details
- Repository
- scm pulumi/pulumi-scm
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
scm
Terraform Provider.