Skip to content

KeyPairsProps

Properties for defining a KeyPairs.

See https://www.alibabacloud.com/help/ros/developer-reference/datasource-ecs-keypairs

Initializer

import com.aliyun.ros.cdk.ecs.datasource.KeyPairsProps;
KeyPairsProps.builder()
//  .keyPairFingerPrint(java.lang.String)
//  .keyPairFingerPrint(IResolvable)
//  .keyPairName(java.lang.String)
//  .keyPairName(IResolvable)
//  .refreshOptions(java.lang.String)
//  .refreshOptions(IResolvable)
//  .resourceGroupId(java.lang.String)
//  .resourceGroupId(IResolvable)
//  .tags(java.util.List<TagsProperty>)
    .build();

Properties

Name Type Description
keyPairFingerPrint java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property keyPairFingerPrint: The fingerprint of the key pair.
keyPairName java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property keyPairName: he name of the key pair.
refreshOptions java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property refreshOptions: The refresh strategy for the datasource resource when the stack is updated.
resourceGroupId java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property resourceGroupId: The ID of the resource group to which the key pair belongs.
tags java.util.List Property tags: Tags of keypair.

keyPairFingerPrintOptional

public java.lang.Object getKeyPairFingerPrint();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property keyPairFingerPrint: The fingerprint of the key pair.

The message-digest algorithm 5 (MD5) is used based on the public key fingerprint format defined in RFC 4716. For more information, see RFC 4716.


keyPairNameOptional

public java.lang.Object getKeyPairName();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property keyPairName: he name of the key pair.

You can use the asterisk () symbol as a wildcard in regular expressions to query key pairs by performing a fuzzy search. Sample patterns: SshKey: queries key pairs whose names end with SshKey, including the key pair named SshKey. SshKey: queries key pairs whose names start with SshKey, including the key pair named SshKey. SshKey*: queries key pairs whose names include SshKey, including the key pair named SshKey. SshKey: queries the key pair named SshKey.


refreshOptionsOptional

public java.lang.Object getRefreshOptions();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property refreshOptions: The refresh strategy for the datasource resource when the stack is updated.

Valid values:

  • Never: Never refresh the datasource resource when the stack is updated.
  • Always: Always refresh the datasource resource when the stack is updated. Default is Never.

resourceGroupIdOptional

public java.lang.Object getResourceGroupId();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property resourceGroupId: The ID of the resource group to which the key pair belongs.

If this parameter is specified to query resources, up to 1,000 resources that belong to the specified resource group can be displayed in the response.


tagsOptional

public java.util.List<TagsProperty> getTags();
  • Type: java.util.List

Property tags: Tags of keypair.