StaticPrivateIpServerProps

class aws_rfdk.StaticPrivateIpServerProps(*, instance_type, machine_image, vpc, block_devices=None, key_name=None, private_ip_address=None, resource_signal_timeout=None, role=None, security_group=None, user_data=None, vpc_subnets=None)

Bases: object

Required and optional properties that define the construction of a {@link StaticPrivateIpServer}.

Parameters:
  • instance_type (InstanceType) – The type of instance to launch.

  • machine_image (IMachineImage) – The AMI to launch the instance with.

  • vpc (IVpc) – VPC in which to launch the instance.

  • block_devices (Optional[Sequence[Union[BlockDevice, Dict[str, Any]]]]) – Specifies how block devices are exposed to the instance. You can specify virtual devices and EBS volumes. Each instance that is launched has an associated root device volume, either an Amazon EBS volume or an instance store volume. You can use block device mappings to specify additional EBS volumes or instance store volumes to attach to an instance when it is launched. Default: Uses the block device mapping of the AMI.

  • key_name (Optional[str]) – Name of the EC2 SSH keypair to grant access to the instance. Default: No SSH access will be possible.

  • private_ip_address (Optional[str]) – The specific private IP address to assign to the Elastic Network Interface of this instance. Default: An IP address is randomly assigned from the subnet.

  • resource_signal_timeout (Optional[Duration]) – The length of time to wait for the instance to signal successful deployment during the initial deployment, or update, of your stack. The maximum value is 12 hours. Default: The deployment does not require a success signal from the instance.

  • role (Optional[IRole]) – An IAM role to associate with the instance profile that is assigned to this instance. The role must be assumable by the service principal ec2.amazonaws.com Default: A role will automatically be created, it can be accessed via the role property.

  • security_group (Optional[ISecurityGroup]) – The security group to assign to this instance. Default: A new security group is created for this instance.

  • user_data (Optional[UserData]) – Specific UserData to use. UserData is a script that is run automatically by the instance the very first time that a new instance is started. The UserData may be mutated after creation. Default: A UserData that is appropriate to the {@link machineImage }’s operating system is created.

  • vpc_subnets (Union[SubnetSelection, Dict[str, Any], None]) – Where to place the instance within the VPC. Default: The instance is placed within a Private subnet.

Attributes

block_devices

Specifies how block devices are exposed to the instance. You can specify virtual devices and EBS volumes.

Each instance that is launched has an associated root device volume, either an Amazon EBS volume or an instance store volume. You can use block device mappings to specify additional EBS volumes or instance store volumes to attach to an instance when it is launched.

Default:

Uses the block device mapping of the AMI.

instance_type

The type of instance to launch.

key_name

Name of the EC2 SSH keypair to grant access to the instance.

Default:

No SSH access will be possible.

machine_image

The AMI to launch the instance with.

private_ip_address

The specific private IP address to assign to the Elastic Network Interface of this instance.

Default:

An IP address is randomly assigned from the subnet.

resource_signal_timeout

The length of time to wait for the instance to signal successful deployment during the initial deployment, or update, of your stack.

The maximum value is 12 hours.

Default:

The deployment does not require a success signal from the instance.

role

An IAM role to associate with the instance profile that is assigned to this instance.

The role must be assumable by the service principal ec2.amazonaws.com

Default:

A role will automatically be created, it can be accessed via the role property.

security_group

The security group to assign to this instance.

Default:

A new security group is created for this instance.

user_data

Specific UserData to use.

UserData is a script that is run automatically by the instance the very first time that a new instance is started.

The UserData may be mutated after creation.

Default:

A UserData that is appropriate to the {@link machineImage }’s operating system is created.

vpc

VPC in which to launch the instance.

vpc_subnets

Where to place the instance within the VPC.

Default:

The instance is placed within a Private subnet.