Control Plane v0.0.27 published on Saturday, May 25, 2024 by pulumiverse
cpln.Domain
Explore with Pulumi AI
Create Domain Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Domain(name: string, args: DomainArgs, opts?: CustomResourceOptions);
@overload
def Domain(resource_name: str,
args: DomainArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Domain(resource_name: str,
opts: Optional[ResourceOptions] = None,
spec: Optional[DomainSpecArgs] = None,
description: Optional[str] = None,
name: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None)
func NewDomain(ctx *Context, name string, args DomainArgs, opts ...ResourceOption) (*Domain, error)
public Domain(string name, DomainArgs args, CustomResourceOptions? opts = null)
public Domain(String name, DomainArgs args)
public Domain(String name, DomainArgs args, CustomResourceOptions options)
type: cpln:Domain
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 DomainArgs
- 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 DomainArgs
- 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 DomainArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DomainArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DomainArgs
- 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 domainResource = new Cpln.Domain("domainResource", new()
{
Spec = new Cpln.Inputs.DomainSpecArgs
{
Ports = new[]
{
new Cpln.Inputs.DomainSpecPortArgs
{
Tls = new Cpln.Inputs.DomainSpecPortTlsArgs
{
CipherSuites = new[]
{
"string",
},
ClientCertificate = new Cpln.Inputs.DomainSpecPortTlsClientCertificateArgs
{
SecretLink = "string",
},
MinProtocolVersion = "string",
ServerCertificate = new Cpln.Inputs.DomainSpecPortTlsServerCertificateArgs
{
SecretLink = "string",
},
},
Cors = new Cpln.Inputs.DomainSpecPortCorsArgs
{
AllowCredentials = false,
AllowHeaders = new[]
{
"string",
},
AllowMethods = new[]
{
"string",
},
AllowOrigins = new[]
{
new Cpln.Inputs.DomainSpecPortCorsAllowOriginArgs
{
Exact = "string",
},
},
ExposeHeaders = new[]
{
"string",
},
MaxAge = "string",
},
Number = 0,
Protocol = "string",
},
},
AcceptAllHosts = false,
DnsMode = "string",
GvcLink = "string",
},
Description = "string",
Name = "string",
Tags =
{
{ "string", "string" },
},
});
example, err := cpln.NewDomain(ctx, "domainResource", &cpln.DomainArgs{
Spec: &cpln.DomainSpecArgs{
Ports: cpln.DomainSpecPortArray{
&cpln.DomainSpecPortArgs{
Tls: &cpln.DomainSpecPortTlsArgs{
CipherSuites: pulumi.StringArray{
pulumi.String("string"),
},
ClientCertificate: &cpln.DomainSpecPortTlsClientCertificateArgs{
SecretLink: pulumi.String("string"),
},
MinProtocolVersion: pulumi.String("string"),
ServerCertificate: &cpln.DomainSpecPortTlsServerCertificateArgs{
SecretLink: pulumi.String("string"),
},
},
Cors: &cpln.DomainSpecPortCorsArgs{
AllowCredentials: pulumi.Bool(false),
AllowHeaders: pulumi.StringArray{
pulumi.String("string"),
},
AllowMethods: pulumi.StringArray{
pulumi.String("string"),
},
AllowOrigins: cpln.DomainSpecPortCorsAllowOriginArray{
&cpln.DomainSpecPortCorsAllowOriginArgs{
Exact: pulumi.String("string"),
},
},
ExposeHeaders: pulumi.StringArray{
pulumi.String("string"),
},
MaxAge: pulumi.String("string"),
},
Number: pulumi.Int(0),
Protocol: pulumi.String("string"),
},
},
AcceptAllHosts: pulumi.Bool(false),
DnsMode: pulumi.String("string"),
GvcLink: pulumi.String("string"),
},
Description: pulumi.String("string"),
Name: pulumi.String("string"),
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
})
var domainResource = new Domain("domainResource", DomainArgs.builder()
.spec(DomainSpecArgs.builder()
.ports(DomainSpecPortArgs.builder()
.tls(DomainSpecPortTlsArgs.builder()
.cipherSuites("string")
.clientCertificate(DomainSpecPortTlsClientCertificateArgs.builder()
.secretLink("string")
.build())
.minProtocolVersion("string")
.serverCertificate(DomainSpecPortTlsServerCertificateArgs.builder()
.secretLink("string")
.build())
.build())
.cors(DomainSpecPortCorsArgs.builder()
.allowCredentials(false)
.allowHeaders("string")
.allowMethods("string")
.allowOrigins(DomainSpecPortCorsAllowOriginArgs.builder()
.exact("string")
.build())
.exposeHeaders("string")
.maxAge("string")
.build())
.number(0)
.protocol("string")
.build())
.acceptAllHosts(false)
.dnsMode("string")
.gvcLink("string")
.build())
.description("string")
.name("string")
.tags(Map.of("string", "string"))
.build());
domain_resource = cpln.Domain("domainResource",
spec=cpln.DomainSpecArgs(
ports=[cpln.DomainSpecPortArgs(
tls=cpln.DomainSpecPortTlsArgs(
cipher_suites=["string"],
client_certificate=cpln.DomainSpecPortTlsClientCertificateArgs(
secret_link="string",
),
min_protocol_version="string",
server_certificate=cpln.DomainSpecPortTlsServerCertificateArgs(
secret_link="string",
),
),
cors=cpln.DomainSpecPortCorsArgs(
allow_credentials=False,
allow_headers=["string"],
allow_methods=["string"],
allow_origins=[cpln.DomainSpecPortCorsAllowOriginArgs(
exact="string",
)],
expose_headers=["string"],
max_age="string",
),
number=0,
protocol="string",
)],
accept_all_hosts=False,
dns_mode="string",
gvc_link="string",
),
description="string",
name="string",
tags={
"string": "string",
})
const domainResource = new cpln.Domain("domainResource", {
spec: {
ports: [{
tls: {
cipherSuites: ["string"],
clientCertificate: {
secretLink: "string",
},
minProtocolVersion: "string",
serverCertificate: {
secretLink: "string",
},
},
cors: {
allowCredentials: false,
allowHeaders: ["string"],
allowMethods: ["string"],
allowOrigins: [{
exact: "string",
}],
exposeHeaders: ["string"],
maxAge: "string",
},
number: 0,
protocol: "string",
}],
acceptAllHosts: false,
dnsMode: "string",
gvcLink: "string",
},
description: "string",
name: "string",
tags: {
string: "string",
},
});
type: cpln:Domain
properties:
description: string
name: string
spec:
acceptAllHosts: false
dnsMode: string
gvcLink: string
ports:
- cors:
allowCredentials: false
allowHeaders:
- string
allowMethods:
- string
allowOrigins:
- exact: string
exposeHeaders:
- string
maxAge: string
number: 0
protocol: string
tls:
cipherSuites:
- string
clientCertificate:
secretLink: string
minProtocolVersion: string
serverCertificate:
secretLink: string
tags:
string: string
Domain 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 Domain resource accepts the following input properties:
- Spec
Pulumiverse.
Cpln. Inputs. Domain Spec - Domain specificiation.
- Description string
- Description of the domain name.
- Name string
- Domain name. (e.g.,
example.com
/test.example.com
). Control Plane will validate the existence of the domain with DNS. Create and Update will fail if the required DNS entries cannot be validated. - Dictionary<string, string>
- Key-value map of resource tags.
- Spec
Domain
Spec Args - Domain specificiation.
- Description string
- Description of the domain name.
- Name string
- Domain name. (e.g.,
example.com
/test.example.com
). Control Plane will validate the existence of the domain with DNS. Create and Update will fail if the required DNS entries cannot be validated. - map[string]string
- Key-value map of resource tags.
- spec
Domain
Spec - Domain specificiation.
- description String
- Description of the domain name.
- name String
- Domain name. (e.g.,
example.com
/test.example.com
). Control Plane will validate the existence of the domain with DNS. Create and Update will fail if the required DNS entries cannot be validated. - Map<String,String>
- Key-value map of resource tags.
- spec
Domain
Spec - Domain specificiation.
- description string
- Description of the domain name.
- name string
- Domain name. (e.g.,
example.com
/test.example.com
). Control Plane will validate the existence of the domain with DNS. Create and Update will fail if the required DNS entries cannot be validated. - {[key: string]: string}
- Key-value map of resource tags.
- spec
Domain
Spec Args - Domain specificiation.
- description str
- Description of the domain name.
- name str
- Domain name. (e.g.,
example.com
/test.example.com
). Control Plane will validate the existence of the domain with DNS. Create and Update will fail if the required DNS entries cannot be validated. - Mapping[str, str]
- Key-value map of resource tags.
- spec Property Map
- Domain specificiation.
- description String
- Description of the domain name.
- name String
- Domain name. (e.g.,
example.com
/test.example.com
). Control Plane will validate the existence of the domain with DNS. Create and Update will fail if the required DNS entries cannot be validated. - Map<String>
- Key-value map of resource tags.
Outputs
All input properties are implicitly available as output properties. Additionally, the Domain resource produces the following output properties:
- Cpln
Id string - The ID, in GUID format, of the Domain.
- Id string
- The provider-assigned unique ID for this managed resource.
- Self
Link string - Full link to this resource. Can be referenced by other resources.
- Statuses
List<Pulumiverse.
Cpln. Outputs. Domain Status>
- Cpln
Id string - The ID, in GUID format, of the Domain.
- Id string
- The provider-assigned unique ID for this managed resource.
- Self
Link string - Full link to this resource. Can be referenced by other resources.
- Statuses
[]Domain
Status
- cpln
Id String - The ID, in GUID format, of the Domain.
- id String
- The provider-assigned unique ID for this managed resource.
- self
Link String - Full link to this resource. Can be referenced by other resources.
- statuses
List<Domain
Status>
- cpln
Id string - The ID, in GUID format, of the Domain.
- id string
- The provider-assigned unique ID for this managed resource.
- self
Link string - Full link to this resource. Can be referenced by other resources.
- statuses
Domain
Status[]
- cpln_
id str - The ID, in GUID format, of the Domain.
- id str
- The provider-assigned unique ID for this managed resource.
- self_
link str - Full link to this resource. Can be referenced by other resources.
- statuses
Sequence[Domain
Status]
- cpln
Id String - The ID, in GUID format, of the Domain.
- id String
- The provider-assigned unique ID for this managed resource.
- self
Link String - Full link to this resource. Can be referenced by other resources.
- statuses List<Property Map>
Look up Existing Domain Resource
Get an existing Domain 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?: DomainState, opts?: CustomResourceOptions): Domain
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
cpln_id: Optional[str] = None,
description: Optional[str] = None,
name: Optional[str] = None,
self_link: Optional[str] = None,
spec: Optional[DomainSpecArgs] = None,
statuses: Optional[Sequence[DomainStatusArgs]] = None,
tags: Optional[Mapping[str, str]] = None) -> Domain
func GetDomain(ctx *Context, name string, id IDInput, state *DomainState, opts ...ResourceOption) (*Domain, error)
public static Domain Get(string name, Input<string> id, DomainState? state, CustomResourceOptions? opts = null)
public static Domain get(String name, Output<String> id, DomainState 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.
- Cpln
Id string - The ID, in GUID format, of the Domain.
- Description string
- Description of the domain name.
- Name string
- Domain name. (e.g.,
example.com
/test.example.com
). Control Plane will validate the existence of the domain with DNS. Create and Update will fail if the required DNS entries cannot be validated. - Self
Link string - Full link to this resource. Can be referenced by other resources.
- Spec
Pulumiverse.
Cpln. Inputs. Domain Spec - Domain specificiation.
- Statuses
List<Pulumiverse.
Cpln. Inputs. Domain Status> - Dictionary<string, string>
- Key-value map of resource tags.
- Cpln
Id string - The ID, in GUID format, of the Domain.
- Description string
- Description of the domain name.
- Name string
- Domain name. (e.g.,
example.com
/test.example.com
). Control Plane will validate the existence of the domain with DNS. Create and Update will fail if the required DNS entries cannot be validated. - Self
Link string - Full link to this resource. Can be referenced by other resources.
- Spec
Domain
Spec Args - Domain specificiation.
- Statuses
[]Domain
Status Args - map[string]string
- Key-value map of resource tags.
- cpln
Id String - The ID, in GUID format, of the Domain.
- description String
- Description of the domain name.
- name String
- Domain name. (e.g.,
example.com
/test.example.com
). Control Plane will validate the existence of the domain with DNS. Create and Update will fail if the required DNS entries cannot be validated. - self
Link String - Full link to this resource. Can be referenced by other resources.
- spec
Domain
Spec - Domain specificiation.
- statuses
List<Domain
Status> - Map<String,String>
- Key-value map of resource tags.
- cpln
Id string - The ID, in GUID format, of the Domain.
- description string
- Description of the domain name.
- name string
- Domain name. (e.g.,
example.com
/test.example.com
). Control Plane will validate the existence of the domain with DNS. Create and Update will fail if the required DNS entries cannot be validated. - self
Link string - Full link to this resource. Can be referenced by other resources.
- spec
Domain
Spec - Domain specificiation.
- statuses
Domain
Status[] - {[key: string]: string}
- Key-value map of resource tags.
- cpln_
id str - The ID, in GUID format, of the Domain.
- description str
- Description of the domain name.
- name str
- Domain name. (e.g.,
example.com
/test.example.com
). Control Plane will validate the existence of the domain with DNS. Create and Update will fail if the required DNS entries cannot be validated. - self_
link str - Full link to this resource. Can be referenced by other resources.
- spec
Domain
Spec Args - Domain specificiation.
- statuses
Sequence[Domain
Status Args] - Mapping[str, str]
- Key-value map of resource tags.
- cpln
Id String - The ID, in GUID format, of the Domain.
- description String
- Description of the domain name.
- name String
- Domain name. (e.g.,
example.com
/test.example.com
). Control Plane will validate the existence of the domain with DNS. Create and Update will fail if the required DNS entries cannot be validated. - self
Link String - Full link to this resource. Can be referenced by other resources.
- spec Property Map
- Domain specificiation.
- statuses List<Property Map>
- Map<String>
- Key-value map of resource tags.
Supporting Types
DomainSpec, DomainSpecArgs
- Ports
List<Pulumiverse.
Cpln. Inputs. Domain Spec Port> - Accept
All boolHosts - Dns
Mode string - Gvc
Link string
- Ports
[]Domain
Spec Port - Accept
All boolHosts - Dns
Mode string - Gvc
Link string
- ports
List<Domain
Spec Port> - accept
All BooleanHosts - dns
Mode String - gvc
Link String
- ports
Domain
Spec Port[] - accept
All booleanHosts - dns
Mode string - gvc
Link string
- ports List<Property Map>
- accept
All BooleanHosts - dns
Mode String - gvc
Link String
DomainSpecPort, DomainSpecPortArgs
- tls
Domain
Spec Port Tls - cors
Domain
Spec Port Cors - number Integer
- protocol String
- tls
Domain
Spec Port Tls - cors
Domain
Spec Port Cors - number number
- protocol string
- tls Property Map
- cors Property Map
- number Number
- protocol String
DomainSpecPortCors, DomainSpecPortCorsArgs
- Allow
Credentials bool - Allow
Headers List<string> - Allow
Methods List<string> - Allow
Origins List<Pulumiverse.Cpln. Inputs. Domain Spec Port Cors Allow Origin> - Expose
Headers List<string> - Max
Age string
- Allow
Credentials bool - Allow
Headers []string - Allow
Methods []string - Allow
Origins []DomainSpec Port Cors Allow Origin - Expose
Headers []string - Max
Age string
- allow
Credentials Boolean - allow
Headers List<String> - allow
Methods List<String> - allow
Origins List<DomainSpec Port Cors Allow Origin> - expose
Headers List<String> - max
Age String
- allow
Credentials boolean - allow
Headers string[] - allow
Methods string[] - allow
Origins DomainSpec Port Cors Allow Origin[] - expose
Headers string[] - max
Age string
- allow_
credentials bool - allow_
headers Sequence[str] - allow_
methods Sequence[str] - allow_
origins Sequence[DomainSpec Port Cors Allow Origin] - expose_
headers Sequence[str] - max_
age str
- allow
Credentials Boolean - allow
Headers List<String> - allow
Methods List<String> - allow
Origins List<Property Map> - expose
Headers List<String> - max
Age String
DomainSpecPortCorsAllowOrigin, DomainSpecPortCorsAllowOriginArgs
- Exact string
- Exact string
- exact String
- exact string
- exact str
- exact String
DomainSpecPortTls, DomainSpecPortTlsArgs
- cipher
Suites List<String> - client
Certificate Property Map - min
Protocol StringVersion - server
Certificate Property Map
DomainSpecPortTlsClientCertificate, DomainSpecPortTlsClientCertificateArgs
- Secret
Link string
- Secret
Link string
- secret
Link String
- secret
Link string
- secret_
link str
- secret
Link String
DomainSpecPortTlsServerCertificate, DomainSpecPortTlsServerCertificateArgs
- Secret
Link string
- Secret
Link string
- secret
Link String
- secret
Link string
- secret_
link str
- secret
Link String
DomainStatus, DomainStatusArgs
DomainStatusDnsConfig, DomainStatusDnsConfigArgs
DomainStatusEndpoint, DomainStatusEndpointArgs
- Url string
- Workload
Link string
- Url string
- Workload
Link string
- url String
- workload
Link String
- url string
- workload
Link string
- url str
- workload_
link str
- url String
- workload
Link String
DomainStatusLocation, DomainStatusLocationArgs
- Certificate
Status string - Name string
- Certificate
Status string - Name string
- certificate
Status String - name String
- certificate
Status string - name string
- certificate_
status str - name str
- certificate
Status String - name String
Package Details
- Repository
- cpln pulumiverse/pulumi-cpln
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
cpln
Terraform Provider.