次の方法で共有


CognitoResourceExtensions.WithReference<TDestination> Method

Definition

Adds a reference of an Amazon Cognito user pool to a project. The output parameters of the user pool are added to the project IConfiguration.

public static Aspire.Hosting.ApplicationModel.IResourceBuilder<TDestination> WithReference<TDestination> (this Aspire.Hosting.ApplicationModel.IResourceBuilder<TDestination> builder, Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.AWS.CDK.IConstructResource<Amazon.CDK.AWS.Cognito.UserPool>> userPool, string? configSection = default) where TDestination : Aspire.Hosting.ApplicationModel.IResourceWithEnvironment;
static member WithReference : Aspire.Hosting.ApplicationModel.IResourceBuilder<'Destination (requires 'Destination :> Aspire.Hosting.ApplicationModel.IResourceWithEnvironment)> * Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.AWS.CDK.IConstructResource<Amazon.CDK.AWS.Cognito.UserPool>> * string -> Aspire.Hosting.ApplicationModel.IResourceBuilder<'Destination (requires 'Destination :> Aspire.Hosting.ApplicationModel.IResourceWithEnvironment)> (requires 'Destination :> Aspire.Hosting.ApplicationModel.IResourceWithEnvironment)
<Extension()>
Public Function WithReference(Of TDestination As IResourceWithEnvironment) (builder As IResourceBuilder(Of TDestination), userPool As IResourceBuilder(Of IConstructResource(Of UserPool)), Optional configSection As String = Nothing) As IResourceBuilder(Of TDestination)

Type Parameters

TDestination

Parameters

builder
IResourceBuilder<TDestination>

The builder for the resource.

userPool
IResourceBuilder<IConstructResource<Amazon.CDK.AWS.Cognito.UserPool>>

The Amazon Cognito user pool resource.

configSection
String

The optional config section in IConfiguration to add the output parameters.

Returns

IResourceBuilder<TDestination>

Applies to