We recommend new projects start with resources from the AWS provider.
Viewing docs for AWS Cloud Control v1.80.0
published on Monday, Sep 21, 2026 by Pulumi
published on Monday, Sep 21, 2026 by Pulumi
We recommend new projects start with resources from the AWS provider.
Viewing docs for AWS Cloud Control v1.80.0
published on Monday, Sep 21, 2026 by Pulumi
published on Monday, Sep 21, 2026 by Pulumi
Resource Type definition for AWS::Lightsail::KeyPair
Using getKeyPair
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getKeyPair(args: GetKeyPairArgs, opts?: InvokeOptions): Promise<GetKeyPairResult>
function getKeyPairOutput(args: GetKeyPairOutputArgs, opts?: InvokeOutputOptions): Output<GetKeyPairResult>def get_key_pair(key_pair_name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetKeyPairResult
def get_key_pair_output(key_pair_name: pulumi.Input[Optional[str]] = None,
opts: Optional[InvokeOutputOptions] = None) -> Output[GetKeyPairResult]func LookupKeyPair(ctx *Context, args *LookupKeyPairArgs, opts ...InvokeOption) (*LookupKeyPairResult, error)
func LookupKeyPairOutput(ctx *Context, args *LookupKeyPairOutputArgs, opts ...InvokeOption) LookupKeyPairResultOutput> Note: This function is named LookupKeyPair in the Go SDK.
public static class GetKeyPair
{
public static Task<GetKeyPairResult> InvokeAsync(GetKeyPairArgs args, InvokeOptions? opts = null)
public static Output<GetKeyPairResult> Invoke(GetKeyPairInvokeArgs args, InvokeOptions? opts = null)
public static Output<GetKeyPairResult> Invoke(GetKeyPairInvokeArgs args, InvokeOutputOptions opts)
}public static CompletableFuture<GetKeyPairResult> getKeyPair(GetKeyPairArgs args, InvokeOptions options)
public static Output<GetKeyPairResult> getKeyPair(GetKeyPairArgs args, InvokeOptions options)
public static Output<GetKeyPairResult> getKeyPair(GetKeyPairArgs args, InvokeOutputOptions options)
fn::invoke:
function: aws-native:lightsail:getKeyPair
arguments:
# arguments dictionarydata "aws-native_lightsail_get_key_pair" "name" {
# arguments
}The following arguments are supported:
- Key
Pair stringName - The name of the key pair.
- Key
Pair stringName - The name of the key pair.
- key_
pair_ stringname - The name of the key pair.
- key
Pair StringName - The name of the key pair.
- key
Pair stringName - The name of the key pair.
- key_
pair_ strname - The name of the key pair.
- key
Pair StringName - The name of the key pair.
getKeyPair Result
The following output properties are available:
- Created
At string - The timestamp when the key pair was created.
- Fingerprint string
- The RSA fingerprint of the key pair.
- Key
Pair stringArn - The Amazon Resource Name (ARN) of the key pair.
- Location
Pulumi.
Aws Native. Lightsail. Outputs. Key Pair Resource Location - Resource
Type string - The Lightsail resource type (KeyPair).
- Support
Code string - The support code. Include this code in your email to support when you have questions about a key pair in Lightsail.
-
List<Pulumi.
Aws Native. Outputs. Tag> - The tag keys and optional values to add to the resource during create.
- Created
At string - The timestamp when the key pair was created.
- Fingerprint string
- The RSA fingerprint of the key pair.
- Key
Pair stringArn - The Amazon Resource Name (ARN) of the key pair.
- Location
Key
Pair Resource Location - Resource
Type string - The Lightsail resource type (KeyPair).
- Support
Code string - The support code. Include this code in your email to support when you have questions about a key pair in Lightsail.
- Tag
- The tag keys and optional values to add to the resource during create.
- created_
at string - The timestamp when the key pair was created.
- fingerprint string
- The RSA fingerprint of the key pair.
- key_
pair_ stringarn - The Amazon Resource Name (ARN) of the key pair.
- location object
- resource_
type string - The Lightsail resource type (KeyPair).
- support_
code string - The support code. Include this code in your email to support when you have questions about a key pair in Lightsail.
- list(object)
- The tag keys and optional values to add to the resource during create.
- created
At String - The timestamp when the key pair was created.
- fingerprint String
- The RSA fingerprint of the key pair.
- key
Pair StringArn - The Amazon Resource Name (ARN) of the key pair.
- location
Key
Pair Resource Location - resource
Type String - The Lightsail resource type (KeyPair).
- support
Code String - The support code. Include this code in your email to support when you have questions about a key pair in Lightsail.
- List<Tag>
- The tag keys and optional values to add to the resource during create.
- created
At string - The timestamp when the key pair was created.
- fingerprint string
- The RSA fingerprint of the key pair.
- key
Pair stringArn - The Amazon Resource Name (ARN) of the key pair.
- location
Key
Pair Resource Location - resource
Type string - The Lightsail resource type (KeyPair).
- support
Code string - The support code. Include this code in your email to support when you have questions about a key pair in Lightsail.
- Tag[]
- The tag keys and optional values to add to the resource during create.
- created_
at str - The timestamp when the key pair was created.
- fingerprint str
- The RSA fingerprint of the key pair.
- key_
pair_ strarn - The Amazon Resource Name (ARN) of the key pair.
- location
Key
Pair Resource Location - resource_
type str - The Lightsail resource type (KeyPair).
- support_
code str - The support code. Include this code in your email to support when you have questions about a key pair in Lightsail.
- Sequence[root_Tag]
- The tag keys and optional values to add to the resource during create.
- created
At String - The timestamp when the key pair was created.
- fingerprint String
- The RSA fingerprint of the key pair.
- key
Pair StringArn - The Amazon Resource Name (ARN) of the key pair.
- location Property Map
- resource
Type String - The Lightsail resource type (KeyPair).
- support
Code String - The support code. Include this code in your email to support when you have questions about a key pair in Lightsail.
- List<Property Map>
- The tag keys and optional values to add to the resource during create.
Supporting Types
KeyPairResourceLocation
- Availability
Zone string - The Availability Zone. Follows the format us-east-2a (case-sensitive).
- Region
Name string - The AWS Region name.
- Availability
Zone string - The Availability Zone. Follows the format us-east-2a (case-sensitive).
- Region
Name string - The AWS Region name.
- availability_
zone string - The Availability Zone. Follows the format us-east-2a (case-sensitive).
- region_
name string - The AWS Region name.
- availability
Zone String - The Availability Zone. Follows the format us-east-2a (case-sensitive).
- region
Name String - The AWS Region name.
- availability
Zone string - The Availability Zone. Follows the format us-east-2a (case-sensitive).
- region
Name string - The AWS Region name.
- availability_
zone str - The Availability Zone. Follows the format us-east-2a (case-sensitive).
- region_
name str - The AWS Region name.
- availability
Zone String - The Availability Zone. Follows the format us-east-2a (case-sensitive).
- region
Name String - The AWS Region name.
Tag
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
We recommend new projects start with resources from the AWS provider.
Viewing docs for AWS Cloud Control v1.80.0
published on Monday, Sep 21, 2026 by Pulumi
published on Monday, Sep 21, 2026 by Pulumi