awx.CredentialMachine
Explore with Pulumi AI
TBD
Create CredentialMachine Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new CredentialMachine(name: string, args: CredentialMachineArgs, opts?: CustomResourceOptions);
@overload
def CredentialMachine(resource_name: str,
args: CredentialMachineArgs,
opts: Optional[ResourceOptions] = None)
@overload
def CredentialMachine(resource_name: str,
opts: Optional[ResourceOptions] = None,
organization_id: Optional[float] = None,
become_method: Optional[str] = None,
become_password: Optional[str] = None,
become_username: Optional[str] = None,
credential_machine_id: Optional[str] = None,
description: Optional[str] = None,
name: Optional[str] = None,
password: Optional[str] = None,
ssh_key_data: Optional[str] = None,
ssh_key_unlock: Optional[str] = None,
ssh_public_key_data: Optional[str] = None,
username: Optional[str] = None)
func NewCredentialMachine(ctx *Context, name string, args CredentialMachineArgs, opts ...ResourceOption) (*CredentialMachine, error)
public CredentialMachine(string name, CredentialMachineArgs args, CustomResourceOptions? opts = null)
public CredentialMachine(String name, CredentialMachineArgs args)
public CredentialMachine(String name, CredentialMachineArgs args, CustomResourceOptions options)
type: awx:CredentialMachine
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 CredentialMachineArgs
- 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 CredentialMachineArgs
- 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 CredentialMachineArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CredentialMachineArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args CredentialMachineArgs
- 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 credentialMachineResource = new Awx.CredentialMachine("credentialMachineResource", new()
{
OrganizationId = 0,
BecomeMethod = "string",
BecomePassword = "string",
BecomeUsername = "string",
CredentialMachineId = "string",
Description = "string",
Name = "string",
Password = "string",
SshKeyData = "string",
SshKeyUnlock = "string",
SshPublicKeyData = "string",
Username = "string",
});
example, err := awx.NewCredentialMachine(ctx, "credentialMachineResource", &awx.CredentialMachineArgs{
OrganizationId: pulumi.Float64(0),
BecomeMethod: pulumi.String("string"),
BecomePassword: pulumi.String("string"),
BecomeUsername: pulumi.String("string"),
CredentialMachineId: pulumi.String("string"),
Description: pulumi.String("string"),
Name: pulumi.String("string"),
Password: pulumi.String("string"),
SshKeyData: pulumi.String("string"),
SshKeyUnlock: pulumi.String("string"),
SshPublicKeyData: pulumi.String("string"),
Username: pulumi.String("string"),
})
var credentialMachineResource = new CredentialMachine("credentialMachineResource", CredentialMachineArgs.builder()
.organizationId(0)
.becomeMethod("string")
.becomePassword("string")
.becomeUsername("string")
.credentialMachineId("string")
.description("string")
.name("string")
.password("string")
.sshKeyData("string")
.sshKeyUnlock("string")
.sshPublicKeyData("string")
.username("string")
.build());
credential_machine_resource = awx.CredentialMachine("credentialMachineResource",
organization_id=0,
become_method="string",
become_password="string",
become_username="string",
credential_machine_id="string",
description="string",
name="string",
password="string",
ssh_key_data="string",
ssh_key_unlock="string",
ssh_public_key_data="string",
username="string")
const credentialMachineResource = new awx.CredentialMachine("credentialMachineResource", {
organizationId: 0,
becomeMethod: "string",
becomePassword: "string",
becomeUsername: "string",
credentialMachineId: "string",
description: "string",
name: "string",
password: "string",
sshKeyData: "string",
sshKeyUnlock: "string",
sshPublicKeyData: "string",
username: "string",
});
type: awx:CredentialMachine
properties:
becomeMethod: string
becomePassword: string
becomeUsername: string
credentialMachineId: string
description: string
name: string
organizationId: 0
password: string
sshKeyData: string
sshKeyUnlock: string
sshPublicKeyData: string
username: string
CredentialMachine 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 CredentialMachine resource accepts the following input properties:
- Organization
Id double - Become
Method string - Become
Password string - Become
Username string - Credential
Machine stringId - Description string
- Name string
- Password string
- Ssh
Key stringData - Ssh
Key stringUnlock - Ssh
Public stringKey Data - Username string
- Organization
Id float64 - Become
Method string - Become
Password string - Become
Username string - Credential
Machine stringId - Description string
- Name string
- Password string
- Ssh
Key stringData - Ssh
Key stringUnlock - Ssh
Public stringKey Data - Username string
- organization
Id Double - become
Method String - become
Password String - become
Username String - credential
Machine StringId - description String
- name String
- password String
- ssh
Key StringData - ssh
Key StringUnlock - ssh
Public StringKey Data - username String
- organization
Id number - become
Method string - become
Password string - become
Username string - credential
Machine stringId - description string
- name string
- password string
- ssh
Key stringData - ssh
Key stringUnlock - ssh
Public stringKey Data - username string
- organization_
id float - become_
method str - become_
password str - become_
username str - credential_
machine_ strid - description str
- name str
- password str
- ssh_
key_ strdata - ssh_
key_ strunlock - ssh_
public_ strkey_ data - username str
- organization
Id Number - become
Method String - become
Password String - become
Username String - credential
Machine StringId - description String
- name String
- password String
- ssh
Key StringData - ssh
Key StringUnlock - ssh
Public StringKey Data - username String
Outputs
All input properties are implicitly available as output properties. Additionally, the CredentialMachine resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing CredentialMachine Resource
Get an existing CredentialMachine 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?: CredentialMachineState, opts?: CustomResourceOptions): CredentialMachine
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
become_method: Optional[str] = None,
become_password: Optional[str] = None,
become_username: Optional[str] = None,
credential_machine_id: Optional[str] = None,
description: Optional[str] = None,
name: Optional[str] = None,
organization_id: Optional[float] = None,
password: Optional[str] = None,
ssh_key_data: Optional[str] = None,
ssh_key_unlock: Optional[str] = None,
ssh_public_key_data: Optional[str] = None,
username: Optional[str] = None) -> CredentialMachine
func GetCredentialMachine(ctx *Context, name string, id IDInput, state *CredentialMachineState, opts ...ResourceOption) (*CredentialMachine, error)
public static CredentialMachine Get(string name, Input<string> id, CredentialMachineState? state, CustomResourceOptions? opts = null)
public static CredentialMachine get(String name, Output<String> id, CredentialMachineState state, CustomResourceOptions options)
resources: _: type: awx:CredentialMachine 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.
- Become
Method string - Become
Password string - Become
Username string - Credential
Machine stringId - Description string
- Name string
- Organization
Id double - Password string
- Ssh
Key stringData - Ssh
Key stringUnlock - Ssh
Public stringKey Data - Username string
- Become
Method string - Become
Password string - Become
Username string - Credential
Machine stringId - Description string
- Name string
- Organization
Id float64 - Password string
- Ssh
Key stringData - Ssh
Key stringUnlock - Ssh
Public stringKey Data - Username string
- become
Method String - become
Password String - become
Username String - credential
Machine StringId - description String
- name String
- organization
Id Double - password String
- ssh
Key StringData - ssh
Key StringUnlock - ssh
Public StringKey Data - username String
- become
Method string - become
Password string - become
Username string - credential
Machine stringId - description string
- name string
- organization
Id number - password string
- ssh
Key stringData - ssh
Key stringUnlock - ssh
Public stringKey Data - username string
- become_
method str - become_
password str - become_
username str - credential_
machine_ strid - description str
- name str
- organization_
id float - password str
- ssh_
key_ strdata - ssh_
key_ strunlock - ssh_
public_ strkey_ data - username str
- become
Method String - become
Password String - become
Username String - credential
Machine StringId - description String
- name String
- organization
Id Number - password String
- ssh
Key StringData - ssh
Key StringUnlock - ssh
Public StringKey Data - username String
Package Details
- Repository
- awx denouche/terraform-provider-awx
- License
- Notes
- This Pulumi package is based on the
awx
Terraform Provider.