aws.route53recoverycontrol.RoutingControl
Explore with Pulumi AI
Provides an AWS Route 53 Recovery Control Config Routing Control.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.route53recoverycontrol.RoutingControl("example", {
name: "tinlicker",
clusterArn: "arn:aws:route53-recovery-control::881188118811:cluster/8d47920e-d789-437d-803a-2dcc4b204393",
});
import pulumi
import pulumi_aws as aws
example = aws.route53recoverycontrol.RoutingControl("example",
name="tinlicker",
cluster_arn="arn:aws:route53-recovery-control::881188118811:cluster/8d47920e-d789-437d-803a-2dcc4b204393")
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/route53recoverycontrol"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := route53recoverycontrol.NewRoutingControl(ctx, "example", &route53recoverycontrol.RoutingControlArgs{
Name: pulumi.String("tinlicker"),
ClusterArn: pulumi.String("arn:aws:route53-recovery-control::881188118811:cluster/8d47920e-d789-437d-803a-2dcc4b204393"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = new Aws.Route53RecoveryControl.RoutingControl("example", new()
{
Name = "tinlicker",
ClusterArn = "arn:aws:route53-recovery-control::881188118811:cluster/8d47920e-d789-437d-803a-2dcc4b204393",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.route53recoverycontrol.RoutingControl;
import com.pulumi.aws.route53recoverycontrol.RoutingControlArgs;
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 RoutingControl("example", RoutingControlArgs.builder()
.name("tinlicker")
.clusterArn("arn:aws:route53-recovery-control::881188118811:cluster/8d47920e-d789-437d-803a-2dcc4b204393")
.build());
}
}
resources:
example:
type: aws:route53recoverycontrol:RoutingControl
properties:
name: tinlicker
clusterArn: arn:aws:route53-recovery-control::881188118811:cluster/8d47920e-d789-437d-803a-2dcc4b204393
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.route53recoverycontrol.RoutingControl("example", {
name: "thomasoliver",
clusterArn: "arn:aws:route53-recovery-control::881188118811:cluster/8d47920e-d789-437d-803a-2dcc4b204393",
controlPanelArn: "arn:aws:route53-recovery-control::428113431245:controlpanel/abd5fbfc052d4844a082dbf400f61da8",
});
import pulumi
import pulumi_aws as aws
example = aws.route53recoverycontrol.RoutingControl("example",
name="thomasoliver",
cluster_arn="arn:aws:route53-recovery-control::881188118811:cluster/8d47920e-d789-437d-803a-2dcc4b204393",
control_panel_arn="arn:aws:route53-recovery-control::428113431245:controlpanel/abd5fbfc052d4844a082dbf400f61da8")
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/route53recoverycontrol"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := route53recoverycontrol.NewRoutingControl(ctx, "example", &route53recoverycontrol.RoutingControlArgs{
Name: pulumi.String("thomasoliver"),
ClusterArn: pulumi.String("arn:aws:route53-recovery-control::881188118811:cluster/8d47920e-d789-437d-803a-2dcc4b204393"),
ControlPanelArn: pulumi.String("arn:aws:route53-recovery-control::428113431245:controlpanel/abd5fbfc052d4844a082dbf400f61da8"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = new Aws.Route53RecoveryControl.RoutingControl("example", new()
{
Name = "thomasoliver",
ClusterArn = "arn:aws:route53-recovery-control::881188118811:cluster/8d47920e-d789-437d-803a-2dcc4b204393",
ControlPanelArn = "arn:aws:route53-recovery-control::428113431245:controlpanel/abd5fbfc052d4844a082dbf400f61da8",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.route53recoverycontrol.RoutingControl;
import com.pulumi.aws.route53recoverycontrol.RoutingControlArgs;
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 RoutingControl("example", RoutingControlArgs.builder()
.name("thomasoliver")
.clusterArn("arn:aws:route53-recovery-control::881188118811:cluster/8d47920e-d789-437d-803a-2dcc4b204393")
.controlPanelArn("arn:aws:route53-recovery-control::428113431245:controlpanel/abd5fbfc052d4844a082dbf400f61da8")
.build());
}
}
resources:
example:
type: aws:route53recoverycontrol:RoutingControl
properties:
name: thomasoliver
clusterArn: arn:aws:route53-recovery-control::881188118811:cluster/8d47920e-d789-437d-803a-2dcc4b204393
controlPanelArn: arn:aws:route53-recovery-control::428113431245:controlpanel/abd5fbfc052d4844a082dbf400f61da8
Create RoutingControl Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new RoutingControl(name: string, args: RoutingControlArgs, opts?: CustomResourceOptions);
@overload
def RoutingControl(resource_name: str,
args: RoutingControlArgs,
opts: Optional[ResourceOptions] = None)
@overload
def RoutingControl(resource_name: str,
opts: Optional[ResourceOptions] = None,
cluster_arn: Optional[str] = None,
control_panel_arn: Optional[str] = None,
name: Optional[str] = None)
func NewRoutingControl(ctx *Context, name string, args RoutingControlArgs, opts ...ResourceOption) (*RoutingControl, error)
public RoutingControl(string name, RoutingControlArgs args, CustomResourceOptions? opts = null)
public RoutingControl(String name, RoutingControlArgs args)
public RoutingControl(String name, RoutingControlArgs args, CustomResourceOptions options)
type: aws:route53recoverycontrol:RoutingControl
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 RoutingControlArgs
- 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 RoutingControlArgs
- 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 RoutingControlArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args RoutingControlArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args RoutingControlArgs
- 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 routingControlResource = new Aws.Route53RecoveryControl.RoutingControl("routingControlResource", new()
{
ClusterArn = "string",
ControlPanelArn = "string",
Name = "string",
});
example, err := route53recoverycontrol.NewRoutingControl(ctx, "routingControlResource", &route53recoverycontrol.RoutingControlArgs{
ClusterArn: pulumi.String("string"),
ControlPanelArn: pulumi.String("string"),
Name: pulumi.String("string"),
})
var routingControlResource = new RoutingControl("routingControlResource", RoutingControlArgs.builder()
.clusterArn("string")
.controlPanelArn("string")
.name("string")
.build());
routing_control_resource = aws.route53recoverycontrol.RoutingControl("routingControlResource",
cluster_arn="string",
control_panel_arn="string",
name="string")
const routingControlResource = new aws.route53recoverycontrol.RoutingControl("routingControlResource", {
clusterArn: "string",
controlPanelArn: "string",
name: "string",
});
type: aws:route53recoverycontrol:RoutingControl
properties:
clusterArn: string
controlPanelArn: string
name: string
RoutingControl 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 RoutingControl resource accepts the following input properties:
- Cluster
Arn string - ARN of the cluster in which this routing control will reside.
- Control
Panel stringArn - ARN of the control panel in which this routing control will reside.
- Name string
The name describing the routing control.
The following arguments are optional:
- Cluster
Arn string - ARN of the cluster in which this routing control will reside.
- Control
Panel stringArn - ARN of the control panel in which this routing control will reside.
- Name string
The name describing the routing control.
The following arguments are optional:
- cluster
Arn String - ARN of the cluster in which this routing control will reside.
- control
Panel StringArn - ARN of the control panel in which this routing control will reside.
- name String
The name describing the routing control.
The following arguments are optional:
- cluster
Arn string - ARN of the cluster in which this routing control will reside.
- control
Panel stringArn - ARN of the control panel in which this routing control will reside.
- name string
The name describing the routing control.
The following arguments are optional:
- cluster_
arn str - ARN of the cluster in which this routing control will reside.
- control_
panel_ strarn - ARN of the control panel in which this routing control will reside.
- name str
The name describing the routing control.
The following arguments are optional:
- cluster
Arn String - ARN of the cluster in which this routing control will reside.
- control
Panel StringArn - ARN of the control panel in which this routing control will reside.
- name String
The name describing the routing control.
The following arguments are optional:
Outputs
All input properties are implicitly available as output properties. Additionally, the RoutingControl resource produces the following output properties:
Look up Existing RoutingControl Resource
Get an existing RoutingControl 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?: RoutingControlState, opts?: CustomResourceOptions): RoutingControl
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
arn: Optional[str] = None,
cluster_arn: Optional[str] = None,
control_panel_arn: Optional[str] = None,
name: Optional[str] = None,
status: Optional[str] = None) -> RoutingControl
func GetRoutingControl(ctx *Context, name string, id IDInput, state *RoutingControlState, opts ...ResourceOption) (*RoutingControl, error)
public static RoutingControl Get(string name, Input<string> id, RoutingControlState? state, CustomResourceOptions? opts = null)
public static RoutingControl get(String name, Output<String> id, RoutingControlState 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.
- Arn string
- ARN of the routing control.
- Cluster
Arn string - ARN of the cluster in which this routing control will reside.
- Control
Panel stringArn - ARN of the control panel in which this routing control will reside.
- Name string
The name describing the routing control.
The following arguments are optional:
- Status string
- Status of routing control.
PENDING
when it is being created/updated,PENDING_DELETION
when it is being deleted, andDEPLOYED
otherwise.
- Arn string
- ARN of the routing control.
- Cluster
Arn string - ARN of the cluster in which this routing control will reside.
- Control
Panel stringArn - ARN of the control panel in which this routing control will reside.
- Name string
The name describing the routing control.
The following arguments are optional:
- Status string
- Status of routing control.
PENDING
when it is being created/updated,PENDING_DELETION
when it is being deleted, andDEPLOYED
otherwise.
- arn String
- ARN of the routing control.
- cluster
Arn String - ARN of the cluster in which this routing control will reside.
- control
Panel StringArn - ARN of the control panel in which this routing control will reside.
- name String
The name describing the routing control.
The following arguments are optional:
- status String
- Status of routing control.
PENDING
when it is being created/updated,PENDING_DELETION
when it is being deleted, andDEPLOYED
otherwise.
- arn string
- ARN of the routing control.
- cluster
Arn string - ARN of the cluster in which this routing control will reside.
- control
Panel stringArn - ARN of the control panel in which this routing control will reside.
- name string
The name describing the routing control.
The following arguments are optional:
- status string
- Status of routing control.
PENDING
when it is being created/updated,PENDING_DELETION
when it is being deleted, andDEPLOYED
otherwise.
- arn str
- ARN of the routing control.
- cluster_
arn str - ARN of the cluster in which this routing control will reside.
- control_
panel_ strarn - ARN of the control panel in which this routing control will reside.
- name str
The name describing the routing control.
The following arguments are optional:
- status str
- Status of routing control.
PENDING
when it is being created/updated,PENDING_DELETION
when it is being deleted, andDEPLOYED
otherwise.
- arn String
- ARN of the routing control.
- cluster
Arn String - ARN of the cluster in which this routing control will reside.
- control
Panel StringArn - ARN of the control panel in which this routing control will reside.
- name String
The name describing the routing control.
The following arguments are optional:
- status String
- Status of routing control.
PENDING
when it is being created/updated,PENDING_DELETION
when it is being deleted, andDEPLOYED
otherwise.
Import
Using pulumi import
, import Route53 Recovery Control Config Routing Control using the routing control arn. For example:
$ pulumi import aws:route53recoverycontrol/routingControl:RoutingControl mycontrol arn:aws:route53-recovery-control::313517334327:controlpanel/abd5fbfc052d4844a082dbf400f61da8/routingcontrol/d5d90e587870494b
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
aws
Terraform Provider.