Show / Hide Table of Contents

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,
    });
}

}
Inheritance
System.Object
Resource
CustomResource
ResourceServer
Inherited Members
CustomResource.Id
Resource.GetResourceType()
Resource.GetResourceName()
Resource.Urn
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.Aws.Cognito
Assembly: Pulumi.Aws.dll
Syntax
public class ResourceServer : CustomResource

Constructors

View Source

ResourceServer(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 Source

Identifier

An identifier for the resource server.

Declaration
public Output<string> Identifier { get; }
Property Value
Type Description
Output<System.String>
View Source

Name

A name for the resource server.

Declaration
public Output<string> Name { get; }
Property Value
Type Description
Output<System.String>
View Source

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>>
View Source

Scopes

A list of Authorization Scope.

Declaration
public Output<ImmutableArray<ResourceServerScope>> Scopes { get; }
Property Value
Type Description
Output<System.Collections.Immutable.ImmutableArray<ResourceServerScope>>
View Source

UserPoolId

Declaration
public Output<string> UserPoolId { get; }
Property Value
Type Description
Output<System.String>

Methods

View Source

Get(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
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.