Interface Deployment
- All Superinterfaces:
com.pulumi.deployment.internal.ReadOrRegisterResource,com.pulumi.deployment.internal.RegisterResourceOutputs
- All Known Subinterfaces:
DeploymentInstance
- All Known Implementing Classes:
MockDeployment
-
Method Summary
Modifier and TypeMethodDescription<T> Output<T><T> Output<T><T> Output<T>Dynamically calls the functiontoken, which is offered by a provider plugin.voidSame ascall(String, TypeShape, CallArgs, Resource, CallOptions), however the return value is ignored.voidSame ascall(String, TypeShape, CallArgs, Resource, CallOptions), however the return value is ignored.voidcall(String token, CallArgs args, Resource self, CallOptions options) Same ascall(String, TypeShape, CallArgs, Resource, CallOptions), however the return value is ignored.static DeploymentInstanceThe current running deployment instance.default String<T> Output<T>invoke(String token, TypeShape<T> targetType, InvokeArgs args) <T> Output<T>invoke(String token, TypeShape<T> targetType, InvokeArgs args, InvokeOptions options) <T> Output<T>invoke(String token, TypeShape<T> targetType, InvokeArgs args, InvokeOptions options, CompletableFuture<String> packageRef) Dynamically invokes the functiontoken, which is offered by a provider plugin.<T> Output<T>invoke(String token, TypeShape<T> targetType, InvokeArgs args, InvokeOutputOptions options) Same as @seeinvoke(String, TypeShape, InvokeArgs, InvokeOptions, CompletableFuture)but takesInvokeOutputOptionsas options, which allows settingInvokeOutputOptions.dependsOnto specify additional resource dependencies besides the ones that are automatically detected from theInvokeArgs.<T> Output<T>invoke(String token, TypeShape<T> targetType, InvokeArgs args, InvokeOutputOptions options, CompletableFuture<String> packageRef) Same as @seeinvoke(String, TypeShape, InvokeArgs, InvokeOptions, CompletableFuture)but takesInvokeOutputOptionsas options, which allows settingInvokeOutputOptions.dependsOnto specify additional resource dependencies besides the ones that are automatically detected from theInvokeArgs.<T> CompletableFuture<T>invokeAsync(String token, TypeShape<T> targetType, InvokeArgs args) <T> CompletableFuture<T>invokeAsync(String token, TypeShape<T> targetType, InvokeArgs args, InvokeOptions options) <T> CompletableFuture<T>invokeAsync(String token, TypeShape<T> targetType, InvokeArgs args, InvokeOptions options, CompletableFuture<String> packageRef) Dynamically invokes the functiontoken, which is offered by a provider plugin.invokeAsync(String token, InvokeArgs args) Same as @seeinvokeAsync(String, TypeShape, InvokeArgs, InvokeOptions, CompletableFuture), however the return value is ignored.invokeAsync(String token, InvokeArgs args, InvokeOptions options) Same as @seeinvokeAsync(String, TypeShape, InvokeArgs, InvokeOptions, CompletableFuture), however the return value is ignored.booleanisDryRun()Whether the application is currently being previewed or actually applied.registerPackage(String baseProviderName, String baseProviderVersion, String baseProviderDownloadUrl, String packageName, String packageVersion, String base64Parameter) Registers a parameterization of a given provider, returning a package reference that can be used to instantiate resources and call functions against it.default CompletableFuture<String>registerPackage(String baseProviderName, String baseProviderVersion, String baseProviderDownloadUrl, String packageName, String packageVersion, String base64Parameter, boolean extension) Registers a parameterization of a given provider, returning a package reference that can be used to instantiate resources and call functions against it.voidrequirePulumiVersion(String range) Checks if the engine we are connected to is compatible with the passed in version range.Methods inherited from interface com.pulumi.deployment.internal.ReadOrRegisterResource
readOrRegisterResourceMethods inherited from interface com.pulumi.deployment.internal.RegisterResourceOutputs
registerResourceOutputs
-
Method Details
-
getInstance
The current running deployment instance. This is only available from inside the function passed to @seeRunner.runAsync(Supplier)(or its overloads).- Throws:
IllegalStateException- if called before 'run' was called
-
getStackName
- Returns:
- the current stack name
-
getProjectName
- Returns:
- the current project name
-
getOrganizationName
- Returns:
- the current organization name
-
getRootDirectory
- Returns:
- the root directory of the current project, where
Pulumi.yamllives
-
requirePulumiVersion
Checks if the engine we are connected to is compatible with the passed in version range. If the version is not compatible with the specified range, an exception is raised.The supported syntax for the range is that of github.com/blang/semver#ParseRange. For example
">=3.0.0", or"!3.1.2". Ranges can be AND-ed together by concatenating with spaces">=3.5.0 !3.7.7", meaning greater-or-equal to 3.5.0 and not exactly 3.7.7. Ranges can be OR-ed with the||operator:"<3.4.0 || >3.8.0", meaning less-than 3.4.0 or greater-than 3.8.0.- Parameters:
range- the version range to check against
-
isDryRun
boolean isDryRun()Whether the application is currently being previewed or actually applied.- Returns:
- true if application is being applied
-
invoke
-
invoke
<T> Output<T> invoke(String token, TypeShape<T> targetType, InvokeArgs args, @Nullable InvokeOptions options) -
invoke
<T> Output<T> invoke(String token, TypeShape<T> targetType, InvokeArgs args, @Nullable InvokeOptions options, CompletableFuture<String> packageRef) Dynamically invokes the functiontoken, which is offered by a provider plugin.The result of
invokewill be an @seeOutput<T> resolved to the result value of the provider plugin.The
argsinputs can be a bag of computed values (including,Ts, @seeCompletableFutures, @seeOutputs, etc.) -
invoke
<T> Output<T> invoke(String token, TypeShape<T> targetType, InvokeArgs args, @Nullable InvokeOutputOptions options) Same as @seeinvoke(String, TypeShape, InvokeArgs, InvokeOptions, CompletableFuture)but takesInvokeOutputOptionsas options, which allows settingInvokeOutputOptions.dependsOnto specify additional resource dependencies besides the ones that are automatically detected from theInvokeArgs. -
invoke
<T> Output<T> invoke(String token, TypeShape<T> targetType, InvokeArgs args, @Nullable InvokeOutputOptions options, CompletableFuture<String> packageRef) Same as @seeinvoke(String, TypeShape, InvokeArgs, InvokeOptions, CompletableFuture)but takesInvokeOutputOptionsas options, which allows settingInvokeOutputOptions.dependsOnto specify additional resource dependencies besides the ones that are automatically detected from theInvokeArgs. -
invokeAsync
Same as @seeinvokeAsync(String, TypeShape, InvokeArgs, InvokeOptions, CompletableFuture), however the return value is ignored. -
invokeAsync
Same as @seeinvokeAsync(String, TypeShape, InvokeArgs, InvokeOptions, CompletableFuture), however the return value is ignored. -
invokeAsync
-
invokeAsync
<T> CompletableFuture<T> invokeAsync(String token, TypeShape<T> targetType, InvokeArgs args, InvokeOptions options) -
invokeAsync
<T> CompletableFuture<T> invokeAsync(String token, TypeShape<T> targetType, InvokeArgs args, InvokeOptions options, CompletableFuture<String> packageRef) Dynamically invokes the functiontoken, which is offered by a provider plugin.The result of
invokeAsyncwill be a @seeCompletableFutureresolved to the result value of the provider plugin.The
argsinputs can be a bag of computed values (including,Ts, @seeCompletableFutures, @seeOutputs, etc.). -
call
<T> Output<T> call(String token, TypeShape<T> targetType, CallArgs args, @Nullable Resource self, @Nullable CallOptions options) Dynamically calls the functiontoken, which is offered by a provider plugin.The result of
callwill be an @seeOutput<T> resolved to the result value of the provider plugin.The
argsinputs can be a bag of computed values (including,Ts, @seeCompletableFutures, @seeOutputs, etc.). -
call
-
call
-
call
Same ascall(String, TypeShape, CallArgs, Resource, CallOptions), however the return value is ignored. -
call
Same ascall(String, TypeShape, CallArgs, Resource, CallOptions), however the return value is ignored. -
call
Same ascall(String, TypeShape, CallArgs, Resource, CallOptions), however the return value is ignored. -
registerPackage
CompletableFuture<String> registerPackage(String baseProviderName, String baseProviderVersion, String baseProviderDownloadUrl, String packageName, String packageVersion, String base64Parameter) Registers a parameterization of a given provider, returning a package reference that can be used to instantiate resources and call functions against it.- Parameters:
baseProviderName- The name of the base provider being parameterizedbaseProviderVersion- The version of the base provider being parameterizedbaseProviderDownloadUrl- The download URL of the base provider being parameterizedpackageName- The name of the package being registeredpackageVersion- The version of the package being registeredbase64Parameter- The base64-encoded parameterization of the base provider- Returns:
- A future that resolves to the package reference
-
registerPackage
default CompletableFuture<String> registerPackage(String baseProviderName, String baseProviderVersion, String baseProviderDownloadUrl, String packageName, String packageVersion, String base64Parameter, boolean extension) Registers a parameterization of a given provider, returning a package reference that can be used to instantiate resources and call functions against it.- Parameters:
baseProviderName- The name of the base provider being parameterizedbaseProviderVersion- The version of the base provider being parameterizedbaseProviderDownloadUrl- The download URL of the base provider being parameterizedpackageName- The name of the package being registeredpackageVersion- The version of the package being registeredbase64Parameter- The base64-encoded parameterization of the base providerextension- Whether this is an extension parameterization (resources layered onto the base provider) rather than a replacement parameterization- Returns:
- A future that resolves to the package reference
-