Python3Package

class Python3Package : KotlinCustomResource

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 exampleResourceGroup = new ResourceGroup("exampleResourceGroup", ResourceGroupArgs.builder()
.location("%[2]s")
.build());
var exampleAccount = new Account("exampleAccount", AccountArgs.builder()
.location(exampleResourceGroup.location())
.resourceGroupName(exampleResourceGroup.name())
.skuName("Basic")
.build());
var examplePython3Package = new Python3Package("examplePython3Package", Python3PackageArgs.builder()
.resourceGroupName(exampleResourceGroup.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

Properties

Link copied to clipboard

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>

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>?

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>?

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>?

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

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val name: Output<String>

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 pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

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>>?

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

Link copied to clipboard
val urn: Output<String>