Skip to content
v2.277.0

AcceleratorAttributes Struct ​

Attributes required to import an existing accelerator to the stack.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_globalaccelerator as globalaccelerator } from 'aws-cdk-lib';
const acceleratorAttributes: globalaccelerator.AcceleratorAttributes = {
  acceleratorArn: 'acceleratorArn',
  dnsName: 'dnsName',

  // the properties below are optional
  dualStackDnsName: 'dualStackDnsName',
  ipv4Addresses: ['ipv4Addresses'],
  ipv6Addresses: ['ipv6Addresses'],
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_globalaccelerator as globalaccelerator

accelerator_attributes = globalaccelerator.AcceleratorAttributes(
    accelerator_arn="acceleratorArn",
    dns_name="dnsName",

    # the properties below are optional
    dual_stack_dns_name="dualStackDnsName",
    ipv4_addresses=["ipv4Addresses"],
    ipv6_addresses=["ipv6Addresses"]
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.globalaccelerator.*;

AcceleratorAttributes acceleratorAttributes = AcceleratorAttributes.builder()
        .acceleratorArn("acceleratorArn")
        .dnsName("dnsName")

        // the properties below are optional
        .dualStackDnsName("dualStackDnsName")
        .ipv4Addresses(List.of("ipv4Addresses"))
        .ipv6Addresses(List.of("ipv6Addresses"))
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.GlobalAccelerator;

var acceleratorAttributes = new AcceleratorAttributes {
    AcceleratorArn = "acceleratorArn",
    DnsName = "dnsName",

    // the properties below are optional
    DualStackDnsName = "dualStackDnsName",
    Ipv4Addresses = new [] { "ipv4Addresses" },
    Ipv6Addresses = new [] { "ipv6Addresses" }
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

acceleratorAttributes := &AcceleratorAttributes{
	AcceleratorArn: jsii.String("acceleratorArn"),
	DnsName: jsii.String("dnsName"),

	// the properties below are optional
	DualStackDnsName: jsii.String("dualStackDnsName"),
	Ipv4Addresses: []*string{
		jsii.String("ipv4Addresses"),
	},
	Ipv6Addresses: []*string{
		jsii.String("ipv6Addresses"),
	},
}

Properties ​

acceleratorArnstringaccelerator_arnstracceleratorArnStringAcceleratorArnstringAcceleratorArn*stringrequired#
The ARN of the accelerator.
dnsNamestringdns_namestrdnsNameStringDnsNamestringDnsName*stringrequired#
The DNS name of the accelerator.
dualStackDnsNameoptionalstringdual_stack_dns_nameoptionalstrdualStackDnsNameoptionalStringDualStackDnsNameoptionalstringDualStackDnsNameoptional*string= undefined#
The DNS name that points to the dual-stack accelerator's four static IP addresses: two IPv4 addresses and two IPv6 addresses.
ipv4Addressesoptionalstring[]ipv4_addressesoptionaltyping.List[str]ipv4AddressesoptionalList<String>Ipv4Addressesoptionalstring[]Ipv4Addressesoptional*[]*string= undefined#
The array of IPv4 addresses in the IP address set.
ipv6Addressesoptionalstring[]ipv6_addressesoptionaltyping.List[str]ipv6AddressesoptionalList<String>Ipv6Addressesoptionalstring[]Ipv6Addressesoptional*[]*string= undefined#
The array of IPv6 addresses in the IP address set.