TrafficPolicyInstance class
Provides a Route53 traffic policy instance resource.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const test = new aws.route53.TrafficPolicyInstance("test", {
name: "test.example.com",
trafficPolicyId: "b3gb108f-ea6f-45a5-baab-9d112d8b4037",
trafficPolicyVersion: 1,
hostedZoneId: "Z033120931TAQO548OGJC",
ttl: 360,
});
import pulumi
import pulumi_aws as aws
test = aws.route53.TrafficPolicyInstance("test",
name="test.example.com",
traffic_policy_id="b3gb108f-ea6f-45a5-baab-9d112d8b4037",
traffic_policy_version=1,
hosted_zone_id="Z033120931TAQO548OGJC",
ttl=360)
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var test = new Aws.Route53.TrafficPolicyInstance("test", new()
{
Name = "test.example.com",
TrafficPolicyId = "b3gb108f-ea6f-45a5-baab-9d112d8b4037",
TrafficPolicyVersion = 1,
HostedZoneId = "Z033120931TAQO548OGJC",
Ttl = 360,
});
});
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/route53"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := route53.NewTrafficPolicyInstance(ctx, "test", &route53.TrafficPolicyInstanceArgs{
Name: pulumi.String("test.example.com"),
TrafficPolicyId: pulumi.String("b3gb108f-ea6f-45a5-baab-9d112d8b4037"),
TrafficPolicyVersion: pulumi.Int(1),
HostedZoneId: pulumi.String("Z033120931TAQO548OGJC"),
Ttl: pulumi.Int(360),
})
if err != nil {
return err
}
return nil
})
}
pulumi {
required_providers {
aws = {
source = "pulumi/aws"
}
}
}
resource "aws_route53_trafficpolicyinstance" "test" {
name = "test.example.com"
traffic_policy_id = "b3gb108f-ea6f-45a5-baab-9d112d8b4037"
traffic_policy_version = 1
hosted_zone_id = "Z033120931TAQO548OGJC"
ttl = 360
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.route53.TrafficPolicyInstance;
import com.pulumi.aws.route53.TrafficPolicyInstanceArgs;
import java.util.ArrayList;
import java.util.Arrays;
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 test = new TrafficPolicyInstance("test", TrafficPolicyInstanceArgs.builder()
.name("test.example.com")
.trafficPolicyId("b3gb108f-ea6f-45a5-baab-9d112d8b4037")
.trafficPolicyVersion(1)
.hostedZoneId("Z033120931TAQO548OGJC")
.ttl(360)
.build());
}
}
resources:
test:
type: aws:route53:TrafficPolicyInstance
properties:
name: test.example.com
trafficPolicyId: b3gb108f-ea6f-45a5-baab-9d112d8b4037
trafficPolicyVersion: 1
hostedZoneId: Z033120931TAQO548OGJC
ttl: 360
Import
Using pulumi import, import Route53 traffic policy instance using its id. For example:
$ pulumi import aws:route53/trafficPolicyInstance:TrafficPolicyInstance test df579d9a-6396-410e-ac22-e7ad60cf9e7e
Constructors
- TrafficPolicyInstance(String name, {TrafficPolicyInstanceArgs? args, CustomResourceOptions? options})
-
Creates a new TrafficPolicyInstance.
nameThe Pulumi resource name.argsArguments used to configure this TrafficPolicyInstance. The set of arguments for TrafficPolicyInstance.optionsResource options controlling this resource's behavior. - TrafficPolicyInstance.reference(String urn)
- Creates a typed reference to an existing TrafficPolicyInstance resource.
Properties
-
arn
↔ Output<
String> -
ARN of the traffic policy instance.
latefinal
-
childResources
→ Set<
Resource> -
finalinherited
-
completionSources
↔ Map<
String, IOutputCompletionSource> -
latefinalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
-
hostedZoneId
↔ Output<
String> -
ID of the hosted zone that you want Amazon Route 53 to create resource record sets in by using the configuration in a traffic policy.
latefinal
-
id
↔ Output<
String> -
getter/setter pairinherited
- isCustom → bool
-
Returns whether this resource is provider-managed.
no setterinherited
- isProtected → bool
-
Returns whether this resource is protected from deletion.
no setterinherited
- isRemote → bool
-
Whether this resource is registered as remote.
no setterinherited
- isResourceReference → bool
-
Whether this instance represents a resource value returned over RPC.
finalinherited
-
name
↔ Output<
String> -
Domain name for which Amazon Route 53 responds to DNS queries by using the resource record sets that Route 53 creates for this traffic policy instance.
latefinal
-
resourceTransforms
→ List<
ResourceTransform> -
Inherited/explicit async transforms.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
trafficPolicyId
↔ Output<
String> -
ID of the traffic policy that you want to use to create resource record sets in the specified hosted zone.
latefinal
-
trafficPolicyVersion
↔ Output<
int> -
Version of the traffic policy
latefinal
-
transformations
→ List<
ResourceTransformation> -
Inherited/explicit legacy transformations.
no setterinherited
-
ttl
↔ Output<
int> -
TTL that you want Amazon Route 53 to assign to all the resource record sets that it creates in the specified hosted zone.
latefinal
-
urn
↔ Output<
String> -
latefinalinherited
Methods
-
failId(
Object error) → void -
Completes this resource ID with an error when registration fails.
inherited
-
failOutputs(
Object error) → void -
Completes all output properties with
error.inherited -
failUrn(
Object error) → void -
Completes this resource URN with an error when registration fails.
inherited
-
getProvider(
String moduleMember) → ProviderResource? -
Returns provider for
moduleMember's package, if configured.inherited -
getResourceName(
) → String -
Returns this resource's logical name.
inherited
-
getResourceType(
) → String -
Returns this resource's Pulumi type token.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
registerOutput<
T> (String propertyName, {Object? decoder(Object?)?, bool isSecret = false}) → Output< T> -
Registers a dynamic output property for this resource.
inherited
-
resolveId(
String? value, {required bool isKnown}) → void -
Resolves the provider-assigned ID for this resource.
inherited
-
resolveOutputs(
Struct outputs) → void -
Resolves all output properties from a monitor response payload.
inherited
-
resolveUrn(
String value) → void -
Resolves this resource's URN once assigned by the engine.
inherited
-
serializeProperties(
Map< String, dynamic> properties) → Future<Struct> -
Serializes resource properties for RPC transmission.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
get(
String name, Input< String> id, {TrafficPolicyInstanceState? state, CustomResourceOptions? options}) → TrafficPolicyInstance -
Gets an existing TrafficPolicyInstance resource's state with the given
nameandid.