Accelerator
Creates a Global Accelerator accelerator.
Example Usage
using Pulumi;
using Aws = Pulumi.Aws;
class MyStack : Stack
{
public MyStack()
{
var example = new Aws.GlobalAccelerator.Accelerator("example", new Aws.GlobalAccelerator.AcceleratorArgs
{
Attributes = new Aws.GlobalAccelerator.Inputs.AcceleratorAttributesArgs
{
FlowLogsEnabled = true,
FlowLogsS3Bucket = "example-bucket",
FlowLogsS3Prefix = "flow-logs/",
},
Enabled = true,
IpAddressType = "IPV4",
});
}
}
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v2/go/aws/globalaccelerator"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := globalaccelerator.NewAccelerator(ctx, "example", &globalaccelerator.AcceleratorArgs{
Attributes: &globalaccelerator.AcceleratorAttributesArgs{
FlowLogsEnabled: pulumi.Bool(true),
FlowLogsS3Bucket: pulumi.String("example-bucket"),
FlowLogsS3Prefix: pulumi.String("flow-logs/"),
},
Enabled: pulumi.Bool(true),
IpAddressType: pulumi.String("IPV4"),
})
if err != nil {
return err
}
return nil
})
}import pulumi
import pulumi_aws as aws
example = aws.globalaccelerator.Accelerator("example",
attributes={
"flowLogsEnabled": True,
"flowLogsS3Bucket": "example-bucket",
"flowLogsS3Prefix": "flow-logs/",
},
enabled=True,
ip_address_type="IPV4")import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.globalaccelerator.Accelerator("example", {
attributes: {
flowLogsEnabled: true,
flowLogsS3Bucket: "example-bucket",
flowLogsS3Prefix: "flow-logs/",
},
enabled: true,
ipAddressType: "IPV4",
});Create a Accelerator Resource
new Accelerator(name: string, args?: AcceleratorArgs, opts?: CustomResourceOptions);def Accelerator(resource_name, opts=None, attributes=None, enabled=None, ip_address_type=None, name=None, tags=None, __props__=None);func NewAccelerator(ctx *Context, name string, args *AcceleratorArgs, opts ...ResourceOption) (*Accelerator, error)public Accelerator(string name, AcceleratorArgs? args = null, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args AcceleratorArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- opts ResourceOptions
- A bag of options that control this resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args AcceleratorArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AcceleratorArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
Accelerator Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The Accelerator resource accepts the following input properties:
- Attributes
Accelerator
Attributes Args The attributes of the accelerator. Fields documented below.
- Enabled bool
Indicates whether the accelerator is enabled. The value is true or false. The default value is true.
- Ip
Address stringType The value for the address type must be
IPV4.- Name string
The name of the accelerator.
- Dictionary<string, string>
A map of tags to assign to the resource.
- Attributes
Accelerator
Attributes The attributes of the accelerator. Fields documented below.
- Enabled bool
Indicates whether the accelerator is enabled. The value is true or false. The default value is true.
- Ip
Address stringType The value for the address type must be
IPV4.- Name string
The name of the accelerator.
- map[string]string
A map of tags to assign to the resource.
- attributes
Accelerator
Attributes The attributes of the accelerator. Fields documented below.
- enabled boolean
Indicates whether the accelerator is enabled. The value is true or false. The default value is true.
- ip
Address stringType The value for the address type must be
IPV4.- name string
The name of the accelerator.
- {[key: string]: string}
A map of tags to assign to the resource.
- attributes
Dict[Accelerator
Attributes] The attributes of the accelerator. Fields documented below.
- enabled bool
Indicates whether the accelerator is enabled. The value is true or false. The default value is true.
- ip_
address_ strtype The value for the address type must be
IPV4.- name str
The name of the accelerator.
- Dict[str, str]
A map of tags to assign to the resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the Accelerator resource produces the following output properties:
- Dns
Name string The DNS name of the accelerator. For example,
a5d53ff5ee6bca4ce.awsglobalaccelerator.com. *hosted_zone_id– 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.- Hosted
Zone stringId - Id string
- The provider-assigned unique ID for this managed resource.
- Ip
Sets List<AcceleratorIp Set> IP address set associated with the accelerator.
- Dns
Name string The DNS name of the accelerator. For example,
a5d53ff5ee6bca4ce.awsglobalaccelerator.com. *hosted_zone_id– 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.- Hosted
Zone stringId - Id string
- The provider-assigned unique ID for this managed resource.
- Ip
Sets []AcceleratorIp Set IP address set associated with the accelerator.
- dns
Name string The DNS name of the accelerator. For example,
a5d53ff5ee6bca4ce.awsglobalaccelerator.com. *hosted_zone_id– 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.- hosted
Zone stringId - id string
- The provider-assigned unique ID for this managed resource.
- ip
Sets AcceleratorIp Set[] IP address set associated with the accelerator.
- dns_
name str The DNS name of the accelerator. For example,
a5d53ff5ee6bca4ce.awsglobalaccelerator.com. *hosted_zone_id– 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.- hosted_
zone_ strid - id str
- The provider-assigned unique ID for this managed resource.
- ip_
sets List[AcceleratorIp Set] IP address set associated with the accelerator.
Look up an Existing Accelerator Resource
Get an existing Accelerator resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: AcceleratorState, opts?: CustomResourceOptions): Acceleratorstatic get(resource_name, id, opts=None, attributes=None, dns_name=None, enabled=None, hosted_zone_id=None, ip_address_type=None, ip_sets=None, name=None, tags=None, __props__=None);func GetAccelerator(ctx *Context, name string, id IDInput, state *AcceleratorState, opts ...ResourceOption) (*Accelerator, error)public static Accelerator Get(string name, Input<string> id, AcceleratorState? state, CustomResourceOptions? opts = null)- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
The following state arguments are supported:
- Attributes
Accelerator
Attributes Args The attributes of the accelerator. Fields documented below.
- Dns
Name string The DNS name of the accelerator. For example,
a5d53ff5ee6bca4ce.awsglobalaccelerator.com. *hosted_zone_id– 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.- Enabled bool
Indicates whether the accelerator is enabled. The value is true or false. The default value is true.
- Hosted
Zone stringId - Ip
Address stringType The value for the address type must be
IPV4.- Ip
Sets List<AcceleratorIp Set Args> IP address set associated with the accelerator.
- Name string
The name of the accelerator.
- Dictionary<string, string>
A map of tags to assign to the resource.
- Attributes
Accelerator
Attributes The attributes of the accelerator. Fields documented below.
- Dns
Name string The DNS name of the accelerator. For example,
a5d53ff5ee6bca4ce.awsglobalaccelerator.com. *hosted_zone_id– 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.- Enabled bool
Indicates whether the accelerator is enabled. The value is true or false. The default value is true.
- Hosted
Zone stringId - Ip
Address stringType The value for the address type must be
IPV4.- Ip
Sets []AcceleratorIp Set IP address set associated with the accelerator.
- Name string
The name of the accelerator.
- map[string]string
A map of tags to assign to the resource.
- attributes
Accelerator
Attributes The attributes of the accelerator. Fields documented below.
- dns
Name string The DNS name of the accelerator. For example,
a5d53ff5ee6bca4ce.awsglobalaccelerator.com. *hosted_zone_id– 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.- enabled boolean
Indicates whether the accelerator is enabled. The value is true or false. The default value is true.
- hosted
Zone stringId - ip
Address stringType The value for the address type must be
IPV4.- ip
Sets AcceleratorIp Set[] IP address set associated with the accelerator.
- name string
The name of the accelerator.
- {[key: string]: string}
A map of tags to assign to the resource.
- attributes
Dict[Accelerator
Attributes] The attributes of the accelerator. Fields documented below.
- dns_
name str The DNS name of the accelerator. For example,
a5d53ff5ee6bca4ce.awsglobalaccelerator.com. *hosted_zone_id– 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.- enabled bool
Indicates whether the accelerator is enabled. The value is true or false. The default value is true.
- hosted_
zone_ strid - ip_
address_ strtype The value for the address type must be
IPV4.- ip_
sets List[AcceleratorIp Set] IP address set associated with the accelerator.
- name str
The name of the accelerator.
- Dict[str, str]
A map of tags to assign to the resource.
Supporting Types
AcceleratorAttributes
- Flow
Logs boolEnabled Indicates whether flow logs are enabled.
- Flow
Logs stringS3Bucket The name of the Amazon S3 bucket for the flow logs.
- Flow
Logs stringS3Prefix The prefix for the location in the Amazon S3 bucket for the flow logs.
- Flow
Logs boolEnabled Indicates whether flow logs are enabled.
- Flow
Logs stringS3Bucket The name of the Amazon S3 bucket for the flow logs.
- Flow
Logs stringS3Prefix The prefix for the location in the Amazon S3 bucket for the flow logs.
- flow
Logs booleanEnabled Indicates whether flow logs are enabled.
- flow
Logs stringS3Bucket The name of the Amazon S3 bucket for the flow logs.
- flow
Logs stringS3Prefix The prefix for the location in the Amazon S3 bucket for the flow logs.
- flow
Logs boolEnabled Indicates whether flow logs are enabled.
- flow
Logs strS3Bucket The name of the Amazon S3 bucket for the flow logs.
- flow
Logs strS3Prefix The prefix for the location in the Amazon S3 bucket for the flow logs.
AcceleratorIpSet
See the output API doc for this type.
See the output API doc for this type.
See the output API doc for this type.
- Ip
Addresses List<string> A list of IP addresses in the IP address set.
- Ip
Family string The types of IP addresses included in this IP set.
- Ip
Addresses []string A list of IP addresses in the IP address set.
- Ip
Family string The types of IP addresses included in this IP set.
- ip
Addresses string[] A list of IP addresses in the IP address set.
- ip
Family string The types of IP addresses included in this IP set.
- ip
Family str The types of IP addresses included in this IP set.
- ip_
addresses List[str] A list of IP addresses in the IP address set.
Package Details
- Repository
- https://github.com/pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
awsTerraform Provider.