azure-native.cdn.Secret

Explore with Pulumi AI

Friendly Secret name mapping to the any Secret or secret related information. API Version: 2020-09-01.

Example Usage

Secrets_Create

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

return await Deployment.RunAsync(() => 
{
    var secret = new AzureNative.Cdn.Secret("secret", new()
    {
        Parameters = new AzureNative.Cdn.Inputs.CustomerCertificateParametersArgs
        {
            CertificateAuthority = "Symantec",
            SecretSource = new AzureNative.Cdn.Inputs.ResourceReferenceArgs
            {
                Id = "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.KeyVault/vault/kvName/certificate/certName",
            },
            SecretVersion = "67c452f83c804aed80aa3a21e523c226",
            SubjectAlternativeNames = new[]
            {
                "foo.contoso.com",
                "www3.foo.contoso.com",
            },
            Type = "CustomerCertificate",
            UseLatestVersion = false,
        },
        ProfileName = "profile1",
        ResourceGroupName = "RG",
        SecretName = "secret1",
    });

});
package main

import (
	cdn "github.com/pulumi/pulumi-azure-native-sdk/cdn"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := cdn.NewSecret(ctx, "secret", &cdn.SecretArgs{
			Parameters: cdn.CustomerCertificateParameters{
				CertificateAuthority: "Symantec",
				SecretSource: cdn.ResourceReference{
					Id: "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.KeyVault/vault/kvName/certificate/certName",
				},
				SecretVersion: "67c452f83c804aed80aa3a21e523c226",
				SubjectAlternativeNames: []string{
					"foo.contoso.com",
					"www3.foo.contoso.com",
				},
				Type:             "CustomerCertificate",
				UseLatestVersion: false,
			},
			ProfileName:       pulumi.String("profile1"),
			ResourceGroupName: pulumi.String("RG"),
			SecretName:        pulumi.String("secret1"),
		})
		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.cdn.Secret;
import com.pulumi.azurenative.cdn.SecretArgs;
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 secret = new Secret("secret", SecretArgs.builder()        
            .parameters(Map.ofEntries(
                Map.entry("certificateAuthority", "Symantec"),
                Map.entry("secretSource", Map.of("id", "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.KeyVault/vault/kvName/certificate/certName")),
                Map.entry("secretVersion", "67c452f83c804aed80aa3a21e523c226"),
                Map.entry("subjectAlternativeNames",                 
                    "foo.contoso.com",
                    "www3.foo.contoso.com"),
                Map.entry("type", "CustomerCertificate"),
                Map.entry("useLatestVersion", false)
            ))
            .profileName("profile1")
            .resourceGroupName("RG")
            .secretName("secret1")
            .build());

    }
}
import pulumi
import pulumi_azure_native as azure_native

secret = azure_native.cdn.Secret("secret",
    parameters=azure_native.cdn.CustomerCertificateParametersArgs(
        certificate_authority="Symantec",
        secret_source=azure_native.cdn.ResourceReferenceArgs(
            id="/subscriptions/subid/resourcegroups/RG/providers/Microsoft.KeyVault/vault/kvName/certificate/certName",
        ),
        secret_version="67c452f83c804aed80aa3a21e523c226",
        subject_alternative_names=[
            "foo.contoso.com",
            "www3.foo.contoso.com",
        ],
        type="CustomerCertificate",
        use_latest_version=False,
    ),
    profile_name="profile1",
    resource_group_name="RG",
    secret_name="secret1")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";

const secret = new azure_native.cdn.Secret("secret", {
    parameters: {
        certificateAuthority: "Symantec",
        secretSource: {
            id: "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.KeyVault/vault/kvName/certificate/certName",
        },
        secretVersion: "67c452f83c804aed80aa3a21e523c226",
        subjectAlternativeNames: [
            "foo.contoso.com",
            "www3.foo.contoso.com",
        ],
        type: "CustomerCertificate",
        useLatestVersion: false,
    },
    profileName: "profile1",
    resourceGroupName: "RG",
    secretName: "secret1",
});
resources:
  secret:
    type: azure-native:cdn:Secret
    properties:
      parameters:
        certificateAuthority: Symantec
        secretSource:
          id: /subscriptions/subid/resourcegroups/RG/providers/Microsoft.KeyVault/vault/kvName/certificate/certName
        secretVersion: 67c452f83c804aed80aa3a21e523c226
        subjectAlternativeNames:
          - foo.contoso.com
          - www3.foo.contoso.com
        type: CustomerCertificate
        useLatestVersion: false
      profileName: profile1
      resourceGroupName: RG
      secretName: secret1

Create Secret Resource

new Secret(name: string, args: SecretArgs, opts?: CustomResourceOptions);
@overload
def Secret(resource_name: str,
           opts: Optional[ResourceOptions] = None,
           parameters: Optional[Union[CustomerCertificateParametersArgs, ManagedCertificateParametersArgs, UrlSigningKeyParametersArgs]] = None,
           profile_name: Optional[str] = None,
           resource_group_name: Optional[str] = None,
           secret_name: Optional[str] = None)
@overload
def Secret(resource_name: str,
           args: SecretArgs,
           opts: Optional[ResourceOptions] = None)
func NewSecret(ctx *Context, name string, args SecretArgs, opts ...ResourceOption) (*Secret, error)
public Secret(string name, SecretArgs args, CustomResourceOptions? opts = null)
public Secret(String name, SecretArgs args)
public Secret(String name, SecretArgs args, CustomResourceOptions options)
type: azure-native:cdn:Secret
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

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

Secret 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 Secret resource accepts the following input properties:

ProfileName string

Name of the CDN profile which is unique within the resource group.

ResourceGroupName string

Name of the Resource group within the Azure subscription.

Parameters Pulumi.AzureNative.Cdn.Inputs.CustomerCertificateParametersArgs | Pulumi.AzureNative.Cdn.Inputs.ManagedCertificateParametersArgs | Pulumi.AzureNative.Cdn.Inputs.UrlSigningKeyParametersArgs

object which contains secret parameters

SecretName string

Name of the Secret under the profile.

ProfileName string

Name of the CDN profile which is unique within the resource group.

ResourceGroupName string

Name of the Resource group within the Azure subscription.

Parameters CustomerCertificateParametersArgs | ManagedCertificateParametersArgs | UrlSigningKeyParametersArgs

object which contains secret parameters

SecretName string

Name of the Secret under the profile.

profileName String

Name of the CDN profile which is unique within the resource group.

resourceGroupName String

Name of the Resource group within the Azure subscription.

parameters CustomerCertificateParametersArgs | ManagedCertificateParametersArgs | UrlSigningKeyParametersArgs

object which contains secret parameters

secretName String

Name of the Secret under the profile.

profileName string

Name of the CDN profile which is unique within the resource group.

resourceGroupName string

Name of the Resource group within the Azure subscription.

parameters CustomerCertificateParametersArgs | ManagedCertificateParametersArgs | UrlSigningKeyParametersArgs

object which contains secret parameters

secretName string

Name of the Secret under the profile.

profile_name str

Name of the CDN profile which is unique within the resource group.

resource_group_name str

Name of the Resource group within the Azure subscription.

parameters CustomerCertificateParametersArgs | ManagedCertificateParametersArgs | UrlSigningKeyParametersArgs

object which contains secret parameters

secret_name str

Name of the Secret under the profile.

profileName String

Name of the CDN profile which is unique within the resource group.

resourceGroupName String

Name of the Resource group within the Azure subscription.

parameters Property Map | Property Map | Property Map

object which contains secret parameters

secretName String

Name of the Secret under the profile.

Outputs

All input properties are implicitly available as output properties. Additionally, the Secret resource produces the following output properties:

DeploymentStatus string
Id string

The provider-assigned unique ID for this managed resource.

Name string

Resource name.

ProvisioningState string

Provisioning status

SystemData Pulumi.AzureNative.Cdn.Outputs.SystemDataResponse

Read only system data

Type string

Resource type.

DeploymentStatus string
Id string

The provider-assigned unique ID for this managed resource.

Name string

Resource name.

ProvisioningState string

Provisioning status

SystemData SystemDataResponse

Read only system data

Type string

Resource type.

deploymentStatus String
id String

The provider-assigned unique ID for this managed resource.

name String

Resource name.

provisioningState String

Provisioning status

systemData SystemDataResponse

Read only system data

type String

Resource type.

deploymentStatus string
id string

The provider-assigned unique ID for this managed resource.

name string

Resource name.

provisioningState string

Provisioning status

systemData SystemDataResponse

Read only system data

type string

Resource type.

deployment_status str
id str

The provider-assigned unique ID for this managed resource.

name str

Resource name.

provisioning_state str

Provisioning status

system_data SystemDataResponse

Read only system data

type str

Resource type.

deploymentStatus String
id String

The provider-assigned unique ID for this managed resource.

name String

Resource name.

provisioningState String

Provisioning status

systemData Property Map

Read only system data

type String

Resource type.

Supporting Types

CustomerCertificateParameters

SecretSource Pulumi.AzureNative.Cdn.Inputs.ResourceReference

Resource reference to the KV secret

CertificateAuthority string

Certificate issuing authority.

SecretVersion string

Version of the secret to be used

SubjectAlternativeNames List<string>

The list of SANs.

UseLatestVersion bool

Whether to use the latest version for the certificate

SecretSource ResourceReference

Resource reference to the KV secret

CertificateAuthority string

Certificate issuing authority.

SecretVersion string

Version of the secret to be used

SubjectAlternativeNames []string

The list of SANs.

UseLatestVersion bool

Whether to use the latest version for the certificate

secretSource ResourceReference

Resource reference to the KV secret

certificateAuthority String

Certificate issuing authority.

secretVersion String

Version of the secret to be used

subjectAlternativeNames List<String>

The list of SANs.

useLatestVersion Boolean

Whether to use the latest version for the certificate

secretSource ResourceReference

Resource reference to the KV secret

certificateAuthority string

Certificate issuing authority.

secretVersion string

Version of the secret to be used

subjectAlternativeNames string[]

The list of SANs.

useLatestVersion boolean

Whether to use the latest version for the certificate

secret_source ResourceReference

Resource reference to the KV secret

certificate_authority str

Certificate issuing authority.

secret_version str

Version of the secret to be used

subject_alternative_names Sequence[str]

The list of SANs.

use_latest_version bool

Whether to use the latest version for the certificate

secretSource Property Map

Resource reference to the KV secret

certificateAuthority String

Certificate issuing authority.

secretVersion String

Version of the secret to be used

subjectAlternativeNames List<String>

The list of SANs.

useLatestVersion Boolean

Whether to use the latest version for the certificate

CustomerCertificateParametersResponse

SecretSource Pulumi.AzureNative.Cdn.Inputs.ResourceReferenceResponse

Resource reference to the KV secret

CertificateAuthority string

Certificate issuing authority.

SecretVersion string

Version of the secret to be used

SubjectAlternativeNames List<string>

The list of SANs.

UseLatestVersion bool

Whether to use the latest version for the certificate

SecretSource ResourceReferenceResponse

Resource reference to the KV secret

CertificateAuthority string

Certificate issuing authority.

SecretVersion string

Version of the secret to be used

SubjectAlternativeNames []string

The list of SANs.

UseLatestVersion bool

Whether to use the latest version for the certificate

secretSource ResourceReferenceResponse

Resource reference to the KV secret

certificateAuthority String

Certificate issuing authority.

secretVersion String

Version of the secret to be used

subjectAlternativeNames List<String>

The list of SANs.

useLatestVersion Boolean

Whether to use the latest version for the certificate

secretSource ResourceReferenceResponse

Resource reference to the KV secret

certificateAuthority string

Certificate issuing authority.

secretVersion string

Version of the secret to be used

subjectAlternativeNames string[]

The list of SANs.

useLatestVersion boolean

Whether to use the latest version for the certificate

secret_source ResourceReferenceResponse

Resource reference to the KV secret

certificate_authority str

Certificate issuing authority.

secret_version str

Version of the secret to be used

subject_alternative_names Sequence[str]

The list of SANs.

use_latest_version bool

Whether to use the latest version for the certificate

secretSource Property Map

Resource reference to the KV secret

certificateAuthority String

Certificate issuing authority.

secretVersion String

Version of the secret to be used

subjectAlternativeNames List<String>

The list of SANs.

useLatestVersion Boolean

Whether to use the latest version for the certificate

ManagedCertificateParameters

ManagedCertificateParametersResponse

ResourceReference

Id string

Resource ID.

Id string

Resource ID.

id String

Resource ID.

id string

Resource ID.

id str

Resource ID.

id String

Resource ID.

ResourceReferenceResponse

Id string

Resource ID.

Id string

Resource ID.

id String

Resource ID.

id string

Resource ID.

id str

Resource ID.

id String

Resource ID.

SystemDataResponse

CreatedAt string

The timestamp of resource creation (UTC)

CreatedBy string

An identifier for the identity that created the resource

CreatedByType string

The type of identity that created the resource

LastModifiedAt string

The timestamp of resource last modification (UTC)

LastModifiedBy string

An identifier for the identity that last modified the resource

LastModifiedByType string

The type of identity that last modified the resource

CreatedAt string

The timestamp of resource creation (UTC)

CreatedBy string

An identifier for the identity that created the resource

CreatedByType string

The type of identity that created the resource

LastModifiedAt string

The timestamp of resource last modification (UTC)

LastModifiedBy string

An identifier for the identity that last modified the resource

LastModifiedByType string

The type of identity that last modified the resource

createdAt String

The timestamp of resource creation (UTC)

createdBy String

An identifier for the identity that created the resource

createdByType String

The type of identity that created the resource

lastModifiedAt String

The timestamp of resource last modification (UTC)

lastModifiedBy String

An identifier for the identity that last modified the resource

lastModifiedByType String

The type of identity that last modified the resource

createdAt string

The timestamp of resource creation (UTC)

createdBy string

An identifier for the identity that created the resource

createdByType string

The type of identity that created the resource

lastModifiedAt string

The timestamp of resource last modification (UTC)

lastModifiedBy string

An identifier for the identity that last modified the resource

lastModifiedByType string

The type of identity that last modified the resource

created_at str

The timestamp of resource creation (UTC)

created_by str

An identifier for the identity that created the resource

created_by_type str

The type of identity that created the resource

last_modified_at str

The timestamp of resource last modification (UTC)

last_modified_by str

An identifier for the identity that last modified the resource

last_modified_by_type str

The type of identity that last modified the resource

createdAt String

The timestamp of resource creation (UTC)

createdBy String

An identifier for the identity that created the resource

createdByType String

The type of identity that created the resource

lastModifiedAt String

The timestamp of resource last modification (UTC)

lastModifiedBy String

An identifier for the identity that last modified the resource

lastModifiedByType String

The type of identity that last modified the resource

UrlSigningKeyParameters

KeyId string

Defines the customer defined key Id. This id will exist in the incoming request to indicate the key used to form the hash.

SecretSource Pulumi.AzureNative.Cdn.Inputs.ResourceReference

Resource reference to the KV secret

SecretVersion string

Version of the secret to be used

KeyId string

Defines the customer defined key Id. This id will exist in the incoming request to indicate the key used to form the hash.

SecretSource ResourceReference

Resource reference to the KV secret

SecretVersion string

Version of the secret to be used

keyId String

Defines the customer defined key Id. This id will exist in the incoming request to indicate the key used to form the hash.

secretSource ResourceReference

Resource reference to the KV secret

secretVersion String

Version of the secret to be used

keyId string

Defines the customer defined key Id. This id will exist in the incoming request to indicate the key used to form the hash.

secretSource ResourceReference

Resource reference to the KV secret

secretVersion string

Version of the secret to be used

key_id str

Defines the customer defined key Id. This id will exist in the incoming request to indicate the key used to form the hash.

secret_source ResourceReference

Resource reference to the KV secret

secret_version str

Version of the secret to be used

keyId String

Defines the customer defined key Id. This id will exist in the incoming request to indicate the key used to form the hash.

secretSource Property Map

Resource reference to the KV secret

secretVersion String

Version of the secret to be used

UrlSigningKeyParametersResponse

KeyId string

Defines the customer defined key Id. This id will exist in the incoming request to indicate the key used to form the hash.

SecretSource Pulumi.AzureNative.Cdn.Inputs.ResourceReferenceResponse

Resource reference to the KV secret

SecretVersion string

Version of the secret to be used

KeyId string

Defines the customer defined key Id. This id will exist in the incoming request to indicate the key used to form the hash.

SecretSource ResourceReferenceResponse

Resource reference to the KV secret

SecretVersion string

Version of the secret to be used

keyId String

Defines the customer defined key Id. This id will exist in the incoming request to indicate the key used to form the hash.

secretSource ResourceReferenceResponse

Resource reference to the KV secret

secretVersion String

Version of the secret to be used

keyId string

Defines the customer defined key Id. This id will exist in the incoming request to indicate the key used to form the hash.

secretSource ResourceReferenceResponse

Resource reference to the KV secret

secretVersion string

Version of the secret to be used

key_id str

Defines the customer defined key Id. This id will exist in the incoming request to indicate the key used to form the hash.

secret_source ResourceReferenceResponse

Resource reference to the KV secret

secret_version str

Version of the secret to be used

keyId String

Defines the customer defined key Id. This id will exist in the incoming request to indicate the key used to form the hash.

secretSource Property Map

Resource reference to the KV secret

secretVersion String

Version of the secret to be used

Import

An existing resource can be imported using its type token, name, and identifier, e.g.

$ pulumi import azure-native:cdn:Secret secret1 /subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1/secrets/secret1 

Package Details

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