1. Packages
  2. Control Plane (cpln)
  3. API Docs
  4. Secret
Control Plane v0.0.56 published on Wednesday, Apr 9, 2025 by pulumiverse

cpln.Secret

Explore with Pulumi AI

Create Secret Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new Secret(name: string, args?: SecretArgs, opts?: CustomResourceOptions);
@overload
def Secret(resource_name: str,
           args: Optional[SecretArgs] = None,
           opts: Optional[ResourceOptions] = None)

@overload
def Secret(resource_name: str,
           opts: Optional[ResourceOptions] = None,
           aws: Optional[SecretAwsArgs] = None,
           azure_connector: Optional[SecretAzureConnectorArgs] = None,
           azure_sdk: Optional[str] = None,
           description: Optional[str] = None,
           dictionary: Optional[Mapping[str, str]] = None,
           docker: Optional[str] = None,
           ecr: Optional[SecretEcrArgs] = None,
           gcp: Optional[str] = None,
           keypair: Optional[SecretKeypairArgs] = None,
           name: Optional[str] = None,
           nats_account: Optional[SecretNatsAccountArgs] = None,
           opaque: Optional[SecretOpaqueArgs] = None,
           tags: Optional[Mapping[str, str]] = None,
           tls: Optional[SecretTlsArgs] = None,
           userpass: Optional[SecretUserpassArgs] = None)
func NewSecret(ctx *Context, name string, args *SecretArgs, opts ...ResourceOption) (*Secret, error)
public Secret(string name, SecretArgs? args = null, CustomResourceOptions? opts = null)
public Secret(String name, SecretArgs args)
public Secret(String name, SecretArgs args, CustomResourceOptions options)
type: cpln:Secret
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. 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 This property is required. 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 This property is required. 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 This property is required. 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 This property is required. String
The unique name of the resource.
args This property is required. SecretArgs
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 secretResource = new Cpln.Secret("secretResource", new()
{
    Aws = new Cpln.Inputs.SecretAwsArgs
    {
        AccessKey = "string",
        SecretKey = "string",
        ExternalId = "string",
        RoleArn = "string",
    },
    AzureConnector = new Cpln.Inputs.SecretAzureConnectorArgs
    {
        Code = "string",
        Url = "string",
    },
    AzureSdk = "string",
    Description = "string",
    Dictionary = 
    {
        { "string", "string" },
    },
    Docker = "string",
    Ecr = new Cpln.Inputs.SecretEcrArgs
    {
        AccessKey = "string",
        Repos = new[]
        {
            "string",
        },
        SecretKey = "string",
        ExternalId = "string",
        RoleArn = "string",
    },
    Gcp = "string",
    Keypair = new Cpln.Inputs.SecretKeypairArgs
    {
        SecretKey = "string",
        Passphrase = "string",
        PublicKey = "string",
    },
    Name = "string",
    NatsAccount = new Cpln.Inputs.SecretNatsAccountArgs
    {
        AccountId = "string",
        PrivateKey = "string",
    },
    Opaque = new Cpln.Inputs.SecretOpaqueArgs
    {
        Payload = "string",
        Encoding = "string",
    },
    Tags = 
    {
        { "string", "string" },
    },
    Tls = new Cpln.Inputs.SecretTlsArgs
    {
        Cert = "string",
        Key = "string",
        Chain = "string",
    },
    Userpass = new Cpln.Inputs.SecretUserpassArgs
    {
        Password = "string",
        Username = "string",
        Encoding = "string",
    },
});
Copy
example, err := cpln.NewSecret(ctx, "secretResource", &cpln.SecretArgs{
	Aws: &cpln.SecretAwsArgs{
		AccessKey:  pulumi.String("string"),
		SecretKey:  pulumi.String("string"),
		ExternalId: pulumi.String("string"),
		RoleArn:    pulumi.String("string"),
	},
	AzureConnector: &cpln.SecretAzureConnectorArgs{
		Code: pulumi.String("string"),
		Url:  pulumi.String("string"),
	},
	AzureSdk:    pulumi.String("string"),
	Description: pulumi.String("string"),
	Dictionary: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
	Docker: pulumi.String("string"),
	Ecr: &cpln.SecretEcrArgs{
		AccessKey: pulumi.String("string"),
		Repos: pulumi.StringArray{
			pulumi.String("string"),
		},
		SecretKey:  pulumi.String("string"),
		ExternalId: pulumi.String("string"),
		RoleArn:    pulumi.String("string"),
	},
	Gcp: pulumi.String("string"),
	Keypair: &cpln.SecretKeypairArgs{
		SecretKey:  pulumi.String("string"),
		Passphrase: pulumi.String("string"),
		PublicKey:  pulumi.String("string"),
	},
	Name: pulumi.String("string"),
	NatsAccount: &cpln.SecretNatsAccountArgs{
		AccountId:  pulumi.String("string"),
		PrivateKey: pulumi.String("string"),
	},
	Opaque: &cpln.SecretOpaqueArgs{
		Payload:  pulumi.String("string"),
		Encoding: pulumi.String("string"),
	},
	Tags: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
	Tls: &cpln.SecretTlsArgs{
		Cert:  pulumi.String("string"),
		Key:   pulumi.String("string"),
		Chain: pulumi.String("string"),
	},
	Userpass: &cpln.SecretUserpassArgs{
		Password: pulumi.String("string"),
		Username: pulumi.String("string"),
		Encoding: pulumi.String("string"),
	},
})
Copy
var secretResource = new Secret("secretResource", SecretArgs.builder()
    .aws(SecretAwsArgs.builder()
        .accessKey("string")
        .secretKey("string")
        .externalId("string")
        .roleArn("string")
        .build())
    .azureConnector(SecretAzureConnectorArgs.builder()
        .code("string")
        .url("string")
        .build())
    .azureSdk("string")
    .description("string")
    .dictionary(Map.of("string", "string"))
    .docker("string")
    .ecr(SecretEcrArgs.builder()
        .accessKey("string")
        .repos("string")
        .secretKey("string")
        .externalId("string")
        .roleArn("string")
        .build())
    .gcp("string")
    .keypair(SecretKeypairArgs.builder()
        .secretKey("string")
        .passphrase("string")
        .publicKey("string")
        .build())
    .name("string")
    .natsAccount(SecretNatsAccountArgs.builder()
        .accountId("string")
        .privateKey("string")
        .build())
    .opaque(SecretOpaqueArgs.builder()
        .payload("string")
        .encoding("string")
        .build())
    .tags(Map.of("string", "string"))
    .tls(SecretTlsArgs.builder()
        .cert("string")
        .key("string")
        .chain("string")
        .build())
    .userpass(SecretUserpassArgs.builder()
        .password("string")
        .username("string")
        .encoding("string")
        .build())
    .build());
Copy
secret_resource = cpln.Secret("secretResource",
    aws={
        "access_key": "string",
        "secret_key": "string",
        "external_id": "string",
        "role_arn": "string",
    },
    azure_connector={
        "code": "string",
        "url": "string",
    },
    azure_sdk="string",
    description="string",
    dictionary={
        "string": "string",
    },
    docker="string",
    ecr={
        "access_key": "string",
        "repos": ["string"],
        "secret_key": "string",
        "external_id": "string",
        "role_arn": "string",
    },
    gcp="string",
    keypair={
        "secret_key": "string",
        "passphrase": "string",
        "public_key": "string",
    },
    name="string",
    nats_account={
        "account_id": "string",
        "private_key": "string",
    },
    opaque={
        "payload": "string",
        "encoding": "string",
    },
    tags={
        "string": "string",
    },
    tls={
        "cert": "string",
        "key": "string",
        "chain": "string",
    },
    userpass={
        "password": "string",
        "username": "string",
        "encoding": "string",
    })
Copy
const secretResource = new cpln.Secret("secretResource", {
    aws: {
        accessKey: "string",
        secretKey: "string",
        externalId: "string",
        roleArn: "string",
    },
    azureConnector: {
        code: "string",
        url: "string",
    },
    azureSdk: "string",
    description: "string",
    dictionary: {
        string: "string",
    },
    docker: "string",
    ecr: {
        accessKey: "string",
        repos: ["string"],
        secretKey: "string",
        externalId: "string",
        roleArn: "string",
    },
    gcp: "string",
    keypair: {
        secretKey: "string",
        passphrase: "string",
        publicKey: "string",
    },
    name: "string",
    natsAccount: {
        accountId: "string",
        privateKey: "string",
    },
    opaque: {
        payload: "string",
        encoding: "string",
    },
    tags: {
        string: "string",
    },
    tls: {
        cert: "string",
        key: "string",
        chain: "string",
    },
    userpass: {
        password: "string",
        username: "string",
        encoding: "string",
    },
});
Copy
type: cpln:Secret
properties:
    aws:
        accessKey: string
        externalId: string
        roleArn: string
        secretKey: string
    azureConnector:
        code: string
        url: string
    azureSdk: string
    description: string
    dictionary:
        string: string
    docker: string
    ecr:
        accessKey: string
        externalId: string
        repos:
            - string
        roleArn: string
        secretKey: string
    gcp: string
    keypair:
        passphrase: string
        publicKey: string
        secretKey: string
    name: string
    natsAccount:
        accountId: string
        privateKey: string
    opaque:
        encoding: string
        payload: string
    tags:
        string: string
    tls:
        cert: string
        chain: string
        key: string
    userpass:
        encoding: string
        password: string
        username: string
Copy

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

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The Secret resource accepts the following input properties:

Aws Pulumiverse.Cpln.Inputs.SecretAws
Reference Page.
AzureConnector Pulumiverse.Cpln.Inputs.SecretAzureConnector
Reference Page.
AzureSdk string
JSON string containing the Docker secret. Reference Page.
Description string
Description of the Secret.
Dictionary Dictionary<string, string>
List of unique key-value pairs. Reference Page.
Docker string
JSON string containing the Docker secret. Reference Page.
Ecr Pulumiverse.Cpln.Inputs.SecretEcr
Reference Page
Gcp string
JSON string containing the GCP secret. Reference Page
Keypair Pulumiverse.Cpln.Inputs.SecretKeypair
Reference Page.
Name Changes to this property will trigger replacement. string
Name of the secret.
NatsAccount Pulumiverse.Cpln.Inputs.SecretNatsAccount
Reference Page.
Opaque Pulumiverse.Cpln.Inputs.SecretOpaque
Reference Page.
Tags Dictionary<string, string>
Key-value map of resource tags.
Tls Pulumiverse.Cpln.Inputs.SecretTls
Reference Page.
Userpass Pulumiverse.Cpln.Inputs.SecretUserpass
Reference Page.
Aws SecretAwsArgs
Reference Page.
AzureConnector SecretAzureConnectorArgs
Reference Page.
AzureSdk string
JSON string containing the Docker secret. Reference Page.
Description string
Description of the Secret.
Dictionary map[string]string
List of unique key-value pairs. Reference Page.
Docker string
JSON string containing the Docker secret. Reference Page.
Ecr SecretEcrArgs
Reference Page
Gcp string
JSON string containing the GCP secret. Reference Page
Keypair SecretKeypairArgs
Reference Page.
Name Changes to this property will trigger replacement. string
Name of the secret.
NatsAccount SecretNatsAccountArgs
Reference Page.
Opaque SecretOpaqueArgs
Reference Page.
Tags map[string]string
Key-value map of resource tags.
Tls SecretTlsArgs
Reference Page.
Userpass SecretUserpassArgs
Reference Page.
aws SecretAws
Reference Page.
azureConnector SecretAzureConnector
Reference Page.
azureSdk String
JSON string containing the Docker secret. Reference Page.
description String
Description of the Secret.
dictionary Map<String,String>
List of unique key-value pairs. Reference Page.
docker String
JSON string containing the Docker secret. Reference Page.
ecr SecretEcr
Reference Page
gcp String
JSON string containing the GCP secret. Reference Page
keypair SecretKeypair
Reference Page.
name Changes to this property will trigger replacement. String
Name of the secret.
natsAccount SecretNatsAccount
Reference Page.
opaque SecretOpaque
Reference Page.
tags Map<String,String>
Key-value map of resource tags.
tls SecretTls
Reference Page.
userpass SecretUserpass
Reference Page.
aws SecretAws
Reference Page.
azureConnector SecretAzureConnector
Reference Page.
azureSdk string
JSON string containing the Docker secret. Reference Page.
description string
Description of the Secret.
dictionary {[key: string]: string}
List of unique key-value pairs. Reference Page.
docker string
JSON string containing the Docker secret. Reference Page.
ecr SecretEcr
Reference Page
gcp string
JSON string containing the GCP secret. Reference Page
keypair SecretKeypair
Reference Page.
name Changes to this property will trigger replacement. string
Name of the secret.
natsAccount SecretNatsAccount
Reference Page.
opaque SecretOpaque
Reference Page.
tags {[key: string]: string}
Key-value map of resource tags.
tls SecretTls
Reference Page.
userpass SecretUserpass
Reference Page.
aws SecretAwsArgs
Reference Page.
azure_connector SecretAzureConnectorArgs
Reference Page.
azure_sdk str
JSON string containing the Docker secret. Reference Page.
description str
Description of the Secret.
dictionary Mapping[str, str]
List of unique key-value pairs. Reference Page.
docker str
JSON string containing the Docker secret. Reference Page.
ecr SecretEcrArgs
Reference Page
gcp str
JSON string containing the GCP secret. Reference Page
keypair SecretKeypairArgs
Reference Page.
name Changes to this property will trigger replacement. str
Name of the secret.
nats_account SecretNatsAccountArgs
Reference Page.
opaque SecretOpaqueArgs
Reference Page.
tags Mapping[str, str]
Key-value map of resource tags.
tls SecretTlsArgs
Reference Page.
userpass SecretUserpassArgs
Reference Page.
aws Property Map
Reference Page.
azureConnector Property Map
Reference Page.
azureSdk String
JSON string containing the Docker secret. Reference Page.
description String
Description of the Secret.
dictionary Map<String>
List of unique key-value pairs. Reference Page.
docker String
JSON string containing the Docker secret. Reference Page.
ecr Property Map
Reference Page
gcp String
JSON string containing the GCP secret. Reference Page
keypair Property Map
Reference Page.
name Changes to this property will trigger replacement. String
Name of the secret.
natsAccount Property Map
Reference Page.
opaque Property Map
Reference Page.
tags Map<String>
Key-value map of resource tags.
tls Property Map
Reference Page.
userpass Property Map
Reference Page.

Outputs

All input properties are implicitly available as output properties. Additionally, the Secret resource produces the following output properties:

CplnId string
The ID, in GUID format, of the Secret.
DictionaryAsEnvs Dictionary<string, string>
If a dictionary secret is defined, this output will be a key-value map in the following format: key = cpln://secret/SECRET_NAME.key.
Id string
The provider-assigned unique ID for this managed resource.
SecretLink string
Output used when linking a secret to an environment variable or volume.
SelfLink string
Full link to this resource. Can be referenced by other resources.
CplnId string
The ID, in GUID format, of the Secret.
DictionaryAsEnvs map[string]string
If a dictionary secret is defined, this output will be a key-value map in the following format: key = cpln://secret/SECRET_NAME.key.
Id string
The provider-assigned unique ID for this managed resource.
SecretLink string
Output used when linking a secret to an environment variable or volume.
SelfLink string
Full link to this resource. Can be referenced by other resources.
cplnId String
The ID, in GUID format, of the Secret.
dictionaryAsEnvs Map<String,String>
If a dictionary secret is defined, this output will be a key-value map in the following format: key = cpln://secret/SECRET_NAME.key.
id String
The provider-assigned unique ID for this managed resource.
secretLink String
Output used when linking a secret to an environment variable or volume.
selfLink String
Full link to this resource. Can be referenced by other resources.
cplnId string
The ID, in GUID format, of the Secret.
dictionaryAsEnvs {[key: string]: string}
If a dictionary secret is defined, this output will be a key-value map in the following format: key = cpln://secret/SECRET_NAME.key.
id string
The provider-assigned unique ID for this managed resource.
secretLink string
Output used when linking a secret to an environment variable or volume.
selfLink string
Full link to this resource. Can be referenced by other resources.
cpln_id str
The ID, in GUID format, of the Secret.
dictionary_as_envs Mapping[str, str]
If a dictionary secret is defined, this output will be a key-value map in the following format: key = cpln://secret/SECRET_NAME.key.
id str
The provider-assigned unique ID for this managed resource.
secret_link str
Output used when linking a secret to an environment variable or volume.
self_link str
Full link to this resource. Can be referenced by other resources.
cplnId String
The ID, in GUID format, of the Secret.
dictionaryAsEnvs Map<String>
If a dictionary secret is defined, this output will be a key-value map in the following format: key = cpln://secret/SECRET_NAME.key.
id String
The provider-assigned unique ID for this managed resource.
secretLink String
Output used when linking a secret to an environment variable or volume.
selfLink String
Full link to this resource. Can be referenced by other resources.

Look up Existing Secret Resource

Get an existing Secret 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?: SecretState, opts?: CustomResourceOptions): Secret
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        aws: Optional[SecretAwsArgs] = None,
        azure_connector: Optional[SecretAzureConnectorArgs] = None,
        azure_sdk: Optional[str] = None,
        cpln_id: Optional[str] = None,
        description: Optional[str] = None,
        dictionary: Optional[Mapping[str, str]] = None,
        dictionary_as_envs: Optional[Mapping[str, str]] = None,
        docker: Optional[str] = None,
        ecr: Optional[SecretEcrArgs] = None,
        gcp: Optional[str] = None,
        keypair: Optional[SecretKeypairArgs] = None,
        name: Optional[str] = None,
        nats_account: Optional[SecretNatsAccountArgs] = None,
        opaque: Optional[SecretOpaqueArgs] = None,
        secret_link: Optional[str] = None,
        self_link: Optional[str] = None,
        tags: Optional[Mapping[str, str]] = None,
        tls: Optional[SecretTlsArgs] = None,
        userpass: Optional[SecretUserpassArgs] = None) -> Secret
func GetSecret(ctx *Context, name string, id IDInput, state *SecretState, opts ...ResourceOption) (*Secret, error)
public static Secret Get(string name, Input<string> id, SecretState? state, CustomResourceOptions? opts = null)
public static Secret get(String name, Output<String> id, SecretState state, CustomResourceOptions options)
resources:  _:    type: cpln:Secret    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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:
Aws Pulumiverse.Cpln.Inputs.SecretAws
Reference Page.
AzureConnector Pulumiverse.Cpln.Inputs.SecretAzureConnector
Reference Page.
AzureSdk string
JSON string containing the Docker secret. Reference Page.
CplnId string
The ID, in GUID format, of the Secret.
Description string
Description of the Secret.
Dictionary Dictionary<string, string>
List of unique key-value pairs. Reference Page.
DictionaryAsEnvs Dictionary<string, string>
If a dictionary secret is defined, this output will be a key-value map in the following format: key = cpln://secret/SECRET_NAME.key.
Docker string
JSON string containing the Docker secret. Reference Page.
Ecr Pulumiverse.Cpln.Inputs.SecretEcr
Reference Page
Gcp string
JSON string containing the GCP secret. Reference Page
Keypair Pulumiverse.Cpln.Inputs.SecretKeypair
Reference Page.
Name Changes to this property will trigger replacement. string
Name of the secret.
NatsAccount Pulumiverse.Cpln.Inputs.SecretNatsAccount
Reference Page.
Opaque Pulumiverse.Cpln.Inputs.SecretOpaque
Reference Page.
SecretLink string
Output used when linking a secret to an environment variable or volume.
SelfLink string
Full link to this resource. Can be referenced by other resources.
Tags Dictionary<string, string>
Key-value map of resource tags.
Tls Pulumiverse.Cpln.Inputs.SecretTls
Reference Page.
Userpass Pulumiverse.Cpln.Inputs.SecretUserpass
Reference Page.
Aws SecretAwsArgs
Reference Page.
AzureConnector SecretAzureConnectorArgs
Reference Page.
AzureSdk string
JSON string containing the Docker secret. Reference Page.
CplnId string
The ID, in GUID format, of the Secret.
Description string
Description of the Secret.
Dictionary map[string]string
List of unique key-value pairs. Reference Page.
DictionaryAsEnvs map[string]string
If a dictionary secret is defined, this output will be a key-value map in the following format: key = cpln://secret/SECRET_NAME.key.
Docker string
JSON string containing the Docker secret. Reference Page.
Ecr SecretEcrArgs
Reference Page
Gcp string
JSON string containing the GCP secret. Reference Page
Keypair SecretKeypairArgs
Reference Page.
Name Changes to this property will trigger replacement. string
Name of the secret.
NatsAccount SecretNatsAccountArgs
Reference Page.
Opaque SecretOpaqueArgs
Reference Page.
SecretLink string
Output used when linking a secret to an environment variable or volume.
SelfLink string
Full link to this resource. Can be referenced by other resources.
Tags map[string]string
Key-value map of resource tags.
Tls SecretTlsArgs
Reference Page.
Userpass SecretUserpassArgs
Reference Page.
aws SecretAws
Reference Page.
azureConnector SecretAzureConnector
Reference Page.
azureSdk String
JSON string containing the Docker secret. Reference Page.
cplnId String
The ID, in GUID format, of the Secret.
description String
Description of the Secret.
dictionary Map<String,String>
List of unique key-value pairs. Reference Page.
dictionaryAsEnvs Map<String,String>
If a dictionary secret is defined, this output will be a key-value map in the following format: key = cpln://secret/SECRET_NAME.key.
docker String
JSON string containing the Docker secret. Reference Page.
ecr SecretEcr
Reference Page
gcp String
JSON string containing the GCP secret. Reference Page
keypair SecretKeypair
Reference Page.
name Changes to this property will trigger replacement. String
Name of the secret.
natsAccount SecretNatsAccount
Reference Page.
opaque SecretOpaque
Reference Page.
secretLink String
Output used when linking a secret to an environment variable or volume.
selfLink String
Full link to this resource. Can be referenced by other resources.
tags Map<String,String>
Key-value map of resource tags.
tls SecretTls
Reference Page.
userpass SecretUserpass
Reference Page.
aws SecretAws
Reference Page.
azureConnector SecretAzureConnector
Reference Page.
azureSdk string
JSON string containing the Docker secret. Reference Page.
cplnId string
The ID, in GUID format, of the Secret.
description string
Description of the Secret.
dictionary {[key: string]: string}
List of unique key-value pairs. Reference Page.
dictionaryAsEnvs {[key: string]: string}
If a dictionary secret is defined, this output will be a key-value map in the following format: key = cpln://secret/SECRET_NAME.key.
docker string
JSON string containing the Docker secret. Reference Page.
ecr SecretEcr
Reference Page
gcp string
JSON string containing the GCP secret. Reference Page
keypair SecretKeypair
Reference Page.
name Changes to this property will trigger replacement. string
Name of the secret.
natsAccount SecretNatsAccount
Reference Page.
opaque SecretOpaque
Reference Page.
secretLink string
Output used when linking a secret to an environment variable or volume.
selfLink string
Full link to this resource. Can be referenced by other resources.
tags {[key: string]: string}
Key-value map of resource tags.
tls SecretTls
Reference Page.
userpass SecretUserpass
Reference Page.
aws SecretAwsArgs
Reference Page.
azure_connector SecretAzureConnectorArgs
Reference Page.
azure_sdk str
JSON string containing the Docker secret. Reference Page.
cpln_id str
The ID, in GUID format, of the Secret.
description str
Description of the Secret.
dictionary Mapping[str, str]
List of unique key-value pairs. Reference Page.
dictionary_as_envs Mapping[str, str]
If a dictionary secret is defined, this output will be a key-value map in the following format: key = cpln://secret/SECRET_NAME.key.
docker str
JSON string containing the Docker secret. Reference Page.
ecr SecretEcrArgs
Reference Page
gcp str
JSON string containing the GCP secret. Reference Page
keypair SecretKeypairArgs
Reference Page.
name Changes to this property will trigger replacement. str
Name of the secret.
nats_account SecretNatsAccountArgs
Reference Page.
opaque SecretOpaqueArgs
Reference Page.
secret_link str
Output used when linking a secret to an environment variable or volume.
self_link str
Full link to this resource. Can be referenced by other resources.
tags Mapping[str, str]
Key-value map of resource tags.
tls SecretTlsArgs
Reference Page.
userpass SecretUserpassArgs
Reference Page.
aws Property Map
Reference Page.
azureConnector Property Map
Reference Page.
azureSdk String
JSON string containing the Docker secret. Reference Page.
cplnId String
The ID, in GUID format, of the Secret.
description String
Description of the Secret.
dictionary Map<String>
List of unique key-value pairs. Reference Page.
dictionaryAsEnvs Map<String>
If a dictionary secret is defined, this output will be a key-value map in the following format: key = cpln://secret/SECRET_NAME.key.
docker String
JSON string containing the Docker secret. Reference Page.
ecr Property Map
Reference Page
gcp String
JSON string containing the GCP secret. Reference Page
keypair Property Map
Reference Page.
name Changes to this property will trigger replacement. String
Name of the secret.
natsAccount Property Map
Reference Page.
opaque Property Map
Reference Page.
secretLink String
Output used when linking a secret to an environment variable or volume.
selfLink String
Full link to this resource. Can be referenced by other resources.
tags Map<String>
Key-value map of resource tags.
tls Property Map
Reference Page.
userpass Property Map
Reference Page.

Supporting Types

SecretAws
, SecretAwsArgs

AccessKey This property is required. string
Access Key provided by AWS.
SecretKey This property is required. string
Secret Key provided by AWS.
ExternalId string
AWS IAM Role External ID.
RoleArn string
Role ARN provided by AWS.
AccessKey This property is required. string
Access Key provided by AWS.
SecretKey This property is required. string
Secret Key provided by AWS.
ExternalId string
AWS IAM Role External ID.
RoleArn string
Role ARN provided by AWS.
accessKey This property is required. String
Access Key provided by AWS.
secretKey This property is required. String
Secret Key provided by AWS.
externalId String
AWS IAM Role External ID.
roleArn String
Role ARN provided by AWS.
accessKey This property is required. string
Access Key provided by AWS.
secretKey This property is required. string
Secret Key provided by AWS.
externalId string
AWS IAM Role External ID.
roleArn string
Role ARN provided by AWS.
access_key This property is required. str
Access Key provided by AWS.
secret_key This property is required. str
Secret Key provided by AWS.
external_id str
AWS IAM Role External ID.
role_arn str
Role ARN provided by AWS.
accessKey This property is required. String
Access Key provided by AWS.
secretKey This property is required. String
Secret Key provided by AWS.
externalId String
AWS IAM Role External ID.
roleArn String
Role ARN provided by AWS.

SecretAzureConnector
, SecretAzureConnectorArgs

Code This property is required. string
Code/Key to authenticate to deployment URL.
Url This property is required. string
Deployment URL.
Code This property is required. string
Code/Key to authenticate to deployment URL.
Url This property is required. string
Deployment URL.
code This property is required. String
Code/Key to authenticate to deployment URL.
url This property is required. String
Deployment URL.
code This property is required. string
Code/Key to authenticate to deployment URL.
url This property is required. string
Deployment URL.
code This property is required. str
Code/Key to authenticate to deployment URL.
url This property is required. str
Deployment URL.
code This property is required. String
Code/Key to authenticate to deployment URL.
url This property is required. String
Deployment URL.

SecretEcr
, SecretEcrArgs

AccessKey This property is required. string
Access Key provided by AWS.
Repos This property is required. List<string>
List of ECR repositories.
SecretKey This property is required. string
Secret Key provided by AWS.
ExternalId string
AWS IAM Role External ID. Used when setting up cross-account access to your ECR repositories.
RoleArn string
Role ARN provided by AWS.
AccessKey This property is required. string
Access Key provided by AWS.
Repos This property is required. []string
List of ECR repositories.
SecretKey This property is required. string
Secret Key provided by AWS.
ExternalId string
AWS IAM Role External ID. Used when setting up cross-account access to your ECR repositories.
RoleArn string
Role ARN provided by AWS.
accessKey This property is required. String
Access Key provided by AWS.
repos This property is required. List<String>
List of ECR repositories.
secretKey This property is required. String
Secret Key provided by AWS.
externalId String
AWS IAM Role External ID. Used when setting up cross-account access to your ECR repositories.
roleArn String
Role ARN provided by AWS.
accessKey This property is required. string
Access Key provided by AWS.
repos This property is required. string[]
List of ECR repositories.
secretKey This property is required. string
Secret Key provided by AWS.
externalId string
AWS IAM Role External ID. Used when setting up cross-account access to your ECR repositories.
roleArn string
Role ARN provided by AWS.
access_key This property is required. str
Access Key provided by AWS.
repos This property is required. Sequence[str]
List of ECR repositories.
secret_key This property is required. str
Secret Key provided by AWS.
external_id str
AWS IAM Role External ID. Used when setting up cross-account access to your ECR repositories.
role_arn str
Role ARN provided by AWS.
accessKey This property is required. String
Access Key provided by AWS.
repos This property is required. List<String>
List of ECR repositories.
secretKey This property is required. String
Secret Key provided by AWS.
externalId String
AWS IAM Role External ID. Used when setting up cross-account access to your ECR repositories.
roleArn String
Role ARN provided by AWS.

SecretKeypair
, SecretKeypairArgs

SecretKey This property is required. string
Secret/Private Key.
Passphrase string
Passphrase for private key.
PublicKey string
Public Key.
SecretKey This property is required. string
Secret/Private Key.
Passphrase string
Passphrase for private key.
PublicKey string
Public Key.
secretKey This property is required. String
Secret/Private Key.
passphrase String
Passphrase for private key.
publicKey String
Public Key.
secretKey This property is required. string
Secret/Private Key.
passphrase string
Passphrase for private key.
publicKey string
Public Key.
secret_key This property is required. str
Secret/Private Key.
passphrase str
Passphrase for private key.
public_key str
Public Key.
secretKey This property is required. String
Secret/Private Key.
passphrase String
Passphrase for private key.
publicKey String
Public Key.

SecretNatsAccount
, SecretNatsAccountArgs

AccountId This property is required. string
Account ID.
PrivateKey This property is required. string
Private Key.
AccountId This property is required. string
Account ID.
PrivateKey This property is required. string
Private Key.
accountId This property is required. String
Account ID.
privateKey This property is required. String
Private Key.
accountId This property is required. string
Account ID.
privateKey This property is required. string
Private Key.
account_id This property is required. str
Account ID.
private_key This property is required. str
Private Key.
accountId This property is required. String
Account ID.
privateKey This property is required. String
Private Key.

SecretOpaque
, SecretOpaqueArgs

Payload This property is required. string
Plain text or base64 encoded string. Use encoding attribute to specify encoding.
Encoding string
Available encodings: plain, base64. Default: plain.
Payload This property is required. string
Plain text or base64 encoded string. Use encoding attribute to specify encoding.
Encoding string
Available encodings: plain, base64. Default: plain.
payload This property is required. String
Plain text or base64 encoded string. Use encoding attribute to specify encoding.
encoding String
Available encodings: plain, base64. Default: plain.
payload This property is required. string
Plain text or base64 encoded string. Use encoding attribute to specify encoding.
encoding string
Available encodings: plain, base64. Default: plain.
payload This property is required. str
Plain text or base64 encoded string. Use encoding attribute to specify encoding.
encoding str
Available encodings: plain, base64. Default: plain.
payload This property is required. String
Plain text or base64 encoded string. Use encoding attribute to specify encoding.
encoding String
Available encodings: plain, base64. Default: plain.

SecretTls
, SecretTlsArgs

Cert This property is required. string
Public Certificate.
Key This property is required. string
Private Certificate.
Chain string
Chain Certificate.
Cert This property is required. string
Public Certificate.
Key This property is required. string
Private Certificate.
Chain string
Chain Certificate.
cert This property is required. String
Public Certificate.
key This property is required. String
Private Certificate.
chain String
Chain Certificate.
cert This property is required. string
Public Certificate.
key This property is required. string
Private Certificate.
chain string
Chain Certificate.
cert This property is required. str
Public Certificate.
key This property is required. str
Private Certificate.
chain str
Chain Certificate.
cert This property is required. String
Public Certificate.
key This property is required. String
Private Certificate.
chain String
Chain Certificate.

SecretUserpass
, SecretUserpassArgs

Password This property is required. string
Password.
Username This property is required. string
Username.
Encoding string
Available encodings: plain, base64. Default: plain.
Password This property is required. string
Password.
Username This property is required. string
Username.
Encoding string
Available encodings: plain, base64. Default: plain.
password This property is required. String
Password.
username This property is required. String
Username.
encoding String
Available encodings: plain, base64. Default: plain.
password This property is required. string
Password.
username This property is required. string
Username.
encoding string
Available encodings: plain, base64. Default: plain.
password This property is required. str
Password.
username This property is required. str
Username.
encoding str
Available encodings: plain, base64. Default: plain.
password This property is required. String
Password.
username This property is required. String
Username.
encoding String
Available encodings: plain, base64. Default: plain.

Package Details

Repository
cpln pulumiverse/pulumi-cpln
License
Apache-2.0
Notes
This Pulumi package is based on the cpln Terraform Provider.