@Generated(value="jsii-pacmak/1.29.0 (build 41df200)", date="2021-06-02T09:55:16.947Z") @Stability(value=Experimental) public class BastionHostLinux extends Resource implements IInstance
The recommended way to connect to the bastion host is by using AWS Systems Manager Session Manager.
The operating system is Amazon Linux 2 with the latest SSM agent installed
You can also configure this bastion host to allow connections via SSH
| Modifier and Type | Class and Description |
|---|---|
static class |
BastionHostLinux.Builder
(experimental) A fluent builder for
BastionHostLinux. |
software.amazon.jsii.JsiiObject.InitializationModeIInstance.Jsii$Default, IInstance.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
|
BastionHostLinux(software.constructs.Construct scope,
String id,
BastionHostLinuxProps props) |
protected |
BastionHostLinux(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
BastionHostLinux(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
void |
allowSshAccessFrom(IPeer... peer)
(experimental) Allow SSH access from the given peer or peers.
|
Connections |
getConnections()
(experimental) Allows specify security group connections for the instance.
|
IPrincipal |
getGrantPrincipal()
(experimental) The principal to grant permissions to.
|
Instance |
getInstance()
(experimental) The underlying instance resource.
|
String |
getInstanceAvailabilityZone()
(experimental) The availability zone the instance was launched in.
|
String |
getInstanceId()
(experimental) The instance's ID.
|
String |
getInstancePrivateDnsName()
(experimental) Private DNS name for this instance.
|
String |
getInstancePrivateIp()
(experimental) Private IP for this instance.
|
String |
getInstancePublicDnsName()
(experimental) Publicly-routable DNS name for this instance.
|
String |
getInstancePublicIp()
(experimental) Publicly-routable IP address for this instance.
|
IRole |
getRole()
(experimental) The IAM role assumed by the instance.
|
Stack |
getStack()
(experimental) The stack in which this resource is defined.
|
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, isResourcejsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected BastionHostLinux(software.amazon.jsii.JsiiObjectRef objRef)
protected BastionHostLinux(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Experimental)
public BastionHostLinux(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
BastionHostLinuxProps props)
scope - This parameter is required.id - This parameter is required.props - This parameter is required.@Stability(value=Experimental)
public void allowSshAccessFrom(@NotNull
IPeer... peer)
Necessary if you want to connect to the instance using ssh. If not called, you should use SSM Session Manager to connect to the instance.
peer - This parameter is required.@Stability(value=Experimental) @NotNull public Connections getConnections()
getConnections in interface IConnectable@Stability(value=Experimental) @NotNull public IPrincipal getGrantPrincipal()
getGrantPrincipal in interface IGrantable@Stability(value=Experimental) @NotNull public Instance getInstance()
@Stability(value=Experimental) @NotNull public String getInstanceAvailabilityZone()
getInstanceAvailabilityZone in interface IInstance@Stability(value=Experimental) @NotNull public String getInstanceId()
getInstanceId in interface IInstance@Stability(value=Experimental) @NotNull public String getInstancePrivateDnsName()
getInstancePrivateDnsName in interface IInstance@Stability(value=Experimental) @NotNull public String getInstancePrivateIp()
getInstancePrivateIp in interface IInstance@Stability(value=Experimental) @NotNull public String getInstancePublicDnsName()
(May be an empty string if the instance does not have a public name).
getInstancePublicDnsName in interface IInstance@Stability(value=Experimental) @NotNull public String getInstancePublicIp()
(May be an empty string if the instance does not have a public IP).
getInstancePublicIp in interface IInstance@Stability(value=Experimental) @NotNull public IRole getRole()
Copyright © 2021. All rights reserved.