CustomRoutingAccelerator

class CustomRoutingAccelerator : KotlinCustomResource

Creates a Global Accelerator custom routing accelerator.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.globalaccelerator.CustomRoutingAccelerator("example", {
name: "Example",
ipAddressType: "IPV4",
ipAddresses: ["1.2.3.4"],
enabled: true,
attributes: {
flowLogsEnabled: true,
flowLogsS3Bucket: "example-bucket",
flowLogsS3Prefix: "flow-logs/",
},
});
import pulumi
import pulumi_aws as aws
example = aws.globalaccelerator.CustomRoutingAccelerator("example",
name="Example",
ip_address_type="IPV4",
ip_addresses=["1.2.3.4"],
enabled=True,
attributes={
"flow_logs_enabled": True,
"flow_logs_s3_bucket": "example-bucket",
"flow_logs_s3_prefix": "flow-logs/",
})
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = new Aws.GlobalAccelerator.CustomRoutingAccelerator("example", new()
{
Name = "Example",
IpAddressType = "IPV4",
IpAddresses = new[]
{
"1.2.3.4",
},
Enabled = true,
Attributes = new Aws.GlobalAccelerator.Inputs.CustomRoutingAcceleratorAttributesArgs
{
FlowLogsEnabled = true,
FlowLogsS3Bucket = "example-bucket",
FlowLogsS3Prefix = "flow-logs/",
},
});
});
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/globalaccelerator"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := globalaccelerator.NewCustomRoutingAccelerator(ctx, "example", &globalaccelerator.CustomRoutingAcceleratorArgs{
Name: pulumi.String("Example"),
IpAddressType: pulumi.String("IPV4"),
IpAddresses: pulumi.StringArray{
pulumi.String("1.2.3.4"),
},
Enabled: pulumi.Bool(true),
Attributes: &globalaccelerator.CustomRoutingAcceleratorAttributesArgs{
FlowLogsEnabled: pulumi.Bool(true),
FlowLogsS3Bucket: pulumi.String("example-bucket"),
FlowLogsS3Prefix: pulumi.String("flow-logs/"),
},
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.globalaccelerator.CustomRoutingAccelerator;
import com.pulumi.aws.globalaccelerator.CustomRoutingAcceleratorArgs;
import com.pulumi.aws.globalaccelerator.inputs.CustomRoutingAcceleratorAttributesArgs;
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 CustomRoutingAccelerator("example", CustomRoutingAcceleratorArgs.builder()
.name("Example")
.ipAddressType("IPV4")
.ipAddresses("1.2.3.4")
.enabled(true)
.attributes(CustomRoutingAcceleratorAttributesArgs.builder()
.flowLogsEnabled(true)
.flowLogsS3Bucket("example-bucket")
.flowLogsS3Prefix("flow-logs/")
.build())
.build());
}
}
resources:
example:
type: aws:globalaccelerator:CustomRoutingAccelerator
properties:
name: Example
ipAddressType: IPV4
ipAddresses:
- 1.2.3.4
enabled: true
attributes:
flowLogsEnabled: true
flowLogsS3Bucket: example-bucket
flowLogsS3Prefix: flow-logs/

Import

Using pulumi import, import Global Accelerator custom routing accelerators using the arn. For example:

$ pulumi import aws:globalaccelerator/customRoutingAccelerator:CustomRoutingAccelerator example arn:aws:globalaccelerator::111111111111:accelerator/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx

Properties

Link copied to clipboard
val arn: Output<String>

The Amazon Resource Name (ARN) of the custom accelerator.

Link copied to clipboard

The attributes of the accelerator. Fields documented below.

Link copied to clipboard
val dnsName: Output<String>

The DNS name of the accelerator. For example, a5d53ff5ee6bca4ce.awsglobalaccelerator.com.

Link copied to clipboard
val enabled: Output<Boolean>?

Indicates whether the accelerator is enabled. Defaults to true. Valid values: true, false.

Link copied to clipboard
val hostedZoneId: Output<String>
Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val ipAddresses: Output<List<String>>?

The IP addresses to use for BYOIP accelerators. If not specified, the service assigns IP addresses. Valid values: 1 or 2 IPv4 addresses.

Link copied to clipboard
val ipAddressType: Output<String>?

The IP address type that an accelerator supports. For a custom routing accelerator, the value must be "IPV4".

Link copied to clipboard

IP address set associated with the accelerator.

Link copied to clipboard
val name: Output<String>

The name of a custom routing accelerator.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val tags: Output<Map<String, String>>?

A map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

Link copied to clipboard
val tagsAll: Output<Map<String, String>>

A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

Link copied to clipboard
val urn: Output<String>