# AcceleratorProps

Construct properties of the Accelerator.

Used as props by: [Accelerator](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_globalaccelerator.Accelerator.html)

- 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#L56)
- Type last changed: v2.117.0 · 27 Dec 2023

## Example

TypeScript:

```ts
const accelerator = new globalaccelerator.Accelerator(this, 'Accelerator', {
  ipAddresses: [
    '1.1.1.1',
    '2.2.2.2',
  ],
  ipAddressType: globalaccelerator.IpAddressType.IPV4,
});
```

Python:

```python
accelerator = globalaccelerator.Accelerator(self, "Accelerator",
    ip_addresses=["1.1.1.1", "2.2.2.2"
    ],
    ip_address_type=globalaccelerator.IpAddressType.IPV4
)
```

Java:

```java
Accelerator accelerator = Accelerator.Builder.create(this, "Accelerator")
        .ipAddresses(List.of("1.1.1.1", "2.2.2.2"))
        .ipAddressType(IpAddressType.IPV4)
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
var accelerator = new Accelerator(this, "Accelerator", new AcceleratorProps {
    IpAddresses = new [] { "1.1.1.1", "2.2.2.2" },
    IpAddressType = IpAddressType.IPV4
});
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
accelerator := globalaccelerator.NewAccelerator(this, jsii.String("Accelerator"), &AcceleratorProps{
	IpAddresses: []*string{
		jsii.String("1.1.1.1"),
		jsii.String("2.2.2.2"),
	},
	IpAddressType: globalaccelerator.IpAddressType_IPV4,
})
```

## Properties

- `acceleratorName`: string — The name of the accelerator.

  **Default:** resource ID

- `enabled`: boolean = true — Indicates whether the accelerator is enabled.

- `ipAddresses`: string[] — IP addresses associated with the accelerator.

  **Default:** undefined. IP addresses will be from Amazon's pool of IP addresses.

  Optionally, if you've added your own IP address pool to Global Accelerator (BYOIP), you can choose IP
  addresses from your own pool to use for the accelerator's static IP addresses when you create an accelerator.
  You can specify one or two addresses, separated by a comma. Do not include the /32 suffix.

  Only one IP address from each of your IP address ranges can be used for each accelerator. If you specify
  only one IP address from your IP address range, Global Accelerator assigns a second static IP address for
  the accelerator from the AWS IP address pool.

  Note that you can't update IP addresses for an existing accelerator. To change them, you must create a
  new accelerator with the new addresses.

- `ipAddressType`: [IpAddressType](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_globalaccelerator.IpAddressType.html) = "IPV4" — The IP address type that an accelerator supports.

  For a standard accelerator, the value can be IPV4 or DUAL_STACK.
