azure-native.automation.Python2Package

Explore with Pulumi AI

Definition of the module type. API Version: 2019-06-01.

Example Usage

Create or update a python 2 package

using System.Collections.Generic;
using Pulumi;
using AzureNative = Pulumi.AzureNative;

return await Deployment.RunAsync(() => 
{
    var python2Package = new AzureNative.Automation.Python2Package("python2Package", 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/go/azure/automation"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := automation.NewPython2Package(ctx, "python2Package", &automation.Python2PackageArgs{
			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:              nil,
		})
		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.Python2Package;
import com.pulumi.azurenative.automation.Python2PackageArgs;
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 python2Package = new Python2Package("python2Package", Python2PackageArgs.builder()        
            .automationAccountName("myAutomationAccount33")
            .contentLink(Map.ofEntries(
                Map.entry("contentHash", Map.ofEntries(
                    Map.entry("algorithm", "sha265"),
                    Map.entry("value", "07E108A962B81DD9C9BAA89BB47C0F6EE52B29E83758B07795E408D258B2B87A")
                )),
                Map.entry("uri", "https://teststorage.blob.core.windows.net/dsccomposite/OmsCompositeResources.zip"),
                Map.entry("version", "1.0.0.0")
            ))
            .packageName("OmsCompositeResources")
            .resourceGroupName("rg")
            .tags()
            .build());

    }
}
import pulumi
import pulumi_azure_native as azure_native

python2_package = azure_native.automation.Python2Package("python2Package",
    automation_account_name="myAutomationAccount33",
    content_link=azure_native.automation.ContentLinkArgs(
        content_hash=azure_native.automation.ContentHashArgs(
            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={})
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";

const python2Package = new azure_native.automation.Python2Package("python2Package", {
    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: {},
});
resources:
  python2Package:
    type: azure-native:automation:Python2Package
    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 Python2Package Resource

new Python2Package(name: string, args: Python2PackageArgs, opts?: CustomResourceOptions);
@overload
def Python2Package(resource_name: str,
                   opts: Optional[ResourceOptions] = None,
                   automation_account_name: Optional[str] = None,
                   content_link: Optional[ContentLinkArgs] = None,
                   package_name: Optional[str] = None,
                   resource_group_name: Optional[str] = None,
                   tags: Optional[Mapping[str, str]] = None)
@overload
def Python2Package(resource_name: str,
                   args: Python2PackageArgs,
                   opts: Optional[ResourceOptions] = None)
func NewPython2Package(ctx *Context, name string, args Python2PackageArgs, opts ...ResourceOption) (*Python2Package, error)
public Python2Package(string name, Python2PackageArgs args, CustomResourceOptions? opts = null)
public Python2Package(String name, Python2PackageArgs args)
public Python2Package(String name, Python2PackageArgs args, CustomResourceOptions options)
type: azure-native:automation:Python2Package
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args Python2PackageArgs
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 Python2PackageArgs
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 Python2PackageArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args Python2PackageArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args Python2PackageArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Python2Package Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

The Python2Package resource accepts the following input properties:

AutomationAccountName string

The name of the automation account.

ContentLink Pulumi.AzureNative.Automation.Inputs.ContentLinkArgs

Gets or sets the module content link.

ResourceGroupName string

Name of an Azure Resource group.

PackageName string

The name of python package.

Tags Dictionary<string, string>

Gets or sets the tags attached to the resource.

AutomationAccountName string

The name of the automation account.

ContentLink ContentLinkArgs

Gets or sets the module content link.

ResourceGroupName string

Name of an Azure Resource group.

PackageName string

The name of python package.

Tags map[string]string

Gets or sets the tags attached to the resource.

automationAccountName String

The name of the automation account.

contentLink ContentLinkArgs

Gets or sets the module content link.

resourceGroupName String

Name of an Azure Resource group.

packageName String

The name of python package.

tags Map<String,String>

Gets or sets the tags attached to the resource.

automationAccountName string

The name of the automation account.

contentLink ContentLinkArgs

Gets or sets the module content link.

resourceGroupName string

Name of an Azure Resource group.

packageName string

The name of python package.

tags {[key: string]: string}

Gets or sets the tags attached to the resource.

automation_account_name str

The name of the automation account.

content_link ContentLinkArgs

Gets or sets the module content link.

resource_group_name str

Name of an Azure Resource group.

package_name str

The name of python package.

tags Mapping[str, str]

Gets or sets the tags attached to the resource.

automationAccountName String

The name of the automation account.

contentLink Property Map

Gets or sets the module content link.

resourceGroupName String

Name of an Azure Resource group.

packageName String

The name of python package.

tags Map<String>

Gets or sets the tags attached to the resource.

Outputs

All input properties are implicitly available as output properties. Additionally, the Python2Package resource produces the following output properties:

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.

ActivityCount int

Gets or sets the activity count of the module.

CreationTime string

Gets or sets the creation time.

Description string

Gets or sets the description.

Error Pulumi.AzureNative.Automation.Outputs.ModuleErrorInfoResponse

Gets or sets the error info of the module.

Etag string

Gets or sets the etag of the resource.

IsComposite bool

Gets or sets type of module, if its composite or not.

IsGlobal bool

Gets or sets the isGlobal flag of the module.

LastModifiedTime string

Gets or sets the last modified time.

Location string

The Azure Region where the resource lives

ProvisioningState string

Gets or sets the provisioning state of the module.

SizeInBytes double

Gets or sets the size in bytes of the module.

Version string

Gets or sets the version of the module.

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.

ActivityCount int

Gets or sets the activity count of the module.

CreationTime string

Gets or sets the creation time.

Description string

Gets or sets the description.

Error ModuleErrorInfoResponse

Gets or sets the error info of the module.

Etag string

Gets or sets the etag of the resource.

IsComposite bool

Gets or sets type of module, if its composite or not.

IsGlobal bool

Gets or sets the isGlobal flag of the module.

LastModifiedTime string

Gets or sets the last modified time.

Location string

The Azure Region where the resource lives

ProvisioningState string

Gets or sets the provisioning state of the module.

SizeInBytes float64

Gets or sets the size in bytes of the module.

Version string

Gets or sets the version of the module.

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.

activityCount Integer

Gets or sets the activity count of the module.

creationTime String

Gets or sets the creation time.

description String

Gets or sets the description.

error ModuleErrorInfoResponse

Gets or sets the error info of the module.

etag String

Gets or sets the etag of the resource.

isComposite Boolean

Gets or sets type of module, if its composite or not.

isGlobal Boolean

Gets or sets the isGlobal flag of the module.

lastModifiedTime String

Gets or sets the last modified time.

location String

The Azure Region where the resource lives

provisioningState String

Gets or sets the provisioning state of the module.

sizeInBytes Double

Gets or sets the size in bytes of the module.

version String

Gets or sets the version of the module.

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.

activityCount number

Gets or sets the activity count of the module.

creationTime string

Gets or sets the creation time.

description string

Gets or sets the description.

error ModuleErrorInfoResponse

Gets or sets the error info of the module.

etag string

Gets or sets the etag of the resource.

isComposite boolean

Gets or sets type of module, if its composite or not.

isGlobal boolean

Gets or sets the isGlobal flag of the module.

lastModifiedTime string

Gets or sets the last modified time.

location string

The Azure Region where the resource lives

provisioningState string

Gets or sets the provisioning state of the module.

sizeInBytes number

Gets or sets the size in bytes of the module.

version string

Gets or sets the version of the module.

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 or sets the activity count of the module.

creation_time str

Gets or sets the creation time.

description str

Gets or sets the description.

error ModuleErrorInfoResponse

Gets or sets the error info of the module.

etag str

Gets or sets the etag of the resource.

is_composite bool

Gets or sets type of module, if its composite or not.

is_global bool

Gets or sets the isGlobal flag of the module.

last_modified_time str

Gets or sets the last modified time.

location str

The Azure Region where the resource lives

provisioning_state str

Gets or sets the provisioning state of the module.

size_in_bytes float

Gets or sets the size in bytes of the module.

version str

Gets or sets the version of the module.

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.

activityCount Number

Gets or sets the activity count of the module.

creationTime String

Gets or sets the creation time.

description String

Gets or sets the description.

error Property Map

Gets or sets the error info of the module.

etag String

Gets or sets the etag of the resource.

isComposite Boolean

Gets or sets type of module, if its composite or not.

isGlobal Boolean

Gets or sets the isGlobal flag of the module.

lastModifiedTime String

Gets or sets the last modified time.

location String

The Azure Region where the resource lives

provisioningState String

Gets or sets the provisioning state of the module.

sizeInBytes Number

Gets or sets the size in bytes of the module.

version String

Gets or sets the version of the module.

Supporting Types

ContentHash

Algorithm string

Gets or sets the content hash algorithm used to hash the content.

Value string

Gets or sets expected hash value of the content.

Algorithm string

Gets or sets the content hash algorithm used to hash the content.

Value string

Gets or sets expected hash value of the content.

algorithm String

Gets or sets the content hash algorithm used to hash the content.

value String

Gets or sets expected hash value of the content.

algorithm string

Gets or sets the content hash algorithm used to hash the content.

value string

Gets or sets expected hash value of the content.

algorithm str

Gets or sets the content hash algorithm used to hash the content.

value str

Gets or sets expected hash value of the content.

algorithm String

Gets or sets the content hash algorithm used to hash the content.

value String

Gets or sets expected hash value of the content.

ContentHashResponse

Algorithm string

Gets or sets the content hash algorithm used to hash the content.

Value string

Gets or sets expected hash value of the content.

Algorithm string

Gets or sets the content hash algorithm used to hash the content.

Value string

Gets or sets expected hash value of the content.

algorithm String

Gets or sets the content hash algorithm used to hash the content.

value String

Gets or sets expected hash value of the content.

algorithm string

Gets or sets the content hash algorithm used to hash the content.

value string

Gets or sets expected hash value of the content.

algorithm str

Gets or sets the content hash algorithm used to hash the content.

value str

Gets or sets expected hash value of the content.

algorithm String

Gets or sets the content hash algorithm used to hash the content.

value String

Gets or sets expected hash value of the content.

ContentHash Pulumi.AzureNative.Automation.Inputs.ContentHash

Gets or sets the hash.

Uri string

Gets or sets the uri of the runbook content.

Version string

Gets or sets the version of the content.

ContentHash ContentHash

Gets or sets the hash.

Uri string

Gets or sets the uri of the runbook content.

Version string

Gets or sets the version of the content.

contentHash ContentHash

Gets or sets the hash.

uri String

Gets or sets the uri of the runbook content.

version String

Gets or sets the version of the content.

contentHash ContentHash

Gets or sets the hash.

uri string

Gets or sets the uri of the runbook content.

version string

Gets or sets the version of the content.

content_hash ContentHash

Gets or sets the hash.

uri str

Gets or sets the uri of the runbook content.

version str

Gets or sets the version of the content.

contentHash Property Map

Gets or sets the hash.

uri String

Gets or sets the uri of the runbook content.

version String

Gets or sets the version of the content.

ContentLinkResponse

ContentHash Pulumi.AzureNative.Automation.Inputs.ContentHashResponse

Gets or sets the hash.

Uri string

Gets or sets the uri of the runbook content.

Version string

Gets or sets the version of the content.

ContentHash ContentHashResponse

Gets or sets the hash.

Uri string

Gets or sets the uri of the runbook content.

Version string

Gets or sets the version of the content.

contentHash ContentHashResponse

Gets or sets the hash.

uri String

Gets or sets the uri of the runbook content.

version String

Gets or sets the version of the content.

contentHash ContentHashResponse

Gets or sets the hash.

uri string

Gets or sets the uri of the runbook content.

version string

Gets or sets the version of the content.

content_hash ContentHashResponse

Gets or sets the hash.

uri str

Gets or sets the uri of the runbook content.

version str

Gets or sets the version of the content.

contentHash Property Map

Gets or sets the hash.

uri String

Gets or sets the uri of the runbook content.

version String

Gets or sets the version of the content.

ModuleErrorInfoResponse

Code string

Gets or sets the error code.

Message string

Gets or sets the error message.

Code string

Gets or sets the error code.

Message string

Gets or sets the error message.

code String

Gets or sets the error code.

message String

Gets or sets the error message.

code string

Gets or sets the error code.

message string

Gets or sets the error message.

code str

Gets or sets the error code.

message str

Gets or sets the error message.

code String

Gets or sets the error code.

message String

Gets or sets the error message.

Import

An existing resource can be imported using its type token, name, and identifier, e.g.

$ pulumi import azure-native:automation:Python2Package OmsCompositeResources /subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/python2Packages/OmsCompositeResources 

Package Details

Repository
Azure Native pulumi/pulumi-azure-native
License
Apache-2.0