We recommend new projects start with resources from the AWS provider.
aws-native.cognito.getUserPoolResourceServer
Explore with Pulumi AI
We recommend new projects start with resources from the AWS provider.
Resource Type definition for AWS::Cognito::UserPoolResourceServer
Using getUserPoolResourceServer
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getUserPoolResourceServer(args: GetUserPoolResourceServerArgs, opts?: InvokeOptions): Promise<GetUserPoolResourceServerResult>
function getUserPoolResourceServerOutput(args: GetUserPoolResourceServerOutputArgs, opts?: InvokeOptions): Output<GetUserPoolResourceServerResult>
def get_user_pool_resource_server(identifier: Optional[str] = None,
user_pool_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetUserPoolResourceServerResult
def get_user_pool_resource_server_output(identifier: Optional[pulumi.Input[str]] = None,
user_pool_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetUserPoolResourceServerResult]
func LookupUserPoolResourceServer(ctx *Context, args *LookupUserPoolResourceServerArgs, opts ...InvokeOption) (*LookupUserPoolResourceServerResult, error)
func LookupUserPoolResourceServerOutput(ctx *Context, args *LookupUserPoolResourceServerOutputArgs, opts ...InvokeOption) LookupUserPoolResourceServerResultOutput
> Note: This function is named LookupUserPoolResourceServer
in the Go SDK.
public static class GetUserPoolResourceServer
{
public static Task<GetUserPoolResourceServerResult> InvokeAsync(GetUserPoolResourceServerArgs args, InvokeOptions? opts = null)
public static Output<GetUserPoolResourceServerResult> Invoke(GetUserPoolResourceServerInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetUserPoolResourceServerResult> getUserPoolResourceServer(GetUserPoolResourceServerArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: aws-native:cognito:getUserPoolResourceServer
arguments:
# arguments dictionary
The following arguments are supported:
- Identifier string
A unique resource server identifier for the resource server. The identifier can be an API friendly name like
solar-system-data
. You can also set an API URL likehttps://solar-system-data-api.example.com
as your identifier.Amazon Cognito represents scopes in the access token in the format
$resource-server-identifier/$scope
. Longer scope-identifier strings increase the size of your access tokens.- User
Pool stringId - The user pool ID for the user pool.
- Identifier string
A unique resource server identifier for the resource server. The identifier can be an API friendly name like
solar-system-data
. You can also set an API URL likehttps://solar-system-data-api.example.com
as your identifier.Amazon Cognito represents scopes in the access token in the format
$resource-server-identifier/$scope
. Longer scope-identifier strings increase the size of your access tokens.- User
Pool stringId - The user pool ID for the user pool.
- identifier String
A unique resource server identifier for the resource server. The identifier can be an API friendly name like
solar-system-data
. You can also set an API URL likehttps://solar-system-data-api.example.com
as your identifier.Amazon Cognito represents scopes in the access token in the format
$resource-server-identifier/$scope
. Longer scope-identifier strings increase the size of your access tokens.- user
Pool StringId - The user pool ID for the user pool.
- identifier string
A unique resource server identifier for the resource server. The identifier can be an API friendly name like
solar-system-data
. You can also set an API URL likehttps://solar-system-data-api.example.com
as your identifier.Amazon Cognito represents scopes in the access token in the format
$resource-server-identifier/$scope
. Longer scope-identifier strings increase the size of your access tokens.- user
Pool stringId - The user pool ID for the user pool.
- identifier str
A unique resource server identifier for the resource server. The identifier can be an API friendly name like
solar-system-data
. You can also set an API URL likehttps://solar-system-data-api.example.com
as your identifier.Amazon Cognito represents scopes in the access token in the format
$resource-server-identifier/$scope
. Longer scope-identifier strings increase the size of your access tokens.- user_
pool_ strid - The user pool ID for the user pool.
- identifier String
A unique resource server identifier for the resource server. The identifier can be an API friendly name like
solar-system-data
. You can also set an API URL likehttps://solar-system-data-api.example.com
as your identifier.Amazon Cognito represents scopes in the access token in the format
$resource-server-identifier/$scope
. Longer scope-identifier strings increase the size of your access tokens.- user
Pool StringId - The user pool ID for the user pool.
getUserPoolResourceServer Result
The following output properties are available:
- Name string
- A friendly name for the resource server.
- Scopes
List<Pulumi.
Aws Native. Cognito. Outputs. User Pool Resource Server Resource Server Scope Type> - A list of scopes. Each scope is a map with keys
ScopeName
andScopeDescription
.
- Name string
- A friendly name for the resource server.
- Scopes
[]User
Pool Resource Server Resource Server Scope Type - A list of scopes. Each scope is a map with keys
ScopeName
andScopeDescription
.
- name String
- A friendly name for the resource server.
- scopes
List<User
Pool Resource Server Resource Server Scope Type> - A list of scopes. Each scope is a map with keys
ScopeName
andScopeDescription
.
- name string
- A friendly name for the resource server.
- scopes
User
Pool Resource Server Resource Server Scope Type[] - A list of scopes. Each scope is a map with keys
ScopeName
andScopeDescription
.
- name str
- A friendly name for the resource server.
- scopes
Sequence[User
Pool Resource Server Resource Server Scope Type] - A list of scopes. Each scope is a map with keys
ScopeName
andScopeDescription
.
- name String
- A friendly name for the resource server.
- scopes List<Property Map>
- A list of scopes. Each scope is a map with keys
ScopeName
andScopeDescription
.
Supporting Types
UserPoolResourceServerResourceServerScopeType
- Scope
Description string - A friendly description of a custom scope.
- Scope
Name string - The name of the scope. Amazon Cognito renders custom scopes in the format
resourceServerIdentifier/ScopeName
. For example, if this parameter isexampleScope
in the resource server with the identifierexampleResourceServer
, you request and receive the scopeexampleResourceServer/exampleScope
.
- Scope
Description string - A friendly description of a custom scope.
- Scope
Name string - The name of the scope. Amazon Cognito renders custom scopes in the format
resourceServerIdentifier/ScopeName
. For example, if this parameter isexampleScope
in the resource server with the identifierexampleResourceServer
, you request and receive the scopeexampleResourceServer/exampleScope
.
- scope
Description String - A friendly description of a custom scope.
- scope
Name String - The name of the scope. Amazon Cognito renders custom scopes in the format
resourceServerIdentifier/ScopeName
. For example, if this parameter isexampleScope
in the resource server with the identifierexampleResourceServer
, you request and receive the scopeexampleResourceServer/exampleScope
.
- scope
Description string - A friendly description of a custom scope.
- scope
Name string - The name of the scope. Amazon Cognito renders custom scopes in the format
resourceServerIdentifier/ScopeName
. For example, if this parameter isexampleScope
in the resource server with the identifierexampleResourceServer
, you request and receive the scopeexampleResourceServer/exampleScope
.
- scope_
description str - A friendly description of a custom scope.
- scope_
name str - The name of the scope. Amazon Cognito renders custom scopes in the format
resourceServerIdentifier/ScopeName
. For example, if this parameter isexampleScope
in the resource server with the identifierexampleResourceServer
, you request and receive the scopeexampleResourceServer/exampleScope
.
- scope
Description String - A friendly description of a custom scope.
- scope
Name String - The name of the scope. Amazon Cognito renders custom scopes in the format
resourceServerIdentifier/ScopeName
. For example, if this parameter isexampleScope
in the resource server with the identifierexampleResourceServer
, you request and receive the scopeexampleResourceServer/exampleScope
.
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
We recommend new projects start with resources from the AWS provider.