Show / Hide Table of Contents

Class BastionHostLinux

(experimental) This creates a linux bastion host you can use to connect to other instances or services in your VPC.

Inheritance
System.Object
Construct
Resource
BastionHostLinux
Implements
IInstance
IResource
IConstruct
Constructs.IConstruct
IDependable
IConnectable
IGrantable
Inherited Members
Resource.IsResource(IConstruct)
Resource.ApplyRemovalPolicy(RemovalPolicy)
Resource.GeneratePhysicalName()
Resource.GetResourceArnAttribute(String, IArnComponents)
Resource.GetResourceNameAttribute(String)
Resource.Env
Resource.PhysicalName
Construct.IsConstruct(Object)
Construct.OnPrepare()
Construct.OnSynthesize(ISynthesisSession)
Construct.OnValidate()
Construct.Prepare()
Construct.Synthesize(ISynthesisSession)
Construct.Validate()
Construct.Node
Namespace: Amazon.CDK.AWS.EC2
Assembly: Amazon.CDK.AWS.EC2.dll
Syntax (csharp)
public class BastionHostLinux : Resource, IInstance, IResource, IConstruct, IConstruct, IDependable, IConnectable, IGrantable
Syntax (vb)
Public Class BastionHostLinux
    Inherits Resource
    Implements IInstance, IResource, IConstruct, IConstruct, IDependable, IConnectable, IGrantable
Remarks

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

Stability: Experimental

Resource: AWS::EC2::Instance

Synopsis

Constructors

BastionHostLinux(ByRefValue)

Used by jsii to construct an instance of this class from a Javascript-owned object reference

BastionHostLinux(DeputyBase.DeputyProps)

Used by jsii to construct an instance of this class from DeputyProps

BastionHostLinux(Construct, String, IBastionHostLinuxProps)

Properties

Connections

(experimental) Allows specify security group connections for the instance.

GrantPrincipal

(experimental) The principal to grant permissions to.

Instance

(experimental) The underlying instance resource.

InstanceAvailabilityZone

(experimental) The availability zone the instance was launched in.

InstanceId

(experimental) The instance's ID.

InstancePrivateDnsName

(experimental) Private DNS name for this instance.

InstancePrivateIp

(experimental) Private IP for this instance.

InstancePublicDnsName

(experimental) Publicly-routable DNS name for this instance.

InstancePublicIp

(experimental) Publicly-routable IP address for this instance.

Role

(experimental) The IAM role assumed by the instance.

Stack

(experimental) The stack in which this resource is defined.

Methods

AllowSshAccessFrom(IPeer[])

(experimental) Allow SSH access from the given peer or peers.

Constructors

BastionHostLinux(ByRefValue)

Used by jsii to construct an instance of this class from a Javascript-owned object reference

protected BastionHostLinux(ByRefValue reference)
Parameters
reference Amazon.JSII.Runtime.Deputy.ByRefValue

The Javascript-owned object reference

BastionHostLinux(DeputyBase.DeputyProps)

Used by jsii to construct an instance of this class from DeputyProps

protected BastionHostLinux(DeputyBase.DeputyProps props)
Parameters
props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps

The deputy props

BastionHostLinux(Construct, String, IBastionHostLinuxProps)

public BastionHostLinux(Construct scope, string id, IBastionHostLinuxProps props)
Parameters
scope Constructs.Construct
id System.String
props IBastionHostLinuxProps
Remarks

Stability: Experimental

Properties

Connections

(experimental) Allows specify security group connections for the instance.

public virtual Connections_ Connections { get; }
Property Value

Connections_

Remarks

Stability: Experimental

GrantPrincipal

(experimental) The principal to grant permissions to.

public virtual IPrincipal GrantPrincipal { get; }
Property Value

IPrincipal

Remarks

Stability: Experimental

Instance

(experimental) The underlying instance resource.

public virtual Instance_ Instance { get; }
Property Value

Instance_

Remarks

Stability: Experimental

InstanceAvailabilityZone

(experimental) The availability zone the instance was launched in.

public virtual string InstanceAvailabilityZone { get; }
Property Value

System.String

Remarks

Stability: Experimental

Attribute: true

InstanceId

(experimental) The instance's ID.

public virtual string InstanceId { get; }
Property Value

System.String

Remarks

Stability: Experimental

Attribute: true

InstancePrivateDnsName

(experimental) Private DNS name for this instance.

public virtual string InstancePrivateDnsName { get; }
Property Value

System.String

Remarks

Stability: Experimental

Attribute: true

InstancePrivateIp

(experimental) Private IP for this instance.

public virtual string InstancePrivateIp { get; }
Property Value

System.String

Remarks

Stability: Experimental

Attribute: true

InstancePublicDnsName

(experimental) Publicly-routable DNS name for this instance.

public virtual string InstancePublicDnsName { get; }
Property Value

System.String

Remarks

(May be an empty string if the instance does not have a public name).

Stability: Experimental

Attribute: true

InstancePublicIp

(experimental) Publicly-routable IP address for this instance.

public virtual string InstancePublicIp { get; }
Property Value

System.String

Remarks

(May be an empty string if the instance does not have a public IP).

Stability: Experimental

Attribute: true

Role

(experimental) The IAM role assumed by the instance.

public virtual IRole Role { get; }
Property Value

IRole

Remarks

Stability: Experimental

Stack

(experimental) The stack in which this resource is defined.

public override Stack Stack { get; }
Property Value

Stack

Overrides
Resource.Stack
Remarks

Stability: Experimental

Methods

AllowSshAccessFrom(IPeer[])

(experimental) Allow SSH access from the given peer or peers.

public virtual void AllowSshAccessFrom(params IPeer[] peer)
Parameters
peer IPeer[]
Remarks

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.

Stability: Experimental

Implements

IInstance
IResource
IConstruct
Constructs.IConstruct
IDependable
IConnectable
IGrantable
Back to top Generated by DocFX