azure-native-v2.automation.Package
Explore with Pulumi AI
Definition of the Package type. Azure REST API version: 2023-05-15-preview.
Other available API versions: 2024-10-23.
Create Package Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Package(name: string, args: PackageArgs, opts?: CustomResourceOptions);
@overload
def Package(resource_name: str,
args: PackageArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Package(resource_name: str,
opts: Optional[ResourceOptions] = None,
automation_account_name: Optional[str] = None,
content_link: Optional[ContentLinkArgs] = None,
resource_group_name: Optional[str] = None,
runtime_environment_name: Optional[str] = None,
all_of: Optional[TrackedResourceArgs] = None,
package_name: Optional[str] = None)
func NewPackage(ctx *Context, name string, args PackageArgs, opts ...ResourceOption) (*Package, error)
public Package(string name, PackageArgs args, CustomResourceOptions? opts = null)
public Package(String name, PackageArgs args)
public Package(String name, PackageArgs args, CustomResourceOptions options)
type: azure-native:automation:Package
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. PackageArgs - 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. PackageArgs - 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. PackageArgs - 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. PackageArgs - 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. PackageArgs - 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 packageResource = new AzureNative.Automation.Package("packageResource", new()
{
AutomationAccountName = "string",
ContentLink =
{
{ "contentHash",
{
{ "algorithm", "string" },
{ "value", "string" },
} },
{ "uri", "string" },
{ "version", "string" },
},
ResourceGroupName = "string",
RuntimeEnvironmentName = "string",
AllOf =
{
{ "location", "string" },
{ "tags",
{
{ "string", "string" },
} },
},
PackageName = "string",
});
example, err := automation.NewPackage(ctx, "packageResource", &automation.PackageArgs{
AutomationAccountName: "string",
ContentLink: map[string]interface{}{
"contentHash": map[string]interface{}{
"algorithm": "string",
"value": "string",
},
"uri": "string",
"version": "string",
},
ResourceGroupName: "string",
RuntimeEnvironmentName: "string",
AllOf: map[string]interface{}{
"location": "string",
"tags": map[string]interface{}{
"string": "string",
},
},
PackageName: "string",
})
var packageResource = new com.pulumi.azurenative.automation.Package("packageResource", com.pulumi.azurenative.automation.PackageArgs.builder()
.automationAccountName("string")
.contentLink(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.resourceGroupName("string")
.runtimeEnvironmentName("string")
.allOf(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.packageName("string")
.build());
package_resource = azure_native.automation.Package("packageResource",
automation_account_name=string,
content_link={
contentHash: {
algorithm: string,
value: string,
},
uri: string,
version: string,
},
resource_group_name=string,
runtime_environment_name=string,
all_of={
location: string,
tags: {
string: string,
},
},
package_name=string)
const packageResource = new azure_native.automation.Package("packageResource", {
automationAccountName: "string",
contentLink: {
contentHash: {
algorithm: "string",
value: "string",
},
uri: "string",
version: "string",
},
resourceGroupName: "string",
runtimeEnvironmentName: "string",
allOf: {
location: "string",
tags: {
string: "string",
},
},
packageName: "string",
});
type: azure-native:automation:Package
properties:
allOf:
location: string
tags:
string: string
automationAccountName: string
contentLink:
contentHash:
algorithm: string
value: string
uri: string
version: string
packageName: string
resourceGroupName: string
runtimeEnvironmentName: string
Package 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 Package 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 package content link.
- Resource
Group Name This property is required. Changes to this property will trigger replacement.
- Name of an Azure Resource group.
- Runtime
Environment Name This property is required. Changes to this property will trigger replacement.
- The name of the Runtime Environment.
- All
Of Pulumi.Azure Native. Automation. Inputs. Tracked Resource - The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location'
- Package
Name Changes to this property will trigger replacement.
- The name of Package.
- 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 package content link.
- Resource
Group Name This property is required. Changes to this property will trigger replacement.
- Name of an Azure Resource group.
- Runtime
Environment Name This property is required. Changes to this property will trigger replacement.
- The name of the Runtime Environment.
- All
Of TrackedResource Args - The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location'
- Package
Name Changes to this property will trigger replacement.
- The name of Package.
- 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 package content link.
- resource
Group Name This property is required. Changes to this property will trigger replacement.
- Name of an Azure Resource group.
- runtime
Environment Name This property is required. Changes to this property will trigger replacement.
- The name of the Runtime Environment.
- all
Of TrackedResource - The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location'
- package
Name Changes to this property will trigger replacement.
- The name of Package.
- 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 package content link.
- resource
Group Name This property is required. Changes to this property will trigger replacement.
- Name of an Azure Resource group.
- runtime
Environment Name This property is required. Changes to this property will trigger replacement.
- The name of the Runtime Environment.
- all
Of TrackedResource - The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location'
- package
Name Changes to this property will trigger replacement.
- The name of Package.
- 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 package content link.
- resource_
group_ name This property is required. Changes to this property will trigger replacement.
- Name of an Azure Resource group.
- runtime_
environment_ name This property is required. Changes to this property will trigger replacement.
- The name of the Runtime Environment.
- all_
of TrackedResource Args - The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location'
- package_
name Changes to this property will trigger replacement.
- The name of Package.
- 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 package content link.
- resource
Group Name This property is required. Changes to this property will trigger replacement.
- Name of an Azure Resource group.
- runtime
Environment Name This property is required. Changes to this property will trigger replacement.
- The name of the Runtime Environment.
- all
Of Property Map - The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location'
- package
Name Changes to this property will trigger replacement.
- The name of Package.
Outputs
All input properties are implicitly available as output properties. Additionally, the Package resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Location string
- The geo-location where the resource lives
- Name string
- The name of the resource
- Provisioning
State string - Gets or sets the provisioning state of the Package.
- System
Data Pulumi.Azure Native. Automation. Outputs. System Data Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- Default bool
- Gets or sets the isGlobal flag of the package.
- Error
Pulumi.
Azure Native. Automation. Outputs. Package Error Info Response - Gets or sets the error info of the Package.
- Size
In doubleBytes - Gets or sets the size in bytes of the Package.
- Dictionary<string, string>
- Resource tags.
- Version string
- Gets or sets the version of the Package.
- Id string
- The provider-assigned unique ID for this managed resource.
- Location string
- The geo-location where the resource lives
- Name string
- The name of the resource
- Provisioning
State string - Gets or sets the provisioning state of the Package.
- System
Data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- Default bool
- Gets or sets the isGlobal flag of the package.
- Error
Package
Error Info Response - Gets or sets the error info of the Package.
- Size
In float64Bytes - Gets or sets the size in bytes of the Package.
- map[string]string
- Resource tags.
- Version string
- Gets or sets the version of the Package.
- id String
- The provider-assigned unique ID for this managed resource.
- location String
- The geo-location where the resource lives
- name String
- The name of the resource
- provisioning
State String - Gets or sets the provisioning state of the Package.
- system
Data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- default_ Boolean
- Gets or sets the isGlobal flag of the package.
- error
Package
Error Info Response - Gets or sets the error info of the Package.
- size
In DoubleBytes - Gets or sets the size in bytes of the Package.
- Map<String,String>
- Resource tags.
- version String
- Gets or sets the version of the Package.
- id string
- The provider-assigned unique ID for this managed resource.
- location string
- The geo-location where the resource lives
- name string
- The name of the resource
- provisioning
State string - Gets or sets the provisioning state of the Package.
- system
Data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- default boolean
- Gets or sets the isGlobal flag of the package.
- error
Package
Error Info Response - Gets or sets the error info of the Package.
- size
In numberBytes - Gets or sets the size in bytes of the Package.
- {[key: string]: string}
- Resource tags.
- version string
- Gets or sets the version of the Package.
- id str
- The provider-assigned unique ID for this managed resource.
- location str
- The geo-location where the resource lives
- name str
- The name of the resource
- provisioning_
state str - Gets or sets the provisioning state of the Package.
- system_
data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type str
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- default bool
- Gets or sets the isGlobal flag of the package.
- error
Package
Error Info Response - Gets or sets the error info of the Package.
- size_
in_ floatbytes - Gets or sets the size in bytes of the Package.
- Mapping[str, str]
- Resource tags.
- version str
- Gets or sets the version of the Package.
- id String
- The provider-assigned unique ID for this managed resource.
- location String
- The geo-location where the resource lives
- name String
- The name of the resource
- provisioning
State String - Gets or sets the provisioning state of the Package.
- system
Data Property Map - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- default Boolean
- Gets or sets the isGlobal flag of the package.
- error Property Map
- Gets or sets the error info of the Package.
- size
In NumberBytes - Gets or sets the size in bytes of the Package.
- Map<String>
- Resource tags.
- version String
- Gets or sets the version of the Package.
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.
PackageErrorInfoResponse, PackageErrorInfoResponseArgs
SystemDataResponse, SystemDataResponseArgs
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
- created
At string - The timestamp of resource creation (UTC).
- created
By string - The identity that created the resource.
- created
By stringType - The type of identity that created the resource.
- last
Modified stringAt - The timestamp of resource last modification (UTC)
- last
Modified stringBy - The identity that last modified the resource.
- last
Modified stringBy Type - The type of identity that last modified the resource.
- created_
at str - The timestamp of resource creation (UTC).
- created_
by str - The identity that created the resource.
- created_
by_ strtype - The type of identity that created the resource.
- last_
modified_ strat - The timestamp of resource last modification (UTC)
- last_
modified_ strby - The identity that last modified the resource.
- last_
modified_ strby_ type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
TrackedResource, TrackedResourceArgs
- Location
This property is required. string - The geo-location where the resource lives
- Dictionary<string, string>
- Resource tags.
- Location
This property is required. string - The geo-location where the resource lives
- map[string]string
- Resource tags.
- location
This property is required. String - The geo-location where the resource lives
- Map<String,String>
- Resource tags.
- location
This property is required. string - The geo-location where the resource lives
- {[key: string]: string}
- Resource tags.
- location
This property is required. str - The geo-location where the resource lives
- Mapping[str, str]
- Resource tags.
- location
This property is required. String - The geo-location where the resource lives
- Map<String>
- Resource tags.
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:automation:Package OmsCompositeResources /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/runtimeEnvironments/{runtimeEnvironmentName}/packages/{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