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 dictionaryThe following arguments are supported:
- Id string
- Identifier for the connection group. For example:
EDFDVBD632BHDS5. Exactly one ofidorrouting_endpointmust be specified. - Routing
Endpoint string - Routing endpoint for the connection group. For example:
d111111abcdef8.cloudfront.net. Exactly one ofidorrouting_endpointmust be specified.
- Id string
- Identifier for the connection group. For example:
EDFDVBD632BHDS5. Exactly one ofidorrouting_endpointmust be specified. - Routing
Endpoint string - Routing endpoint for the connection group. For example:
d111111abcdef8.cloudfront.net. Exactly one ofidorrouting_endpointmust be specified.
- id String
- Identifier for the connection group. For example:
EDFDVBD632BHDS5. Exactly one ofidorrouting_endpointmust be specified. - routing
Endpoint String - Routing endpoint for the connection group. For example:
d111111abcdef8.cloudfront.net. Exactly one ofidorrouting_endpointmust be specified.
- id string
- Identifier for the connection group. For example:
EDFDVBD632BHDS5. Exactly one ofidorrouting_endpointmust be specified. - routing
Endpoint string - Routing endpoint for the connection group. For example:
d111111abcdef8.cloudfront.net. Exactly one ofidorrouting_endpointmust be specified.
- id str
- Identifier for the connection group. For example:
EDFDVBD632BHDS5. Exactly one ofidorrouting_endpointmust be specified. - routing_
endpoint str - Routing endpoint for the connection group. For example:
d111111abcdef8.cloudfront.net. Exactly one ofidorrouting_endpointmust be specified.
- id String
- Identifier for the connection group. For example:
EDFDVBD632BHDS5. Exactly one ofidorrouting_endpointmust be specified. - routing
Endpoint String - Routing endpoint for the connection group. For example:
d111111abcdef8.cloudfront.net. Exactly one ofidorrouting_endpointmust be specified.
getConnectionGroup Result
The following output properties are available:
- Anycast
Ip stringList Id - 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
- Is
Default bool - Whether the connection group is the default connection group for the distribution tenants.
- Last
Modified stringTime - Date and time the connection group was last modified.
- Name string
- name of the connection group.
- Routing
Endpoint string - Status string
- Current status of the connection group.
Deployedif the connection group's information is fully propagated throughout the Amazon CloudFront system. - Dictionary<string, string>
- Anycast
Ip stringList Id - 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
- Is
Default bool - Whether the connection group is the default connection group for the distribution tenants.
- Last
Modified stringTime - Date and time the connection group was last modified.
- Name string
- name of the connection group.
- Routing
Endpoint string - Status string
- Current status of the connection group.
Deployedif the connection group's information is fully propagated throughout the Amazon CloudFront system. - map[string]string
- anycast
Ip StringList Id - 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
- is
Default Boolean - Whether the connection group is the default connection group for the distribution tenants.
- last
Modified StringTime - Date and time the connection group was last modified.
- name String
- name of the connection group.
- routing
Endpoint String - status String
- Current status of the connection group.
Deployedif the connection group's information is fully propagated throughout the Amazon CloudFront system. - Map<String,String>
- anycast
Ip stringList Id - 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
- is
Default boolean - Whether the connection group is the default connection group for the distribution tenants.
- last
Modified stringTime - Date and time the connection group was last modified.
- name string
- name of the connection group.
- routing
Endpoint string - status string
- Current status of the connection group.
Deployedif the connection group's information is fully propagated throughout the Amazon CloudFront system. - {[key: string]: string}
- anycast_
ip_ strlist_ id - 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_ strtime - 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.
Deployedif the connection group's information is fully propagated throughout the Amazon CloudFront system. - Mapping[str, str]
- anycast
Ip StringList Id - 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
- is
Default Boolean - Whether the connection group is the default connection group for the distribution tenants.
- last
Modified StringTime - Date and time the connection group was last modified.
- name String
- name of the connection group.
- routing
Endpoint String - status String
- Current status of the connection group.
Deployedif the connection group's information is fully propagated throughout the Amazon CloudFront system. - Map<String>
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
awsTerraform Provider.
