Skip to content

CloudFront  >  Operations  >  create_connection_group

create_connection_group

Operation

create_connection_group async

create_connection_group(request: CreateConnectionGroupInput | CreateConnectionGroupInputDict, /, *, plugins: list[Plugin] | None = None) -> CreateConnectionGroupOutput
create_connection_group(*, plugins: list[Plugin] | None = None, **kwargs: Unpack[CreateConnectionGroupInputDict]) -> CreateConnectionGroupOutput

Creates a connection group.

Parameters:

Name Type Description Default
plugins list[Plugin] | None

A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the operation execution and will not affect any other operation invocations.

None

Returns:

Type Description
CreateConnectionGroupOutput

An instance of CreateConnectionGroupOutput.

Input

Pass the input fields as keyword arguments, or pass a model or dictionary as the first positional argument. Pass plugins separately as a keyword argument.

Model

CreateConnectionGroupInput dataclass

Bases: _SerdeShape

Dataclass for CreateConnectionGroupInput structure.

Attributes
anycast_ip_list_id class-attribute instance-attribute
anycast_ip_list_id: str | None = ...

The ID of the Anycast static IP list.

enabled class-attribute instance-attribute
enabled: bool | None = ...

Enable the connection group.

ipv6_enabled class-attribute instance-attribute
ipv6_enabled: bool | None = ...

Enable IPv6 for the connection group. The default is true. For more information, see Enable IPv6 in the Amazon CloudFront Developer Guide.

name class-attribute instance-attribute
name: str | None = ...

The name of the connection group. Enter a friendly identifier that is unique within your Amazon Web Services account. This name can't be updated after you create the connection group.

tags class-attribute instance-attribute
tags: Tags | None = ...

A complex type that contains zero or more Tag elements.

Dictionaries

CreateConnectionGroupInputDict

Bases: TypedDict

Dictionary form of CreateConnectionGroupInput.

Attributes
anycast_ip_list_id instance-attribute
anycast_ip_list_id: str | None

The ID of the Anycast static IP list.

enabled instance-attribute
enabled: bool | None

Enable the connection group.

ipv6_enabled instance-attribute
ipv6_enabled: bool | None

Enable IPv6 for the connection group. The default is true. For more information, see Enable IPv6 in the Amazon CloudFront Developer Guide.

name instance-attribute
name: Required[str]

The name of the connection group. Enter a friendly identifier that is unique within your Amazon Web Services account. This name can't be updated after you create the connection group.

tags instance-attribute
tags: Tags | TagsDict | None

A complex type that contains zero or more Tag elements.

Output

CreateConnectionGroupOutput dataclass

Bases: _SerdeShape

Dataclass for CreateConnectionGroupOutput structure.

Attributes

connection_group class-attribute instance-attribute
connection_group: ConnectionGroup | None = ...

The connection group that you created.

e_tag class-attribute instance-attribute
e_tag: str | None = ...

The current version of the connection group.

response_metadata class-attribute instance-attribute
response_metadata: ResponseMetadata = ...

Metadata about the response that produced this output. Use this to recover the request identifiers a service's support team needs in order to investigate a call. Members of the metadata are individually optional.