@Generated(value="jsii-pacmak/1.5.0 (build 46538f8)", date="2020-05-21T11:01:44.790Z") @Stability(value=Experimental) public class BastionHostLinux extends Construct 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
EXPERIMENTAL
Modifier and Type | Class and Description |
---|---|
static class |
BastionHostLinux.Builder
A fluent builder for
BastionHostLinux . |
software.amazon.jsii.JsiiObject.InitializationMode
IInstance.Jsii$Proxy
Modifier | Constructor and Description |
---|---|
|
BastionHostLinux(Construct scope,
String id,
BastionHostLinuxProps props)
EXPERIMENTAL
|
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)
Allow SSH access from the given peer or peers.
|
Connections |
getConnections()
Allows specify security group connections for the instance.
|
IPrincipal |
getGrantPrincipal()
The principal to grant permissions to.
|
Instance |
getInstance()
The underlying instance resource.
|
String |
getInstanceAvailabilityZone()
The availability zone the instance was launched in.
|
String |
getInstanceId()
The instance's ID.
|
String |
getInstancePrivateDnsName()
Private DNS name for this instance.
|
String |
getInstancePrivateIp()
Private IP for this instance.
|
String |
getInstancePublicDnsName()
Publicly-routable DNS name for this instance.
|
String |
getInstancePublicIp()
Publicly-routable IP address for this instance.
|
IRole |
getRole()
The IAM role assumed by the instance.
|
Stack |
getStack()
The stack in which this resource is defined.
|
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getNode
protected BastionHostLinux(software.amazon.jsii.JsiiObjectRef objRef)
protected BastionHostLinux(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Experimental) public BastionHostLinux(@NotNull 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.
EXPERIMENTAL
peer
- This parameter is required.@Stability(value=Experimental) @NotNull public Connections getConnections()
EXPERIMENTAL
getConnections
in interface IConnectable
@Stability(value=Experimental) @NotNull public IPrincipal getGrantPrincipal()
EXPERIMENTAL
getGrantPrincipal
in interface IGrantable
@Stability(value=Experimental) @NotNull public Instance getInstance()
EXPERIMENTAL
@Stability(value=Experimental) @NotNull public String getInstanceAvailabilityZone()
EXPERIMENTAL
getInstanceAvailabilityZone
in interface IInstance
@Stability(value=Experimental) @NotNull public String getInstanceId()
EXPERIMENTAL
getInstanceId
in interface IInstance
@Stability(value=Experimental) @NotNull public String getInstancePrivateDnsName()
EXPERIMENTAL
getInstancePrivateDnsName
in interface IInstance
@Stability(value=Experimental) @NotNull public String getInstancePrivateIp()
EXPERIMENTAL
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).
EXPERIMENTAL
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).
EXPERIMENTAL
getInstancePublicIp
in interface IInstance
@Stability(value=Experimental) @NotNull public IRole getRole()
EXPERIMENTAL
Copyright © 2020. All rights reserved.