azure-native.automation.PowerShell72Module
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 2023-11-01.
Create PowerShell72Module Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new PowerShell72Module(name: string, args: PowerShell72ModuleArgs, opts?: CustomResourceOptions);
@overload
def PowerShell72Module(resource_name: str,
args: PowerShell72ModuleArgs,
opts: Optional[ResourceOptions] = None)
@overload
def PowerShell72Module(resource_name: str,
opts: Optional[ResourceOptions] = None,
automation_account_name: Optional[str] = None,
content_link: Optional[ContentLinkArgs] = None,
resource_group_name: Optional[str] = None,
location: Optional[str] = None,
module_name: Optional[str] = None,
name: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None)
func NewPowerShell72Module(ctx *Context, name string, args PowerShell72ModuleArgs, opts ...ResourceOption) (*PowerShell72Module, error)
public PowerShell72Module(string name, PowerShell72ModuleArgs args, CustomResourceOptions? opts = null)
public PowerShell72Module(String name, PowerShell72ModuleArgs args)
public PowerShell72Module(String name, PowerShell72ModuleArgs args, CustomResourceOptions options)
type: azure-native:automation:PowerShell72Module
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. PowerShell72ModuleArgs - 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. PowerShell72ModuleArgs - 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. PowerShell72ModuleArgs - 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. PowerShell72ModuleArgs - 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. PowerShell72ModuleArgs - 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 powerShell72ModuleResource = new AzureNative.Automation.PowerShell72Module("powerShell72ModuleResource", 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",
Location = "string",
ModuleName = "string",
Name = "string",
Tags =
{
{ "string", "string" },
},
});
example, err := automation.NewPowerShell72Module(ctx, "powerShell72ModuleResource", &automation.PowerShell72ModuleArgs{
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"),
Location: pulumi.String("string"),
ModuleName: pulumi.String("string"),
Name: pulumi.String("string"),
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
})
var powerShell72ModuleResource = new PowerShell72Module("powerShell72ModuleResource", PowerShell72ModuleArgs.builder()
.automationAccountName("string")
.contentLink(ContentLinkArgs.builder()
.contentHash(ContentHashArgs.builder()
.algorithm("string")
.value("string")
.build())
.uri("string")
.version("string")
.build())
.resourceGroupName("string")
.location("string")
.moduleName("string")
.name("string")
.tags(Map.of("string", "string"))
.build());
power_shell72_module_resource = azure_native.automation.PowerShell72Module("powerShell72ModuleResource",
automation_account_name="string",
content_link={
"content_hash": {
"algorithm": "string",
"value": "string",
},
"uri": "string",
"version": "string",
},
resource_group_name="string",
location="string",
module_name="string",
name="string",
tags={
"string": "string",
})
const powerShell72ModuleResource = new azure_native.automation.PowerShell72Module("powerShell72ModuleResource", {
automationAccountName: "string",
contentLink: {
contentHash: {
algorithm: "string",
value: "string",
},
uri: "string",
version: "string",
},
resourceGroupName: "string",
location: "string",
moduleName: "string",
name: "string",
tags: {
string: "string",
},
});
type: azure-native:automation:PowerShell72Module
properties:
automationAccountName: string
contentLink:
contentHash:
algorithm: string
value: string
uri: string
version: string
location: string
moduleName: string
name: string
resourceGroupName: string
tags:
string: string
PowerShell72Module 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 PowerShell72Module 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 - Sets the hash.
- Resource
Group Name This property is required. Changes to this property will trigger replacement.
- The name of the resource group. The name is case insensitive.
- Location string
- Sets the location of the resource.
- Module
Name Changes to this property will trigger replacement.
- The name of module.
- Name string
- Sets name of the resource.
- Dictionary<string, string>
- 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 - Sets the hash.
- Resource
Group Name This property is required. Changes to this property will trigger replacement.
- The name of the resource group. The name is case insensitive.
- Location string
- Sets the location of the resource.
- Module
Name Changes to this property will trigger replacement.
- The name of module.
- Name string
- Sets name of the resource.
- map[string]string
- 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 - Sets the hash.
- resource
Group Name This property is required. Changes to this property will trigger replacement.
- The name of the resource group. The name is case insensitive.
- location String
- Sets the location of the resource.
- module
Name Changes to this property will trigger replacement.
- The name of module.
- name String
- Sets name of the resource.
- Map<String,String>
- 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 - Sets the hash.
- resource
Group Name This property is required. Changes to this property will trigger replacement.
- The name of the resource group. The name is case insensitive.
- location string
- Sets the location of the resource.
- module
Name Changes to this property will trigger replacement.
- The name of module.
- name string
- Sets name of the resource.
- {[key: string]: string}
- 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 - Sets the hash.
- resource_
group_ name This property is required. Changes to this property will trigger replacement.
- The name of the resource group. The name is case insensitive.
- location str
- Sets the location of the resource.
- module_
name Changes to this property will trigger replacement.
- The name of module.
- name str
- Sets name of the resource.
- Mapping[str, str]
- 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 - Sets the hash.
- resource
Group Name This property is required. Changes to this property will trigger replacement.
- The name of the resource group. The name is case insensitive.
- location String
- Sets the location of the resource.
- module
Name Changes to this property will trigger replacement.
- The name of module.
- name String
- Sets name of the resource.
- Map<String>
- Sets the tags attached to the resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the PowerShell72Module 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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:PowerShell72Module OmsCompositeResources /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/powerShell72Modules/{moduleName}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0