1. Packages
  2. Doppler
  3. API Docs
  4. Secret
Doppler v0.0.10 published on Wednesday, Aug 31, 2022 by Pulumiverse

doppler.Secret

Explore with Pulumi AI

doppler logo
Doppler v0.0.10 published on Wednesday, Aug 31, 2022 by Pulumiverse

    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: SecretArgs,
               opts: Optional[ResourceOptions] = None)
    
    @overload
    def Secret(resource_name: str,
               opts: Optional[ResourceOptions] = None,
               config: Optional[str] = None,
               project: Optional[str] = None,
               value: Optional[str] = None,
               name: Optional[str] = None)
    func NewSecret(ctx *Context, name string, args SecretArgs, opts ...ResourceOption) (*Secret, error)
    public Secret(string name, SecretArgs args, CustomResourceOptions? opts = null)
    public Secret(String name, SecretArgs args)
    public Secret(String name, SecretArgs args, CustomResourceOptions options)
    
    type: doppler:Secret
    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 SecretArgs
    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 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 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 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 String
    The unique name of the resource.
    args SecretArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Example

    The following reference example uses placeholder values for all input properties.

    var secretResource = new Doppler.Secret("secretResource", new()
    {
        Config = "string",
        Project = "string",
        Value = "string",
        Name = "string",
    });
    
    example, err := doppler.NewSecret(ctx, "secretResource", &doppler.SecretArgs{
    	Config:  pulumi.String("string"),
    	Project: pulumi.String("string"),
    	Value:   pulumi.String("string"),
    	Name:    pulumi.String("string"),
    })
    
    var secretResource = new Secret("secretResource", SecretArgs.builder()        
        .config("string")
        .project("string")
        .value("string")
        .name("string")
        .build());
    
    secret_resource = doppler.Secret("secretResource",
        config="string",
        project="string",
        value="string",
        name="string")
    
    const secretResource = new doppler.Secret("secretResource", {
        config: "string",
        project: "string",
        value: "string",
        name: "string",
    });
    
    type: doppler:Secret
    properties:
        config: string
        name: string
        project: string
        value: string
    

    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

    The Secret resource accepts the following input properties:

    Config string
    The name of the Doppler config
    Project string
    The name of the Doppler project
    Value string
    The raw secret value
    Name string
    The name of the Doppler secret
    Config string
    The name of the Doppler config
    Project string
    The name of the Doppler project
    Value string
    The raw secret value
    Name string
    The name of the Doppler secret
    config String
    The name of the Doppler config
    project String
    The name of the Doppler project
    value String
    The raw secret value
    name String
    The name of the Doppler secret
    config string
    The name of the Doppler config
    project string
    The name of the Doppler project
    value string
    The raw secret value
    name string
    The name of the Doppler secret
    config str
    The name of the Doppler config
    project str
    The name of the Doppler project
    value str
    The raw secret value
    name str
    The name of the Doppler secret
    config String
    The name of the Doppler config
    project String
    The name of the Doppler project
    value String
    The raw secret value
    name String
    The name of the Doppler secret

    Outputs

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

    Computed string
    The computed secret value, after resolving secret references
    Id string
    The provider-assigned unique ID for this managed resource.
    Computed string
    The computed secret value, after resolving secret references
    Id string
    The provider-assigned unique ID for this managed resource.
    computed String
    The computed secret value, after resolving secret references
    id String
    The provider-assigned unique ID for this managed resource.
    computed string
    The computed secret value, after resolving secret references
    id string
    The provider-assigned unique ID for this managed resource.
    computed str
    The computed secret value, after resolving secret references
    id str
    The provider-assigned unique ID for this managed resource.
    computed String
    The computed secret value, after resolving secret references
    id String
    The provider-assigned unique ID for this managed resource.

    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,
            computed: Optional[str] = None,
            config: Optional[str] = None,
            name: Optional[str] = None,
            project: Optional[str] = None,
            value: Optional[str] = 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)
    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.
    The following state arguments are supported:
    Computed string
    The computed secret value, after resolving secret references
    Config string
    The name of the Doppler config
    Name string
    The name of the Doppler secret
    Project string
    The name of the Doppler project
    Value string
    The raw secret value
    Computed string
    The computed secret value, after resolving secret references
    Config string
    The name of the Doppler config
    Name string
    The name of the Doppler secret
    Project string
    The name of the Doppler project
    Value string
    The raw secret value
    computed String
    The computed secret value, after resolving secret references
    config String
    The name of the Doppler config
    name String
    The name of the Doppler secret
    project String
    The name of the Doppler project
    value String
    The raw secret value
    computed string
    The computed secret value, after resolving secret references
    config string
    The name of the Doppler config
    name string
    The name of the Doppler secret
    project string
    The name of the Doppler project
    value string
    The raw secret value
    computed str
    The computed secret value, after resolving secret references
    config str
    The name of the Doppler config
    name str
    The name of the Doppler secret
    project str
    The name of the Doppler project
    value str
    The raw secret value
    computed String
    The computed secret value, after resolving secret references
    config String
    The name of the Doppler config
    name String
    The name of the Doppler secret
    project String
    The name of the Doppler project
    value String
    The raw secret value

    Package Details

    Repository
    doppler pulumiverse/pulumi-doppler
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the doppler Terraform Provider.
    doppler logo
    Doppler v0.0.10 published on Wednesday, Aug 31, 2022 by Pulumiverse