# AcceleratorAttributes

Attributes required to import an existing accelerator to the stack.

Used as argument in: [Accelerator.fromAcceleratorAttributes](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_globalaccelerator.Accelerator.html#fromacceleratorattributes)

- Source: [`aws-globalaccelerator/lib/accelerator.ts`](https://github.com/aws/aws-cdk/blob/v2.278.0/packages/aws-cdk-lib/aws-globalaccelerator/lib/accelerator.ts#L102)
- Type last changed: v2.117.0 · 27 Dec 2023

## Example

TypeScript:

```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:

```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:

```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();
```

C# / .NET:

```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" }
};
```

Golang:

```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

- `acceleratorArn`: string (required) — The ARN of the accelerator.

- `dnsName`: string (required) — The DNS name of the accelerator.

- `dualStackDnsName`: string = undefined — The DNS name that points to the dual-stack accelerator's four static IP addresses: two IPv4 addresses and two IPv6 addresses.

- `ipv4Addresses`: string[] = undefined — The array of IPv4 addresses in the IP address set.

- `ipv6Addresses`: string[] = undefined — The array of IPv6 addresses in the IP address set.
