azure-native-v2.automation.Python2Package
Explore with Pulumi AI
Definition of the module type. Azure REST API version: 2022-08-08. Prior API version in Azure Native 1.x: 2019-06-01.
Other available API versions: 2023-05-15-preview, 2023-11-01, 2024-10-23.
Create Python2Package Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Python2Package(name: string, args: Python2PackageArgs, opts?: CustomResourceOptions);
@overload
def Python2Package(resource_name: str,
args: Python2PackageArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Python2Package(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 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.
Parameters
- name
This property is required. string - The unique name of the resource.
- args
This property is required. Python2PackageArgs - The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name
This property is required. str - The unique name of the resource.
- args
This property is required. 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
This property is required. string - The unique name of the resource.
- args
This property is required. Python2PackageArgs - The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name
This property is required. string - The unique name of the resource.
- args
This property is required. Python2PackageArgs - The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name
This property is required. String - The unique name of the resource.
- args
This property is required. Python2PackageArgs - 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 python2PackageResource = new AzureNative.Automation.Python2Package("python2PackageResource", new()
{
AutomationAccountName = "string",
ContentLink =
{
{ "contentHash",
{
{ "algorithm", "string" },
{ "value", "string" },
} },
{ "uri", "string" },
{ "version", "string" },
},
ResourceGroupName = "string",
PackageName = "string",
Tags =
{
{ "string", "string" },
},
});
example, err := automation.NewPython2Package(ctx, "python2PackageResource", &automation.Python2PackageArgs{
AutomationAccountName: "string",
ContentLink: map[string]interface{}{
"contentHash": map[string]interface{}{
"algorithm": "string",
"value": "string",
},
"uri": "string",
"version": "string",
},
ResourceGroupName: "string",
PackageName: "string",
Tags: map[string]interface{}{
"string": "string",
},
})
var python2PackageResource = new Python2Package("python2PackageResource", Python2PackageArgs.builder()
.automationAccountName("string")
.contentLink(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.resourceGroupName("string")
.packageName("string")
.tags(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.build());
python2_package_resource = azure_native.automation.Python2Package("python2PackageResource",
automation_account_name=string,
content_link={
contentHash: {
algorithm: string,
value: string,
},
uri: string,
version: string,
},
resource_group_name=string,
package_name=string,
tags={
string: string,
})
const python2PackageResource = new azure_native.automation.Python2Package("python2PackageResource", {
automationAccountName: "string",
contentLink: {
contentHash: {
algorithm: "string",
value: "string",
},
uri: "string",
version: "string",
},
resourceGroupName: "string",
packageName: "string",
tags: {
string: "string",
},
});
type: azure-native:automation:Python2Package
properties:
automationAccountName: string
contentLink:
contentHash:
algorithm: string
value: string
uri: string
version: string
packageName: string
resourceGroupName: string
tags:
string: string
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
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Python2Package resource accepts the following input properties:
- Automation
Account Name This property is required. Changes to this property will trigger replacement.
- The name of the automation account.
- Content
Link This property is required. Pulumi.Azure Native. Automation. Inputs. Content Link - Gets or sets the module content link.
- Resource
Group Name This property is required. Changes to this property will trigger replacement.
- Name of an Azure Resource group.
- Package
Name Changes to this property will trigger replacement.
- The name of python package.
- Dictionary<string, string>
- Gets or sets the tags attached to the resource.
- Automation
Account Name This property is required. Changes to this property will trigger replacement.
- The name of the automation account.
- Content
Link This property is required. ContentLink Args - Gets or sets the module content link.
- Resource
Group Name This property is required. Changes to this property will trigger replacement.
- Name of an Azure Resource group.
- Package
Name Changes to this property will trigger replacement.
- The name of python package.
- map[string]string
- Gets or sets the tags attached to the resource.
- automation
Account Name This property is required. Changes to this property will trigger replacement.
- The name of the automation account.
- content
Link This property is required. ContentLink - Gets or sets the module content link.
- resource
Group Name This property is required. Changes to this property will trigger replacement.
- Name of an Azure Resource group.
- package
Name Changes to this property will trigger replacement.
- The name of python package.
- Map<String,String>
- Gets or sets the tags attached to the resource.
- automation
Account Name This property is required. Changes to this property will trigger replacement.
- The name of the automation account.
- content
Link This property is required. ContentLink - Gets or sets the module content link.
- resource
Group Name This property is required. Changes to this property will trigger replacement.
- Name of an Azure Resource group.
- package
Name Changes to this property will trigger replacement.
- The name of python package.
- {[key: string]: string}
- Gets or sets the tags attached to the resource.
- automation_
account_ name This property is required. Changes to this property will trigger replacement.
- The name of the automation account.
- content_
link This property is required. ContentLink Args - Gets or sets the module content link.
- resource_
group_ name This property is required. Changes to this property will trigger replacement.
- Name of an Azure Resource group.
- package_
name Changes to this property will trigger replacement.
- The name of python package.
- Mapping[str, str]
- Gets or sets the tags attached to the resource.
- automation
Account Name This property is required. Changes to this property will trigger replacement.
- The name of the automation account.
- content
Link This property is required. Property Map - Gets or sets the module content link.
- resource
Group Name This property is required. Changes to this property will trigger replacement.
- Name of an Azure Resource group.
- package
Name Changes to this property will trigger replacement.
- 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 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.
- Activity
Count int - Gets or sets the activity count of the module.
- Creation
Time string - Gets or sets the creation time.
- Description string
- Gets or sets the description.
- Error
Pulumi.
Azure Native. Automation. Outputs. Module Error Info Response - Gets or sets the error info of the module.
- Etag string
- 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 stringTime - Gets or sets the last modified time.
- Location string
- The Azure Region where the resource lives
- Provisioning
State string - Gets or sets the provisioning state of the module.
- Size
In doubleBytes - 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.
- Activity
Count int - Gets or sets the activity count of the module.
- Creation
Time string - Gets or sets the creation time.
- Description string
- Gets or sets the description.
- Error
Module
Error Info Response - Gets or sets the error info of the module.
- Etag string
- 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 stringTime - Gets or sets the last modified time.
- Location string
- The Azure Region where the resource lives
- Provisioning
State string - Gets or sets the provisioning state of the module.
- Size
In float64Bytes - 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.
- activity
Count Integer - Gets or sets the activity count of the module.
- creation
Time String - Gets or sets the creation time.
- description String
- Gets or sets the description.
- error
Module
Error Info Response - Gets or sets the error info of the module.
- etag String
- Gets or sets the etag of the resource.
- is
Composite Boolean - Gets or sets type of module, if its composite or not.
- is
Global Boolean - Gets or sets the isGlobal flag of the module.
- last
Modified StringTime - Gets or sets the last modified time.
- location String
- The Azure Region where the resource lives
- provisioning
State String - Gets or sets the provisioning state of the module.
- size
In DoubleBytes - 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.
- activity
Count number - Gets or sets the activity count of the module.
- creation
Time string - Gets or sets the creation time.
- description string
- Gets or sets the description.
- error
Module
Error Info Response - Gets or sets the error info of the module.
- etag string
- Gets or sets the etag of the resource.
- is
Composite boolean - Gets or sets type of module, if its composite or not.
- is
Global boolean - Gets or sets the isGlobal flag of the module.
- last
Modified stringTime - Gets or sets the last modified time.
- location string
- The Azure Region where the resource lives
- provisioning
State string - Gets or sets the provisioning state of the module.
- size
In numberBytes - 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
Module
Error Info Response - 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_ strtime - 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_ floatbytes - 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.
- activity
Count Number - Gets or sets the activity count of the module.
- creation
Time 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.
- is
Composite Boolean - Gets or sets type of module, if its composite or not.
- is
Global Boolean - Gets or sets the isGlobal flag of the module.
- last
Modified StringTime - Gets or sets the last modified time.
- location String
- The Azure Region where the resource lives
- provisioning
State String - Gets or sets the provisioning state of the module.
- size
In NumberBytes - Gets or sets the size in bytes of the module.
- version String
- Gets or sets the version of the module.
Supporting Types
ContentHash, ContentHashArgs
ContentHashResponse, ContentHashResponseArgs
ContentLink, ContentLinkArgs
- Content
Hash Pulumi.Azure Native. Automation. Inputs. Content Hash - 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 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 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 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.
- content
Hash 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, ContentLinkResponseArgs
- Content
Hash Pulumi.Azure Native. Automation. Inputs. Content Hash Response - 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 Response - 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 Response - 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 Response - 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 Response - 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.
- content
Hash 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, ModuleErrorInfoResponseArgs
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:automation:Python2Package OmsCompositeResources /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/python2Packages/{packageName}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- azure-native-v2 pulumi/pulumi-azure-native
- License
- Apache-2.0