Class SecureCredential
Use this resource to create and manage New Relic Synthetic secure credentials.
Example Usage
using Pulumi;
using NewRelic = Pulumi.NewRelic;
class MyStack : Stack
{
public MyStack()
{
var foo = new NewRelic.Synthetics.SecureCredential("foo", new NewRelic.Synthetics.SecureCredentialArgs
{
Description = "My description",
Key = "MY_KEY",
Value = "My value",
});
}
}
Inherited Members
Namespace: Pulumi.NewRelic.Synthetics
Assembly: Pulumi.NewRelic.dll
Syntax
public class SecureCredential : CustomResource
Constructors
View SourceSecureCredential(String, SecureCredentialArgs, CustomResourceOptions)
Create a SecureCredential resource with the given unique name, arguments, and options.
Declaration
public SecureCredential(string name, SecureCredentialArgs args, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| SecureCredentialArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceCreatedAt
The time the secure credential was created.
Declaration
public Output<string> CreatedAt { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Description
The secure credential's description.
Declaration
public Output<string> Description { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Key
The secure credential's key name. Regardless of the case used in the configuration, the provider will provide an upcased key to the underlying API.
Declaration
public Output<string> Key { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
LastUpdated
The time the secure credential was last updated.
Declaration
public Output<string> LastUpdated { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Value
The secure credential's value.
Declaration
public Output<string> Value { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Methods
View SourceGet(String, Input<String>, SecureCredentialState, CustomResourceOptions)
Get an existing SecureCredential resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static SecureCredential Get(string name, Input<string> id, SecureCredentialState 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. |
| SecureCredentialState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| SecureCredential |