Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

update ASF APIs, switch SQS to JSON again #10741

Merged
merged 3 commits into from
May 2, 2024
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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
44 changes: 44 additions & 0 deletions localstack/aws/api/ec2/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1102,6 +1102,7 @@ class ImageAttributeName(str):
uefiData = "uefiData"
lastLaunchedTime = "lastLaunchedTime"
imdsSupport = "imdsSupport"
deregistrationProtection = "deregistrationProtection"


class ImageBlockPublicAccessDisabledState(str):
Expand Down Expand Up @@ -2432,6 +2433,7 @@ class NetworkInterfaceAttribute(str):
groupSet = "groupSet"
sourceDestCheck = "sourceDestCheck"
attachment = "attachment"
associatePublicIpAddress = "associatePublicIpAddress"


class NetworkInterfaceCreationType(str):
Expand Down Expand Up @@ -10965,6 +10967,8 @@ class Image(TypedDict, total=False):
DeprecationTime: Optional[String]
ImdsSupport: Optional[ImdsSupportValues]
SourceInstanceId: Optional[String]
DeregistrationProtection: Optional[String]
LastLaunchedTime: Optional[String]


ImageList = List[Image]
Expand Down Expand Up @@ -12387,6 +12391,7 @@ class DescribeNetworkInterfaceAttributeResult(TypedDict, total=False):
Groups: Optional[GroupIdentifierList]
NetworkInterfaceId: Optional[String]
SourceDestCheck: Optional[AttributeBooleanValue]
AssociatePublicIpAddress: Optional[Boolean]


NetworkInterfacePermissionIdList = List[NetworkInterfacePermissionId]
Expand Down Expand Up @@ -14421,6 +14426,15 @@ class DisableImageDeprecationResult(TypedDict, total=False):
Return: Optional[Boolean]


class DisableImageDeregistrationProtectionRequest(ServiceRequest):
ImageId: ImageId
DryRun: Optional[Boolean]


class DisableImageDeregistrationProtectionResult(TypedDict, total=False):
Return: Optional[String]


class DisableImageRequest(ServiceRequest):
ImageId: ImageId
DryRun: Optional[Boolean]
Expand Down Expand Up @@ -14818,6 +14832,16 @@ class EnableImageDeprecationResult(TypedDict, total=False):
Return: Optional[Boolean]


class EnableImageDeregistrationProtectionRequest(ServiceRequest):
ImageId: ImageId
WithCooldown: Optional[Boolean]
DryRun: Optional[Boolean]


class EnableImageDeregistrationProtectionResult(TypedDict, total=False):
Return: Optional[String]


class EnableImageRequest(ServiceRequest):
ImageId: ImageId
DryRun: Optional[Boolean]
Expand Down Expand Up @@ -15921,6 +15945,7 @@ class ImageAttribute(TypedDict, total=False):
UefiData: Optional[AttributeValue]
LastLaunchedTime: Optional[AttributeValue]
ImdsSupport: Optional[AttributeValue]
DeregistrationProtection: Optional[AttributeValue]


class UserBucket(TypedDict, total=False):
Expand Down Expand Up @@ -16711,6 +16736,7 @@ class ModifyNetworkInterfaceAttributeRequest(ServiceRequest):
EnaSrdSpecification: Optional[EnaSrdSpecification]
EnablePrimaryIpv6: Optional[Boolean]
ConnectionTrackingSpecification: Optional[ConnectionTrackingSpecificationRequest]
AssociatePublicIpAddress: Optional[Boolean]


class ModifyPrivateDnsNameOptionsRequest(ServiceRequest):
Expand Down Expand Up @@ -22964,6 +22990,12 @@ def disable_image_deprecation(
) -> DisableImageDeprecationResult:
raise NotImplementedError

@handler("DisableImageDeregistrationProtection")
def disable_image_deregistration_protection(
self, context: RequestContext, image_id: ImageId, dry_run: Boolean = None, **kwargs
) -> DisableImageDeregistrationProtectionResult:
raise NotImplementedError

@handler("DisableIpamOrganizationAdminAccount")
def disable_ipam_organization_admin_account(
self,
Expand Down Expand Up @@ -23248,6 +23280,17 @@ def enable_image_deprecation(
) -> EnableImageDeprecationResult:
raise NotImplementedError

@handler("EnableImageDeregistrationProtection")
def enable_image_deregistration_protection(
self,
context: RequestContext,
image_id: ImageId,
with_cooldown: Boolean = None,
dry_run: Boolean = None,
**kwargs,
) -> EnableImageDeregistrationProtectionResult:
raise NotImplementedError

@handler("EnableIpamOrganizationAdminAccount")
def enable_ipam_organization_admin_account(
self,
Expand Down Expand Up @@ -24459,6 +24502,7 @@ def modify_network_interface_attribute(
ena_srd_specification: EnaSrdSpecification = None,
enable_primary_ipv6: Boolean = None,
connection_tracking_specification: ConnectionTrackingSpecificationRequest = None,
associate_public_ip_address: Boolean = None,
**kwargs,
) -> None:
raise NotImplementedError
Expand Down