Skip to content

CloudFront  >  Operations  >  update_origin_access_control

update_origin_access_control

Operation

update_origin_access_control async

update_origin_access_control(request: UpdateOriginAccessControlInput | UpdateOriginAccessControlInputDict, /, *, plugins: list[Plugin] | None = None) -> UpdateOriginAccessControlOutput
update_origin_access_control(*, plugins: list[Plugin] | None = None, **kwargs: Unpack[UpdateOriginAccessControlInputDict]) -> UpdateOriginAccessControlOutput

Updates a CloudFront origin access control.

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
UpdateOriginAccessControlOutput

An instance of UpdateOriginAccessControlOutput.

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

UpdateOriginAccessControlInput dataclass

Bases: _SerdeShape

Dataclass for UpdateOriginAccessControlInput structure.

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

The unique identifier of the origin access control that you are updating.

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

The current version (ETag value) of the origin access control that you are updating.

origin_access_control_config class-attribute instance-attribute
origin_access_control_config: OriginAccessControlConfig | None = ...

An origin access control.

Dictionaries

UpdateOriginAccessControlInputDict

Bases: TypedDict

Dictionary form of UpdateOriginAccessControlInput.

Attributes
id instance-attribute

The unique identifier of the origin access control that you are updating.

if_match instance-attribute
if_match: str | None

The current version (ETag value) of the origin access control that you are updating.

origin_access_control_config instance-attribute

An origin access control.

Output

UpdateOriginAccessControlOutput dataclass

Bases: _SerdeShape

Dataclass for UpdateOriginAccessControlOutput structure.

Attributes

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

The new version of the origin access control after it has been updated.

origin_access_control class-attribute instance-attribute
origin_access_control: OriginAccessControl | None = ...

The origin access control after it has been updated.

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.