Control Plane v0.0.39 published on Saturday, Sep 28, 2024 by pulumiverse
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,
port: Optional[int] = None,
prefix: Optional[str] = None,
regex: Optional[str] = None,
replace_prefix: Optional[str] = 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",
Port = 0,
Prefix = "string",
Regex = "string",
ReplacePrefix = "string",
});
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"),
Port: pulumi.Int(0),
Prefix: pulumi.String("string"),
Regex: pulumi.String("string"),
ReplacePrefix: pulumi.String("string"),
})
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")
.port(0)
.prefix("string")
.regex("string")
.replacePrefix("string")
.build());
domain_route_resource = cpln.DomainRoute("domainRouteResource",
domain_link="string",
workload_link="string",
domain_port=0,
headers=cpln.DomainRouteHeadersArgs(
request=cpln.DomainRouteHeadersRequestArgs(
set={
"string": "string",
},
),
),
host_prefix="string",
port=0,
prefix="string",
regex="string",
replace_prefix="string")
const domainRouteResource = new cpln.DomainRoute("domainRouteResource", {
domainLink: "string",
workloadLink: "string",
domainPort: 0,
headers: {
request: {
set: {
string: "string",
},
},
},
hostPrefix: "string",
port: 0,
prefix: "string",
regex: "string",
replacePrefix: "string",
});
type: cpln:DomainRoute
properties:
domainLink: string
domainPort: 0
headers:
request:
set:
string: string
hostPrefix: string
port: 0
prefix: string
regex: string
replacePrefix: string
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
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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
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,
port: Optional[int] = None,
prefix: Optional[str] = None,
regex: Optional[str] = None,
replace_prefix: Optional[str] = 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)
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
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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- workload
Link String - The link of the workload to map the prefix to.
Supporting Types
DomainRouteHeaders, DomainRouteHeadersArgs
DomainRouteHeadersRequest, DomainRouteHeadersRequestArgs
- Set Dictionary<string, string>
- Set map[string]string
- set Map<String,String>
- set {[key: string]: string}
- set Mapping[str, str]
- set Map<String>
Package Details
- Repository
- cpln pulumiverse/pulumi-cpln
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
cpln
Terraform Provider.