Skip to content

Commit

Permalink
Update ASF APIs (localstack#10072)
Browse files Browse the repository at this point in the history
  • Loading branch information
localstack-bot authored Jan 19, 2024
1 parent fd8b8ac commit 553dd7e
Show file tree
Hide file tree
Showing 6 changed files with 49 additions and 0 deletions.
6 changes: 6 additions & 0 deletions localstack/aws/api/ec2/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1990,6 +1990,8 @@ class InstanceType(str):
m7i_metal_48xl = "m7i.metal-48xl"
r7i_metal_24xl = "r7i.metal-24xl"
r7i_metal_48xl = "r7i.metal-48xl"
r7iz_metal_16xl = "r7iz.metal-16xl"
r7iz_metal_32xl = "r7iz.metal-32xl"


class InstanceTypeHypervisor(str):
Expand Down Expand Up @@ -11569,6 +11571,8 @@ class EbsInstanceBlockDevice(TypedDict, total=False):
DeleteOnTermination: Optional[Boolean]
Status: Optional[AttachmentStatus]
VolumeId: Optional[String]
AssociatedResource: Optional[String]
VolumeOwnerId: Optional[String]


class InstanceBlockDeviceMapping(TypedDict, total=False):
Expand Down Expand Up @@ -13852,6 +13856,8 @@ class VolumeAttachment(TypedDict, total=False):
State: Optional[VolumeAttachmentState]
VolumeId: Optional[String]
DeleteOnTermination: Optional[Boolean]
AssociatedResource: Optional[String]
InstanceOwningService: Optional[String]


VolumeAttachmentList = List[VolumeAttachment]
Expand Down
8 changes: 8 additions & 0 deletions localstack/aws/api/events/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
EventResource = str
EventSourceName = str
EventSourceNamePrefix = str
GraphQLOperation = str
HeaderKey = str
HeaderValue = str
HeaderValueSensitive = str
Expand Down Expand Up @@ -298,6 +299,12 @@ class ApiDestination(TypedDict, total=False):


ApiDestinationResponseList = List[ApiDestination]


class AppSyncParameters(TypedDict, total=False):
GraphQLOperation: Optional[GraphQLOperation]


Long = int


Expand Down Expand Up @@ -1181,6 +1188,7 @@ class Target(TypedDict, total=False):
SageMakerPipelineParameters: Optional[SageMakerPipelineParameters]
DeadLetterConfig: Optional[DeadLetterConfig]
RetryPolicy: Optional[RetryPolicy]
AppSyncParameters: Optional[AppSyncParameters]


TargetList = List[Target]
Expand Down
5 changes: 5 additions & 0 deletions localstack/aws/api/logs/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@
RequestId = str
ResourceIdentifier = str
RoleArn = str
SelectionCriteria = str
SequenceToken = str
Service = str
SessionId = str
Expand Down Expand Up @@ -165,6 +166,7 @@ class OutputFormat(str):

class PolicyType(str):
DATA_PROTECTION_POLICY = "DATA_PROTECTION_POLICY"
SUBSCRIPTION_FILTER_POLICY = "SUBSCRIPTION_FILTER_POLICY"


class QueryStatus(str):
Expand Down Expand Up @@ -371,6 +373,7 @@ class AccountPolicy(TypedDict, total=False):
lastUpdatedTime: Optional[Timestamp]
policyType: Optional[PolicyType]
scope: Optional[Scope]
selectionCriteria: Optional[SelectionCriteria]
accountId: Optional[AccountId]


Expand Down Expand Up @@ -1200,6 +1203,7 @@ class PutAccountPolicyRequest(ServiceRequest):
policyDocument: AccountPolicyDocument
policyType: PolicyType
scope: Optional[Scope]
selectionCriteria: Optional[SelectionCriteria]


class PutAccountPolicyResponse(TypedDict, total=False):
Expand Down Expand Up @@ -1839,6 +1843,7 @@ def put_account_policy(
policy_document: AccountPolicyDocument,
policy_type: PolicyType,
scope: Scope = None,
selection_criteria: SelectionCriteria = None,
) -> PutAccountPolicyResponse:
raise NotImplementedError

Expand Down
18 changes: 18 additions & 0 deletions localstack/aws/api/route53/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,11 @@

ARN = str
AWSAccountID = str
AWSRegion = str
AlarmName = str
AliasHealthEnabled = bool
AssociateVPCComment = str
Bias = int
ChangeId = str
Cidr = str
CidrLocationNameDefaultAllowed = str
Expand Down Expand Up @@ -39,6 +41,9 @@
IPAddressCidr = str
Inverted = bool
IsPrivateZone = bool
Latitude = str
LocalZoneGroup = str
Longitude = str
MaxResults = str
MeasureLatency = bool
Message = str
Expand Down Expand Up @@ -787,6 +792,18 @@ class AssociateVPCWithHostedZoneResponse(TypedDict, total=False):
ChangeInfo: ChangeInfo


class Coordinates(TypedDict, total=False):
Latitude: Latitude
Longitude: Longitude


class GeoProximityLocation(TypedDict, total=False):
AWSRegion: Optional[AWSRegion]
LocalZoneGroup: Optional[LocalZoneGroup]
Coordinates: Optional[Coordinates]
Bias: Optional[Bias]


class CidrRoutingConfig(TypedDict, total=False):
CollectionId: UUID
LocationName: CidrLocationNameDefaultAllowed
Expand Down Expand Up @@ -824,6 +841,7 @@ class ResourceRecordSet(TypedDict, total=False):
HealthCheckId: Optional[HealthCheckId]
TrafficPolicyInstanceId: Optional[TrafficPolicyInstanceId]
CidrRoutingConfig: Optional[CidrRoutingConfig]
GeoProximityLocation: Optional[GeoProximityLocation]


class Change(TypedDict, total=False):
Expand Down
8 changes: 8 additions & 0 deletions localstack/aws/api/route53resolver/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
OutpostResolverStatusMessage = str
Port = int
Priority = int
Qtype = str
ResolverQueryLogConfigAssociationErrorMessage = str
ResolverQueryLogConfigName = str
ResolverQueryLogConfigPolicy = str
Expand Down Expand Up @@ -522,6 +523,7 @@ class CreateFirewallRuleRequest(ServiceRequest):
BlockOverrideDnsType: Optional[BlockOverrideDnsType]
BlockOverrideTtl: Optional[BlockOverrideTtl]
Name: Name
Qtype: Optional[Qtype]


class FirewallRule(TypedDict, total=False):
Expand All @@ -537,6 +539,7 @@ class FirewallRule(TypedDict, total=False):
CreatorRequestId: Optional[CreatorRequestId]
CreationTime: Optional[Rfc3339TimeString]
ModificationTime: Optional[Rfc3339TimeString]
Qtype: Optional[Qtype]


class CreateFirewallRuleResponse(TypedDict, total=False):
Expand Down Expand Up @@ -680,6 +683,7 @@ class DeleteFirewallRuleGroupResponse(TypedDict, total=False):
class DeleteFirewallRuleRequest(ServiceRequest):
FirewallRuleGroupId: ResourceId
FirewallDomainListId: ResourceId
Qtype: Optional[Qtype]


class DeleteFirewallRuleResponse(TypedDict, total=False):
Expand Down Expand Up @@ -1271,6 +1275,7 @@ class UpdateFirewallRuleRequest(ServiceRequest):
BlockOverrideDnsType: Optional[BlockOverrideDnsType]
BlockOverrideTtl: Optional[BlockOverrideTtl]
Name: Optional[Name]
Qtype: Optional[Qtype]


class UpdateFirewallRuleResponse(TypedDict, total=False):
Expand Down Expand Up @@ -1402,6 +1407,7 @@ def create_firewall_rule(
block_override_domain: BlockOverrideDomain = None,
block_override_dns_type: BlockOverrideDnsType = None,
block_override_ttl: BlockOverrideTtl = None,
qtype: Qtype = None,
) -> CreateFirewallRuleResponse:
raise NotImplementedError

Expand Down Expand Up @@ -1482,6 +1488,7 @@ def delete_firewall_rule(
context: RequestContext,
firewall_rule_group_id: ResourceId,
firewall_domain_list_id: ResourceId,
qtype: Qtype = None,
) -> DeleteFirewallRuleResponse:
raise NotImplementedError

Expand Down Expand Up @@ -1866,6 +1873,7 @@ def update_firewall_rule(
block_override_dns_type: BlockOverrideDnsType = None,
block_override_ttl: BlockOverrideTtl = None,
name: Name = None,
qtype: Qtype = None,
) -> UpdateFirewallRuleResponse:
raise NotImplementedError

Expand Down
4 changes: 4 additions & 0 deletions localstack/services/route53resolver/provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@
OutpostInstanceType,
Priority,
ProtocolList,
Qtype,
ResolverEndpointDirection,
ResolverEndpointType,
ResolverQueryLogConfig,
Expand Down Expand Up @@ -301,6 +302,7 @@ def create_firewall_rule(
block_override_domain: BlockOverrideDomain = None,
block_override_dns_type: BlockOverrideDnsType = None,
block_override_ttl: BlockOverrideTtl = None,
qtype: Qtype = None,
) -> CreateFirewallRuleResponse:
"""Create a new firewall rule"""
store = self.get_store(context.account_id, context.region)
Expand Down Expand Up @@ -330,6 +332,7 @@ def delete_firewall_rule(
context: RequestContext,
firewall_rule_group_id: ResourceId,
firewall_domain_list_id: ResourceId,
qtype: Qtype = None,
) -> DeleteFirewallRuleResponse:
"""Delete a firewall rule"""
store = self.get_store(context.account_id, context.region)
Expand Down Expand Up @@ -375,6 +378,7 @@ def update_firewall_rule(
block_override_dns_type: BlockOverrideDnsType = None,
block_override_ttl: BlockOverrideTtl = None,
name: Name = None,
qtype: Qtype = None,
) -> UpdateFirewallRuleResponse:
"""Updates a firewall rule"""
store = self.get_store(context.account_id, context.region)
Expand Down

0 comments on commit 553dd7e

Please sign in to comment.