azure-native.automation.Certificate

Definition of the certificate. API Version: 2019-06-01.

Example Usage

Create or update a certificate

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

return await Deployment.RunAsync(() => 
{
    var certificate = new AzureNative.Automation.Certificate("certificate", new()
    {
        AutomationAccountName = "myAutomationAccount18",
        Base64Value = "base 64 value of cert",
        CertificateName = "testCert",
        Description = "Sample Cert",
        IsExportable = false,
        Name = "testCert",
        ResourceGroupName = "rg",
        Thumbprint = "thumbprint of cert",
    });

});
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.NewCertificate(ctx, "certificate", &automation.CertificateArgs{
			AutomationAccountName: pulumi.String("myAutomationAccount18"),
			Base64Value:           pulumi.String("base 64 value of cert"),
			CertificateName:       pulumi.String("testCert"),
			Description:           pulumi.String("Sample Cert"),
			IsExportable:          pulumi.Bool(false),
			Name:                  pulumi.String("testCert"),
			ResourceGroupName:     pulumi.String("rg"),
			Thumbprint:            pulumi.String("thumbprint of cert"),
		})
		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.Certificate;
import com.pulumi.azurenative.automation.CertificateArgs;
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 certificate = new Certificate("certificate", CertificateArgs.builder()        
            .automationAccountName("myAutomationAccount18")
            .base64Value("base 64 value of cert")
            .certificateName("testCert")
            .description("Sample Cert")
            .isExportable(false)
            .name("testCert")
            .resourceGroupName("rg")
            .thumbprint("thumbprint of cert")
            .build());

    }
}
import pulumi
import pulumi_azure_native as azure_native

certificate = azure_native.automation.Certificate("certificate",
    automation_account_name="myAutomationAccount18",
    base64_value="base 64 value of cert",
    certificate_name="testCert",
    description="Sample Cert",
    is_exportable=False,
    name="testCert",
    resource_group_name="rg",
    thumbprint="thumbprint of cert")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";

const certificate = new azure_native.automation.Certificate("certificate", {
    automationAccountName: "myAutomationAccount18",
    base64Value: "base 64 value of cert",
    certificateName: "testCert",
    description: "Sample Cert",
    isExportable: false,
    name: "testCert",
    resourceGroupName: "rg",
    thumbprint: "thumbprint of cert",
});
resources:
  certificate:
    type: azure-native:automation:Certificate
    properties:
      automationAccountName: myAutomationAccount18
      base64Value: base 64 value of cert
      certificateName: testCert
      description: Sample Cert
      isExportable: false
      name: testCert
      resourceGroupName: rg
      thumbprint: thumbprint of cert

Create Certificate Resource

new Certificate(name: string, args: CertificateArgs, opts?: CustomResourceOptions);
@overload
def Certificate(resource_name: str,
                opts: Optional[ResourceOptions] = None,
                automation_account_name: Optional[str] = None,
                base64_value: Optional[str] = None,
                certificate_name: Optional[str] = None,
                description: Optional[str] = None,
                is_exportable: Optional[bool] = None,
                name: Optional[str] = None,
                resource_group_name: Optional[str] = None,
                thumbprint: Optional[str] = None)
@overload
def Certificate(resource_name: str,
                args: CertificateArgs,
                opts: Optional[ResourceOptions] = 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.

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

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

The Certificate resource accepts the following input properties:

AutomationAccountName string

The name of the automation account.

Base64Value string

Gets or sets the base64 encoded value of the certificate.

Name string

Gets or sets the name of the certificate.

ResourceGroupName string

Name of an Azure Resource group.

CertificateName string

The parameters supplied to the create or update certificate operation.

Description string

Gets or sets the description of the certificate.

IsExportable bool

Gets or sets the is exportable flag of the certificate.

Thumbprint string

Gets or sets the thumbprint of the certificate.

AutomationAccountName string

The name of the automation account.

Base64Value string

Gets or sets the base64 encoded value of the certificate.

Name string

Gets or sets the name of the certificate.

ResourceGroupName string

Name of an Azure Resource group.

CertificateName string

The parameters supplied to the create or update certificate operation.

Description string

Gets or sets the description of the certificate.

IsExportable bool

Gets or sets the is exportable flag of the certificate.

Thumbprint string

Gets or sets the thumbprint of the certificate.

automationAccountName String

The name of the automation account.

base64Value String

Gets or sets the base64 encoded value of the certificate.

name String

Gets or sets the name of the certificate.

resourceGroupName String

Name of an Azure Resource group.

certificateName String

The parameters supplied to the create or update certificate operation.

description String

Gets or sets the description of the certificate.

isExportable Boolean

Gets or sets the is exportable flag of the certificate.

thumbprint String

Gets or sets the thumbprint of the certificate.

automationAccountName string

The name of the automation account.

base64Value string

Gets or sets the base64 encoded value of the certificate.

name string

Gets or sets the name of the certificate.

resourceGroupName string

Name of an Azure Resource group.

certificateName string

The parameters supplied to the create or update certificate operation.

description string

Gets or sets the description of the certificate.

isExportable boolean

Gets or sets the is exportable flag of the certificate.

thumbprint string

Gets or sets the thumbprint of the certificate.

automation_account_name str

The name of the automation account.

base64_value str

Gets or sets the base64 encoded value of the certificate.

name str

Gets or sets the name of the certificate.

resource_group_name str

Name of an Azure Resource group.

certificate_name str

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.

automationAccountName String

The name of the automation account.

base64Value String

Gets or sets the base64 encoded value of the certificate.

name String

Gets or sets the name of the certificate.

resourceGroupName String

Name of an Azure Resource group.

certificateName String

The parameters supplied to the create or update certificate operation.

description String

Gets or sets the description of the certificate.

isExportable 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:

CreationTime string

Gets the creation time.

ExpiryTime string

Gets the expiry time of the certificate.

Id string

The provider-assigned unique ID for this managed resource.

LastModifiedTime string

Gets the last modified time.

Type string

The type of the resource.

CreationTime string

Gets the creation time.

ExpiryTime string

Gets the expiry time of the certificate.

Id string

The provider-assigned unique ID for this managed resource.

LastModifiedTime string

Gets the last modified time.

Type string

The type of the resource.

creationTime String

Gets the creation time.

expiryTime String

Gets the expiry time of the certificate.

id String

The provider-assigned unique ID for this managed resource.

lastModifiedTime String

Gets the last modified time.

type String

The type of the resource.

creationTime string

Gets the creation time.

expiryTime string

Gets the expiry time of the certificate.

id string

The provider-assigned unique ID for this managed resource.

lastModifiedTime string

Gets the last modified time.

type string

The type 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_time str

Gets the last modified time.

type str

The type of the resource.

creationTime String

Gets the creation time.

expiryTime String

Gets the expiry time of the certificate.

id String

The provider-assigned unique ID for this managed resource.

lastModifiedTime String

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/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/certificates/testCert 

Package Details

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