Resource: awsGlobalacceleratorAccelerator
Creates a Global Accelerator accelerator.
Example Usage
/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as aws from "./.gen/providers/aws";
new aws.globalacceleratorAccelerator.GlobalacceleratorAccelerator(
this,
"example",
{
attributes: {
flowLogsEnabled: true,
flowLogsS3Bucket: "example-bucket",
flowLogsS3Prefix: "flow-logs/",
},
enabled: true,
ipAddressType: "IPV4",
ipAddresses: ["1.2.3.4"],
name: "Example",
}
);
Argument Reference
The following arguments are supported:
name
- (Required) The name of the accelerator.ipAddressType
- (Optional) The value for the address type. Defaults toipv4
. Valid values:ipv4
,DUAL_STACK
.ipAddresses
- (Optional) The IP addresses to use for BYOIP accelerators. If not specified, the service assigns IP addresses. Valid values: 1 or 2 IPv4 addresses.enabled
- (Optional) Indicates whether the accelerator is enabled. Defaults totrue
. Valid values:true
,false
.attributes
- (Optional) The attributes of the accelerator. Fields documented below.tags
- (Optional) A map of tags to assign to the resource. If configured with a providerdefaultTags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.
attributes supports the following attributes:
flowLogsEnabled
- (Optional) Indicates whether flow logs are enabled. Defaults tofalse
. Valid values:true
,false
.flowLogsS3Bucket
- (Optional) The name of the Amazon S3 bucket for the flow logs. Required ifflowLogsEnabled
istrue
.flowLogsS3Prefix
- (Optional) The prefix for the location in the Amazon S3 bucket for the flow logs. Required ifflowLogsEnabled
istrue
.
Attributes Reference
In addition to all arguments above, the following attributes are exported:
id
- The Amazon Resource Name (ARN) of the accelerator.dnsName
- The DNS name of the accelerator. For example,a5D53Ff5Ee6Bca4CeAwsglobalacceleratorCom
.hostedZoneId
-- The Global Accelerator Route 53 zone ID that can be used to route an Alias Resource Record Set to the Global Accelerator. This attribute is simply an alias for the zone IDz2Bj6Xq5Fk7U4H
.ipSets
- IP address set associated with the accelerator.tagsAll
- A map of tags assigned to the resource, including those inherited from the providerdefaultTags
configuration block.
ip_sets exports the following attributes:
ipAddresses
- A list of IP addresses in the IP address set.ipFamily
- The type of IP addresses included in this IP set.
Timeouts
create
- (Default30M
)update
- (Default30M
)
Import
Global Accelerator accelerators can be imported using the arn
, e.g.,