Python3PackageArgs

data class Python3PackageArgs(val automationAccountName: Output<String>? = null, val contentUri: Output<String>? = null, val contentVersion: Output<String>? = null, val hashAlgorithm: Output<String>? = null, val hashValue: Output<String>? = null, val name: Output<String>? = null, val resourceGroupName: Output<String>? = null, val tags: Output<Map<String, String>>? = null) : ConvertibleToJava<Python3PackageArgs>

Manages a Automation Python3 Package.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.core.ResourceGroup;
import com.pulumi.azure.core.ResourceGroupArgs;
import com.pulumi.azure.automation.Account;
import com.pulumi.azure.automation.AccountArgs;
import com.pulumi.azure.automation.Python3Package;
import com.pulumi.azure.automation.Python3PackageArgs;
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 example = new ResourceGroup("example", ResourceGroupArgs.builder()
.name("rg-example")
.location("%[2]s")
.build());
var exampleAccount = new Account("exampleAccount", AccountArgs.builder()
.name("accexample")
.location(example.location())
.resourceGroupName(example.name())
.skuName("Basic")
.build());
var examplePython3Package = new Python3Package("examplePython3Package", Python3PackageArgs.builder()
.name("example")
.resourceGroupName(example.name())
.automationAccountName(exampleAccount.name())
.contentUri("https://pypi.org/packages/source/r/requests/requests-2.31.0.tar.gz")
.contentVersion("2.31.0")
.hashAlgorithm("sha256")
.hashValue("942c5a758f98d790eaed1a29cb6eefc7ffb0d1cf7af05c3d2791656dbd6ad1e1")
.tags(Map.of("key", "foo"))
.build());
}
}

Import

Automation Python3 Packages can be imported using the resource id, e.g.

$ pulumi import azure:automation/python3Package:Python3Package example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.Automation/automationAccounts/account1/python3Packages/pkg

Constructors

Link copied to clipboard
fun Python3PackageArgs(automationAccountName: Output<String>? = null, contentUri: Output<String>? = null, contentVersion: Output<String>? = null, hashAlgorithm: Output<String>? = null, hashValue: Output<String>? = null, name: Output<String>? = null, resourceGroupName: Output<String>? = null, tags: Output<Map<String, String>>? = null)

Functions

Link copied to clipboard
open override fun toJava(): Python3PackageArgs

Properties

Link copied to clipboard
val automationAccountName: Output<String>? = null

The name of the automation account in which the Python3 Package is created. Changing this forces a new resource to be created.

Link copied to clipboard
val contentUri: Output<String>? = null

The URL of the python package. Changing this forces a new Automation Python3 Package to be created.

Link copied to clipboard
val contentVersion: Output<String>? = null

Specify the version of the python3 package. The value should meet the system.version class format like 1.1.1. Changing this forces a new Automation Python3 Package to be created.

Link copied to clipboard
val hashAlgorithm: Output<String>? = null

Specify the hash algorithm used to hash the content of the python3 package. Changing this forces a new Automation Python3 Package to be created.

Link copied to clipboard
val hashValue: Output<String>? = null

Specity the hash value of the content. Changing this forces a new Automation Python3 Package to be created.

Link copied to clipboard
val name: Output<String>? = null

The name which should be used for this Automation Python3 Package. Changing this forces a new Automation Python3 Package to be created.

Link copied to clipboard
val resourceGroupName: Output<String>? = null

The name of the resource group in which the Python3 Package is created. Changing this forces a new resource to be created.

Link copied to clipboard
val tags: Output<Map<String, String>>? = null

A mapping of tags which should be assigned to the Automation Python3 Package.