@Internal public static interface ISSHProvisionerConnection.Jsii$Default extends ISSHProvisionerConnection
ISSHProvisionerConnection
.ISSHProvisionerConnection.Jsii$Default, ISSHProvisionerConnection.Jsii$Proxy
Modifier and Type | Method and Description |
---|---|
default String |
getAgent()
(experimental) Set to false to disable using ssh-agent to authenticate.
|
default String |
getAgentIdentity()
(experimental) The preferred identity from the ssh agent for authentication.
|
default String |
getBastionCertificate()
(experimental) The contents of a signed CA Certificate.
|
default String |
getBastionHost()
(experimental) Setting this enables the bastion Host connection.
|
default String |
getBastionHostKey()
(experimental) The public key from the remote host or the signing CA, used to verify the host connection.
|
default String |
getBastionPassword()
(experimental) The password to use for the bastion host.
|
default Number |
getBastionPort()
(experimental) The port to use connect to the bastion host.
|
default String |
getBastionPrivateKey()
(experimental) The contents of an SSH key file to use for the bastion host.
|
default String |
getBastionUser()
(experimental) The user for the connection to the bastion host.
|
default String |
getCertificate()
(experimental) The contents of a signed CA Certificate.
|
default String |
getHost()
(experimental) The address of the resource to connect to.
|
default String |
getHostKey()
(experimental) The public key from the remote host or the signing CA, used to verify the connection.
|
default String |
getPassword()
(experimental) The password to use for the connection.
|
default Number |
getPort()
(experimental) The port to connect to.
|
default String |
getPrivateKey()
(experimental) The contents of an SSH key to use for the connection.
|
default String |
getProxyHost()
(experimental) Setting this enables the SSH over HTTP connection.
|
default Number |
getProxyPort()
(experimental) The port to use connect to the proxy host.
|
default String |
getProxyScheme()
(experimental) The ssh connection also supports the following fields to facilitate connections by SSH over HTTP proxy.
|
default String |
getProxyUserName()
(experimental) The username to use connect to the private proxy host.
|
default String |
getProxyUserPassword()
(experimental) The password to use connect to the private proxy host.
|
default String |
getScriptPath()
(experimental) The path used to copy scripts meant for remote execution.
|
default String |
getTargetPlatform()
(experimental) The target platform to connect to.
|
default String |
getTimeout()
(experimental) The timeout to wait for the connection to become available.
|
default String |
getType()
(experimental) The connection type.
|
default String |
getUser()
(experimental) The user to use for the connection.
|
@Stability(value=Experimental) @NotNull default String getHost()
getHost
in interface ISSHProvisionerConnection
@Stability(value=Experimental) @NotNull default String getType()
Valid values are "ssh" and "winrm". Provisioners typically assume that the remote system runs Microsoft Windows when using WinRM. Behaviors based on the SSH target_platform will force Windows-specific behavior for WinRM, unless otherwise specified.
getType
in interface ISSHProvisionerConnection
@Stability(value=Experimental) @Nullable default String getAgent()
On Windows the only supported SSH authentication agent is Pageant.
getAgent
in interface ISSHProvisionerConnection
@Stability(value=Experimental) @Nullable default String getAgentIdentity()
getAgentIdentity
in interface ISSHProvisionerConnection
@Stability(value=Experimental) @Nullable default String getBastionCertificate()
The certificate argument must be used in conjunction with a bastion_private_key. These can be loaded from a file on disk using the the file function.
getBastionCertificate
in interface ISSHProvisionerConnection
@Stability(value=Experimental) @Nullable default String getBastionHost()
The provisioner will connect to bastion_host first, and then connect from there to host.
getBastionHost
in interface ISSHProvisionerConnection
@Stability(value=Experimental) @Nullable default String getBastionHostKey()
getBastionHostKey
in interface ISSHProvisionerConnection
@Stability(value=Experimental) @Nullable default String getBastionPassword()
getBastionPassword
in interface ISSHProvisionerConnection
@Stability(value=Experimental) @Nullable default Number getBastionPort()
getBastionPort
in interface ISSHProvisionerConnection
@Stability(value=Experimental) @Nullable default String getBastionPrivateKey()
These can be loaded from a file on disk using the file function.
getBastionPrivateKey
in interface ISSHProvisionerConnection
@Stability(value=Experimental) @Nullable default String getBastionUser()
getBastionUser
in interface ISSHProvisionerConnection
@Stability(value=Experimental) @Nullable default String getCertificate()
The certificate argument must be used in conjunction with a private_key. These can be loaded from a file on disk using the the file function.
getCertificate
in interface ISSHProvisionerConnection
@Stability(value=Experimental) @Nullable default String getHostKey()
getHostKey
in interface ISSHProvisionerConnection
@Stability(value=Experimental) @Nullable default String getPassword()
getPassword
in interface ISSHProvisionerConnection
@Stability(value=Experimental) @Nullable default Number getPort()
Default: 22
getPort
in interface ISSHProvisionerConnection
@Stability(value=Experimental) @Nullable default String getPrivateKey()
These can be loaded from a file on disk using the file function. This takes preference over password if provided.
getPrivateKey
in interface ISSHProvisionerConnection
@Stability(value=Experimental) @Nullable default String getProxyHost()
This host will be connected to first, and then the host or bastion_host connection will be made from there.
getProxyHost
in interface ISSHProvisionerConnection
@Stability(value=Experimental) @Nullable default Number getProxyPort()
getProxyPort
in interface ISSHProvisionerConnection
@Stability(value=Experimental) @Nullable default String getProxyScheme()
getProxyScheme
in interface ISSHProvisionerConnection
@Stability(value=Experimental) @Nullable default String getProxyUserName()
This argument should be specified only if authentication is required for the HTTP Proxy server.
getProxyUserName
in interface ISSHProvisionerConnection
@Stability(value=Experimental) @Nullable default String getProxyUserPassword()
This argument should be specified only if authentication is required for the HTTP Proxy server.
getProxyUserPassword
in interface ISSHProvisionerConnection
@Stability(value=Experimental) @Nullable default String getScriptPath()
Refer to {@link https://www.terraform.io/language/resources/provisioners/connection#how-provisioners-execute-remote-scripts How Provisioners Execute Remote Scripts below for more details}
getScriptPath
in interface ISSHProvisionerConnection
@Stability(value=Experimental) @Nullable default String getTargetPlatform()
Valid values are "windows" and "unix". If the platform is set to windows, the default script_path is c:\windows\temp\terraform_%RAND%.cmd, assuming the SSH default shell is cmd.exe. If the SSH default shell is PowerShell, set script_path to "c:/windows/temp/terraform_%RAND%.ps1"
Default: unix
getTargetPlatform
in interface ISSHProvisionerConnection
@Stability(value=Experimental) @Nullable default String getTimeout()
Should be provided as a string (e.g., "30s" or "5m".)
Default: 5m
getTimeout
in interface ISSHProvisionerConnection
@Stability(value=Experimental) @Nullable default String getUser()
Default: root
getUser
in interface ISSHProvisionerConnection
Copyright © 2022. All rights reserved.