LocalUser resource
Create LocalUser Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new LocalUser(name: string, args: LocalUserArgs, opts?: CustomResourceOptions);@overload
def LocalUser(resource_name: str,
args: LocalUserArgs,
opts: Optional[ResourceOptions] = None)
@overload
def LocalUser(resource_name: str,
opts: Optional[ResourceOptions] = None,
password: Optional[str] = None,
device: Optional[str] = None,
disabled: Optional[bool] = None,
folder: Optional[str] = None,
name: Optional[str] = None,
snippet: Optional[str] = None)func NewLocalUser(ctx *Context, name string, args LocalUserArgs, opts ...ResourceOption) (*LocalUser, error)public LocalUser(string name, LocalUserArgs args, CustomResourceOptions? opts = null)
public LocalUser(String name, LocalUserArgs args)
public LocalUser(String name, LocalUserArgs args, CustomResourceOptions options)
type: scm:LocalUser
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 LocalUserArgs
- 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 LocalUserArgs
- 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 LocalUserArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args LocalUserArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args LocalUserArgs
- 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 localUserResource = new Scm.LocalUser("localUserResource", new()
{
Password = "string",
Device = "string",
Disabled = false,
Folder = "string",
Name = "string",
Snippet = "string",
});
example, err := scm.NewLocalUser(ctx, "localUserResource", &scm.LocalUserArgs{
Password: pulumi.String("string"),
Device: pulumi.String("string"),
Disabled: pulumi.Bool(false),
Folder: pulumi.String("string"),
Name: pulumi.String("string"),
Snippet: pulumi.String("string"),
})
var localUserResource = new LocalUser("localUserResource", LocalUserArgs.builder()
.password("string")
.device("string")
.disabled(false)
.folder("string")
.name("string")
.snippet("string")
.build());
local_user_resource = scm.LocalUser("localUserResource",
password="string",
device="string",
disabled=False,
folder="string",
name="string",
snippet="string")
const localUserResource = new scm.LocalUser("localUserResource", {
password: "string",
device: "string",
disabled: false,
folder: "string",
name: "string",
snippet: "string",
});
type: scm:LocalUser
properties:
device: string
disabled: false
folder: string
name: string
password: string
snippet: string
LocalUser 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 LocalUser resource accepts the following input properties:
Outputs
All input properties are implicitly available as output properties. Additionally, the LocalUser resource produces the following output properties:
- Encrypted
Values Dictionary<string, string> - Map of sensitive values returned from the API.
- Id string
- The provider-assigned unique ID for this managed resource.
- Tfid string
- Encrypted
Values map[string]string - Map of sensitive values returned from the API.
- Id string
- The provider-assigned unique ID for this managed resource.
- Tfid string
- encrypted
Values Map<String,String> - Map of sensitive values returned from the API.
- id String
- The provider-assigned unique ID for this managed resource.
- tfid String
- encrypted
Values {[key: string]: string} - Map of sensitive values returned from the API.
- id string
- The provider-assigned unique ID for this managed resource.
- tfid string
- encrypted_
values Mapping[str, str] - Map of sensitive values returned from the API.
- id str
- The provider-assigned unique ID for this managed resource.
- tfid str
- encrypted
Values Map<String> - Map of sensitive values returned from the API.
- id String
- The provider-assigned unique ID for this managed resource.
- tfid String
Look up Existing LocalUser Resource
Get an existing LocalUser 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?: LocalUserState, opts?: CustomResourceOptions): LocalUser@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
device: Optional[str] = None,
disabled: Optional[bool] = None,
encrypted_values: Optional[Mapping[str, str]] = None,
folder: Optional[str] = None,
name: Optional[str] = None,
password: Optional[str] = None,
snippet: Optional[str] = None,
tfid: Optional[str] = None) -> LocalUserfunc GetLocalUser(ctx *Context, name string, id IDInput, state *LocalUserState, opts ...ResourceOption) (*LocalUser, error)public static LocalUser Get(string name, Input<string> id, LocalUserState? state, CustomResourceOptions? opts = null)public static LocalUser get(String name, Output<String> id, LocalUserState state, CustomResourceOptions options)resources: _: type: scm:LocalUser 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.
- Device string
- The device in which the resource is defined
- Disabled bool
- Is the local user disabled?
- Encrypted
Values Dictionary<string, string> - Map of sensitive values returned from the API.
- Folder string
- The folder in which the resource is defined
- Name string
- The name of the local user
- Password string
- The password of the local user
- Snippet string
- The snippet in which the resource is defined
- Tfid string
- Device string
- The device in which the resource is defined
- Disabled bool
- Is the local user disabled?
- Encrypted
Values map[string]string - Map of sensitive values returned from the API.
- Folder string
- The folder in which the resource is defined
- Name string
- The name of the local user
- Password string
- The password of the local user
- Snippet string
- The snippet in which the resource is defined
- Tfid string
- device String
- The device in which the resource is defined
- disabled Boolean
- Is the local user disabled?
- encrypted
Values Map<String,String> - Map of sensitive values returned from the API.
- folder String
- The folder in which the resource is defined
- name String
- The name of the local user
- password String
- The password of the local user
- snippet String
- The snippet in which the resource is defined
- tfid String
- device string
- The device in which the resource is defined
- disabled boolean
- Is the local user disabled?
- encrypted
Values {[key: string]: string} - Map of sensitive values returned from the API.
- folder string
- The folder in which the resource is defined
- name string
- The name of the local user
- password string
- The password of the local user
- snippet string
- The snippet in which the resource is defined
- tfid string
- device str
- The device in which the resource is defined
- disabled bool
- Is the local user disabled?
- encrypted_
values Mapping[str, str] - Map of sensitive values returned from the API.
- folder str
- The folder in which the resource is defined
- name str
- The name of the local user
- password str
- The password of the local user
- snippet str
- The snippet in which the resource is defined
- tfid str
- device String
- The device in which the resource is defined
- disabled Boolean
- Is the local user disabled?
- encrypted
Values Map<String> - Map of sensitive values returned from the API.
- folder String
- The folder in which the resource is defined
- name String
- The name of the local user
- password String
- The password of the local user
- snippet String
- The snippet in which the resource is defined
- tfid String
Package Details
- Repository
- scm pulumi/pulumi-scm
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
scmTerraform Provider.
