Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

StripeResource.WithApiKey

Method
📦 CommunityToolkit.Aspire.Hosting.Stripe v13.6.1
type StripeResource interface {
// ... omitted for brevity
WithApiKey(apiKey ParameterResource) StripeResource
}

Signature

methodWithApiKeybuilder
Configures the Stripe CLI to use a specific API key from a parameter.
WithApiKey(apiKey ParameterResource) StripeResource
apiKeyParameterResourceThe parameter containing the Stripe API key to use.
StripeResource

A reference to the IResourceBuilder.

Returns a handle; failures surface later via Err().

Defined on

This method is defined on the following type: