Azure Native v1.103.0, Jun 2 23
Azure Native v1.103.0, Jun 2 23
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:
- Profile
Name string Name of the CDN profile which is unique within the resource group.
- Resource
Group stringName Name of the Resource group within the Azure subscription.
- Parameters
Pulumi.
Azure | Pulumi.Native. Cdn. Inputs. Customer Certificate Parameters Args Azure | Pulumi.Native. Cdn. Inputs. Managed Certificate Parameters Args Azure Native. Cdn. Inputs. Url Signing Key Parameters Args object which contains secret parameters
- Secret
Name string Name of the Secret under the profile.
- Profile
Name string Name of the CDN profile which is unique within the resource group.
- Resource
Group stringName Name of the Resource group within the Azure subscription.
- Parameters
Customer
Certificate | ManagedParameters Args Certificate | UrlParameters Args Signing Key Parameters Args object which contains secret parameters
- Secret
Name string Name of the Secret under the profile.
- profile
Name String Name of the CDN profile which is unique within the resource group.
- resource
Group StringName Name of the Resource group within the Azure subscription.
- parameters
Customer
Certificate | ManagedParameters Args Certificate | UrlParameters Args Signing Key Parameters Args object which contains secret parameters
- secret
Name String Name of the Secret under the profile.
- profile
Name string Name of the CDN profile which is unique within the resource group.
- resource
Group stringName Name of the Resource group within the Azure subscription.
- parameters
Customer
Certificate | ManagedParameters Args Certificate | UrlParameters Args Signing Key Parameters Args object which contains secret parameters
- secret
Name 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_ strname Name of the Resource group within the Azure subscription.
- parameters
Customer
Certificate | ManagedParameters Args Certificate | UrlParameters Args Signing Key Parameters Args object which contains secret parameters
- secret_
name str Name of the Secret under the profile.
- profile
Name String Name of the CDN profile which is unique within the resource group.
- resource
Group StringName Name of the Resource group within the Azure subscription.
- parameters Property Map | Property Map | Property Map
object which contains secret parameters
- secret
Name 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:
- Deployment
Status string - Id string
The provider-assigned unique ID for this managed resource.
- Name string
Resource name.
- Provisioning
State string Provisioning status
- System
Data Pulumi.Azure Native. Cdn. Outputs. System Data Response Read only system data
- Type string
Resource type.
- Deployment
Status string - Id string
The provider-assigned unique ID for this managed resource.
- Name string
Resource name.
- Provisioning
State string Provisioning status
- System
Data SystemData Response Read only system data
- Type string
Resource type.
- deployment
Status String - id String
The provider-assigned unique ID for this managed resource.
- name String
Resource name.
- provisioning
State String Provisioning status
- system
Data SystemData Response Read only system data
- type String
Resource type.
- deployment
Status string - id string
The provider-assigned unique ID for this managed resource.
- name string
Resource name.
- provisioning
State string Provisioning status
- system
Data SystemData Response 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 SystemData Response Read only system data
- type str
Resource type.
- deployment
Status String - id String
The provider-assigned unique ID for this managed resource.
- name String
Resource name.
- provisioning
State String Provisioning status
- system
Data Property Map Read only system data
- type String
Resource type.
Supporting Types
CustomerCertificateParameters
- Secret
Source Pulumi.Azure Native. Cdn. Inputs. Resource Reference Resource reference to the KV secret
- string
Certificate issuing authority.
- Secret
Version string Version of the secret to be used
- Subject
Alternative List<string>Names The list of SANs.
- Use
Latest boolVersion Whether to use the latest version for the certificate
- Secret
Source ResourceReference Resource reference to the KV secret
- string
Certificate issuing authority.
- Secret
Version string Version of the secret to be used
- Subject
Alternative []stringNames The list of SANs.
- Use
Latest boolVersion Whether to use the latest version for the certificate
- secret
Source ResourceReference Resource reference to the KV secret
- String
Certificate issuing authority.
- secret
Version String Version of the secret to be used
- subject
Alternative List<String>Names The list of SANs.
- use
Latest BooleanVersion Whether to use the latest version for the certificate
- secret
Source ResourceReference Resource reference to the KV secret
- string
Certificate issuing authority.
- secret
Version string Version of the secret to be used
- subject
Alternative string[]Names The list of SANs.
- use
Latest booleanVersion Whether to use the latest version for the certificate
- secret_
source ResourceReference Resource reference to the KV secret
- str
Certificate issuing authority.
- secret_
version str Version of the secret to be used
- subject_
alternative_ Sequence[str]names The list of SANs.
- use_
latest_ boolversion Whether to use the latest version for the certificate
- secret
Source Property Map Resource reference to the KV secret
- String
Certificate issuing authority.
- secret
Version String Version of the secret to be used
- subject
Alternative List<String>Names The list of SANs.
- use
Latest BooleanVersion Whether to use the latest version for the certificate
CustomerCertificateParametersResponse
- Secret
Source Pulumi.Azure Native. Cdn. Inputs. Resource Reference Response Resource reference to the KV secret
- string
Certificate issuing authority.
- Secret
Version string Version of the secret to be used
- Subject
Alternative List<string>Names The list of SANs.
- Use
Latest boolVersion Whether to use the latest version for the certificate
- Secret
Source ResourceReference Response Resource reference to the KV secret
- string
Certificate issuing authority.
- Secret
Version string Version of the secret to be used
- Subject
Alternative []stringNames The list of SANs.
- Use
Latest boolVersion Whether to use the latest version for the certificate
- secret
Source ResourceReference Response Resource reference to the KV secret
- String
Certificate issuing authority.
- secret
Version String Version of the secret to be used
- subject
Alternative List<String>Names The list of SANs.
- use
Latest BooleanVersion Whether to use the latest version for the certificate
- secret
Source ResourceReference Response Resource reference to the KV secret
- string
Certificate issuing authority.
- secret
Version string Version of the secret to be used
- subject
Alternative string[]Names The list of SANs.
- use
Latest booleanVersion Whether to use the latest version for the certificate
- secret_
source ResourceReference Response Resource reference to the KV secret
- str
Certificate issuing authority.
- secret_
version str Version of the secret to be used
- subject_
alternative_ Sequence[str]names The list of SANs.
- use_
latest_ boolversion Whether to use the latest version for the certificate
- secret
Source Property Map Resource reference to the KV secret
- String
Certificate issuing authority.
- secret
Version String Version of the secret to be used
- subject
Alternative List<String>Names The list of SANs.
- use
Latest BooleanVersion 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
- Created
At string The timestamp of resource creation (UTC)
- Created
By string An identifier for 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 An identifier for 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 An identifier for 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 An identifier for 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 An identifier for 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 An identifier for 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 An identifier for 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 An identifier for 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 An identifier for 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 An identifier for 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 An identifier for 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 An identifier for the identity that last modified the resource
- last
Modified StringBy Type The type of identity that last modified the resource
UrlSigningKeyParameters
- Key
Id string 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 Pulumi.Azure Native. Cdn. Inputs. Resource Reference Resource reference to the KV secret
- Secret
Version string Version of the secret to be used
- Key
Id string 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 string Version of the secret to be used
- key
Id String 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 String Version of the secret to be used
- key
Id string 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 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
- key
Id String 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 Property Map Resource reference to the KV secret
- secret
Version String Version of the secret to be used
UrlSigningKeyParametersResponse
- Key
Id string 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 Pulumi.Azure Native. Cdn. Inputs. Resource Reference Response Resource reference to the KV secret
- Secret
Version string Version of the secret to be used
- Key
Id string 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 Response Resource reference to the KV secret
- Secret
Version string Version of the secret to be used
- key
Id String 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 Response Resource reference to the KV secret
- secret
Version String Version of the secret to be used
- key
Id string 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 Response Resource reference to the KV secret
- secret
Version 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 Response Resource reference to the KV secret
- secret_
version str Version of the secret to be used
- key
Id String 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 Property Map Resource reference to the KV secret
- secret
Version 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