1. Packages
  2. AWS
  3. API Docs
  4. cloudfront
  5. getConnectionGroup
AWS v7.16.0 published on Friday, Jan 9, 2026 by Pulumi
aws logo
AWS v7.16.0 published on Friday, Jan 9, 2026 by Pulumi

    Use this data source to retrieve information about a CloudFront connection group.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    const test = aws.cloudfront.getConnectionGroup({
        id: "EDFDVBD632BHDS5",
    });
    
    import pulumi
    import pulumi_aws as aws
    
    test = aws.cloudfront.get_connection_group(id="EDFDVBD632BHDS5")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/cloudfront"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := cloudfront.LookupConnectionGroup(ctx, &cloudfront.LookupConnectionGroupArgs{
    			Id: pulumi.StringRef("EDFDVBD632BHDS5"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Aws = Pulumi.Aws;
    
    return await Deployment.RunAsync(() => 
    {
        var test = Aws.CloudFront.GetConnectionGroup.Invoke(new()
        {
            Id = "EDFDVBD632BHDS5",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.aws.cloudfront.CloudfrontFunctions;
    import com.pulumi.aws.cloudfront.inputs.GetConnectionGroupArgs;
    import java.util.List;
    import java.util.ArrayList;
    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) {
            final var test = CloudfrontFunctions.getConnectionGroup(GetConnectionGroupArgs.builder()
                .id("EDFDVBD632BHDS5")
                .build());
    
        }
    }
    
    variables:
      test:
        fn::invoke:
          function: aws:cloudfront:getConnectionGroup
          arguments:
            id: EDFDVBD632BHDS5
    

    Using getConnectionGroup

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getConnectionGroup(args: GetConnectionGroupArgs, opts?: InvokeOptions): Promise<GetConnectionGroupResult>
    function getConnectionGroupOutput(args: GetConnectionGroupOutputArgs, opts?: InvokeOptions): Output<GetConnectionGroupResult>
    def get_connection_group(id: Optional[str] = None,
                             routing_endpoint: Optional[str] = None,
                             opts: Optional[InvokeOptions] = None) -> GetConnectionGroupResult
    def get_connection_group_output(id: Optional[pulumi.Input[str]] = None,
                             routing_endpoint: Optional[pulumi.Input[str]] = None,
                             opts: Optional[InvokeOptions] = None) -> Output[GetConnectionGroupResult]
    func LookupConnectionGroup(ctx *Context, args *LookupConnectionGroupArgs, opts ...InvokeOption) (*LookupConnectionGroupResult, error)
    func LookupConnectionGroupOutput(ctx *Context, args *LookupConnectionGroupOutputArgs, opts ...InvokeOption) LookupConnectionGroupResultOutput

    > Note: This function is named LookupConnectionGroup in the Go SDK.

    public static class GetConnectionGroup 
    {
        public static Task<GetConnectionGroupResult> InvokeAsync(GetConnectionGroupArgs args, InvokeOptions? opts = null)
        public static Output<GetConnectionGroupResult> Invoke(GetConnectionGroupInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetConnectionGroupResult> getConnectionGroup(GetConnectionGroupArgs args, InvokeOptions options)
    public static Output<GetConnectionGroupResult> getConnectionGroup(GetConnectionGroupArgs args, InvokeOptions options)
    
    fn::invoke:
      function: aws:cloudfront/getConnectionGroup:getConnectionGroup
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Id string
    Identifier for the connection group. For example: EDFDVBD632BHDS5. Exactly one of id or routing_endpoint must be specified.
    RoutingEndpoint string
    Routing endpoint for the connection group. For example: d111111abcdef8.cloudfront.net. Exactly one of id or routing_endpoint must be specified.
    Id string
    Identifier for the connection group. For example: EDFDVBD632BHDS5. Exactly one of id or routing_endpoint must be specified.
    RoutingEndpoint string
    Routing endpoint for the connection group. For example: d111111abcdef8.cloudfront.net. Exactly one of id or routing_endpoint must be specified.
    id String
    Identifier for the connection group. For example: EDFDVBD632BHDS5. Exactly one of id or routing_endpoint must be specified.
    routingEndpoint String
    Routing endpoint for the connection group. For example: d111111abcdef8.cloudfront.net. Exactly one of id or routing_endpoint must be specified.
    id string
    Identifier for the connection group. For example: EDFDVBD632BHDS5. Exactly one of id or routing_endpoint must be specified.
    routingEndpoint string
    Routing endpoint for the connection group. For example: d111111abcdef8.cloudfront.net. Exactly one of id or routing_endpoint must be specified.
    id str
    Identifier for the connection group. For example: EDFDVBD632BHDS5. Exactly one of id or routing_endpoint must be specified.
    routing_endpoint str
    Routing endpoint for the connection group. For example: d111111abcdef8.cloudfront.net. Exactly one of id or routing_endpoint must be specified.
    id String
    Identifier for the connection group. For example: EDFDVBD632BHDS5. Exactly one of id or routing_endpoint must be specified.
    routingEndpoint String
    Routing endpoint for the connection group. For example: d111111abcdef8.cloudfront.net. Exactly one of id or routing_endpoint must be specified.

    getConnectionGroup Result

    The following output properties are available:

    AnycastIpListId string
    ID of the anycast IP list associated with this connection group, if any.
    Arn string
    ARN (Amazon Resource Name) for the connection group.
    Enabled bool
    Whether the connection group is enabled.
    Etag string
    Current version of the connection group's information. For example: E2QWRUHAPOMQZL.
    Id string
    Ipv6Enabled bool
    IsDefault bool
    Whether the connection group is the default connection group for the distribution tenants.
    LastModifiedTime string
    Date and time the connection group was last modified.
    Name string
    name of the connection group.
    RoutingEndpoint string
    Status string
    Current status of the connection group. Deployed if the connection group's information is fully propagated throughout the Amazon CloudFront system.
    Tags Dictionary<string, string>
    AnycastIpListId string
    ID of the anycast IP list associated with this connection group, if any.
    Arn string
    ARN (Amazon Resource Name) for the connection group.
    Enabled bool
    Whether the connection group is enabled.
    Etag string
    Current version of the connection group's information. For example: E2QWRUHAPOMQZL.
    Id string
    Ipv6Enabled bool
    IsDefault bool
    Whether the connection group is the default connection group for the distribution tenants.
    LastModifiedTime string
    Date and time the connection group was last modified.
    Name string
    name of the connection group.
    RoutingEndpoint string
    Status string
    Current status of the connection group. Deployed if the connection group's information is fully propagated throughout the Amazon CloudFront system.
    Tags map[string]string
    anycastIpListId String
    ID of the anycast IP list associated with this connection group, if any.
    arn String
    ARN (Amazon Resource Name) for the connection group.
    enabled Boolean
    Whether the connection group is enabled.
    etag String
    Current version of the connection group's information. For example: E2QWRUHAPOMQZL.
    id String
    ipv6Enabled Boolean
    isDefault Boolean
    Whether the connection group is the default connection group for the distribution tenants.
    lastModifiedTime String
    Date and time the connection group was last modified.
    name String
    name of the connection group.
    routingEndpoint String
    status String
    Current status of the connection group. Deployed if the connection group's information is fully propagated throughout the Amazon CloudFront system.
    tags Map<String,String>
    anycastIpListId string
    ID of the anycast IP list associated with this connection group, if any.
    arn string
    ARN (Amazon Resource Name) for the connection group.
    enabled boolean
    Whether the connection group is enabled.
    etag string
    Current version of the connection group's information. For example: E2QWRUHAPOMQZL.
    id string
    ipv6Enabled boolean
    isDefault boolean
    Whether the connection group is the default connection group for the distribution tenants.
    lastModifiedTime string
    Date and time the connection group was last modified.
    name string
    name of the connection group.
    routingEndpoint string
    status string
    Current status of the connection group. Deployed if the connection group's information is fully propagated throughout the Amazon CloudFront system.
    tags {[key: string]: string}
    anycast_ip_list_id str
    ID of the anycast IP list associated with this connection group, if any.
    arn str
    ARN (Amazon Resource Name) for the connection group.
    enabled bool
    Whether the connection group is enabled.
    etag str
    Current version of the connection group's information. For example: E2QWRUHAPOMQZL.
    id str
    ipv6_enabled bool
    is_default bool
    Whether the connection group is the default connection group for the distribution tenants.
    last_modified_time str
    Date and time the connection group was last modified.
    name str
    name of the connection group.
    routing_endpoint str
    status str
    Current status of the connection group. Deployed if the connection group's information is fully propagated throughout the Amazon CloudFront system.
    tags Mapping[str, str]
    anycastIpListId String
    ID of the anycast IP list associated with this connection group, if any.
    arn String
    ARN (Amazon Resource Name) for the connection group.
    enabled Boolean
    Whether the connection group is enabled.
    etag String
    Current version of the connection group's information. For example: E2QWRUHAPOMQZL.
    id String
    ipv6Enabled Boolean
    isDefault Boolean
    Whether the connection group is the default connection group for the distribution tenants.
    lastModifiedTime String
    Date and time the connection group was last modified.
    name String
    name of the connection group.
    routingEndpoint String
    status String
    Current status of the connection group. Deployed if the connection group's information is fully propagated throughout the Amazon CloudFront system.
    tags Map<String>

    Package Details

    Repository
    AWS Classic pulumi/pulumi-aws
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the aws Terraform Provider.
    aws logo
    AWS v7.16.0 published on Friday, Jan 9, 2026 by Pulumi
      Meet Neo: Your AI Platform Teammate