AWS Native is in preview. AWS Classic is fully supported.
aws-native.cognito.UserPoolClient
Explore with Pulumi AI
AWS Native is in preview. AWS Classic is fully supported.
Resource Type definition for AWS::Cognito::UserPoolClient
Create UserPoolClient Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new UserPoolClient(name: string, args: UserPoolClientArgs, opts?: CustomResourceOptions);
@overload
def UserPoolClient(resource_name: str,
args: UserPoolClientArgs,
opts: Optional[ResourceOptions] = None)
@overload
def UserPoolClient(resource_name: str,
opts: Optional[ResourceOptions] = None,
user_pool_id: Optional[str] = None,
enable_token_revocation: Optional[bool] = None,
auth_session_validity: Optional[int] = None,
explicit_auth_flows: Optional[Sequence[str]] = None,
id_token_validity: Optional[int] = None,
generate_secret: Optional[bool] = None,
callback_urls: Optional[Sequence[str]] = None,
client_name: Optional[str] = None,
default_redirect_uri: Optional[str] = None,
enable_propagate_additional_user_context_data: Optional[bool] = None,
access_token_validity: Optional[int] = None,
allowed_o_auth_scopes: Optional[Sequence[str]] = None,
allowed_o_auth_flows_user_pool_client: Optional[bool] = None,
analytics_configuration: Optional[UserPoolClientAnalyticsConfigurationArgs] = None,
logout_urls: Optional[Sequence[str]] = None,
prevent_user_existence_errors: Optional[str] = None,
read_attributes: Optional[Sequence[str]] = None,
refresh_token_validity: Optional[int] = None,
supported_identity_providers: Optional[Sequence[str]] = None,
token_validity_units: Optional[UserPoolClientTokenValidityUnitsArgs] = None,
allowed_o_auth_flows: Optional[Sequence[str]] = None,
write_attributes: Optional[Sequence[str]] = None)
func NewUserPoolClient(ctx *Context, name string, args UserPoolClientArgs, opts ...ResourceOption) (*UserPoolClient, error)
public UserPoolClient(string name, UserPoolClientArgs args, CustomResourceOptions? opts = null)
public UserPoolClient(String name, UserPoolClientArgs args)
public UserPoolClient(String name, UserPoolClientArgs args, CustomResourceOptions options)
type: aws-native:cognito:UserPoolClient
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args UserPoolClientArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args UserPoolClientArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args UserPoolClientArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args UserPoolClientArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args UserPoolClientArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Example
The following reference example uses placeholder values for all input properties.
Coming soon!
Coming soon!
Coming soon!
Coming soon!
const userPoolClientResource = new aws_native.cognito.UserPoolClient("userPoolClientResource", {
userPoolId: "string",
enableTokenRevocation: false,
authSessionValidity: 0,
explicitAuthFlows: ["string"],
idTokenValidity: 0,
generateSecret: false,
callbackUrls: ["string"],
clientName: "string",
defaultRedirectUri: "string",
enablePropagateAdditionalUserContextData: false,
accessTokenValidity: 0,
allowedOAuthScopes: ["string"],
allowedOAuthFlowsUserPoolClient: false,
analyticsConfiguration: {
applicationArn: "string",
applicationId: "string",
externalId: "string",
roleArn: "string",
userDataShared: false,
},
logoutUrls: ["string"],
preventUserExistenceErrors: "string",
readAttributes: ["string"],
refreshTokenValidity: 0,
supportedIdentityProviders: ["string"],
tokenValidityUnits: {
accessToken: "string",
idToken: "string",
refreshToken: "string",
},
allowedOAuthFlows: ["string"],
writeAttributes: ["string"],
});
Coming soon!
UserPoolClient Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The UserPoolClient resource accepts the following input properties:
- User
Pool stringId - Access
Token intValidity - Allowed
OAuth List<string>Flows - Allowed
OAuth boolFlows User Pool Client - Allowed
OAuth List<string>Scopes - Analytics
Configuration Pulumi.Aws Native. Cognito. Inputs. User Pool Client Analytics Configuration - Auth
Session intValidity - Callback
Urls List<string> - Client
Name string - Default
Redirect stringUri - Enable
Propagate boolAdditional User Context Data - Enable
Token boolRevocation - Explicit
Auth List<string>Flows - Generate
Secret bool - Id
Token intValidity - Logout
Urls List<string> - Prevent
User stringExistence Errors - Read
Attributes List<string> - Refresh
Token intValidity - Supported
Identity List<string>Providers - Token
Validity Pulumi.Units Aws Native. Cognito. Inputs. User Pool Client Token Validity Units - Write
Attributes List<string>
- User
Pool stringId - Access
Token intValidity - Allowed
OAuth []stringFlows - Allowed
OAuth boolFlows User Pool Client - Allowed
OAuth []stringScopes - Analytics
Configuration UserPool Client Analytics Configuration Args - Auth
Session intValidity - Callback
Urls []string - Client
Name string - Default
Redirect stringUri - Enable
Propagate boolAdditional User Context Data - Enable
Token boolRevocation - Explicit
Auth []stringFlows - Generate
Secret bool - Id
Token intValidity - Logout
Urls []string - Prevent
User stringExistence Errors - Read
Attributes []string - Refresh
Token intValidity - Supported
Identity []stringProviders - Token
Validity UserUnits Pool Client Token Validity Units Args - Write
Attributes []string
- user
Pool StringId - access
Token IntegerValidity - allowed
OAuth List<String>Flows - allowed
OAuth BooleanFlows User Pool Client - allowed
OAuth List<String>Scopes - analytics
Configuration UserPool Client Analytics Configuration - auth
Session IntegerValidity - callback
Urls List<String> - client
Name String - default
Redirect StringUri - enable
Propagate BooleanAdditional User Context Data - enable
Token BooleanRevocation - explicit
Auth List<String>Flows - generate
Secret Boolean - id
Token IntegerValidity - logout
Urls List<String> - prevent
User StringExistence Errors - read
Attributes List<String> - refresh
Token IntegerValidity - supported
Identity List<String>Providers - token
Validity UserUnits Pool Client Token Validity Units - write
Attributes List<String>
- user
Pool stringId - access
Token numberValidity - allowed
OAuth string[]Flows - allowed
OAuth booleanFlows User Pool Client - allowed
OAuth string[]Scopes - analytics
Configuration UserPool Client Analytics Configuration - auth
Session numberValidity - callback
Urls string[] - client
Name string - default
Redirect stringUri - enable
Propagate booleanAdditional User Context Data - enable
Token booleanRevocation - explicit
Auth string[]Flows - generate
Secret boolean - id
Token numberValidity - logout
Urls string[] - prevent
User stringExistence Errors - read
Attributes string[] - refresh
Token numberValidity - supported
Identity string[]Providers - token
Validity UserUnits Pool Client Token Validity Units - write
Attributes string[]
- user_
pool_ strid - access_
token_ intvalidity - allowed_
o_ Sequence[str]auth_ flows - allowed_
o_ boolauth_ flows_ user_ pool_ client - allowed_
o_ Sequence[str]auth_ scopes - analytics_
configuration UserPool Client Analytics Configuration Args - auth_
session_ intvalidity - callback_
urls Sequence[str] - client_
name str - default_
redirect_ struri - enable_
propagate_ booladditional_ user_ context_ data - enable_
token_ boolrevocation - explicit_
auth_ Sequence[str]flows - generate_
secret bool - id_
token_ intvalidity - logout_
urls Sequence[str] - prevent_
user_ strexistence_ errors - read_
attributes Sequence[str] - refresh_
token_ intvalidity - supported_
identity_ Sequence[str]providers - token_
validity_ Userunits Pool Client Token Validity Units Args - write_
attributes Sequence[str]
- user
Pool StringId - access
Token NumberValidity - allowed
OAuth List<String>Flows - allowed
OAuth BooleanFlows User Pool Client - allowed
OAuth List<String>Scopes - analytics
Configuration Property Map - auth
Session NumberValidity - callback
Urls List<String> - client
Name String - default
Redirect StringUri - enable
Propagate BooleanAdditional User Context Data - enable
Token BooleanRevocation - explicit
Auth List<String>Flows - generate
Secret Boolean - id
Token NumberValidity - logout
Urls List<String> - prevent
User StringExistence Errors - read
Attributes List<String> - refresh
Token NumberValidity - supported
Identity List<String>Providers - token
Validity Property MapUnits - write
Attributes List<String>
Outputs
All input properties are implicitly available as output properties. Additionally, the UserPoolClient resource produces the following output properties:
- Client
Id string - Client
Secret string - Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Client
Id string - Client
Secret string - Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- client
Id String - client
Secret String - id String
- The provider-assigned unique ID for this managed resource.
- name String
- client
Id string - client
Secret string - id string
- The provider-assigned unique ID for this managed resource.
- name string
- client_
id str - client_
secret str - id str
- The provider-assigned unique ID for this managed resource.
- name str
- client
Id String - client
Secret String - id String
- The provider-assigned unique ID for this managed resource.
- name String
Supporting Types
UserPoolClientAnalyticsConfiguration, UserPoolClientAnalyticsConfigurationArgs
- Application
Arn string - Application
Id string - External
Id string - Role
Arn string - bool
- Application
Arn string - Application
Id string - External
Id string - Role
Arn string - bool
- application
Arn String - application
Id String - external
Id String - role
Arn String - Boolean
- application
Arn string - application
Id string - external
Id string - role
Arn string - boolean
- application_
arn str - application_
id str - external_
id str - role_
arn str - bool
- application
Arn String - application
Id String - external
Id String - role
Arn String - Boolean
UserPoolClientTokenValidityUnits, UserPoolClientTokenValidityUnitsArgs
- Access
Token string - Id
Token string - Refresh
Token string
- Access
Token string - Id
Token string - Refresh
Token string
- access
Token String - id
Token String - refresh
Token String
- access
Token string - id
Token string - refresh
Token string
- access_
token str - id_
token str - refresh_
token str
- access
Token String - id
Token String - refresh
Token String
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
AWS Native is in preview. AWS Classic is fully supported.