CustomRoutingEndpointGroupArgs

data class CustomRoutingEndpointGroupArgs(val destinationConfigurations: Output<List<CustomRoutingEndpointGroupDestinationConfigurationArgs>>? = null, val endpointConfigurations: Output<List<CustomRoutingEndpointGroupEndpointConfigurationArgs>>? = null, val endpointGroupRegion: Output<String>? = null, val listenerArn: Output<String>? = null) : ConvertibleToJava<CustomRoutingEndpointGroupArgs>

Provides a Global Accelerator custom routing endpoint group.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.globalaccelerator.CustomRoutingEndpointGroup("example", {
listenerArn: exampleAwsGlobalacceleratorCustomRoutingListener.arn,
destinationConfigurations: [{
fromPort: 80,
toPort: 8080,
protocols: ["TCP"],
}],
endpointConfigurations: [{
endpointId: exampleAwsSubnet.id,
}],
});
import pulumi
import pulumi_aws as aws
example = aws.globalaccelerator.CustomRoutingEndpointGroup("example",
listener_arn=example_aws_globalaccelerator_custom_routing_listener["arn"],
destination_configurations=[{
"from_port": 80,
"to_port": 8080,
"protocols": ["TCP"],
}],
endpoint_configurations=[{
"endpoint_id": example_aws_subnet["id"],
}])
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = new Aws.GlobalAccelerator.CustomRoutingEndpointGroup("example", new()
{
ListenerArn = exampleAwsGlobalacceleratorCustomRoutingListener.Arn,
DestinationConfigurations = new[]
{
new Aws.GlobalAccelerator.Inputs.CustomRoutingEndpointGroupDestinationConfigurationArgs
{
FromPort = 80,
ToPort = 8080,
Protocols = new[]
{
"TCP",
},
},
},
EndpointConfigurations = new[]
{
new Aws.GlobalAccelerator.Inputs.CustomRoutingEndpointGroupEndpointConfigurationArgs
{
EndpointId = exampleAwsSubnet.Id,
},
},
});
});
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.NewCustomRoutingEndpointGroup(ctx, "example", &globalaccelerator.CustomRoutingEndpointGroupArgs{
ListenerArn: pulumi.Any(exampleAwsGlobalacceleratorCustomRoutingListener.Arn),
DestinationConfigurations: globalaccelerator.CustomRoutingEndpointGroupDestinationConfigurationArray{
&globalaccelerator.CustomRoutingEndpointGroupDestinationConfigurationArgs{
FromPort: pulumi.Int(80),
ToPort: pulumi.Int(8080),
Protocols: pulumi.StringArray{
pulumi.String("TCP"),
},
},
},
EndpointConfigurations: globalaccelerator.CustomRoutingEndpointGroupEndpointConfigurationArray{
&globalaccelerator.CustomRoutingEndpointGroupEndpointConfigurationArgs{
EndpointId: pulumi.Any(exampleAwsSubnet.Id),
},
},
})
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.CustomRoutingEndpointGroup;
import com.pulumi.aws.globalaccelerator.CustomRoutingEndpointGroupArgs;
import com.pulumi.aws.globalaccelerator.inputs.CustomRoutingEndpointGroupDestinationConfigurationArgs;
import com.pulumi.aws.globalaccelerator.inputs.CustomRoutingEndpointGroupEndpointConfigurationArgs;
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 CustomRoutingEndpointGroup("example", CustomRoutingEndpointGroupArgs.builder()
.listenerArn(exampleAwsGlobalacceleratorCustomRoutingListener.arn())
.destinationConfigurations(CustomRoutingEndpointGroupDestinationConfigurationArgs.builder()
.fromPort(80)
.toPort(8080)
.protocols("TCP")
.build())
.endpointConfigurations(CustomRoutingEndpointGroupEndpointConfigurationArgs.builder()
.endpointId(exampleAwsSubnet.id())
.build())
.build());
}
}
resources:
example:
type: aws:globalaccelerator:CustomRoutingEndpointGroup
properties:
listenerArn: ${exampleAwsGlobalacceleratorCustomRoutingListener.arn}
destinationConfigurations:
- fromPort: 80
toPort: 8080
protocols:
- TCP
endpointConfigurations:
- endpointId: ${exampleAwsSubnet.id}

Import

Using pulumi import, import Global Accelerator custom routing endpoint groups using the id. For example:

$ pulumi import aws:globalaccelerator/customRoutingEndpointGroup:CustomRoutingEndpointGroup example arn:aws:globalaccelerator::111111111111:accelerator/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/listener/xxxxxxx/endpoint-group/xxxxxxxx

Constructors

Link copied to clipboard
constructor(destinationConfigurations: Output<List<CustomRoutingEndpointGroupDestinationConfigurationArgs>>? = null, endpointConfigurations: Output<List<CustomRoutingEndpointGroupEndpointConfigurationArgs>>? = null, endpointGroupRegion: Output<String>? = null, listenerArn: Output<String>? = null)

Properties

Link copied to clipboard

The port ranges and protocols for all endpoints in a custom routing endpoint group to accept client traffic on. Fields documented below.

Link copied to clipboard

The list of endpoint objects. Fields documented below.

Link copied to clipboard
val endpointGroupRegion: Output<String>? = null

The name of the AWS Region where the custom routing endpoint group is located.

Link copied to clipboard
val listenerArn: Output<String>? = null

The Amazon Resource Name (ARN) of the custom routing listener.

Functions

Link copied to clipboard
open override fun toJava(): CustomRoutingEndpointGroupArgs