次の方法で共有


SDKResourceExtensions.WithReference<TDestination> Method

Definition

Add a reference to an AWS SDK configuration to the resource.

public static Aspire.Hosting.ApplicationModel.IResourceBuilder<TDestination> WithReference<TDestination> (this Aspire.Hosting.ApplicationModel.IResourceBuilder<TDestination> builder, Aspire.Hosting.AWS.IAWSSDKConfig awsSdkConfig) where TDestination : Aspire.Hosting.ApplicationModel.IResourceWithEnvironment;
static member WithReference : Aspire.Hosting.ApplicationModel.IResourceBuilder<'Destination (requires 'Destination :> Aspire.Hosting.ApplicationModel.IResourceWithEnvironment)> * Aspire.Hosting.AWS.IAWSSDKConfig -> 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), awsSdkConfig As IAWSSDKConfig) As IResourceBuilder(Of TDestination)

Type Parameters

TDestination

Parameters

awsSdkConfig
IAWSSDKConfig

The AWS SDK configuration

Returns

IResourceBuilder<TDestination>

Applies to