cpln.DomainRoute
Explore with Pulumi AI
Create DomainRoute Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new DomainRoute(name: string, args: DomainRouteArgs, opts?: CustomResourceOptions);
@overload
def DomainRoute(resource_name: str,
args: DomainRouteArgs,
opts: Optional[ResourceOptions] = None)
@overload
def DomainRoute(resource_name: str,
opts: Optional[ResourceOptions] = None,
domain_link: Optional[str] = None,
workload_link: Optional[str] = None,
domain_port: Optional[int] = None,
headers: Optional[DomainRouteHeadersArgs] = None,
host_prefix: Optional[str] = None,
host_regex: Optional[str] = None,
port: Optional[int] = None,
prefix: Optional[str] = None,
regex: Optional[str] = None,
replace_prefix: Optional[str] = None,
replica: Optional[int] = None)
func NewDomainRoute(ctx *Context, name string, args DomainRouteArgs, opts ...ResourceOption) (*DomainRoute, error)
public DomainRoute(string name, DomainRouteArgs args, CustomResourceOptions? opts = null)
public DomainRoute(String name, DomainRouteArgs args)
public DomainRoute(String name, DomainRouteArgs args, CustomResourceOptions options)
type: cpln:DomainRoute
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 DomainRouteArgs
- 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 DomainRouteArgs
- 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 DomainRouteArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DomainRouteArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DomainRouteArgs
- 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 domainRouteResource = new Cpln.DomainRoute("domainRouteResource", new()
{
DomainLink = "string",
WorkloadLink = "string",
DomainPort = 0,
Headers = new Cpln.Inputs.DomainRouteHeadersArgs
{
Request = new Cpln.Inputs.DomainRouteHeadersRequestArgs
{
Set =
{
{ "string", "string" },
},
},
},
HostPrefix = "string",
HostRegex = "string",
Port = 0,
Prefix = "string",
Regex = "string",
ReplacePrefix = "string",
Replica = 0,
});
example, err := cpln.NewDomainRoute(ctx, "domainRouteResource", &cpln.DomainRouteArgs{
DomainLink: pulumi.String("string"),
WorkloadLink: pulumi.String("string"),
DomainPort: pulumi.Int(0),
Headers: &cpln.DomainRouteHeadersArgs{
Request: &cpln.DomainRouteHeadersRequestArgs{
Set: pulumi.StringMap{
"string": pulumi.String("string"),
},
},
},
HostPrefix: pulumi.String("string"),
HostRegex: pulumi.String("string"),
Port: pulumi.Int(0),
Prefix: pulumi.String("string"),
Regex: pulumi.String("string"),
ReplacePrefix: pulumi.String("string"),
Replica: pulumi.Int(0),
})
var domainRouteResource = new DomainRoute("domainRouteResource", DomainRouteArgs.builder()
.domainLink("string")
.workloadLink("string")
.domainPort(0)
.headers(DomainRouteHeadersArgs.builder()
.request(DomainRouteHeadersRequestArgs.builder()
.set(Map.of("string", "string"))
.build())
.build())
.hostPrefix("string")
.hostRegex("string")
.port(0)
.prefix("string")
.regex("string")
.replacePrefix("string")
.replica(0)
.build());
domain_route_resource = cpln.DomainRoute("domainRouteResource",
domain_link="string",
workload_link="string",
domain_port=0,
headers={
"request": {
"set": {
"string": "string",
},
},
},
host_prefix="string",
host_regex="string",
port=0,
prefix="string",
regex="string",
replace_prefix="string",
replica=0)
const domainRouteResource = new cpln.DomainRoute("domainRouteResource", {
domainLink: "string",
workloadLink: "string",
domainPort: 0,
headers: {
request: {
set: {
string: "string",
},
},
},
hostPrefix: "string",
hostRegex: "string",
port: 0,
prefix: "string",
regex: "string",
replacePrefix: "string",
replica: 0,
});
type: cpln:DomainRoute
properties:
domainLink: string
domainPort: 0
headers:
request:
set:
string: string
hostPrefix: string
hostRegex: string
port: 0
prefix: string
regex: string
replacePrefix: string
replica: 0
workloadLink: string
DomainRoute 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 DomainRoute resource accepts the following input properties:
- Domain
Link string - The self link of the domain to add the route to.
- Workload
Link string - The link of the workload to map the prefix to.
- Domain
Port int - The port the route corresponds to. Default: 443
- Headers
Pulumiverse.
Cpln. Inputs. Domain Route Headers - Modify the headers for all http requests for this route.
- Host
Prefix string - This option allows forwarding traffic for different host headers to different workloads. This will only be used when the target GVC has dedicated load balancing enabled and the Domain is configured for wildcard support. Please contact us on Slack or at support@controlplane.com for additional details.
- Host
Regex string - A regex to match the host header. This will only be used when the target GVC has dedicated load balancing enabled and the Domain is configure for wildcard support. Contact your account manager for details.
- Port int
- For the linked workload, the port to route traffic to.
- Prefix string
- The path will match any unmatched path prefixes for the subdomain.
- Regex string
- Used to match URI paths. Uses the google re2 regex syntax.
- Replace
Prefix string - A path prefix can be configured to be replaced when forwarding the request to the Workload.
- Replica int
- The replica number of a stateful workload to route to. If not provided, traffic will be routed to all replicas.
- Domain
Link string - The self link of the domain to add the route to.
- Workload
Link string - The link of the workload to map the prefix to.
- Domain
Port int - The port the route corresponds to. Default: 443
- Headers
Domain
Route Headers Args - Modify the headers for all http requests for this route.
- Host
Prefix string - This option allows forwarding traffic for different host headers to different workloads. This will only be used when the target GVC has dedicated load balancing enabled and the Domain is configured for wildcard support. Please contact us on Slack or at support@controlplane.com for additional details.
- Host
Regex string - A regex to match the host header. This will only be used when the target GVC has dedicated load balancing enabled and the Domain is configure for wildcard support. Contact your account manager for details.
- Port int
- For the linked workload, the port to route traffic to.
- Prefix string
- The path will match any unmatched path prefixes for the subdomain.
- Regex string
- Used to match URI paths. Uses the google re2 regex syntax.
- Replace
Prefix string - A path prefix can be configured to be replaced when forwarding the request to the Workload.
- Replica int
- The replica number of a stateful workload to route to. If not provided, traffic will be routed to all replicas.
- domain
Link String - The self link of the domain to add the route to.
- workload
Link String - The link of the workload to map the prefix to.
- domain
Port Integer - The port the route corresponds to. Default: 443
- headers
Domain
Route Headers - Modify the headers for all http requests for this route.
- host
Prefix String - This option allows forwarding traffic for different host headers to different workloads. This will only be used when the target GVC has dedicated load balancing enabled and the Domain is configured for wildcard support. Please contact us on Slack or at support@controlplane.com for additional details.
- host
Regex String - A regex to match the host header. This will only be used when the target GVC has dedicated load balancing enabled and the Domain is configure for wildcard support. Contact your account manager for details.
- port Integer
- For the linked workload, the port to route traffic to.
- prefix String
- The path will match any unmatched path prefixes for the subdomain.
- regex String
- Used to match URI paths. Uses the google re2 regex syntax.
- replace
Prefix String - A path prefix can be configured to be replaced when forwarding the request to the Workload.
- replica Integer
- The replica number of a stateful workload to route to. If not provided, traffic will be routed to all replicas.
- domain
Link string - The self link of the domain to add the route to.
- workload
Link string - The link of the workload to map the prefix to.
- domain
Port number - The port the route corresponds to. Default: 443
- headers
Domain
Route Headers - Modify the headers for all http requests for this route.
- host
Prefix string - This option allows forwarding traffic for different host headers to different workloads. This will only be used when the target GVC has dedicated load balancing enabled and the Domain is configured for wildcard support. Please contact us on Slack or at support@controlplane.com for additional details.
- host
Regex string - A regex to match the host header. This will only be used when the target GVC has dedicated load balancing enabled and the Domain is configure for wildcard support. Contact your account manager for details.
- port number
- For the linked workload, the port to route traffic to.
- prefix string
- The path will match any unmatched path prefixes for the subdomain.
- regex string
- Used to match URI paths. Uses the google re2 regex syntax.
- replace
Prefix string - A path prefix can be configured to be replaced when forwarding the request to the Workload.
- replica number
- The replica number of a stateful workload to route to. If not provided, traffic will be routed to all replicas.
- domain_
link str - The self link of the domain to add the route to.
- workload_
link str - The link of the workload to map the prefix to.
- domain_
port int - The port the route corresponds to. Default: 443
- headers
Domain
Route Headers Args - Modify the headers for all http requests for this route.
- host_
prefix str - This option allows forwarding traffic for different host headers to different workloads. This will only be used when the target GVC has dedicated load balancing enabled and the Domain is configured for wildcard support. Please contact us on Slack or at support@controlplane.com for additional details.
- host_
regex str - A regex to match the host header. This will only be used when the target GVC has dedicated load balancing enabled and the Domain is configure for wildcard support. Contact your account manager for details.
- port int
- For the linked workload, the port to route traffic to.
- prefix str
- The path will match any unmatched path prefixes for the subdomain.
- regex str
- Used to match URI paths. Uses the google re2 regex syntax.
- replace_
prefix str - A path prefix can be configured to be replaced when forwarding the request to the Workload.
- replica int
- The replica number of a stateful workload to route to. If not provided, traffic will be routed to all replicas.
- domain
Link String - The self link of the domain to add the route to.
- workload
Link String - The link of the workload to map the prefix to.
- domain
Port Number - The port the route corresponds to. Default: 443
- headers Property Map
- Modify the headers for all http requests for this route.
- host
Prefix String - This option allows forwarding traffic for different host headers to different workloads. This will only be used when the target GVC has dedicated load balancing enabled and the Domain is configured for wildcard support. Please contact us on Slack or at support@controlplane.com for additional details.
- host
Regex String - A regex to match the host header. This will only be used when the target GVC has dedicated load balancing enabled and the Domain is configure for wildcard support. Contact your account manager for details.
- port Number
- For the linked workload, the port to route traffic to.
- prefix String
- The path will match any unmatched path prefixes for the subdomain.
- regex String
- Used to match URI paths. Uses the google re2 regex syntax.
- replace
Prefix String - A path prefix can be configured to be replaced when forwarding the request to the Workload.
- replica Number
- The replica number of a stateful workload to route to. If not provided, traffic will be routed to all replicas.
Outputs
All input properties are implicitly available as output properties. Additionally, the DomainRoute 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 DomainRoute Resource
Get an existing DomainRoute 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?: DomainRouteState, opts?: CustomResourceOptions): DomainRoute
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
domain_link: Optional[str] = None,
domain_port: Optional[int] = None,
headers: Optional[DomainRouteHeadersArgs] = None,
host_prefix: Optional[str] = None,
host_regex: Optional[str] = None,
port: Optional[int] = None,
prefix: Optional[str] = None,
regex: Optional[str] = None,
replace_prefix: Optional[str] = None,
replica: Optional[int] = None,
workload_link: Optional[str] = None) -> DomainRoute
func GetDomainRoute(ctx *Context, name string, id IDInput, state *DomainRouteState, opts ...ResourceOption) (*DomainRoute, error)
public static DomainRoute Get(string name, Input<string> id, DomainRouteState? state, CustomResourceOptions? opts = null)
public static DomainRoute get(String name, Output<String> id, DomainRouteState state, CustomResourceOptions options)
resources: _: type: cpln:DomainRoute 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
Link string - The self link of the domain to add the route to.
- Domain
Port int - The port the route corresponds to. Default: 443
- Headers
Pulumiverse.
Cpln. Inputs. Domain Route Headers - Modify the headers for all http requests for this route.
- Host
Prefix string - This option allows forwarding traffic for different host headers to different workloads. This will only be used when the target GVC has dedicated load balancing enabled and the Domain is configured for wildcard support. Please contact us on Slack or at support@controlplane.com for additional details.
- Host
Regex string - A regex to match the host header. This will only be used when the target GVC has dedicated load balancing enabled and the Domain is configure for wildcard support. Contact your account manager for details.
- Port int
- For the linked workload, the port to route traffic to.
- Prefix string
- The path will match any unmatched path prefixes for the subdomain.
- Regex string
- Used to match URI paths. Uses the google re2 regex syntax.
- Replace
Prefix string - A path prefix can be configured to be replaced when forwarding the request to the Workload.
- Replica int
- The replica number of a stateful workload to route to. If not provided, traffic will be routed to all replicas.
- Workload
Link string - The link of the workload to map the prefix to.
- Domain
Link string - The self link of the domain to add the route to.
- Domain
Port int - The port the route corresponds to. Default: 443
- Headers
Domain
Route Headers Args - Modify the headers for all http requests for this route.
- Host
Prefix string - This option allows forwarding traffic for different host headers to different workloads. This will only be used when the target GVC has dedicated load balancing enabled and the Domain is configured for wildcard support. Please contact us on Slack or at support@controlplane.com for additional details.
- Host
Regex string - A regex to match the host header. This will only be used when the target GVC has dedicated load balancing enabled and the Domain is configure for wildcard support. Contact your account manager for details.
- Port int
- For the linked workload, the port to route traffic to.
- Prefix string
- The path will match any unmatched path prefixes for the subdomain.
- Regex string
- Used to match URI paths. Uses the google re2 regex syntax.
- Replace
Prefix string - A path prefix can be configured to be replaced when forwarding the request to the Workload.
- Replica int
- The replica number of a stateful workload to route to. If not provided, traffic will be routed to all replicas.
- Workload
Link string - The link of the workload to map the prefix to.
- domain
Link String - The self link of the domain to add the route to.
- domain
Port Integer - The port the route corresponds to. Default: 443
- headers
Domain
Route Headers - Modify the headers for all http requests for this route.
- host
Prefix String - This option allows forwarding traffic for different host headers to different workloads. This will only be used when the target GVC has dedicated load balancing enabled and the Domain is configured for wildcard support. Please contact us on Slack or at support@controlplane.com for additional details.
- host
Regex String - A regex to match the host header. This will only be used when the target GVC has dedicated load balancing enabled and the Domain is configure for wildcard support. Contact your account manager for details.
- port Integer
- For the linked workload, the port to route traffic to.
- prefix String
- The path will match any unmatched path prefixes for the subdomain.
- regex String
- Used to match URI paths. Uses the google re2 regex syntax.
- replace
Prefix String - A path prefix can be configured to be replaced when forwarding the request to the Workload.
- replica Integer
- The replica number of a stateful workload to route to. If not provided, traffic will be routed to all replicas.
- workload
Link String - The link of the workload to map the prefix to.
- domain
Link string - The self link of the domain to add the route to.
- domain
Port number - The port the route corresponds to. Default: 443
- headers
Domain
Route Headers - Modify the headers for all http requests for this route.
- host
Prefix string - This option allows forwarding traffic for different host headers to different workloads. This will only be used when the target GVC has dedicated load balancing enabled and the Domain is configured for wildcard support. Please contact us on Slack or at support@controlplane.com for additional details.
- host
Regex string - A regex to match the host header. This will only be used when the target GVC has dedicated load balancing enabled and the Domain is configure for wildcard support. Contact your account manager for details.
- port number
- For the linked workload, the port to route traffic to.
- prefix string
- The path will match any unmatched path prefixes for the subdomain.
- regex string
- Used to match URI paths. Uses the google re2 regex syntax.
- replace
Prefix string - A path prefix can be configured to be replaced when forwarding the request to the Workload.
- replica number
- The replica number of a stateful workload to route to. If not provided, traffic will be routed to all replicas.
- workload
Link string - The link of the workload to map the prefix to.
- domain_
link str - The self link of the domain to add the route to.
- domain_
port int - The port the route corresponds to. Default: 443
- headers
Domain
Route Headers Args - Modify the headers for all http requests for this route.
- host_
prefix str - This option allows forwarding traffic for different host headers to different workloads. This will only be used when the target GVC has dedicated load balancing enabled and the Domain is configured for wildcard support. Please contact us on Slack or at support@controlplane.com for additional details.
- host_
regex str - A regex to match the host header. This will only be used when the target GVC has dedicated load balancing enabled and the Domain is configure for wildcard support. Contact your account manager for details.
- port int
- For the linked workload, the port to route traffic to.
- prefix str
- The path will match any unmatched path prefixes for the subdomain.
- regex str
- Used to match URI paths. Uses the google re2 regex syntax.
- replace_
prefix str - A path prefix can be configured to be replaced when forwarding the request to the Workload.
- replica int
- The replica number of a stateful workload to route to. If not provided, traffic will be routed to all replicas.
- workload_
link str - The link of the workload to map the prefix to.
- domain
Link String - The self link of the domain to add the route to.
- domain
Port Number - The port the route corresponds to. Default: 443
- headers Property Map
- Modify the headers for all http requests for this route.
- host
Prefix String - This option allows forwarding traffic for different host headers to different workloads. This will only be used when the target GVC has dedicated load balancing enabled and the Domain is configured for wildcard support. Please contact us on Slack or at support@controlplane.com for additional details.
- host
Regex String - A regex to match the host header. This will only be used when the target GVC has dedicated load balancing enabled and the Domain is configure for wildcard support. Contact your account manager for details.
- port Number
- For the linked workload, the port to route traffic to.
- prefix String
- The path will match any unmatched path prefixes for the subdomain.
- regex String
- Used to match URI paths. Uses the google re2 regex syntax.
- replace
Prefix String - A path prefix can be configured to be replaced when forwarding the request to the Workload.
- replica Number
- The replica number of a stateful workload to route to. If not provided, traffic will be routed to all replicas.
- workload
Link String - The link of the workload to map the prefix to.
Supporting Types
DomainRouteHeaders, DomainRouteHeadersArgs
- Request
Pulumiverse.
Cpln. Inputs. Domain Route Headers Request - Manipulates HTTP headers.
- Request
Domain
Route Headers Request - Manipulates HTTP headers.
- request
Domain
Route Headers Request - Manipulates HTTP headers.
- request
Domain
Route Headers Request - Manipulates HTTP headers.
- request
Domain
Route Headers Request - Manipulates HTTP headers.
- request Property Map
- Manipulates HTTP headers.
DomainRouteHeadersRequest, DomainRouteHeadersRequestArgs
- Set Dictionary<string, string>
- Sets or overrides headers to all http requests for this route.
- Set map[string]string
- Sets or overrides headers to all http requests for this route.
- set Map<String,String>
- Sets or overrides headers to all http requests for this route.
- set {[key: string]: string}
- Sets or overrides headers to all http requests for this route.
- set Mapping[str, str]
- Sets or overrides headers to all http requests for this route.
- set Map<String>
- Sets or overrides headers to all http requests for this route.
Package Details
- Repository
- cpln pulumiverse/pulumi-cpln
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
cpln
Terraform Provider.