koyeb v0.1.7 published on Wednesday, Nov 30, 2022 by Koyeb
koyeb.KoyebSecret
Explore with Pulumi AI
Example Usage
using System.Collections.Generic;
using Pulumi;
using Koyeb = Pulumi.Koyeb;
return await Deployment.RunAsync(() =>
{
var simple_secret = new Koyeb.KoyebSecret("simple-secret", new()
{
Value = "secret-value",
});
});
package main
import (
"github.com/pulumi/pulumi-koyeb/sdk/go/koyeb"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := koyeb.NewKoyebSecret(ctx, "simple-secret", &koyeb.KoyebSecretArgs{
Value: pulumi.String("secret-value"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.koyeb.KoyebSecret;
import com.pulumi.koyeb.KoyebSecretArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var simple_secret = new KoyebSecret("simple-secret", KoyebSecretArgs.builder()
.value("secret-value")
.build());
}
}
import pulumi
import pulumi_koyeb as koyeb
simple_secret = koyeb.KoyebSecret("simple-secret", value="secret-value")
import * as pulumi from "@pulumi/pulumi";
import * as koyeb from "@pulumi/koyeb";
const simple_secret = new koyeb.KoyebSecret("simple-secret", {
value: "secret-value",
});
resources:
simple-secret:
type: koyeb:KoyebSecret
properties:
value: secret-value
Create KoyebSecret Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new KoyebSecret(name: string, args?: KoyebSecretArgs, opts?: CustomResourceOptions);
@overload
def KoyebSecret(resource_name: str,
args: Optional[KoyebSecretArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def KoyebSecret(resource_name: str,
opts: Optional[ResourceOptions] = None,
azure_container_registry: Optional[KoyebSecretAzureContainerRegistryArgs] = None,
digital_ocean_container_registry: Optional[KoyebSecretDigitalOceanContainerRegistryArgs] = None,
docker_hub_registry: Optional[KoyebSecretDockerHubRegistryArgs] = None,
github_registry: Optional[KoyebSecretGithubRegistryArgs] = None,
gitlab_registry: Optional[KoyebSecretGitlabRegistryArgs] = None,
name: Optional[str] = None,
private_registry: Optional[KoyebSecretPrivateRegistryArgs] = None,
type: Optional[str] = None,
value: Optional[str] = None)
func NewKoyebSecret(ctx *Context, name string, args *KoyebSecretArgs, opts ...ResourceOption) (*KoyebSecret, error)
public KoyebSecret(string name, KoyebSecretArgs? args = null, CustomResourceOptions? opts = null)
public KoyebSecret(String name, KoyebSecretArgs args)
public KoyebSecret(String name, KoyebSecretArgs args, CustomResourceOptions options)
type: koyeb:KoyebSecret
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 KoyebSecretArgs
- 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 KoyebSecretArgs
- 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 KoyebSecretArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args KoyebSecretArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args KoyebSecretArgs
- 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 koyebSecretResource = new Koyeb.KoyebSecret("koyebSecretResource", new()
{
AzureContainerRegistry = new Koyeb.Inputs.KoyebSecretAzureContainerRegistryArgs
{
Password = "string",
RegistryName = "string",
Username = "string",
},
DigitalOceanContainerRegistry = new Koyeb.Inputs.KoyebSecretDigitalOceanContainerRegistryArgs
{
Password = "string",
Username = "string",
},
DockerHubRegistry = new Koyeb.Inputs.KoyebSecretDockerHubRegistryArgs
{
Password = "string",
Username = "string",
},
GithubRegistry = new Koyeb.Inputs.KoyebSecretGithubRegistryArgs
{
Password = "string",
Username = "string",
},
GitlabRegistry = new Koyeb.Inputs.KoyebSecretGitlabRegistryArgs
{
Password = "string",
Username = "string",
},
Name = "string",
PrivateRegistry = new Koyeb.Inputs.KoyebSecretPrivateRegistryArgs
{
Password = "string",
Url = "string",
Username = "string",
},
Type = "string",
Value = "string",
});
example, err := koyeb.NewKoyebSecret(ctx, "koyebSecretResource", &koyeb.KoyebSecretArgs{
AzureContainerRegistry: &koyeb.KoyebSecretAzureContainerRegistryArgs{
Password: pulumi.String("string"),
RegistryName: pulumi.String("string"),
Username: pulumi.String("string"),
},
DigitalOceanContainerRegistry: &koyeb.KoyebSecretDigitalOceanContainerRegistryArgs{
Password: pulumi.String("string"),
Username: pulumi.String("string"),
},
DockerHubRegistry: &koyeb.KoyebSecretDockerHubRegistryArgs{
Password: pulumi.String("string"),
Username: pulumi.String("string"),
},
GithubRegistry: &koyeb.KoyebSecretGithubRegistryArgs{
Password: pulumi.String("string"),
Username: pulumi.String("string"),
},
GitlabRegistry: &koyeb.KoyebSecretGitlabRegistryArgs{
Password: pulumi.String("string"),
Username: pulumi.String("string"),
},
Name: pulumi.String("string"),
PrivateRegistry: &koyeb.KoyebSecretPrivateRegistryArgs{
Password: pulumi.String("string"),
Url: pulumi.String("string"),
Username: pulumi.String("string"),
},
Type: pulumi.String("string"),
Value: pulumi.String("string"),
})
var koyebSecretResource = new KoyebSecret("koyebSecretResource", KoyebSecretArgs.builder()
.azureContainerRegistry(KoyebSecretAzureContainerRegistryArgs.builder()
.password("string")
.registryName("string")
.username("string")
.build())
.digitalOceanContainerRegistry(KoyebSecretDigitalOceanContainerRegistryArgs.builder()
.password("string")
.username("string")
.build())
.dockerHubRegistry(KoyebSecretDockerHubRegistryArgs.builder()
.password("string")
.username("string")
.build())
.githubRegistry(KoyebSecretGithubRegistryArgs.builder()
.password("string")
.username("string")
.build())
.gitlabRegistry(KoyebSecretGitlabRegistryArgs.builder()
.password("string")
.username("string")
.build())
.name("string")
.privateRegistry(KoyebSecretPrivateRegistryArgs.builder()
.password("string")
.url("string")
.username("string")
.build())
.type("string")
.value("string")
.build());
koyeb_secret_resource = koyeb.KoyebSecret("koyebSecretResource",
azure_container_registry=koyeb.KoyebSecretAzureContainerRegistryArgs(
password="string",
registry_name="string",
username="string",
),
digital_ocean_container_registry=koyeb.KoyebSecretDigitalOceanContainerRegistryArgs(
password="string",
username="string",
),
docker_hub_registry=koyeb.KoyebSecretDockerHubRegistryArgs(
password="string",
username="string",
),
github_registry=koyeb.KoyebSecretGithubRegistryArgs(
password="string",
username="string",
),
gitlab_registry=koyeb.KoyebSecretGitlabRegistryArgs(
password="string",
username="string",
),
name="string",
private_registry=koyeb.KoyebSecretPrivateRegistryArgs(
password="string",
url="string",
username="string",
),
type="string",
value="string")
const koyebSecretResource = new koyeb.KoyebSecret("koyebSecretResource", {
azureContainerRegistry: {
password: "string",
registryName: "string",
username: "string",
},
digitalOceanContainerRegistry: {
password: "string",
username: "string",
},
dockerHubRegistry: {
password: "string",
username: "string",
},
githubRegistry: {
password: "string",
username: "string",
},
gitlabRegistry: {
password: "string",
username: "string",
},
name: "string",
privateRegistry: {
password: "string",
url: "string",
username: "string",
},
type: "string",
value: "string",
});
type: koyeb:KoyebSecret
properties:
azureContainerRegistry:
password: string
registryName: string
username: string
digitalOceanContainerRegistry:
password: string
username: string
dockerHubRegistry:
password: string
username: string
githubRegistry:
password: string
username: string
gitlabRegistry:
password: string
username: string
name: string
privateRegistry:
password: string
url: string
username: string
type: string
value: string
KoyebSecret Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The KoyebSecret resource accepts the following input properties:
- Azure
Container KoyebRegistry Secret Azure Container Registry - The Azure registry configuration to use
- Digital
Ocean KoyebContainer Registry Secret Digital Ocean Container Registry - The DigitalOcean registry configuration to use
- Docker
Hub KoyebRegistry Secret Docker Hub Registry - The DockerHub registry configuration to use
- Github
Registry KoyebSecret Github Registry - The GitHub registry configuration to use
- Gitlab
Registry KoyebSecret Gitlab Registry - The GitLab registry configuration to use
- Name string
- The secret name
- Private
Registry KoyebSecret Private Registry - The DigitalOcean registry configuration to use
- Type string
- The secret type
- Value string
- The secret value
- Azure
Container KoyebRegistry Secret Azure Container Registry Args - The Azure registry configuration to use
- Digital
Ocean KoyebContainer Registry Secret Digital Ocean Container Registry Args - The DigitalOcean registry configuration to use
- Docker
Hub KoyebRegistry Secret Docker Hub Registry Args - The DockerHub registry configuration to use
- Github
Registry KoyebSecret Github Registry Args - The GitHub registry configuration to use
- Gitlab
Registry KoyebSecret Gitlab Registry Args - The GitLab registry configuration to use
- Name string
- The secret name
- Private
Registry KoyebSecret Private Registry Args - The DigitalOcean registry configuration to use
- Type string
- The secret type
- Value string
- The secret value
- azure
Container KoyebRegistry Secret Azure Container Registry - The Azure registry configuration to use
- digital
Ocean KoyebContainer Registry Secret Digital Ocean Container Registry - The DigitalOcean registry configuration to use
- docker
Hub KoyebRegistry Secret Docker Hub Registry - The DockerHub registry configuration to use
- github
Registry KoyebSecret Github Registry - The GitHub registry configuration to use
- gitlab
Registry KoyebSecret Gitlab Registry - The GitLab registry configuration to use
- name String
- The secret name
- private
Registry KoyebSecret Private Registry - The DigitalOcean registry configuration to use
- type String
- The secret type
- value String
- The secret value
- azure
Container KoyebRegistry Secret Azure Container Registry - The Azure registry configuration to use
- digital
Ocean KoyebContainer Registry Secret Digital Ocean Container Registry - The DigitalOcean registry configuration to use
- docker
Hub KoyebRegistry Secret Docker Hub Registry - The DockerHub registry configuration to use
- github
Registry KoyebSecret Github Registry - The GitHub registry configuration to use
- gitlab
Registry KoyebSecret Gitlab Registry - The GitLab registry configuration to use
- name string
- The secret name
- private
Registry KoyebSecret Private Registry - The DigitalOcean registry configuration to use
- type string
- The secret type
- value string
- The secret value
- azure_
container_ Koyebregistry Secret Azure Container Registry Args - The Azure registry configuration to use
- digital_
ocean_ Koyebcontainer_ registry Secret Digital Ocean Container Registry Args - The DigitalOcean registry configuration to use
- docker_
hub_ Koyebregistry Secret Docker Hub Registry Args - The DockerHub registry configuration to use
- github_
registry KoyebSecret Github Registry Args - The GitHub registry configuration to use
- gitlab_
registry KoyebSecret Gitlab Registry Args - The GitLab registry configuration to use
- name str
- The secret name
- private_
registry KoyebSecret Private Registry Args - The DigitalOcean registry configuration to use
- type str
- The secret type
- value str
- The secret value
- azure
Container Property MapRegistry - The Azure registry configuration to use
- digital
Ocean Property MapContainer Registry - The DigitalOcean registry configuration to use
- docker
Hub Property MapRegistry - The DockerHub registry configuration to use
- github
Registry Property Map - The GitHub registry configuration to use
- gitlab
Registry Property Map - The GitLab registry configuration to use
- name String
- The secret name
- private
Registry Property Map - The DigitalOcean registry configuration to use
- type String
- The secret type
- value String
- The secret value
Outputs
All input properties are implicitly available as output properties. Additionally, the KoyebSecret resource produces the following output properties:
- Created
At string - The date and time of when the secret was created
- Id string
- The provider-assigned unique ID for this managed resource.
- Organization
Id string - The organization ID owning the secret
- Updated
At string - The date and time of when the secret was last updated
- Created
At string - The date and time of when the secret was created
- Id string
- The provider-assigned unique ID for this managed resource.
- Organization
Id string - The organization ID owning the secret
- Updated
At string - The date and time of when the secret was last updated
- created
At String - The date and time of when the secret was created
- id String
- The provider-assigned unique ID for this managed resource.
- organization
Id String - The organization ID owning the secret
- updated
At String - The date and time of when the secret was last updated
- created
At string - The date and time of when the secret was created
- id string
- The provider-assigned unique ID for this managed resource.
- organization
Id string - The organization ID owning the secret
- updated
At string - The date and time of when the secret was last updated
- created_
at str - The date and time of when the secret was created
- id str
- The provider-assigned unique ID for this managed resource.
- organization_
id str - The organization ID owning the secret
- updated_
at str - The date and time of when the secret was last updated
- created
At String - The date and time of when the secret was created
- id String
- The provider-assigned unique ID for this managed resource.
- organization
Id String - The organization ID owning the secret
- updated
At String - The date and time of when the secret was last updated
Look up Existing KoyebSecret Resource
Get an existing KoyebSecret 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?: KoyebSecretState, opts?: CustomResourceOptions): KoyebSecret
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
azure_container_registry: Optional[KoyebSecretAzureContainerRegistryArgs] = None,
created_at: Optional[str] = None,
digital_ocean_container_registry: Optional[KoyebSecretDigitalOceanContainerRegistryArgs] = None,
docker_hub_registry: Optional[KoyebSecretDockerHubRegistryArgs] = None,
github_registry: Optional[KoyebSecretGithubRegistryArgs] = None,
gitlab_registry: Optional[KoyebSecretGitlabRegistryArgs] = None,
name: Optional[str] = None,
organization_id: Optional[str] = None,
private_registry: Optional[KoyebSecretPrivateRegistryArgs] = None,
type: Optional[str] = None,
updated_at: Optional[str] = None,
value: Optional[str] = None) -> KoyebSecret
func GetKoyebSecret(ctx *Context, name string, id IDInput, state *KoyebSecretState, opts ...ResourceOption) (*KoyebSecret, error)
public static KoyebSecret Get(string name, Input<string> id, KoyebSecretState? state, CustomResourceOptions? opts = null)
public static KoyebSecret get(String name, Output<String> id, KoyebSecretState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- 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.
- Azure
Container KoyebRegistry Secret Azure Container Registry - The Azure registry configuration to use
- Created
At string - The date and time of when the secret was created
- Digital
Ocean KoyebContainer Registry Secret Digital Ocean Container Registry - The DigitalOcean registry configuration to use
- Docker
Hub KoyebRegistry Secret Docker Hub Registry - The DockerHub registry configuration to use
- Github
Registry KoyebSecret Github Registry - The GitHub registry configuration to use
- Gitlab
Registry KoyebSecret Gitlab Registry - The GitLab registry configuration to use
- Name string
- The secret name
- Organization
Id string - The organization ID owning the secret
- Private
Registry KoyebSecret Private Registry - The DigitalOcean registry configuration to use
- Type string
- The secret type
- Updated
At string - The date and time of when the secret was last updated
- Value string
- The secret value
- Azure
Container KoyebRegistry Secret Azure Container Registry Args - The Azure registry configuration to use
- Created
At string - The date and time of when the secret was created
- Digital
Ocean KoyebContainer Registry Secret Digital Ocean Container Registry Args - The DigitalOcean registry configuration to use
- Docker
Hub KoyebRegistry Secret Docker Hub Registry Args - The DockerHub registry configuration to use
- Github
Registry KoyebSecret Github Registry Args - The GitHub registry configuration to use
- Gitlab
Registry KoyebSecret Gitlab Registry Args - The GitLab registry configuration to use
- Name string
- The secret name
- Organization
Id string - The organization ID owning the secret
- Private
Registry KoyebSecret Private Registry Args - The DigitalOcean registry configuration to use
- Type string
- The secret type
- Updated
At string - The date and time of when the secret was last updated
- Value string
- The secret value
- azure
Container KoyebRegistry Secret Azure Container Registry - The Azure registry configuration to use
- created
At String - The date and time of when the secret was created
- digital
Ocean KoyebContainer Registry Secret Digital Ocean Container Registry - The DigitalOcean registry configuration to use
- docker
Hub KoyebRegistry Secret Docker Hub Registry - The DockerHub registry configuration to use
- github
Registry KoyebSecret Github Registry - The GitHub registry configuration to use
- gitlab
Registry KoyebSecret Gitlab Registry - The GitLab registry configuration to use
- name String
- The secret name
- organization
Id String - The organization ID owning the secret
- private
Registry KoyebSecret Private Registry - The DigitalOcean registry configuration to use
- type String
- The secret type
- updated
At String - The date and time of when the secret was last updated
- value String
- The secret value
- azure
Container KoyebRegistry Secret Azure Container Registry - The Azure registry configuration to use
- created
At string - The date and time of when the secret was created
- digital
Ocean KoyebContainer Registry Secret Digital Ocean Container Registry - The DigitalOcean registry configuration to use
- docker
Hub KoyebRegistry Secret Docker Hub Registry - The DockerHub registry configuration to use
- github
Registry KoyebSecret Github Registry - The GitHub registry configuration to use
- gitlab
Registry KoyebSecret Gitlab Registry - The GitLab registry configuration to use
- name string
- The secret name
- organization
Id string - The organization ID owning the secret
- private
Registry KoyebSecret Private Registry - The DigitalOcean registry configuration to use
- type string
- The secret type
- updated
At string - The date and time of when the secret was last updated
- value string
- The secret value
- azure_
container_ Koyebregistry Secret Azure Container Registry Args - The Azure registry configuration to use
- created_
at str - The date and time of when the secret was created
- digital_
ocean_ Koyebcontainer_ registry Secret Digital Ocean Container Registry Args - The DigitalOcean registry configuration to use
- docker_
hub_ Koyebregistry Secret Docker Hub Registry Args - The DockerHub registry configuration to use
- github_
registry KoyebSecret Github Registry Args - The GitHub registry configuration to use
- gitlab_
registry KoyebSecret Gitlab Registry Args - The GitLab registry configuration to use
- name str
- The secret name
- organization_
id str - The organization ID owning the secret
- private_
registry KoyebSecret Private Registry Args - The DigitalOcean registry configuration to use
- type str
- The secret type
- updated_
at str - The date and time of when the secret was last updated
- value str
- The secret value
- azure
Container Property MapRegistry - The Azure registry configuration to use
- created
At String - The date and time of when the secret was created
- digital
Ocean Property MapContainer Registry - The DigitalOcean registry configuration to use
- docker
Hub Property MapRegistry - The DockerHub registry configuration to use
- github
Registry Property Map - The GitHub registry configuration to use
- gitlab
Registry Property Map - The GitLab registry configuration to use
- name String
- The secret name
- organization
Id String - The organization ID owning the secret
- private
Registry Property Map - The DigitalOcean registry configuration to use
- type String
- The secret type
- updated
At String - The date and time of when the secret was last updated
- value String
- The secret value
Supporting Types
KoyebSecretAzureContainerRegistry, KoyebSecretAzureContainerRegistryArgs
- Password string
- The registry password
- Registry
Name string - The registry name
- Username string
- The registry username
- Password string
- The registry password
- Registry
Name string - The registry name
- Username string
- The registry username
- password String
- The registry password
- registry
Name String - The registry name
- username String
- The registry username
- password string
- The registry password
- registry
Name string - The registry name
- username string
- The registry username
- password str
- The registry password
- registry_
name str - The registry name
- username str
- The registry username
- password String
- The registry password
- registry
Name String - The registry name
- username String
- The registry username
KoyebSecretDigitalOceanContainerRegistry, KoyebSecretDigitalOceanContainerRegistryArgs
KoyebSecretDockerHubRegistry, KoyebSecretDockerHubRegistryArgs
KoyebSecretGithubRegistry, KoyebSecretGithubRegistryArgs
KoyebSecretGitlabRegistry, KoyebSecretGitlabRegistryArgs
KoyebSecretPrivateRegistry, KoyebSecretPrivateRegistryArgs
Package Details
- Repository
- koyeb koyeb/pulumi-koyeb
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
koyeb
Terraform Provider.