azure-native.automation.Python3Package
Explore with Pulumi AI
Definition of the module type.
Uses Azure REST API version 2023-11-01. In version 2.x of the Azure Native provider, it used API version 2022-08-08.
Other available API versions: 2022-08-08, 2023-05-15-preview, 2024-10-23. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native automation [ApiVersion]
. See the version guide for details.
Example Usage
Create or update a python 3 package
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var python3Package = new AzureNative.Automation.Python3Package("python3Package", new()
{
AutomationAccountName = "myAutomationAccount33",
ContentLink = new AzureNative.Automation.Inputs.ContentLinkArgs
{
ContentHash = new AzureNative.Automation.Inputs.ContentHashArgs
{
Algorithm = "sha265",
Value = "07E108A962B81DD9C9BAA89BB47C0F6EE52B29E83758B07795E408D258B2B87A",
},
Uri = "https://teststorage.blob.core.windows.net/dsccomposite/OmsCompositeResources.zip",
Version = "1.0.0.0",
},
PackageName = "OmsCompositeResources",
ResourceGroupName = "rg",
Tags = null,
});
});
package main
import (
automation "github.com/pulumi/pulumi-azure-native-sdk/automation/v3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := automation.NewPython3Package(ctx, "python3Package", &automation.Python3PackageArgs{
AutomationAccountName: pulumi.String("myAutomationAccount33"),
ContentLink: &automation.ContentLinkArgs{
ContentHash: &automation.ContentHashArgs{
Algorithm: pulumi.String("sha265"),
Value: pulumi.String("07E108A962B81DD9C9BAA89BB47C0F6EE52B29E83758B07795E408D258B2B87A"),
},
Uri: pulumi.String("https://teststorage.blob.core.windows.net/dsccomposite/OmsCompositeResources.zip"),
Version: pulumi.String("1.0.0.0"),
},
PackageName: pulumi.String("OmsCompositeResources"),
ResourceGroupName: pulumi.String("rg"),
Tags: pulumi.StringMap{},
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.automation.Python3Package;
import com.pulumi.azurenative.automation.Python3PackageArgs;
import com.pulumi.azurenative.automation.inputs.ContentLinkArgs;
import com.pulumi.azurenative.automation.inputs.ContentHashArgs;
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 python3Package = new Python3Package("python3Package", Python3PackageArgs.builder()
.automationAccountName("myAutomationAccount33")
.contentLink(ContentLinkArgs.builder()
.contentHash(ContentHashArgs.builder()
.algorithm("sha265")
.value("07E108A962B81DD9C9BAA89BB47C0F6EE52B29E83758B07795E408D258B2B87A")
.build())
.uri("https://teststorage.blob.core.windows.net/dsccomposite/OmsCompositeResources.zip")
.version("1.0.0.0")
.build())
.packageName("OmsCompositeResources")
.resourceGroupName("rg")
.tags(Map.ofEntries(
))
.build());
}
}
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const python3Package = new azure_native.automation.Python3Package("python3Package", {
automationAccountName: "myAutomationAccount33",
contentLink: {
contentHash: {
algorithm: "sha265",
value: "07E108A962B81DD9C9BAA89BB47C0F6EE52B29E83758B07795E408D258B2B87A",
},
uri: "https://teststorage.blob.core.windows.net/dsccomposite/OmsCompositeResources.zip",
version: "1.0.0.0",
},
packageName: "OmsCompositeResources",
resourceGroupName: "rg",
tags: {},
});
import pulumi
import pulumi_azure_native as azure_native
python3_package = azure_native.automation.Python3Package("python3Package",
automation_account_name="myAutomationAccount33",
content_link={
"content_hash": {
"algorithm": "sha265",
"value": "07E108A962B81DD9C9BAA89BB47C0F6EE52B29E83758B07795E408D258B2B87A",
},
"uri": "https://teststorage.blob.core.windows.net/dsccomposite/OmsCompositeResources.zip",
"version": "1.0.0.0",
},
package_name="OmsCompositeResources",
resource_group_name="rg",
tags={})
resources:
python3Package:
type: azure-native:automation:Python3Package
properties:
automationAccountName: myAutomationAccount33
contentLink:
contentHash:
algorithm: sha265
value: 07E108A962B81DD9C9BAA89BB47C0F6EE52B29E83758B07795E408D258B2B87A
uri: https://teststorage.blob.core.windows.net/dsccomposite/OmsCompositeResources.zip
version: 1.0.0.0
packageName: OmsCompositeResources
resourceGroupName: rg
tags: {}
Create Python3Package Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Python3Package(name: string, args: Python3PackageArgs, opts?: CustomResourceOptions);
@overload
def Python3Package(resource_name: str,
args: Python3PackageArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Python3Package(resource_name: str,
opts: Optional[ResourceOptions] = None,
automation_account_name: Optional[str] = None,
content_link: Optional[ContentLinkArgs] = None,
resource_group_name: Optional[str] = None,
package_name: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None)
func NewPython3Package(ctx *Context, name string, args Python3PackageArgs, opts ...ResourceOption) (*Python3Package, error)
public Python3Package(string name, Python3PackageArgs args, CustomResourceOptions? opts = null)
public Python3Package(String name, Python3PackageArgs args)
public Python3Package(String name, Python3PackageArgs args, CustomResourceOptions options)
type: azure-native:automation:Python3Package
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args Python3PackageArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args Python3PackageArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args Python3PackageArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args Python3PackageArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args Python3PackageArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var python3PackageResource = new AzureNative.Automation.Python3Package("python3PackageResource", new()
{
AutomationAccountName = "string",
ContentLink = new AzureNative.Automation.Inputs.ContentLinkArgs
{
ContentHash = new AzureNative.Automation.Inputs.ContentHashArgs
{
Algorithm = "string",
Value = "string",
},
Uri = "string",
Version = "string",
},
ResourceGroupName = "string",
PackageName = "string",
Tags =
{
{ "string", "string" },
},
});
example, err := automation.NewPython3Package(ctx, "python3PackageResource", &automation.Python3PackageArgs{
AutomationAccountName: pulumi.String("string"),
ContentLink: &automation.ContentLinkArgs{
ContentHash: &automation.ContentHashArgs{
Algorithm: pulumi.String("string"),
Value: pulumi.String("string"),
},
Uri: pulumi.String("string"),
Version: pulumi.String("string"),
},
ResourceGroupName: pulumi.String("string"),
PackageName: pulumi.String("string"),
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
})
var python3PackageResource = new Python3Package("python3PackageResource", Python3PackageArgs.builder()
.automationAccountName("string")
.contentLink(ContentLinkArgs.builder()
.contentHash(ContentHashArgs.builder()
.algorithm("string")
.value("string")
.build())
.uri("string")
.version("string")
.build())
.resourceGroupName("string")
.packageName("string")
.tags(Map.of("string", "string"))
.build());
python3_package_resource = azure_native.automation.Python3Package("python3PackageResource",
automation_account_name="string",
content_link={
"content_hash": {
"algorithm": "string",
"value": "string",
},
"uri": "string",
"version": "string",
},
resource_group_name="string",
package_name="string",
tags={
"string": "string",
})
const python3PackageResource = new azure_native.automation.Python3Package("python3PackageResource", {
automationAccountName: "string",
contentLink: {
contentHash: {
algorithm: "string",
value: "string",
},
uri: "string",
version: "string",
},
resourceGroupName: "string",
packageName: "string",
tags: {
string: "string",
},
});
type: azure-native:automation:Python3Package
properties:
automationAccountName: string
contentLink:
contentHash:
algorithm: string
value: string
uri: string
version: string
packageName: string
resourceGroupName: string
tags:
string: string
Python3Package Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Python3Package resource accepts the following input properties:
- Automation
Account stringName - The name of the automation account.
- Content
Link Pulumi.Azure Native. Automation. Inputs. Content Link - Gets or sets the module content link.
- Resource
Group stringName - Name of an Azure Resource group.
- Package
Name string - The name of python package.
- Dictionary<string, string>
- Gets or sets the tags attached to the resource.
- Automation
Account stringName - The name of the automation account.
- Content
Link ContentLink Args - Gets or sets the module content link.
- Resource
Group stringName - Name of an Azure Resource group.
- Package
Name string - The name of python package.
- map[string]string
- Gets or sets the tags attached to the resource.
- automation
Account StringName - The name of the automation account.
- content
Link ContentLink - Gets or sets the module content link.
- resource
Group StringName - Name of an Azure Resource group.
- package
Name String - The name of python package.
- Map<String,String>
- Gets or sets the tags attached to the resource.
- automation
Account stringName - The name of the automation account.
- content
Link ContentLink - Gets or sets the module content link.
- resource
Group stringName - Name of an Azure Resource group.
- package
Name string - The name of python package.
- {[key: string]: string}
- Gets or sets the tags attached to the resource.
- automation_
account_ strname - The name of the automation account.
- content_
link ContentLink Args - Gets or sets the module content link.
- resource_
group_ strname - Name of an Azure Resource group.
- package_
name str - The name of python package.
- Mapping[str, str]
- Gets or sets the tags attached to the resource.
- automation
Account StringName - The name of the automation account.
- content
Link Property Map - Gets or sets the module content link.
- resource
Group StringName - Name of an Azure Resource group.
- package
Name String - The name of python package.
- Map<String>
- Gets or sets the tags attached to the resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the Python3Package resource produces the following output properties:
- Azure
Api stringVersion - The Azure API version of the resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The name of the resource
- Type string
- The type of the resource.
- Activity
Count int - Gets the activity count of the module.
- Creation
Time string - Gets the creation time.
- Description string
- Gets or sets the description.
- Error
Pulumi.
Azure Native. Automation. Outputs. Module Error Info Response - Gets the error info of the module.
- Etag string
- Gets the etag of the resource.
- Is
Composite bool - Gets type of module, if its composite or not.
- Is
Global bool - Gets the isGlobal flag of the module.
- Last
Modified stringTime - Gets the last modified time.
- Location string
- The Azure Region where the resource lives
- Provisioning
State string - Gets the provisioning state of the module.
- Size
In doubleBytes - Gets the size in bytes of the module.
- Version string
- Gets the version of the module.
- Azure
Api stringVersion - The Azure API version of the resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The name of the resource
- Type string
- The type of the resource.
- Activity
Count int - Gets the activity count of the module.
- Creation
Time string - Gets the creation time.
- Description string
- Gets or sets the description.
- Error
Module
Error Info Response - Gets the error info of the module.
- Etag string
- Gets the etag of the resource.
- Is
Composite bool - Gets type of module, if its composite or not.
- Is
Global bool - Gets the isGlobal flag of the module.
- Last
Modified stringTime - Gets the last modified time.
- Location string
- The Azure Region where the resource lives
- Provisioning
State string - Gets the provisioning state of the module.
- Size
In float64Bytes - Gets the size in bytes of the module.
- Version string
- Gets the version of the module.
- azure
Api StringVersion - The Azure API version of the resource.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The name of the resource
- type String
- The type of the resource.
- activity
Count Integer - Gets the activity count of the module.
- creation
Time String - Gets the creation time.
- description String
- Gets or sets the description.
- error
Module
Error Info Response - Gets the error info of the module.
- etag String
- Gets the etag of the resource.
- is
Composite Boolean - Gets type of module, if its composite or not.
- is
Global Boolean - Gets the isGlobal flag of the module.
- last
Modified StringTime - Gets the last modified time.
- location String
- The Azure Region where the resource lives
- provisioning
State String - Gets the provisioning state of the module.
- size
In DoubleBytes - Gets the size in bytes of the module.
- version String
- Gets the version of the module.
- azure
Api stringVersion - The Azure API version of the resource.
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- The name of the resource
- type string
- The type of the resource.
- activity
Count number - Gets the activity count of the module.
- creation
Time string - Gets the creation time.
- description string
- Gets or sets the description.
- error
Module
Error Info Response - Gets the error info of the module.
- etag string
- Gets the etag of the resource.
- is
Composite boolean - Gets type of module, if its composite or not.
- is
Global boolean - Gets the isGlobal flag of the module.
- last
Modified stringTime - Gets the last modified time.
- location string
- The Azure Region where the resource lives
- provisioning
State string - Gets the provisioning state of the module.
- size
In numberBytes - Gets the size in bytes of the module.
- version string
- Gets the version of the module.
- azure_
api_ strversion - The Azure API version of the resource.
- id str
- The provider-assigned unique ID for this managed resource.
- name str
- The name of the resource
- type str
- The type of the resource.
- activity_
count int - Gets the activity count of the module.
- creation_
time str - Gets the creation time.
- description str
- Gets or sets the description.
- error
Module
Error Info Response - Gets the error info of the module.
- etag str
- Gets the etag of the resource.
- is_
composite bool - Gets type of module, if its composite or not.
- is_
global bool - Gets the isGlobal flag of the module.
- last_
modified_ strtime - Gets the last modified time.
- location str
- The Azure Region where the resource lives
- provisioning_
state str - Gets the provisioning state of the module.
- size_
in_ floatbytes - Gets the size in bytes of the module.
- version str
- Gets the version of the module.
- azure
Api StringVersion - The Azure API version of the resource.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The name of the resource
- type String
- The type of the resource.
- activity
Count Number - Gets the activity count of the module.
- creation
Time String - Gets the creation time.
- description String
- Gets or sets the description.
- error Property Map
- Gets the error info of the module.
- etag String
- Gets the etag of the resource.
- is
Composite Boolean - Gets type of module, if its composite or not.
- is
Global Boolean - Gets the isGlobal flag of the module.
- last
Modified StringTime - Gets the last modified time.
- location String
- The Azure Region where the resource lives
- provisioning
State String - Gets the provisioning state of the module.
- size
In NumberBytes - Gets the size in bytes of the module.
- version String
- Gets the version of the module.
Supporting Types
ContentHash, ContentHashArgs
ContentLink, ContentLinkArgs
- Content
Hash Pulumi.Azure Native. Automation. Inputs. Content Hash - Sets the hash.
- Uri string
- Sets the uri of the content.
- Version string
- Sets the version of the content.
- Content
Hash ContentHash - Sets the hash.
- Uri string
- Sets the uri of the content.
- Version string
- Sets the version of the content.
- content
Hash ContentHash - Sets the hash.
- uri String
- Sets the uri of the content.
- version String
- Sets the version of the content.
- content
Hash ContentHash - Sets the hash.
- uri string
- Sets the uri of the content.
- version string
- Sets the version of the content.
- content_
hash ContentHash - Sets the hash.
- uri str
- Sets the uri of the content.
- version str
- Sets the version of the content.
- content
Hash Property Map - Sets the hash.
- uri String
- Sets the uri of the content.
- version String
- Sets the version of the content.
ModuleErrorInfoResponse, ModuleErrorInfoResponseArgs
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:automation:Python3Package OmsCompositeResources /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/python3Packages/{packageName}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0