1. Packages
  2. StrongDM
  3. API Docs
  4. ManagedSecret
StrongDM v1.27.0 published on Sunday, Apr 20, 2025 by Piers Karsenbarg

sdm.ManagedSecret

Explore with Pulumi AI

sdm logo
StrongDM v1.27.0 published on Sunday, Apr 20, 2025 by Piers Karsenbarg

    ManagedSecret contains details about managed secret This resource can be imported using the import command.

    Create ManagedSecret Resource

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

    Constructor syntax

    new ManagedSecret(name: string, args: ManagedSecretArgs, opts?: CustomResourceOptions);
    @overload
    def ManagedSecret(resource_name: str,
                      args: ManagedSecretArgs,
                      opts: Optional[ResourceOptions] = None)
    
    @overload
    def ManagedSecret(resource_name: str,
                      opts: Optional[ResourceOptions] = None,
                      secret_engine_id: Optional[str] = None,
                      name: Optional[str] = None,
                      tags: Optional[Mapping[str, str]] = None,
                      value: Optional[str] = None)
    func NewManagedSecret(ctx *Context, name string, args ManagedSecretArgs, opts ...ResourceOption) (*ManagedSecret, error)
    public ManagedSecret(string name, ManagedSecretArgs args, CustomResourceOptions? opts = null)
    public ManagedSecret(String name, ManagedSecretArgs args)
    public ManagedSecret(String name, ManagedSecretArgs args, CustomResourceOptions options)
    
    type: sdm:ManagedSecret
    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 ManagedSecretArgs
    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 ManagedSecretArgs
    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 ManagedSecretArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ManagedSecretArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ManagedSecretArgs
    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 managedSecretResource = new Sdm.ManagedSecret("managedSecretResource", new()
    {
        SecretEngineId = "string",
        Name = "string",
        Tags = 
        {
            { "string", "string" },
        },
        Value = "string",
    });
    
    example, err := sdm.NewManagedSecret(ctx, "managedSecretResource", &sdm.ManagedSecretArgs{
    	SecretEngineId: pulumi.String("string"),
    	Name:           pulumi.String("string"),
    	Tags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	Value: pulumi.String("string"),
    })
    
    var managedSecretResource = new ManagedSecret("managedSecretResource", ManagedSecretArgs.builder()
        .secretEngineId("string")
        .name("string")
        .tags(Map.of("string", "string"))
        .value("string")
        .build());
    
    managed_secret_resource = sdm.ManagedSecret("managedSecretResource",
        secret_engine_id="string",
        name="string",
        tags={
            "string": "string",
        },
        value="string")
    
    const managedSecretResource = new sdm.ManagedSecret("managedSecretResource", {
        secretEngineId: "string",
        name: "string",
        tags: {
            string: "string",
        },
        value: "string",
    });
    
    type: sdm:ManagedSecret
    properties:
        name: string
        secretEngineId: string
        tags:
            string: string
        value: string
    

    ManagedSecret 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 ManagedSecret resource accepts the following input properties:

    SecretEngineId string
    An ID of a Secret Engine linked with the Managed Secret.
    Name string
    Unique human-readable name of the Managed Secret.
    Tags Dictionary<string, string>
    Tags is a map of key, value pairs.
    Value string
    Sensitive value of the secret.
    SecretEngineId string
    An ID of a Secret Engine linked with the Managed Secret.
    Name string
    Unique human-readable name of the Managed Secret.
    Tags map[string]string
    Tags is a map of key, value pairs.
    Value string
    Sensitive value of the secret.
    secretEngineId String
    An ID of a Secret Engine linked with the Managed Secret.
    name String
    Unique human-readable name of the Managed Secret.
    tags Map<String,String>
    Tags is a map of key, value pairs.
    value String
    Sensitive value of the secret.
    secretEngineId string
    An ID of a Secret Engine linked with the Managed Secret.
    name string
    Unique human-readable name of the Managed Secret.
    tags {[key: string]: string}
    Tags is a map of key, value pairs.
    value string
    Sensitive value of the secret.
    secret_engine_id str
    An ID of a Secret Engine linked with the Managed Secret.
    name str
    Unique human-readable name of the Managed Secret.
    tags Mapping[str, str]
    Tags is a map of key, value pairs.
    value str
    Sensitive value of the secret.
    secretEngineId String
    An ID of a Secret Engine linked with the Managed Secret.
    name String
    Unique human-readable name of the Managed Secret.
    tags Map<String>
    Tags is a map of key, value pairs.
    value String
    Sensitive value of the secret.

    Outputs

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

    Config string
    public part of the secret value
    ExpiresAt string
    Timestamp of when secret is going to be rotated
    Id string
    The provider-assigned unique ID for this managed resource.
    LastRotatedAt string
    Timestamp of when secret was last rotated
    SecretStorePath string
    Path in a secret store.
    Config string
    public part of the secret value
    ExpiresAt string
    Timestamp of when secret is going to be rotated
    Id string
    The provider-assigned unique ID for this managed resource.
    LastRotatedAt string
    Timestamp of when secret was last rotated
    SecretStorePath string
    Path in a secret store.
    config String
    public part of the secret value
    expiresAt String
    Timestamp of when secret is going to be rotated
    id String
    The provider-assigned unique ID for this managed resource.
    lastRotatedAt String
    Timestamp of when secret was last rotated
    secretStorePath String
    Path in a secret store.
    config string
    public part of the secret value
    expiresAt string
    Timestamp of when secret is going to be rotated
    id string
    The provider-assigned unique ID for this managed resource.
    lastRotatedAt string
    Timestamp of when secret was last rotated
    secretStorePath string
    Path in a secret store.
    config str
    public part of the secret value
    expires_at str
    Timestamp of when secret is going to be rotated
    id str
    The provider-assigned unique ID for this managed resource.
    last_rotated_at str
    Timestamp of when secret was last rotated
    secret_store_path str
    Path in a secret store.
    config String
    public part of the secret value
    expiresAt String
    Timestamp of when secret is going to be rotated
    id String
    The provider-assigned unique ID for this managed resource.
    lastRotatedAt String
    Timestamp of when secret was last rotated
    secretStorePath String
    Path in a secret store.

    Look up Existing ManagedSecret Resource

    Get an existing ManagedSecret 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?: ManagedSecretState, opts?: CustomResourceOptions): ManagedSecret
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            config: Optional[str] = None,
            expires_at: Optional[str] = None,
            last_rotated_at: Optional[str] = None,
            name: Optional[str] = None,
            secret_engine_id: Optional[str] = None,
            secret_store_path: Optional[str] = None,
            tags: Optional[Mapping[str, str]] = None,
            value: Optional[str] = None) -> ManagedSecret
    func GetManagedSecret(ctx *Context, name string, id IDInput, state *ManagedSecretState, opts ...ResourceOption) (*ManagedSecret, error)
    public static ManagedSecret Get(string name, Input<string> id, ManagedSecretState? state, CustomResourceOptions? opts = null)
    public static ManagedSecret get(String name, Output<String> id, ManagedSecretState state, CustomResourceOptions options)
    resources:  _:    type: sdm:ManagedSecret    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.
    The following state arguments are supported:
    Config string
    public part of the secret value
    ExpiresAt string
    Timestamp of when secret is going to be rotated
    LastRotatedAt string
    Timestamp of when secret was last rotated
    Name string
    Unique human-readable name of the Managed Secret.
    SecretEngineId string
    An ID of a Secret Engine linked with the Managed Secret.
    SecretStorePath string
    Path in a secret store.
    Tags Dictionary<string, string>
    Tags is a map of key, value pairs.
    Value string
    Sensitive value of the secret.
    Config string
    public part of the secret value
    ExpiresAt string
    Timestamp of when secret is going to be rotated
    LastRotatedAt string
    Timestamp of when secret was last rotated
    Name string
    Unique human-readable name of the Managed Secret.
    SecretEngineId string
    An ID of a Secret Engine linked with the Managed Secret.
    SecretStorePath string
    Path in a secret store.
    Tags map[string]string
    Tags is a map of key, value pairs.
    Value string
    Sensitive value of the secret.
    config String
    public part of the secret value
    expiresAt String
    Timestamp of when secret is going to be rotated
    lastRotatedAt String
    Timestamp of when secret was last rotated
    name String
    Unique human-readable name of the Managed Secret.
    secretEngineId String
    An ID of a Secret Engine linked with the Managed Secret.
    secretStorePath String
    Path in a secret store.
    tags Map<String,String>
    Tags is a map of key, value pairs.
    value String
    Sensitive value of the secret.
    config string
    public part of the secret value
    expiresAt string
    Timestamp of when secret is going to be rotated
    lastRotatedAt string
    Timestamp of when secret was last rotated
    name string
    Unique human-readable name of the Managed Secret.
    secretEngineId string
    An ID of a Secret Engine linked with the Managed Secret.
    secretStorePath string
    Path in a secret store.
    tags {[key: string]: string}
    Tags is a map of key, value pairs.
    value string
    Sensitive value of the secret.
    config str
    public part of the secret value
    expires_at str
    Timestamp of when secret is going to be rotated
    last_rotated_at str
    Timestamp of when secret was last rotated
    name str
    Unique human-readable name of the Managed Secret.
    secret_engine_id str
    An ID of a Secret Engine linked with the Managed Secret.
    secret_store_path str
    Path in a secret store.
    tags Mapping[str, str]
    Tags is a map of key, value pairs.
    value str
    Sensitive value of the secret.
    config String
    public part of the secret value
    expiresAt String
    Timestamp of when secret is going to be rotated
    lastRotatedAt String
    Timestamp of when secret was last rotated
    name String
    Unique human-readable name of the Managed Secret.
    secretEngineId String
    An ID of a Secret Engine linked with the Managed Secret.
    secretStorePath String
    Path in a secret store.
    tags Map<String>
    Tags is a map of key, value pairs.
    value String
    Sensitive value of the secret.

    Import

    A ManagedSecret can be imported using the id, e.g.,

    $ pulumi import sdm:index/managedSecret:ManagedSecret example ms-12345678
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    sdm pierskarsenbarg/pulumi-sdm
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the sdm Terraform Provider.
    sdm logo
    StrongDM v1.27.0 published on Sunday, Apr 20, 2025 by Piers Karsenbarg