Class ResourceServer
Provides a Cognito Resource Server.
Example Usage
Create a basic resource server
using Pulumi;
using Aws = Pulumi.Aws;
class MyStack : Stack
{
public MyStack()
{
var pool = new Aws.Cognito.UserPool("pool", new Aws.Cognito.UserPoolArgs
{
});
var resource = new Aws.Cognito.ResourceServer("resource", new Aws.Cognito.ResourceServerArgs
{
Identifier = "https://example.com",
UserPoolId = pool.Id,
});
}
}
Create a resource server with sample-scope
using Pulumi;
using Aws = Pulumi.Aws;
class MyStack : Stack
{
public MyStack()
{
var pool = new Aws.Cognito.UserPool("pool", new Aws.Cognito.UserPoolArgs
{
});
var resource = new Aws.Cognito.ResourceServer("resource", new Aws.Cognito.ResourceServerArgs
{
Identifier = "https://example.com",
Scopes =
{
new Aws.Cognito.Inputs.ResourceServerScopeArgs
{
ScopeDescription = "a Sample Scope Description",
ScopeName = "sample-scope",
},
},
UserPoolId = pool.Id,
});
}
}
Inherited Members
Namespace: Pulumi.Aws.Cognito
Assembly: Pulumi.Aws.dll
Syntax
public class ResourceServer : CustomResource
Constructors
View SourceResourceServer(String, ResourceServerArgs, CustomResourceOptions)
Create a ResourceServer resource with the given unique name, arguments, and options.
Declaration
public ResourceServer(string name, ResourceServerArgs args, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| ResourceServerArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceIdentifier
An identifier for the resource server.
Declaration
public Output<string> Identifier { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Name
A name for the resource server.
Declaration
public Output<string> Name { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
ScopeIdentifiers
A list of all scopes configured for this resource server in the format identifier/scope_name.
Declaration
public Output<ImmutableArray<string>> ScopeIdentifiers { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableArray<System.String>> |
Scopes
A list of Authorization Scope.
Declaration
public Output<ImmutableArray<ResourceServerScope>> Scopes { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableArray<ResourceServerScope>> |
UserPoolId
Declaration
public Output<string> UserPoolId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Methods
View SourceGet(String, Input<String>, ResourceServerState, CustomResourceOptions)
Get an existing ResourceServer resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static ResourceServer Get(string name, Input<string> id, ResourceServerState state = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resulting resource. |
| Input<System.String> | id | The unique provider ID of the resource to lookup. |
| ResourceServerState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| ResourceServer |