Show / Hide Table of Contents

Class Secret

Manages a Key Vault Secret.

Inheritance
System.Object
Resource
CustomResource
Secret
Inherited Members
CustomResource.Id
Resource.GetResourceType()
Resource.GetResourceName()
Resource.Urn
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.Azure.KeyVault
Assembly: Pulumi.Azure.dll
Syntax
public class Secret : CustomResource

Constructors

View Source

Secret(String, SecretArgs, CustomResourceOptions)

Create a Secret resource with the given unique name, arguments, and options.

Declaration
public Secret(string name, SecretArgs args, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resource

SecretArgs args

The arguments used to populate this resource's properties

CustomResourceOptions options

A bag of options that control this resource's behavior

Properties

View Source

ContentType

Specifies the content type for the Key Vault Secret.

Declaration
public Output<string> ContentType { get; }
Property Value
Type Description
Output<System.String>
View Source

ExpirationDate

Expiration UTC datetime (Y-m-d'T'H:M:S'Z').

Declaration
public Output<string> ExpirationDate { get; }
Property Value
Type Description
Output<System.String>
View Source

KeyVaultId

The ID of the Key Vault where the Secret should be created.

Declaration
public Output<string> KeyVaultId { get; }
Property Value
Type Description
Output<System.String>
View Source

Name

Specifies the name of the Key Vault Secret. Changing this forces a new resource to be created.

Declaration
public Output<string> Name { get; }
Property Value
Type Description
Output<System.String>
View Source

NotBeforeDate

Key not usable before the provided UTC datetime (Y-m-d'T'H:M:S'Z').

Declaration
public Output<string> NotBeforeDate { get; }
Property Value
Type Description
Output<System.String>
View Source

Tags

A mapping of tags to assign to the resource.

Declaration
public Output<ImmutableDictionary<string, string>> Tags { get; }
Property Value
Type Description
Output<System.Collections.Immutable.ImmutableDictionary<System.String, System.String>>
View Source

Value

Specifies the value of the Key Vault Secret.

Declaration
public Output<string> Value { get; }
Property Value
Type Description
Output<System.String>
View Source

Version

The current version of the Key Vault Secret.

Declaration
public Output<string> Version { get; }
Property Value
Type Description
Output<System.String>

Methods

View Source

Get(String, Input<String>, SecretState, CustomResourceOptions)

Get an existing Secret resource's state with the given name, ID, and optional extra properties used to qualify the lookup.

Declaration
public static Secret Get(string name, Input<string> id, SecretState state = null, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resulting resource.

Input<System.String> id

The unique provider ID of the resource to lookup.

SecretState state

Any extra arguments used during the lookup.

CustomResourceOptions options

A bag of options that control this resource's behavior

Returns
Type Description
Secret
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.