Package com.pulumi.deployment
Interface Deployment
-
- All Superinterfaces:
com.pulumi.deployment.internal.ReadOrRegisterResource,com.pulumi.deployment.internal.RegisterResourceOutputs
- All Known Subinterfaces:
DeploymentInstance
- All Known Implementing Classes:
MockDeployment
@InternalUse public interface Deployment extends com.pulumi.deployment.internal.ReadOrRegisterResource, com.pulumi.deployment.internal.RegisterResourceOutputs
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description <T> Output<T>call(java.lang.String token, TypeShape<T> targetType, CallArgs args)<T> Output<T>call(java.lang.String token, TypeShape<T> targetType, CallArgs args, Resource self)<T> Output<T>call(java.lang.String token, TypeShape<T> targetType, CallArgs args, Resource self, CallOptions options)Dynamically calls the functiontoken, which is offered by a provider plugin.voidcall(java.lang.String token, CallArgs args)Same ascall(String, TypeShape, CallArgs, Resource, CallOptions), however the return value is ignored.voidcall(java.lang.String token, CallArgs args, Resource self)Same ascall(String, TypeShape, CallArgs, Resource, CallOptions), however the return value is ignored.voidcall(java.lang.String token, CallArgs args, Resource self, CallOptions options)Same ascall(String, TypeShape, CallArgs, Resource, CallOptions), however the return value is ignored.static DeploymentInstancegetInstance()The current running deployment instance.default java.lang.StringgetOrganizationName()java.lang.StringgetProjectName()java.lang.StringgetStackName()<T> Output<T>invoke(java.lang.String token, TypeShape<T> targetType, InvokeArgs args)<T> Output<T>invoke(java.lang.String token, TypeShape<T> targetType, InvokeArgs args, InvokeOptions options)<T> Output<T>invoke(java.lang.String token, TypeShape<T> targetType, InvokeArgs args, InvokeOptions options, java.util.concurrent.CompletableFuture<java.lang.String> packageRef)Dynamically invokes the functiontoken, which is offered by a provider plugin.<T> Output<T>invoke(java.lang.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(java.lang.String token, TypeShape<T> targetType, InvokeArgs args, InvokeOutputOptions options, java.util.concurrent.CompletableFuture<java.lang.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> java.util.concurrent.CompletableFuture<T>invokeAsync(java.lang.String token, TypeShape<T> targetType, InvokeArgs args)<T> java.util.concurrent.CompletableFuture<T>invokeAsync(java.lang.String token, TypeShape<T> targetType, InvokeArgs args, InvokeOptions options)<T> java.util.concurrent.CompletableFuture<T>invokeAsync(java.lang.String token, TypeShape<T> targetType, InvokeArgs args, InvokeOptions options, java.util.concurrent.CompletableFuture<java.lang.String> packageRef)Dynamically invokes the functiontoken, which is offered by a provider plugin.java.util.concurrent.CompletableFuture<java.lang.Void>invokeAsync(java.lang.String token, InvokeArgs args)Same as @seeinvokeAsync(String, TypeShape, InvokeArgs, InvokeOptions, CompletableFuture), however the return value is ignored.java.util.concurrent.CompletableFuture<java.lang.Void>invokeAsync(java.lang.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.java.util.concurrent.CompletableFuture<java.lang.String>registerPackage(java.lang.String baseProviderName, java.lang.String baseProviderVersion, java.lang.String baseProviderDownloadUrl, java.lang.String packageName, java.lang.String packageVersion, java.lang.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.
-
-
-
Method Detail
-
getInstance
@InternalUse static DeploymentInstance getInstance()
The current running deployment instance. This is only available from inside the function passed to @seeRunner.runAsync(Supplier)(or its overloads).- Throws:
java.lang.IllegalStateException- if called before 'run' was called
-
getStackName
@Nonnull java.lang.String getStackName()
- Returns:
- the current stack name
-
getProjectName
@Nonnull java.lang.String getProjectName()
- Returns:
- the current project name
-
getOrganizationName
@Nonnull default java.lang.String getOrganizationName()
- Returns:
- the current organization name
-
isDryRun
boolean isDryRun()
Whether the application is currently being previewed or actually applied.- Returns:
- true if application is being applied
-
invoke
<T> Output<T> invoke(java.lang.String token, TypeShape<T> targetType, InvokeArgs args)
-
invoke
<T> Output<T> invoke(java.lang.String token, TypeShape<T> targetType, InvokeArgs args, @Nullable InvokeOptions options)
-
invoke
<T> Output<T> invoke(java.lang.String token, TypeShape<T> targetType, InvokeArgs args, @Nullable InvokeOptions options, java.util.concurrent.CompletableFuture<java.lang.String> packageRef)
-
invoke
<T> Output<T> invoke(java.lang.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(java.lang.String token, TypeShape<T> targetType, InvokeArgs args, @Nullable InvokeOutputOptions options, java.util.concurrent.CompletableFuture<java.lang.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
java.util.concurrent.CompletableFuture<java.lang.Void> invokeAsync(java.lang.String token, InvokeArgs args)Same as @seeinvokeAsync(String, TypeShape, InvokeArgs, InvokeOptions, CompletableFuture), however the return value is ignored.
-
invokeAsync
java.util.concurrent.CompletableFuture<java.lang.Void> invokeAsync(java.lang.String token, InvokeArgs args, InvokeOptions options)Same as @seeinvokeAsync(String, TypeShape, InvokeArgs, InvokeOptions, CompletableFuture), however the return value is ignored.
-
invokeAsync
<T> java.util.concurrent.CompletableFuture<T> invokeAsync(java.lang.String token, TypeShape<T> targetType, InvokeArgs args)
-
invokeAsync
<T> java.util.concurrent.CompletableFuture<T> invokeAsync(java.lang.String token, TypeShape<T> targetType, InvokeArgs args, InvokeOptions options)
-
invokeAsync
<T> java.util.concurrent.CompletableFuture<T> invokeAsync(java.lang.String token, TypeShape<T> targetType, InvokeArgs args, InvokeOptions options, java.util.concurrent.CompletableFuture<java.lang.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(java.lang.String token, TypeShape<T> targetType, CallArgs args, @Nullable Resource self, @Nullable CallOptions options)
-
call
<T> Output<T> call(java.lang.String token, TypeShape<T> targetType, CallArgs args, @Nullable Resource self)
-
call
void call(java.lang.String token, CallArgs args, @Nullable Resource self, @Nullable CallOptions options)Same ascall(String, TypeShape, CallArgs, Resource, CallOptions), however the return value is ignored.
-
call
void call(java.lang.String token, CallArgs args, @Nullable Resource self)Same ascall(String, TypeShape, CallArgs, Resource, CallOptions), however the return value is ignored.
-
call
void call(java.lang.String token, CallArgs args)Same ascall(String, TypeShape, CallArgs, Resource, CallOptions), however the return value is ignored.
-
registerPackage
java.util.concurrent.CompletableFuture<java.lang.String> registerPackage(java.lang.String baseProviderName, java.lang.String baseProviderVersion, java.lang.String baseProviderDownloadUrl, java.lang.String packageName, java.lang.String packageVersion, java.lang.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
-
-