Skip to content

Commit c4ebbd2

Browse files
committed
Set expiration time for test keys
1 parent 6916b19 commit c4ebbd2

File tree

1 file changed

+4
-1
lines changed
  • src/integ_test_resources/android/amplify/integration/cdk/scripts

1 file changed

+4
-1
lines changed

src/integ_test_resources/android/amplify/integration/cdk/scripts/api.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,10 @@ def create_user_pools_config(cls, auth_resource_name:str):
2323

2424
@classmethod
2525
def create_api_key_config(cls):
26-
return { 'mode': 'API_KEY' }
26+
return {
27+
'mode': 'API_KEY',
28+
'expirationTime': 365
29+
}
2730

2831
@classmethod
2932
def create_oidc_config(cls, client_id: str, issuer_url: str, provider_name: str, is_default: bool = False):

0 commit comments

Comments
 (0)