CfnKeyPairProps

class aws_cdk.aws_lightsail.CfnKeyPairProps(*, key_pair_name, tags=None)

Bases: object

Properties for defining a CfnKeyPair.

Parameters:
  • key_pair_name (str) – The name of the key pair.

  • tags (Optional[Sequence[Union[CfnTag, Dict[str, Any]]]]) – The tag keys and optional values to add to the resource during create.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lightsail-keypair.html

ExampleMetadata:

fixture=_generated

Example:

from aws_cdk import CfnTag
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_lightsail as lightsail

cfn_key_pair_props = lightsail.CfnKeyPairProps(
    key_pair_name="keyPairName",

    # the properties below are optional
    tags=[CfnTag(
        key="key",
        value="value"
    )]
)

Attributes

key_pair_name

The name of the key pair.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lightsail-keypair.html#cfn-lightsail-keypair-keypairname

tags

The tag keys and optional values to add to the resource during create.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lightsail-keypair.html#cfn-lightsail-keypair-tags