sdm.ManagedSecret
Explore with Pulumi AI
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:
- Secret
Engine stringId - An ID of a Secret Engine linked with the Managed Secret.
- Name string
- Unique human-readable name of the Managed Secret.
- Dictionary<string, string>
- Tags is a map of key, value pairs.
- Value string
- Sensitive value of the secret.
- Secret
Engine stringId - An ID of a Secret Engine linked with the Managed Secret.
- Name string
- Unique human-readable name of the Managed Secret.
- map[string]string
- Tags is a map of key, value pairs.
- Value string
- Sensitive value of the secret.
- secret
Engine StringId - An ID of a Secret Engine linked with the Managed Secret.
- name String
- Unique human-readable name of the Managed Secret.
- Map<String,String>
- Tags is a map of key, value pairs.
- value String
- Sensitive value of the secret.
- secret
Engine stringId - An ID of a Secret Engine linked with the Managed Secret.
- name string
- Unique human-readable name of the Managed Secret.
- {[key: string]: string}
- Tags is a map of key, value pairs.
- value string
- Sensitive value of the secret.
- secret_
engine_ strid - An ID of a Secret Engine linked with the Managed Secret.
- name str
- Unique human-readable name of the Managed Secret.
- Mapping[str, str]
- Tags is a map of key, value pairs.
- value str
- Sensitive value of the secret.
- secret
Engine StringId - An ID of a Secret Engine linked with the Managed Secret.
- name String
- Unique human-readable name of the Managed Secret.
- 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
- Expires
At string - Timestamp of when secret is going to be rotated
- Id string
- The provider-assigned unique ID for this managed resource.
- Last
Rotated stringAt - Timestamp of when secret was last rotated
- Secret
Store stringPath - Path in a secret store.
- Config string
- public part of the secret value
- Expires
At string - Timestamp of when secret is going to be rotated
- Id string
- The provider-assigned unique ID for this managed resource.
- Last
Rotated stringAt - Timestamp of when secret was last rotated
- Secret
Store stringPath - Path in a secret store.
- config String
- public part of the secret value
- expires
At String - Timestamp of when secret is going to be rotated
- id String
- The provider-assigned unique ID for this managed resource.
- last
Rotated StringAt - Timestamp of when secret was last rotated
- secret
Store StringPath - Path in a secret store.
- config string
- public part of the secret value
- expires
At string - Timestamp of when secret is going to be rotated
- id string
- The provider-assigned unique ID for this managed resource.
- last
Rotated stringAt - Timestamp of when secret was last rotated
- secret
Store stringPath - 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_ strat - Timestamp of when secret was last rotated
- secret_
store_ strpath - Path in a secret store.
- config String
- public part of the secret value
- expires
At String - Timestamp of when secret is going to be rotated
- id String
- The provider-assigned unique ID for this managed resource.
- last
Rotated StringAt - Timestamp of when secret was last rotated
- secret
Store StringPath - 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.
- Config string
- public part of the secret value
- Expires
At string - Timestamp of when secret is going to be rotated
- Last
Rotated stringAt - Timestamp of when secret was last rotated
- Name string
- Unique human-readable name of the Managed Secret.
- Secret
Engine stringId - An ID of a Secret Engine linked with the Managed Secret.
- Secret
Store stringPath - Path in a secret store.
- 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
- Expires
At string - Timestamp of when secret is going to be rotated
- Last
Rotated stringAt - Timestamp of when secret was last rotated
- Name string
- Unique human-readable name of the Managed Secret.
- Secret
Engine stringId - An ID of a Secret Engine linked with the Managed Secret.
- Secret
Store stringPath - Path in a secret store.
- 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
- expires
At String - Timestamp of when secret is going to be rotated
- last
Rotated StringAt - Timestamp of when secret was last rotated
- name String
- Unique human-readable name of the Managed Secret.
- secret
Engine StringId - An ID of a Secret Engine linked with the Managed Secret.
- secret
Store StringPath - Path in a secret store.
- 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
- expires
At string - Timestamp of when secret is going to be rotated
- last
Rotated stringAt - Timestamp of when secret was last rotated
- name string
- Unique human-readable name of the Managed Secret.
- secret
Engine stringId - An ID of a Secret Engine linked with the Managed Secret.
- secret
Store stringPath - Path in a secret store.
- {[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_ strat - Timestamp of when secret was last rotated
- name str
- Unique human-readable name of the Managed Secret.
- secret_
engine_ strid - An ID of a Secret Engine linked with the Managed Secret.
- secret_
store_ strpath - Path in a secret store.
- 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
- expires
At String - Timestamp of when secret is going to be rotated
- last
Rotated StringAt - Timestamp of when secret was last rotated
- name String
- Unique human-readable name of the Managed Secret.
- secret
Engine StringId - An ID of a Secret Engine linked with the Managed Secret.
- secret
Store StringPath - Path in a secret store.
- 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.