Skip to content

Commit

Permalink
Update AWS::Cognito::UserPoolClient (#1818)
Browse files Browse the repository at this point in the history
Add properties
- AccessTokenValidity
- IdTokenValidity
- TokenValidityUnits
  • Loading branch information
tsuttsu305 authored Nov 9, 2020
1 parent 6a67582 commit b8d7395
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions troposphere/cognito.py
Original file line number Diff line number Diff line change
Expand Up @@ -265,10 +265,19 @@ class AnalyticsConfiguration(AWSProperty):
}


class TokenValidityUnits(AWSProperty):
props = {
'AccessToken': (basestring, False),
'IdToken': (basestring, False),
'RefreshToken': (basestring, False),
}


class UserPoolClient(AWSObject):
resource_type = "AWS::Cognito::UserPoolClient"

props = {
'AccessTokenValidity': (positive_integer, False),
'AllowedOAuthFlows': ([basestring], False),
'AllowedOAuthFlowsUserPoolClient': (boolean, False),
'AllowedOAuthScopes': ([basestring], False),
Expand All @@ -278,11 +287,13 @@ class UserPoolClient(AWSObject):
'DefaultRedirectURI': (basestring, False),
'ExplicitAuthFlows': ([basestring], False),
'GenerateSecret': (boolean, False),
'IdTokenValidity': (positive_integer, False),
'LogoutURLs': ([basestring], False),
'PreventUserExistenceErrors': (basestring, False),
'ReadAttributes': ([basestring], False),
'RefreshTokenValidity': (positive_integer, False),
'SupportedIdentityProviders': ([basestring], False),
'TokenValidityUnits': (TokenValidityUnits, False),
'UserPoolId': (basestring, True),
'WriteAttributes': ([basestring], False),
}
Expand Down

0 comments on commit b8d7395

Please # to comment.