CfnKeyPairMixinProps

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

Bases: object

Properties for CfnKeyPairPropsMixin.

Parameters:
  • key_pair_name (Optional[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.cfn_property_mixins import aws_lightsail as lightsail

cfn_key_pair_mixin_props = lightsail.CfnKeyPairMixinProps(
    key_pair_name="keyPairName",
    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