IResourceWithEnvironment
Interface
interface IResourceWithEnvironment { withCertificateTrustScope(scope: CertificateTrustScope): IResourceWithEnvironment; withDeveloperCertificateTrust(trust: boolean): IResourceWithEnvironment; withEnvironment( name: string, value: IExpressionValue): IResourceWithEnvironment; withEnvironmentCallback(callback: (arg: EnvironmentCallbackContext) => Promise<void>): IResourceWithEnvironment; withHttpsDeveloperCertificate(password?: ParameterResource): IResourceWithEnvironment; withOtlpExporter(protocol?: OtlpProtocol): IResourceWithEnvironment; withoutHttpsCertificate(): IResourceWithEnvironment; withReference( source: EndpointReference|string|uri, connectionName?: string, optional?: boolean, name?: string): IResourceWithEnvironment; withReferenceEnvironment(options: ReferenceEnvironmentInjectionOptions): IResourceWithEnvironment;}9 members
Methods
Sets the certificate trust scope
withCertificateTrustScope(scope: CertificateTrustScope): IResourceWithEnvironmentParameters
scopeCertificateTrustScopeReturns
IResourceWithEnvironmentIndicates whether developer certificates should be treated as trusted certificate authorities for the resource at run time. Currently this indicates trust for the ASP.NET Core developer certificate. The developer certificate will only be trusted when running in local development scenarios; in publish mode resources will use their default certificate trust.
withDeveloperCertificateTrust(trust: boolean): IResourceWithEnvironmentParameters
trustbooleanReturns
IResourceWithEnvironmentSets an environment variable
withEnvironment( name: string, value: IExpressionValue): IResourceWithEnvironmentParameters
namestringvalueIExpressionValueReturns
IResourceWithEnvironmentAllows for the population of environment variables on a resource.
withEnvironmentCallback(callback: (arg: EnvironmentCallbackContext) => Promise<void>): IResourceWithEnvironmentParameters
callback(arg: EnvironmentCallbackContext) => Promise<void>Returns
IResourceWithEnvironmentIndicates that a resource should use the developer certificate key pair for HTTPS endpoints at run time. Currently this indicates use of the ASP.NET Core developer certificate. The developer certificate will only be used when running in local development scenarios; in publish mode resources will use their default certificate configuration.
withHttpsDeveloperCertificate(password?: ParameterResource): IResourceWithEnvironmentParameters
passwordParameterResourceoptionalReturns
IResourceWithEnvironmentConfigures OTLP telemetry export
withOtlpExporter(protocol?: OtlpProtocol): IResourceWithEnvironmentParameters
protocolOtlpProtocoloptionalReturns
IResourceWithEnvironmentDisable HTTPS/TLS server certificate configuration for the resource. No HTTPS/TLS termination configuration will be applied.
withoutHttpsCertificate(): IResourceWithEnvironmentReturns
IResourceWithEnvironmentAdds a reference to another resource
withReference( source: EndpointReference|string|uri, connectionName?: string, optional?: boolean, name?: string): IResourceWithEnvironmentParameters
sourceEndpointReference|string|uriconnectionNamestringoptionaloptionalbooleanoptional= FalsenamestringoptionalReturns
IResourceWithEnvironmentConfigures how information is injected into environment variables when the resource references other resources.
withReferenceEnvironment(options: ReferenceEnvironmentInjectionOptions): IResourceWithEnvironmentParameters
optionsReferenceEnvironmentInjectionOptionsReturns
IResourceWithEnvironment