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",
});
}
}
Coming soon!
import pulumi
import pulumi_newrelic as newrelic
foo = newrelic.synthetics.SecureCredential("foo",
description="My description",
key="MY_KEY",
value="My value")import * as pulumi from "@pulumi/pulumi";
import * as newrelic from "@pulumi/newrelic";
const foo = new newrelic.synthetics.SecureCredential("foo", {
description: "My description",
key: "MY_KEY",
value: "My value",
});Create a SecureCredential Resource
new SecureCredential(name: string, args: SecureCredentialArgs, opts?: CustomResourceOptions);def SecureCredential(resource_name, opts=None, created_at=None, description=None, key=None, last_updated=None, value=None, __props__=None);func NewSecureCredential(ctx *Context, name string, args SecureCredentialArgs, opts ...ResourceOption) (*SecureCredential, error)public SecureCredential(string name, SecureCredentialArgs args, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args SecureCredentialArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- opts ResourceOptions
- A bag of options that control this resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args SecureCredentialArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SecureCredentialArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
SecureCredential Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The SecureCredential resource accepts the following input properties:
- Key string
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.
- Value string
The secure credential’s value.
- Created
At string The time the secure credential was created.
- Description string
The secure credential’s description.
- Last
Updated string The time the secure credential was last updated.
- Key string
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.
- Value string
The secure credential’s value.
- Created
At string The time the secure credential was created.
- Description string
The secure credential’s description.
- Last
Updated string The time the secure credential was last updated.
- key string
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.
- value string
The secure credential’s value.
- created
At string The time the secure credential was created.
- description string
The secure credential’s description.
- last
Updated string The time the secure credential was last updated.
- key str
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.
- value str
The secure credential’s value.
- created_
at str The time the secure credential was created.
- description str
The secure credential’s description.
- last_
updated str The time the secure credential was last updated.
Outputs
All input properties are implicitly available as output properties. Additionally, the SecureCredential resource produces the following output properties:
Look up an Existing SecureCredential Resource
Get an existing SecureCredential resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: SecureCredentialState, opts?: CustomResourceOptions): SecureCredentialstatic get(resource_name, id, opts=None, created_at=None, description=None, key=None, last_updated=None, value=None, __props__=None);func GetSecureCredential(ctx *Context, name string, id IDInput, state *SecureCredentialState, opts ...ResourceOption) (*SecureCredential, error)public static SecureCredential Get(string name, Input<string> id, SecureCredentialState? state, CustomResourceOptions? opts = null)- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
The following state arguments are supported:
- Created
At string The time the secure credential was created.
- Description string
The secure credential’s description.
- Key string
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.
- Last
Updated string The time the secure credential was last updated.
- Value string
The secure credential’s value.
- Created
At string The time the secure credential was created.
- Description string
The secure credential’s description.
- Key string
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.
- Last
Updated string The time the secure credential was last updated.
- Value string
The secure credential’s value.
- created
At string The time the secure credential was created.
- description string
The secure credential’s description.
- key string
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.
- last
Updated string The time the secure credential was last updated.
- value string
The secure credential’s value.
- created_
at str The time the secure credential was created.
- description str
The secure credential’s description.
- key str
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.
- last_
updated str The time the secure credential was last updated.
- value str
The secure credential’s value.
Package Details
- Repository
- https://github.com/pulumi/pulumi-newrelic
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
newrelicTerraform Provider.