azure-native.automation.Certificate
Explore with Pulumi AI
Definition of the certificate.
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: 2015-10-31, 2019-06-01, 2020-01-13-preview, 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.
Create Certificate Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Certificate(name: string, args: CertificateArgs, opts?: CustomResourceOptions);
@overload
def Certificate(resource_name: str,
args: CertificateArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Certificate(resource_name: str,
opts: Optional[ResourceOptions] = None,
automation_account_name: Optional[str] = None,
base64_value: Optional[str] = None,
name: Optional[str] = None,
resource_group_name: Optional[str] = None,
certificate_name: Optional[str] = None,
description: Optional[str] = None,
is_exportable: Optional[bool] = None,
thumbprint: Optional[str] = None)
func NewCertificate(ctx *Context, name string, args CertificateArgs, opts ...ResourceOption) (*Certificate, error)
public Certificate(string name, CertificateArgs args, CustomResourceOptions? opts = null)
public Certificate(String name, CertificateArgs args)
public Certificate(String name, CertificateArgs args, CustomResourceOptions options)
type: azure-native:automation:Certificate
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. CertificateArgs - 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. CertificateArgs - 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. CertificateArgs - 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. CertificateArgs - 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. CertificateArgs - 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 examplecertificateResourceResourceFromAutomation = new AzureNative.Automation.Certificate("examplecertificateResourceResourceFromAutomation", new()
{
AutomationAccountName = "string",
Base64Value = "string",
Name = "string",
ResourceGroupName = "string",
CertificateName = "string",
Description = "string",
IsExportable = false,
Thumbprint = "string",
});
example, err := automation.NewCertificate(ctx, "examplecertificateResourceResourceFromAutomation", &automation.CertificateArgs{
AutomationAccountName: pulumi.String("string"),
Base64Value: pulumi.String("string"),
Name: pulumi.String("string"),
ResourceGroupName: pulumi.String("string"),
CertificateName: pulumi.String("string"),
Description: pulumi.String("string"),
IsExportable: pulumi.Bool(false),
Thumbprint: pulumi.String("string"),
})
var examplecertificateResourceResourceFromAutomation = new com.pulumi.azurenative.automation.Certificate("examplecertificateResourceResourceFromAutomation", com.pulumi.azurenative.automation.CertificateArgs.builder()
.automationAccountName("string")
.base64Value("string")
.name("string")
.resourceGroupName("string")
.certificateName("string")
.description("string")
.isExportable(false)
.thumbprint("string")
.build());
examplecertificate_resource_resource_from_automation = azure_native.automation.Certificate("examplecertificateResourceResourceFromAutomation",
automation_account_name="string",
base64_value="string",
name="string",
resource_group_name="string",
certificate_name="string",
description="string",
is_exportable=False,
thumbprint="string")
const examplecertificateResourceResourceFromAutomation = new azure_native.automation.Certificate("examplecertificateResourceResourceFromAutomation", {
automationAccountName: "string",
base64Value: "string",
name: "string",
resourceGroupName: "string",
certificateName: "string",
description: "string",
isExportable: false,
thumbprint: "string",
});
type: azure-native:automation:Certificate
properties:
automationAccountName: string
base64Value: string
certificateName: string
description: string
isExportable: false
name: string
resourceGroupName: string
thumbprint: string
Certificate 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 Certificate 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.
- Base64Value
This property is required. string - Gets or sets the base64 encoded value of the certificate.
- Name
This property is required. string - Gets or sets the name of the certificate.
- Resource
Group Name This property is required. Changes to this property will trigger replacement.
- Name of an Azure Resource group.
- Certificate
Name Changes to this property will trigger replacement.
- The parameters supplied to the create or update certificate operation.
- Description string
- Gets or sets the description of the certificate.
- Is
Exportable bool - Gets or sets the is exportable flag of the certificate.
- Thumbprint string
- Gets or sets the thumbprint of the certificate.
- Automation
Account Name This property is required. Changes to this property will trigger replacement.
- The name of the automation account.
- Base64Value
This property is required. string - Gets or sets the base64 encoded value of the certificate.
- Name
This property is required. string - Gets or sets the name of the certificate.
- Resource
Group Name This property is required. Changes to this property will trigger replacement.
- Name of an Azure Resource group.
- Certificate
Name Changes to this property will trigger replacement.
- The parameters supplied to the create or update certificate operation.
- Description string
- Gets or sets the description of the certificate.
- Is
Exportable bool - Gets or sets the is exportable flag of the certificate.
- Thumbprint string
- Gets or sets the thumbprint of the certificate.
- automation
Account Name This property is required. Changes to this property will trigger replacement.
- The name of the automation account.
- base64Value
This property is required. String - Gets or sets the base64 encoded value of the certificate.
- name
This property is required. String - Gets or sets the name of the certificate.
- resource
Group Name This property is required. Changes to this property will trigger replacement.
- Name of an Azure Resource group.
- certificate
Name Changes to this property will trigger replacement.
- The parameters supplied to the create or update certificate operation.
- description String
- Gets or sets the description of the certificate.
- is
Exportable Boolean - Gets or sets the is exportable flag of the certificate.
- thumbprint String
- Gets or sets the thumbprint of the certificate.
- automation
Account Name This property is required. Changes to this property will trigger replacement.
- The name of the automation account.
- base64Value
This property is required. string - Gets or sets the base64 encoded value of the certificate.
- name
This property is required. string - Gets or sets the name of the certificate.
- resource
Group Name This property is required. Changes to this property will trigger replacement.
- Name of an Azure Resource group.
- certificate
Name Changes to this property will trigger replacement.
- The parameters supplied to the create or update certificate operation.
- description string
- Gets or sets the description of the certificate.
- is
Exportable boolean - Gets or sets the is exportable flag of the certificate.
- thumbprint string
- Gets or sets the thumbprint of the certificate.
- automation_
account_ name This property is required. Changes to this property will trigger replacement.
- The name of the automation account.
- base64_
value This property is required. str - Gets or sets the base64 encoded value of the certificate.
- name
This property is required. str - Gets or sets the name of the certificate.
- resource_
group_ name This property is required. Changes to this property will trigger replacement.
- Name of an Azure Resource group.
- certificate_
name Changes to this property will trigger replacement.
- The parameters supplied to the create or update certificate operation.
- description str
- Gets or sets the description of the certificate.
- is_
exportable bool - Gets or sets the is exportable flag of the certificate.
- thumbprint str
- Gets or sets the thumbprint of the certificate.
- automation
Account Name This property is required. Changes to this property will trigger replacement.
- The name of the automation account.
- base64Value
This property is required. String - Gets or sets the base64 encoded value of the certificate.
- name
This property is required. String - Gets or sets the name of the certificate.
- resource
Group Name This property is required. Changes to this property will trigger replacement.
- Name of an Azure Resource group.
- certificate
Name Changes to this property will trigger replacement.
- The parameters supplied to the create or update certificate operation.
- description String
- Gets or sets the description of the certificate.
- is
Exportable Boolean - Gets or sets the is exportable flag of the certificate.
- thumbprint String
- Gets or sets the thumbprint of the certificate.
Outputs
All input properties are implicitly available as output properties. Additionally, the Certificate resource produces the following output properties:
- Azure
Api stringVersion - The Azure API version of the resource.
- Creation
Time string - Gets the creation time.
- Expiry
Time string - Gets the expiry time of the certificate.
- Id string
- The provider-assigned unique ID for this managed resource.
- Last
Modified stringTime - Gets the last modified time.
- Type string
- The type of the resource.
- Azure
Api stringVersion - The Azure API version of the resource.
- Creation
Time string - Gets the creation time.
- Expiry
Time string - Gets the expiry time of the certificate.
- Id string
- The provider-assigned unique ID for this managed resource.
- Last
Modified stringTime - Gets the last modified time.
- Type string
- The type of the resource.
- azure
Api StringVersion - The Azure API version of the resource.
- creation
Time String - Gets the creation time.
- expiry
Time String - Gets the expiry time of the certificate.
- id String
- The provider-assigned unique ID for this managed resource.
- last
Modified StringTime - Gets the last modified time.
- type String
- The type of the resource.
- azure
Api stringVersion - The Azure API version of the resource.
- creation
Time string - Gets the creation time.
- expiry
Time string - Gets the expiry time of the certificate.
- id string
- The provider-assigned unique ID for this managed resource.
- last
Modified stringTime - Gets the last modified time.
- type string
- The type of the resource.
- azure_
api_ strversion - The Azure API version of the resource.
- creation_
time str - Gets the creation time.
- expiry_
time str - Gets the expiry time of the certificate.
- id str
- The provider-assigned unique ID for this managed resource.
- last_
modified_ strtime - Gets the last modified time.
- type str
- The type of the resource.
- azure
Api StringVersion - The Azure API version of the resource.
- creation
Time String - Gets the creation time.
- expiry
Time String - Gets the expiry time of the certificate.
- id String
- The provider-assigned unique ID for this managed resource.
- last
Modified StringTime - Gets the last modified time.
- type String
- The type of the resource.
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:automation:Certificate testCert /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/certificates/{certificateName}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0