CmdID

CmdID / aws / aws cloudfront

aws cloudfront update-connection-group

Updates a connection group. AWS CLI reference

1 example 5 options Its page in the AWS CLI reference

Opens CmdID with your command. It is read in your browser and sent nowhere.

Examples

from aws-cli, each command read by CmdID

To update a CloudFront connection group

The following update-connection-group example disables a CloudFront connection group and disables IPv6.

aws cloudfront update-connection-group --id cg_2yHsDkcPKeUlVkk3aEgLKcjABC --no-ipv6-enabled --no-enabled --if-match E3UN6WX5RRO2ABCIdentify
--idThe ID of the connection group.
--no-ipv6-enabledEnable IPv6 for the connection group.
--no-enabledWhether the connection group is enabled.
--if-matchThe value of the ETag header that you received when retrieving the connection group that you're updating.
Its output
{
    "ETag": "E1F83G8C2ARABC",
    "ConnectionGroup": {
        "Id": "cg_2yHsDkcPKeUlVkk3aEgLKcjABC",
        "Name": "cg-example",
        "Arn": "arn:aws:cloudfront::123456789012:connection-group/cg_2yHsDkcPKeUlVkk3aEgLKcjABC",
        "CreatedTime": "2025-06-09T20:58:35.481000+00:00",
        "LastModifiedTime": "2025-06-11T16:25:54.280000+00:00",
        "Ipv6Enabled": false,
        "RoutingEndpoint": "du9xp1elo1abc.cloudfront.net",
        "Status": "InProgress",
        "Enabled": false,
        "IsDefault": false
    }
}

For more information, see Create custom connection group (optional) in the Amazon CloudFront Developer Guide.

Options

5 in the AWS CLI reference
--anycast-ip-list-idThe ID of the Anycast static IP list.
--enabledWhether the connection group is enabled.
--idThe ID of the connection group.
--if-matchThe value of the ETag header that you received when retrieving the connection group that you're updating.
--ipv6-enabledEnable IPv6 for the connection group.