From c3d3c3702f0ca90de5f46904cc0b43ee2e291da1 Mon Sep 17 00:00:00 2001 From: Benjamin Simon Date: Sat, 22 Feb 2025 03:04:30 +0100 Subject: [PATCH 1/2] add verifiedpermissions client type --- localstack-core/localstack/utils/aws/client_types.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/localstack-core/localstack/utils/aws/client_types.py b/localstack-core/localstack/utils/aws/client_types.py index 0c6e1ce4c7501..1fd9f3a84df5e 100644 --- a/localstack-core/localstack/utils/aws/client_types.py +++ b/localstack-core/localstack/utils/aws/client_types.py @@ -110,6 +110,7 @@ from mypy_boto3_timestream_query import TimestreamQueryClient from mypy_boto3_timestream_write import TimestreamWriteClient from mypy_boto3_transcribe import TranscribeServiceClient + from mypy_boto3_verifiedpermissions import VerifiedPermissionsClient from mypy_boto3_wafv2 import WAFV2Client from mypy_boto3_xray import XRayClient @@ -259,6 +260,9 @@ class TypedServiceClientFactory(abc.ABC): "TimestreamWriteClient", "MetadataRequestInjector[TimestreamWriteClient]" ] transcribe: Union["TranscribeServiceClient", "MetadataRequestInjector[TranscribeServiceClient]"] + verifiedpermissions: Union[ + "VerifiedPermissionsClient", "MetadataRequestInjector[VerifiedPermissionsClient]" + ] wafv2: Union["WAFV2Client", "MetadataRequestInjector[WAFV2Client]"] xray: Union["XRayClient", "MetadataRequestInjector[XRayClient]"] From 50e40dc254c416770c76616872ba47fde6d9f3d2 Mon Sep 17 00:00:00 2001 From: Benjamin Simon Date: Thu, 3 Apr 2025 12:24:55 +0200 Subject: [PATCH 2/2] add to requirements --- pyproject.toml | 2 +- requirements-typehint.txt | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 9eaa72e897dc2..77d541e4fef9e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -137,7 +137,7 @@ typehint = [ # typehint is an optional extension of the dev dependencies "localstack-core[dev]", # pinned / updated by ASF update action - "boto3-stubs[acm,acm-pca,amplify,apigateway,apigatewayv2,appconfig,appconfigdata,application-autoscaling,appsync,athena,autoscaling,backup,batch,ce,cloudcontrol,cloudformation,cloudfront,cloudtrail,cloudwatch,codebuild,codecommit,codeconnections,codedeploy,codepipeline,codestar-connections,cognito-identity,cognito-idp,dms,docdb,dynamodb,dynamodbstreams,ec2,ecr,ecs,efs,eks,elasticache,elasticbeanstalk,elbv2,emr,emr-serverless,es,events,firehose,fis,glacier,glue,iam,identitystore,iot,iot-data,iotanalytics,iotwireless,kafka,kinesis,kinesisanalytics,kinesisanalyticsv2,kms,lakeformation,lambda,logs,managedblockchain,mediaconvert,mediastore,mq,mwaa,neptune,opensearch,organizations,pi,pipes,pinpoint,qldb,qldb-session,rds,rds-data,redshift,redshift-data,resource-groups,resourcegroupstaggingapi,route53,route53resolver,s3,s3control,sagemaker,sagemaker-runtime,secretsmanager,serverlessrepo,servicediscovery,ses,sesv2,sns,sqs,ssm,sso-admin,stepfunctions,sts,timestream-query,timestream-write,transcribe,wafv2,xray]", + "boto3-stubs[acm,acm-pca,amplify,apigateway,apigatewayv2,appconfig,appconfigdata,application-autoscaling,appsync,athena,autoscaling,backup,batch,ce,cloudcontrol,cloudformation,cloudfront,cloudtrail,cloudwatch,codebuild,codecommit,codeconnections,codedeploy,codepipeline,codestar-connections,cognito-identity,cognito-idp,dms,docdb,dynamodb,dynamodbstreams,ec2,ecr,ecs,efs,eks,elasticache,elasticbeanstalk,elbv2,emr,emr-serverless,es,events,firehose,fis,glacier,glue,iam,identitystore,iot,iot-data,iotanalytics,iotwireless,kafka,kinesis,kinesisanalytics,kinesisanalyticsv2,kms,lakeformation,lambda,logs,managedblockchain,mediaconvert,mediastore,mq,mwaa,neptune,opensearch,organizations,pi,pipes,pinpoint,qldb,qldb-session,rds,rds-data,redshift,redshift-data,resource-groups,resourcegroupstaggingapi,route53,route53resolver,s3,s3control,sagemaker,sagemaker-runtime,secretsmanager,serverlessrepo,servicediscovery,ses,sesv2,sns,sqs,ssm,sso-admin,stepfunctions,sts,timestream-query,timestream-write,transcribe,verifiedpermissions,wafv2,xray]", ] [tool.setuptools] diff --git a/requirements-typehint.txt b/requirements-typehint.txt index 768a090aa10e0..ed997c151c141 100644 --- a/requirements-typehint.txt +++ b/requirements-typehint.txt @@ -460,6 +460,8 @@ mypy-boto3-timestream-write==1.37.0 # via boto3-stubs mypy-boto3-transcribe==1.37.5 # via boto3-stubs +mypy-boto3-verifiedpermissions==1.37.0 + # via boto3-stubs mypy-boto3-wafv2==1.37.21 # via boto3-stubs mypy-boto3-xray==1.37.0 @@ -777,6 +779,7 @@ typing-extensions==4.13.0 # mypy-boto3-timestream-query # mypy-boto3-timestream-write # mypy-boto3-transcribe + # mypy-boto3-verifiedpermissions # mypy-boto3-wafv2 # mypy-boto3-xray # pydantic