akeyless.UscSecret
Explore with Pulumi AI
Universal Secrets Connector secret resource
Create UscSecret Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new UscSecret(name: string, args: UscSecretArgs, opts?: CustomResourceOptions);
@overload
def UscSecret(resource_name: str,
args: UscSecretArgs,
opts: Optional[ResourceOptions] = None)
@overload
def UscSecret(resource_name: str,
opts: Optional[ResourceOptions] = None,
secret_name: Optional[str] = None,
usc_name: Optional[str] = None,
binary_value: Optional[bool] = None,
description: Optional[str] = None,
namespace: Optional[str] = None,
tags: Optional[Sequence[str]] = None,
usc_secret_id: Optional[str] = None,
value: Optional[str] = None,
version_id: Optional[str] = None)
func NewUscSecret(ctx *Context, name string, args UscSecretArgs, opts ...ResourceOption) (*UscSecret, error)
public UscSecret(string name, UscSecretArgs args, CustomResourceOptions? opts = null)
public UscSecret(String name, UscSecretArgs args)
public UscSecret(String name, UscSecretArgs args, CustomResourceOptions options)
type: akeyless:UscSecret
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args UscSecretArgs
- 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 UscSecretArgs
- 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 UscSecretArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args UscSecretArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args UscSecretArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var uscSecretResource = new Akeyless.UscSecret("uscSecretResource", new()
{
SecretName = "string",
UscName = "string",
BinaryValue = false,
Description = "string",
Namespace = "string",
Tags = new[]
{
"string",
},
UscSecretId = "string",
Value = "string",
VersionId = "string",
});
example, err := akeyless.NewUscSecret(ctx, "uscSecretResource", &akeyless.UscSecretArgs{
SecretName: pulumi.String("string"),
UscName: pulumi.String("string"),
BinaryValue: pulumi.Bool(false),
Description: pulumi.String("string"),
Namespace: pulumi.String("string"),
Tags: pulumi.StringArray{
pulumi.String("string"),
},
UscSecretId: pulumi.String("string"),
Value: pulumi.String("string"),
VersionId: pulumi.String("string"),
})
var uscSecretResource = new UscSecret("uscSecretResource", UscSecretArgs.builder()
.secretName("string")
.uscName("string")
.binaryValue(false)
.description("string")
.namespace("string")
.tags("string")
.uscSecretId("string")
.value("string")
.versionId("string")
.build());
usc_secret_resource = akeyless.UscSecret("uscSecretResource",
secret_name="string",
usc_name="string",
binary_value=False,
description="string",
namespace="string",
tags=["string"],
usc_secret_id="string",
value="string",
version_id="string")
const uscSecretResource = new akeyless.UscSecret("uscSecretResource", {
secretName: "string",
uscName: "string",
binaryValue: false,
description: "string",
namespace: "string",
tags: ["string"],
uscSecretId: "string",
value: "string",
versionId: "string",
});
type: akeyless:UscSecret
properties:
binaryValue: false
description: string
namespace: string
secretName: string
tags:
- string
uscName: string
uscSecretId: string
value: string
versionId: string
UscSecret Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The UscSecret resource accepts the following input properties:
- Secret
Name string - Name for the new universal secrets
- Usc
Name string - Name of the Universal Secrets Connector item
- Binary
Value bool - Use this option if the universal secrets value is a base64 encoded binary. (relevant for aws/azure/gcp/k8s targets)
- Description string
- Description of the universal secret (relevant for aws/hashi target)
- Namespace string
- The namespace (relevant for Hashi vault target)
- List<string>
- Tags for the universal secrets
- Usc
Secret stringId - The ID of this resource.
- Value string
- Value of the universal secrets item, either text or base64 encoded binary
- Version
Id string - Version ID of the secret (if not specified, will retrieve the last version)
- Secret
Name string - Name for the new universal secrets
- Usc
Name string - Name of the Universal Secrets Connector item
- Binary
Value bool - Use this option if the universal secrets value is a base64 encoded binary. (relevant for aws/azure/gcp/k8s targets)
- Description string
- Description of the universal secret (relevant for aws/hashi target)
- Namespace string
- The namespace (relevant for Hashi vault target)
- []string
- Tags for the universal secrets
- Usc
Secret stringId - The ID of this resource.
- Value string
- Value of the universal secrets item, either text or base64 encoded binary
- Version
Id string - Version ID of the secret (if not specified, will retrieve the last version)
- secret
Name String - Name for the new universal secrets
- usc
Name String - Name of the Universal Secrets Connector item
- binary
Value Boolean - Use this option if the universal secrets value is a base64 encoded binary. (relevant for aws/azure/gcp/k8s targets)
- description String
- Description of the universal secret (relevant for aws/hashi target)
- namespace String
- The namespace (relevant for Hashi vault target)
- List<String>
- Tags for the universal secrets
- usc
Secret StringId - The ID of this resource.
- value String
- Value of the universal secrets item, either text or base64 encoded binary
- version
Id String - Version ID of the secret (if not specified, will retrieve the last version)
- secret
Name string - Name for the new universal secrets
- usc
Name string - Name of the Universal Secrets Connector item
- binary
Value boolean - Use this option if the universal secrets value is a base64 encoded binary. (relevant for aws/azure/gcp/k8s targets)
- description string
- Description of the universal secret (relevant for aws/hashi target)
- namespace string
- The namespace (relevant for Hashi vault target)
- string[]
- Tags for the universal secrets
- usc
Secret stringId - The ID of this resource.
- value string
- Value of the universal secrets item, either text or base64 encoded binary
- version
Id string - Version ID of the secret (if not specified, will retrieve the last version)
- secret_
name str - Name for the new universal secrets
- usc_
name str - Name of the Universal Secrets Connector item
- binary_
value bool - Use this option if the universal secrets value is a base64 encoded binary. (relevant for aws/azure/gcp/k8s targets)
- description str
- Description of the universal secret (relevant for aws/hashi target)
- namespace str
- The namespace (relevant for Hashi vault target)
- Sequence[str]
- Tags for the universal secrets
- usc_
secret_ strid - The ID of this resource.
- value str
- Value of the universal secrets item, either text or base64 encoded binary
- version_
id str - Version ID of the secret (if not specified, will retrieve the last version)
- secret
Name String - Name for the new universal secrets
- usc
Name String - Name of the Universal Secrets Connector item
- binary
Value Boolean - Use this option if the universal secrets value is a base64 encoded binary. (relevant for aws/azure/gcp/k8s targets)
- description String
- Description of the universal secret (relevant for aws/hashi target)
- namespace String
- The namespace (relevant for Hashi vault target)
- List<String>
- Tags for the universal secrets
- usc
Secret StringId - The ID of this resource.
- value String
- Value of the universal secrets item, either text or base64 encoded binary
- version
Id String - Version ID of the secret (if not specified, will retrieve the last version)
Outputs
All input properties are implicitly available as output properties. Additionally, the UscSecret resource produces the following output properties:
Look up Existing UscSecret Resource
Get an existing UscSecret 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?: UscSecretState, opts?: CustomResourceOptions): UscSecret
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
binary_value: Optional[bool] = None,
description: Optional[str] = None,
namespace: Optional[str] = None,
secret_id: Optional[str] = None,
secret_name: Optional[str] = None,
tags: Optional[Sequence[str]] = None,
usc_name: Optional[str] = None,
usc_secret_id: Optional[str] = None,
value: Optional[str] = None,
version_id: Optional[str] = None) -> UscSecret
func GetUscSecret(ctx *Context, name string, id IDInput, state *UscSecretState, opts ...ResourceOption) (*UscSecret, error)
public static UscSecret Get(string name, Input<string> id, UscSecretState? state, CustomResourceOptions? opts = null)
public static UscSecret get(String name, Output<String> id, UscSecretState state, CustomResourceOptions options)
resources: _: type: akeyless:UscSecret get: id: ${id}
- 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.
- 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.
- Binary
Value bool - Use this option if the universal secrets value is a base64 encoded binary. (relevant for aws/azure/gcp/k8s targets)
- Description string
- Description of the universal secret (relevant for aws/hashi target)
- Namespace string
- The namespace (relevant for Hashi vault target)
- Secret
Id string - The ID of the universal secrets item
- Secret
Name string - Name for the new universal secrets
- List<string>
- Tags for the universal secrets
- Usc
Name string - Name of the Universal Secrets Connector item
- Usc
Secret stringId - The ID of this resource.
- Value string
- Value of the universal secrets item, either text or base64 encoded binary
- Version
Id string - Version ID of the secret (if not specified, will retrieve the last version)
- Binary
Value bool - Use this option if the universal secrets value is a base64 encoded binary. (relevant for aws/azure/gcp/k8s targets)
- Description string
- Description of the universal secret (relevant for aws/hashi target)
- Namespace string
- The namespace (relevant for Hashi vault target)
- Secret
Id string - The ID of the universal secrets item
- Secret
Name string - Name for the new universal secrets
- []string
- Tags for the universal secrets
- Usc
Name string - Name of the Universal Secrets Connector item
- Usc
Secret stringId - The ID of this resource.
- Value string
- Value of the universal secrets item, either text or base64 encoded binary
- Version
Id string - Version ID of the secret (if not specified, will retrieve the last version)
- binary
Value Boolean - Use this option if the universal secrets value is a base64 encoded binary. (relevant for aws/azure/gcp/k8s targets)
- description String
- Description of the universal secret (relevant for aws/hashi target)
- namespace String
- The namespace (relevant for Hashi vault target)
- secret
Id String - The ID of the universal secrets item
- secret
Name String - Name for the new universal secrets
- List<String>
- Tags for the universal secrets
- usc
Name String - Name of the Universal Secrets Connector item
- usc
Secret StringId - The ID of this resource.
- value String
- Value of the universal secrets item, either text or base64 encoded binary
- version
Id String - Version ID of the secret (if not specified, will retrieve the last version)
- binary
Value boolean - Use this option if the universal secrets value is a base64 encoded binary. (relevant for aws/azure/gcp/k8s targets)
- description string
- Description of the universal secret (relevant for aws/hashi target)
- namespace string
- The namespace (relevant for Hashi vault target)
- secret
Id string - The ID of the universal secrets item
- secret
Name string - Name for the new universal secrets
- string[]
- Tags for the universal secrets
- usc
Name string - Name of the Universal Secrets Connector item
- usc
Secret stringId - The ID of this resource.
- value string
- Value of the universal secrets item, either text or base64 encoded binary
- version
Id string - Version ID of the secret (if not specified, will retrieve the last version)
- binary_
value bool - Use this option if the universal secrets value is a base64 encoded binary. (relevant for aws/azure/gcp/k8s targets)
- description str
- Description of the universal secret (relevant for aws/hashi target)
- namespace str
- The namespace (relevant for Hashi vault target)
- secret_
id str - The ID of the universal secrets item
- secret_
name str - Name for the new universal secrets
- Sequence[str]
- Tags for the universal secrets
- usc_
name str - Name of the Universal Secrets Connector item
- usc_
secret_ strid - The ID of this resource.
- value str
- Value of the universal secrets item, either text or base64 encoded binary
- version_
id str - Version ID of the secret (if not specified, will retrieve the last version)
- binary
Value Boolean - Use this option if the universal secrets value is a base64 encoded binary. (relevant for aws/azure/gcp/k8s targets)
- description String
- Description of the universal secret (relevant for aws/hashi target)
- namespace String
- The namespace (relevant for Hashi vault target)
- secret
Id String - The ID of the universal secrets item
- secret
Name String - Name for the new universal secrets
- List<String>
- Tags for the universal secrets
- usc
Name String - Name of the Universal Secrets Connector item
- usc
Secret StringId - The ID of this resource.
- value String
- Value of the universal secrets item, either text or base64 encoded binary
- version
Id String - Version ID of the secret (if not specified, will retrieve the last version)
Package Details
- Repository
- akeyless akeyless-community/terraform-provider-akeyless
- License
- Notes
- This Pulumi package is based on the
akeyless
Terraform Provider.