Class Accelerator


  • public class Accelerator
    extends com.pulumi.resources.CustomResource
    Creates a Global Accelerator accelerator. ## Example Usage
     
     package generated_program;
     
     import com.pulumi.Context;
     import com.pulumi.Pulumi;
     import com.pulumi.core.Output;
     import com.pulumi.aws.globalaccelerator.Accelerator;
     import com.pulumi.aws.globalaccelerator.AcceleratorArgs;
     import com.pulumi.aws.globalaccelerator.inputs.AcceleratorAttributesArgs;
     import java.util.ArrayList;
     import java.util.Arrays;
     import java.util.Map;
     import java.io.File;
     import java.nio.file.Files;
     import java.nio.file.Paths;
     
     public class App {
         public static void main(String[] args) {
             Pulumi.run(App::stack);
         }
     
         public static void stack(Context ctx) {
             var example = new Accelerator("example", AcceleratorArgs.builder()
                 .attributes(AcceleratorAttributesArgs.builder()
                     .flowLogsEnabled(true)
                     .flowLogsS3Bucket("example-bucket")
                     .flowLogsS3Prefix("flow-logs/")
                     .build())
                 .name("Example")
                 .ipAddressType("IPV4")
                 .ipAddresses("1.2.3.4")
                 .enabled(true)
                 .build());
     
         }
     }
     
     
    ## Import ### Identity Schema #### Required - `arn` (String) ARN of the Global Accelerator accelerator. Using `pulumi import`, import Global Accelerator accelerators using the `arn`. For example: ```sh $ pulumi import aws:globalaccelerator/accelerator:Accelerator example arn:aws:globalaccelerator::111111111111:accelerator/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx ```
    • Nested Class Summary

      • Nested classes/interfaces inherited from class com.pulumi.resources.CustomResource

        com.pulumi.resources.CustomResource.CustomResourceInternal
      • Nested classes/interfaces inherited from class com.pulumi.resources.Resource

        com.pulumi.resources.Resource.LazyField<T extends java.lang.Object>, com.pulumi.resources.Resource.LazyFields, com.pulumi.resources.Resource.ResourceInternal
    • Field Summary

      • Fields inherited from class com.pulumi.resources.Resource

        childResources, remote
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      com.pulumi.core.Output<java.lang.String> arn()  
      com.pulumi.core.Output<java.util.Optional<AcceleratorAttributes>> attributes()  
      com.pulumi.core.Output<java.lang.String> dnsName()  
      com.pulumi.core.Output<java.lang.String> dualStackDnsName()  
      com.pulumi.core.Output<java.util.Optional<java.lang.Boolean>> enabled()  
      static Accelerator get​(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, AcceleratorState state, com.pulumi.resources.CustomResourceOptions options)
      Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
      com.pulumi.core.Output<java.lang.String> hostedZoneId()  
      com.pulumi.core.Output<java.util.Optional<java.util.List<java.lang.String>>> ipAddresses()  
      com.pulumi.core.Output<java.util.Optional<java.lang.String>> ipAddressType()  
      com.pulumi.core.Output<java.util.List<AcceleratorIpSet>> ipSets()  
      com.pulumi.core.Output<java.lang.String> name()  
      com.pulumi.core.Output<java.util.Optional<java.util.Map<java.lang.String,​java.lang.String>>> tags()  
      com.pulumi.core.Output<java.util.Map<java.lang.String,​java.lang.String>> tagsAll()  
      • Methods inherited from class com.pulumi.resources.CustomResource

        getId, id, idFuture
      • Methods inherited from class com.pulumi.resources.Resource

        getChildResources, getResourceName, getResourceType, getUrn, pulumiChildResources, pulumiResourceName, pulumiResourceType, urn
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Accelerator

        public Accelerator​(java.lang.String name)
        Parameters:
        name - The _unique_ name of the resulting resource.
      • Accelerator

        public Accelerator​(java.lang.String name,
                           @Nullable
                           AcceleratorArgs args)
        Parameters:
        name - The _unique_ name of the resulting resource.
        args - The arguments to use to populate this resource's properties.
      • Accelerator

        public Accelerator​(java.lang.String name,
                           @Nullable
                           AcceleratorArgs args,
                           @Nullable
                           com.pulumi.resources.CustomResourceOptions options)
        Parameters:
        name - The _unique_ name of the resulting resource.
        args - The arguments to use to populate this resource's properties.
        options - A bag of options that control this resource's behavior.
    • Method Detail

      • arn

        public com.pulumi.core.Output<java.lang.String> arn()
        Returns:
        ARN of the accelerator.
      • attributes

        public com.pulumi.core.Output<java.util.Optional<AcceleratorAttributes>> attributes()
        Returns:
        Configuration block with accelerator attributes. See `attributes` below.
      • dnsName

        public com.pulumi.core.Output<java.lang.String> dnsName()
        Returns:
        DNS name of the accelerator. For example, `a5d53ff5ee6bca4ce.awsglobalaccelerator.com`.
      • dualStackDnsName

        public com.pulumi.core.Output<java.lang.String> dualStackDnsName()
        Returns:
        DNS name that points to a dual-stack accelerator's four static IP addresses: two IPv4 addresses and two IPv6 addresses. For example, `a1234567890abcdef.dualstack.awsglobalaccelerator.com`.
      • enabled

        public com.pulumi.core.Output<java.util.Optional<java.lang.Boolean>> enabled()
        Returns:
        Whether the accelerator is enabled. Defaults to `true`. Valid values: `true`, `false`.
      • hostedZoneId

        public com.pulumi.core.Output<java.lang.String> hostedZoneId()
        Returns:
        Global Accelerator Route 53 zone ID used to route an [Alias Resource Record Set](https://docs.aws.amazon.com/Route53/latest/APIReference/API_AliasTarget.html) to the accelerator. This is an alias for the zone ID `Z2BJ6XQ5FK7U4H`.
      • ipAddressType

        public com.pulumi.core.Output<java.util.Optional<java.lang.String>> ipAddressType()
        Returns:
        Value for the address type. Defaults to `IPV4`. Valid values: `IPV4`, `DUAL_STACK`.
      • ipAddresses

        public com.pulumi.core.Output<java.util.Optional<java.util.List<java.lang.String>>> ipAddresses()
        Returns:
        IP addresses to use for BYOIP accelerators. If not specified, the service assigns IP addresses. Valid values: 1 or 2 IPv4 addresses.
      • ipSets

        public com.pulumi.core.Output<java.util.List<AcceleratorIpSet>> ipSets()
        Returns:
        IP address set associated with the accelerator. See `ipSets` below.
      • name

        public com.pulumi.core.Output<java.lang.String> name()
        Returns:
        Name of the accelerator.
      • tags

        public com.pulumi.core.Output<java.util.Optional<java.util.Map<java.lang.String,​java.lang.String>>> tags()
        Returns:
        Map of tags to assign to the resource. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
      • tagsAll

        public com.pulumi.core.Output<java.util.Map<java.lang.String,​java.lang.String>> tagsAll()
        Returns:
        Map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.
      • get

        public static Accelerator get​(java.lang.String name,
                                      com.pulumi.core.Output<java.lang.String> id,
                                      @Nullable
                                      AcceleratorState state,
                                      @Nullable
                                      com.pulumi.resources.CustomResourceOptions options)
        Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
        Parameters:
        name - The _unique_ name of the resulting resource.
        id - The _unique_ provider ID of the resource to lookup.
        state -
        options - Optional settings to control the behavior of the CustomResource.