com.pulumi.azurenative.resources.AzurePowerShellScript 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.AzurePowerShellScriptArgs;
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 PowerShell script.
* Azure REST API version: 2020-10-01. Prior API version in Azure Native 1.x: 2020-10-01.
*
* ## Example Usage
* ### DeploymentScriptsCreateNoUserManagedIdentity
*
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.azurenative.resources.AzurePowerShellScript;
* import com.pulumi.azurenative.resources.AzurePowerShellScriptArgs;
* 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 azurePowerShellScript = new AzurePowerShellScript("azurePowerShellScript", AzurePowerShellScriptArgs.builder()
* .arguments("-Location 'westus' -Name \"*rg2\"")
* .azPowerShellVersion("1.7.0")
* .cleanupPreference("Always")
* .kind("AzurePowerShell")
* .location("westus")
* .resourceGroupName("script-rg")
* .retentionInterval("PT7D")
* .scriptContent("Param([string]$Location,[string]$Name) $deploymentScriptOutputs['test'] = 'value' Get-AzResourceGroup -Location $Location -Name $Name")
* .scriptName("MyDeploymentScript")
* .supportingScriptUris(
* "https://uri1.to.supporting.script",
* "https://uri2.to.supporting.script")
* .timeout("PT1H")
* .build());
*
* }
* }
*
* }
*
*
* ## Import
*
* An existing resource can be imported using its type token, name, and identifier, e.g.
*
* ```sh
* $ pulumi import azure-native:resources:AzurePowerShellScript myresource1 /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deploymentScripts/{scriptName}
* ```
*
*/
@ResourceType(type="azure-native:resources:AzurePowerShellScript")
public class AzurePowerShellScript 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 PowerShell module version to be used.
*
*/
@Export(name="azPowerShellVersion", refs={String.class}, tree="[0]")
private Output azPowerShellVersion;
/**
* @return Azure PowerShell module version to be used.
*
*/
public Output azPowerShellVersion() {
return this.azPowerShellVersion;
}
/**
* 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 'AzurePowerShell'.
*
*/
@Export(name="kind", refs={String.class}, tree="[0]")
private Output kind;
/**
* @return Type of the script.
* Expected value is 'AzurePowerShell'.
*
*/
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