com.pulumi.azurenative.resources.AzureCliScript Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-native Show documentation
Show all versions of azure-native Show documentation
A native Pulumi package for creating and managing Azure resources.
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package com.pulumi.azurenative.resources;
import com.pulumi.azurenative.Utilities;
import com.pulumi.azurenative.resources.AzureCliScriptArgs;
import com.pulumi.azurenative.resources.outputs.ContainerConfigurationResponse;
import com.pulumi.azurenative.resources.outputs.EnvironmentVariableResponse;
import com.pulumi.azurenative.resources.outputs.ManagedServiceIdentityResponse;
import com.pulumi.azurenative.resources.outputs.ScriptStatusResponse;
import com.pulumi.azurenative.resources.outputs.StorageAccountConfigurationResponse;
import com.pulumi.azurenative.resources.outputs.SystemDataResponse;
import com.pulumi.core.Alias;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Export;
import com.pulumi.core.annotations.ResourceType;
import com.pulumi.core.internal.Codegen;
import java.lang.Object;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Optional;
import javax.annotation.Nullable;
/**
* Object model for the Azure CLI script.
* Azure REST API version: 2020-10-01. Prior API version in Azure Native 1.x: 2020-10-01.
*
* ## Example Usage
* ### DeploymentScriptsCreate
*
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.azurenative.resources.AzureCliScript;
* import com.pulumi.azurenative.resources.AzureCliScriptArgs;
* import java.util.List;
* import java.util.ArrayList;
* import java.util.Map;
* import java.io.File;
* import java.nio.file.Files;
* import java.nio.file.Paths;
*
* public class App {
* public static void main(String[] args) {
* Pulumi.run(App::stack);
* }
*
* public static void stack(Context ctx) {
* var azureCliScript = new AzureCliScript("azureCliScript", AzureCliScriptArgs.builder()
* .resourceGroupName("script-rg")
* .scriptName("MyDeploymentScript")
* .build());
*
* }
* }
*
* }
*
* ### DeploymentScriptsCreateNoUserManagedIdentity
*
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.azurenative.resources.AzureCliScript;
* import com.pulumi.azurenative.resources.AzureCliScriptArgs;
* import java.util.List;
* import java.util.ArrayList;
* import java.util.Map;
* import java.io.File;
* import java.nio.file.Files;
* import java.nio.file.Paths;
*
* public class App {
* public static void main(String[] args) {
* Pulumi.run(App::stack);
* }
*
* public static void stack(Context ctx) {
* var azureCliScript = new AzureCliScript("azureCliScript", AzureCliScriptArgs.builder()
* .resourceGroupName("script-rg")
* .scriptName("MyDeploymentScript")
* .build());
*
* }
* }
*
* }
*
* ### DeploymentScriptsCreate_MinCreate
*
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.azurenative.resources.AzureCliScript;
* import com.pulumi.azurenative.resources.AzureCliScriptArgs;
* import java.util.List;
* import java.util.ArrayList;
* import java.util.Map;
* import java.io.File;
* import java.nio.file.Files;
* import java.nio.file.Paths;
*
* public class App {
* public static void main(String[] args) {
* Pulumi.run(App::stack);
* }
*
* public static void stack(Context ctx) {
* var azureCliScript = new AzureCliScript("azureCliScript", AzureCliScriptArgs.builder()
* .resourceGroupName("script-rg")
* .scriptName("MyDeploymentScript")
* .build());
*
* }
* }
*
* }
*
* ### DeploymentScriptsCreate_UsingCustomACIName
*
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.azurenative.resources.AzureCliScript;
* import com.pulumi.azurenative.resources.AzureCliScriptArgs;
* import java.util.List;
* import java.util.ArrayList;
* import java.util.Map;
* import java.io.File;
* import java.nio.file.Files;
* import java.nio.file.Paths;
*
* public class App {
* public static void main(String[] args) {
* Pulumi.run(App::stack);
* }
*
* public static void stack(Context ctx) {
* var azureCliScript = new AzureCliScript("azureCliScript", AzureCliScriptArgs.builder()
* .resourceGroupName("script-rg")
* .scriptName("MyDeploymentScript")
* .build());
*
* }
* }
*
* }
*
* ### DeploymentScriptsCreate_UsingExistingStorageAccount
*
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.azurenative.resources.AzureCliScript;
* import com.pulumi.azurenative.resources.AzureCliScriptArgs;
* import java.util.List;
* import java.util.ArrayList;
* import java.util.Map;
* import java.io.File;
* import java.nio.file.Files;
* import java.nio.file.Paths;
*
* public class App {
* public static void main(String[] args) {
* Pulumi.run(App::stack);
* }
*
* public static void stack(Context ctx) {
* var azureCliScript = new AzureCliScript("azureCliScript", AzureCliScriptArgs.builder()
* .resourceGroupName("script-rg")
* .scriptName("MyDeploymentScript")
* .build());
*
* }
* }
*
* }
*
*
* ## Import
*
* An existing resource can be imported using its type token, name, and identifier, e.g.
*
* ```sh
* $ pulumi import azure-native:resources:AzureCliScript myresource1 /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deploymentScripts/{scriptName}
* ```
*
*/
@ResourceType(type="azure-native:resources:AzureCliScript")
public class AzureCliScript extends com.pulumi.resources.CustomResource {
/**
* Command line arguments to pass to the script. Arguments are separated by spaces. ex: -Name blue* -Location 'West US 2'
*
*/
@Export(name="arguments", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> arguments;
/**
* @return Command line arguments to pass to the script. Arguments are separated by spaces. ex: -Name blue* -Location 'West US 2'
*
*/
public Output> arguments() {
return Codegen.optional(this.arguments);
}
/**
* Azure CLI module version to be used.
*
*/
@Export(name="azCliVersion", refs={String.class}, tree="[0]")
private Output azCliVersion;
/**
* @return Azure CLI module version to be used.
*
*/
public Output azCliVersion() {
return this.azCliVersion;
}
/**
* The clean up preference when the script execution gets in a terminal state. Default setting is 'Always'.
*
*/
@Export(name="cleanupPreference", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> cleanupPreference;
/**
* @return The clean up preference when the script execution gets in a terminal state. Default setting is 'Always'.
*
*/
public Output> cleanupPreference() {
return Codegen.optional(this.cleanupPreference);
}
/**
* Container settings.
*
*/
@Export(name="containerSettings", refs={ContainerConfigurationResponse.class}, tree="[0]")
private Output* @Nullable */ ContainerConfigurationResponse> containerSettings;
/**
* @return Container settings.
*
*/
public Output> containerSettings() {
return Codegen.optional(this.containerSettings);
}
/**
* The environment variables to pass over to the script.
*
*/
@Export(name="environmentVariables", refs={List.class,EnvironmentVariableResponse.class}, tree="[0,1]")
private Output* @Nullable */ List> environmentVariables;
/**
* @return The environment variables to pass over to the script.
*
*/
public Output>> environmentVariables() {
return Codegen.optional(this.environmentVariables);
}
/**
* Gets or sets how the deployment script should be forced to execute even if the script resource has not changed. Can be current time stamp or a GUID.
*
*/
@Export(name="forceUpdateTag", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> forceUpdateTag;
/**
* @return Gets or sets how the deployment script should be forced to execute even if the script resource has not changed. Can be current time stamp or a GUID.
*
*/
public Output> forceUpdateTag() {
return Codegen.optional(this.forceUpdateTag);
}
/**
* Optional property. Managed identity to be used for this deployment script. Currently, only user-assigned MSI is supported.
*
*/
@Export(name="identity", refs={ManagedServiceIdentityResponse.class}, tree="[0]")
private Output* @Nullable */ ManagedServiceIdentityResponse> identity;
/**
* @return Optional property. Managed identity to be used for this deployment script. Currently, only user-assigned MSI is supported.
*
*/
public Output> identity() {
return Codegen.optional(this.identity);
}
/**
* Type of the script.
* Expected value is 'AzureCLI'.
*
*/
@Export(name="kind", refs={String.class}, tree="[0]")
private Output kind;
/**
* @return Type of the script.
* Expected value is 'AzureCLI'.
*
*/
public Output kind() {
return this.kind;
}
/**
* The location of the ACI and the storage account for the deployment script.
*
*/
@Export(name="location", refs={String.class}, tree="[0]")
private Output location;
/**
* @return The location of the ACI and the storage account for the deployment script.
*
*/
public Output location() {
return this.location;
}
/**
* Name of this resource.
*
*/
@Export(name="name", refs={String.class}, tree="[0]")
private Output name;
/**
* @return Name of this resource.
*
*/
public Output name() {
return this.name;
}
/**
* List of script outputs.
*
*/
@Export(name="outputs", refs={Map.class,String.class,Object.class}, tree="[0,1,2]")
private Output
© 2015 - 2024 Weber Informatics LLC | Privacy Policy