Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion s2-specs
Submodule s2-specs updated 1 files
+7 −0 s2/v1/openapi.json
5 changes: 4 additions & 1 deletion src/s2_sdk/_mappers.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,10 @@ def _private_net_from_json(
if data is None:
return None
if (aws := data.get("aws")) is not None:
return AwsPrivateNet(service_name=aws["service_name"])
return AwsPrivateNet(
service_name=aws["service_name"],
private_dns_name=aws.get("private_dns_name"),
)
return _unknown_kind(data)


Expand Down
5 changes: 5 additions & 0 deletions src/s2_sdk/_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -389,6 +389,11 @@ class AwsPrivateNet:
service_name: str
"""Endpoint service name, for creating a VPC endpoint."""

private_dns_name: str | None = None
"""Private DNS name of the endpoint service. With private DNS enabled on the VPC
endpoint, it resolves to the endpoint, and can be used as the account endpoint so
that account requests also go over PrivateLink."""


@dataclass(slots=True)
class LocationInfo:
Expand Down
Loading