1. Packages
  2. Azure Native
  3. API Docs
  4. awsconnector
  5. Ec2KeyPair
This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Azure Native v3.1.0 published on Tuesday, Apr 8, 2025 by Pulumi

azure-native.awsconnector.Ec2KeyPair

Explore with Pulumi AI

This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Azure Native v3.1.0 published on Tuesday, Apr 8, 2025 by Pulumi

A Microsoft.AwsConnector resource

Uses Azure REST API version 2024-12-01. In version 2.x of the Azure Native provider, it used API version 2024-12-01.

Example Usage

Ec2KeyPairs_CreateOrReplace

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;

return await Deployment.RunAsync(() => 
{
    var ec2KeyPair = new AzureNative.AwsConnector.Ec2KeyPair("ec2KeyPair", new()
    {
        Location = "okgykmqgdqfktczzwnisgblxjor",
        Name = "Replace this value with a string matching RegExp ^(z=.{0,259}[^zs.]$)(z!.*[zzzzzzzz])",
        Properties = new AzureNative.AwsConnector.Inputs.Ec2KeyPairPropertiesArgs
        {
            Arn = "hbplblilwwscgwiaifygy",
            AwsAccountId = "iamyich",
            AwsProperties = new AzureNative.AwsConnector.Inputs.AwsEc2KeyPairPropertiesArgs
            {
                KeyFingerprint = "xamuanffyhal",
                KeyFormat = AzureNative.AwsConnector.KeyFormat.Pem,
                KeyName = "jsltsdchgdrtwidgfy",
                KeyPairId = "tqtfcaqdmookxfgpvbzkyzzgstwqh",
                KeyType = AzureNative.AwsConnector.KeyType.Ed25519,
                PublicKeyMaterial = "wewhsgvwdbsygwbukotmsiu",
                Tags = new[]
                {
                    new AzureNative.AwsConnector.Inputs.TagArgs
                    {
                        Key = "tthjjmap",
                        Value = "fcqkvmxnvgkszsjglbmc",
                    },
                },
            },
            AwsRegion = "zkxhveyqnzcmihgmancphtwumisld",
            AwsSourceSchema = "qbl",
            AwsTags = 
            {
                { "key6629", "qrszxqxtlbgttasepkymnkamqvw" },
            },
            PublicCloudConnectorsResourceId = "dtqfffijdvwrjascztihbhcjfo",
            PublicCloudResourceName = "nyywppatxodspls",
        },
        ResourceGroupName = "rgec2KeyPair",
        Tags = 
        {
            { "key7076", "hevuyqs" },
        },
    });

});
Copy
package main

import (
	awsconnector "github.com/pulumi/pulumi-azure-native-sdk/awsconnector/v3"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := awsconnector.NewEc2KeyPair(ctx, "ec2KeyPair", &awsconnector.Ec2KeyPairArgs{
			Location: pulumi.String("okgykmqgdqfktczzwnisgblxjor"),
			Name:     pulumi.String("Replace this value with a string matching RegExp ^(z=.{0,259}[^zs.]$)(z!.*[zzzzzzzz])"),
			Properties: &awsconnector.Ec2KeyPairPropertiesArgs{
				Arn:          pulumi.String("hbplblilwwscgwiaifygy"),
				AwsAccountId: pulumi.String("iamyich"),
				AwsProperties: &awsconnector.AwsEc2KeyPairPropertiesArgs{
					KeyFingerprint:    pulumi.String("xamuanffyhal"),
					KeyFormat:         pulumi.String(awsconnector.KeyFormatPem),
					KeyName:           pulumi.String("jsltsdchgdrtwidgfy"),
					KeyPairId:         pulumi.String("tqtfcaqdmookxfgpvbzkyzzgstwqh"),
					KeyType:           pulumi.String(awsconnector.KeyTypeEd25519),
					PublicKeyMaterial: pulumi.String("wewhsgvwdbsygwbukotmsiu"),
					Tags: awsconnector.TagArray{
						&awsconnector.TagArgs{
							Key:   pulumi.String("tthjjmap"),
							Value: pulumi.String("fcqkvmxnvgkszsjglbmc"),
						},
					},
				},
				AwsRegion:       pulumi.String("zkxhveyqnzcmihgmancphtwumisld"),
				AwsSourceSchema: pulumi.String("qbl"),
				AwsTags: pulumi.StringMap{
					"key6629": pulumi.String("qrszxqxtlbgttasepkymnkamqvw"),
				},
				PublicCloudConnectorsResourceId: pulumi.String("dtqfffijdvwrjascztihbhcjfo"),
				PublicCloudResourceName:         pulumi.String("nyywppatxodspls"),
			},
			ResourceGroupName: pulumi.String("rgec2KeyPair"),
			Tags: pulumi.StringMap{
				"key7076": pulumi.String("hevuyqs"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.awsconnector.Ec2KeyPair;
import com.pulumi.azurenative.awsconnector.Ec2KeyPairArgs;
import com.pulumi.azurenative.awsconnector.inputs.Ec2KeyPairPropertiesArgs;
import com.pulumi.azurenative.awsconnector.inputs.AwsEc2KeyPairPropertiesArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        var ec2KeyPair = new Ec2KeyPair("ec2KeyPair", Ec2KeyPairArgs.builder()
            .location("okgykmqgdqfktczzwnisgblxjor")
            .name("Replace this value with a string matching RegExp ^(z=.{0,259}[^zs.]$)(z!.*[zzzzzzzz])")
            .properties(Ec2KeyPairPropertiesArgs.builder()
                .arn("hbplblilwwscgwiaifygy")
                .awsAccountId("iamyich")
                .awsProperties(AwsEc2KeyPairPropertiesArgs.builder()
                    .keyFingerprint("xamuanffyhal")
                    .keyFormat("pem")
                    .keyName("jsltsdchgdrtwidgfy")
                    .keyPairId("tqtfcaqdmookxfgpvbzkyzzgstwqh")
                    .keyType("ed25519")
                    .publicKeyMaterial("wewhsgvwdbsygwbukotmsiu")
                    .tags(TagArgs.builder()
                        .key("tthjjmap")
                        .value("fcqkvmxnvgkszsjglbmc")
                        .build())
                    .build())
                .awsRegion("zkxhveyqnzcmihgmancphtwumisld")
                .awsSourceSchema("qbl")
                .awsTags(Map.of("key6629", "qrszxqxtlbgttasepkymnkamqvw"))
                .publicCloudConnectorsResourceId("dtqfffijdvwrjascztihbhcjfo")
                .publicCloudResourceName("nyywppatxodspls")
                .build())
            .resourceGroupName("rgec2KeyPair")
            .tags(Map.of("key7076", "hevuyqs"))
            .build());

    }
}
Copy
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";

const ec2KeyPair = new azure_native.awsconnector.Ec2KeyPair("ec2KeyPair", {
    location: "okgykmqgdqfktczzwnisgblxjor",
    name: "Replace this value with a string matching RegExp ^(z=.{0,259}[^zs.]$)(z!.*[zzzzzzzz])",
    properties: {
        arn: "hbplblilwwscgwiaifygy",
        awsAccountId: "iamyich",
        awsProperties: {
            keyFingerprint: "xamuanffyhal",
            keyFormat: azure_native.awsconnector.KeyFormat.Pem,
            keyName: "jsltsdchgdrtwidgfy",
            keyPairId: "tqtfcaqdmookxfgpvbzkyzzgstwqh",
            keyType: azure_native.awsconnector.KeyType.Ed25519,
            publicKeyMaterial: "wewhsgvwdbsygwbukotmsiu",
            tags: [{
                key: "tthjjmap",
                value: "fcqkvmxnvgkszsjglbmc",
            }],
        },
        awsRegion: "zkxhveyqnzcmihgmancphtwumisld",
        awsSourceSchema: "qbl",
        awsTags: {
            key6629: "qrszxqxtlbgttasepkymnkamqvw",
        },
        publicCloudConnectorsResourceId: "dtqfffijdvwrjascztihbhcjfo",
        publicCloudResourceName: "nyywppatxodspls",
    },
    resourceGroupName: "rgec2KeyPair",
    tags: {
        key7076: "hevuyqs",
    },
});
Copy
import pulumi
import pulumi_azure_native as azure_native

ec2_key_pair = azure_native.awsconnector.Ec2KeyPair("ec2KeyPair",
    location="okgykmqgdqfktczzwnisgblxjor",
    name="Replace this value with a string matching RegExp ^(z=.{0,259}[^zs.]$)(z!.*[zzzzzzzz])",
    properties={
        "arn": "hbplblilwwscgwiaifygy",
        "aws_account_id": "iamyich",
        "aws_properties": {
            "key_fingerprint": "xamuanffyhal",
            "key_format": azure_native.awsconnector.KeyFormat.PEM,
            "key_name": "jsltsdchgdrtwidgfy",
            "key_pair_id": "tqtfcaqdmookxfgpvbzkyzzgstwqh",
            "key_type": azure_native.awsconnector.KeyType.ED25519,
            "public_key_material": "wewhsgvwdbsygwbukotmsiu",
            "tags": [{
                "key": "tthjjmap",
                "value": "fcqkvmxnvgkszsjglbmc",
            }],
        },
        "aws_region": "zkxhveyqnzcmihgmancphtwumisld",
        "aws_source_schema": "qbl",
        "aws_tags": {
            "key6629": "qrszxqxtlbgttasepkymnkamqvw",
        },
        "public_cloud_connectors_resource_id": "dtqfffijdvwrjascztihbhcjfo",
        "public_cloud_resource_name": "nyywppatxodspls",
    },
    resource_group_name="rgec2KeyPair",
    tags={
        "key7076": "hevuyqs",
    })
Copy
resources:
  ec2KeyPair:
    type: azure-native:awsconnector:Ec2KeyPair
    properties:
      location: okgykmqgdqfktczzwnisgblxjor
      name: Replace this value with a string matching RegExp ^(z=.{0,259}[^zs.]$)(z!.*[zzzzzzzz])
      properties:
        arn: hbplblilwwscgwiaifygy
        awsAccountId: iamyich
        awsProperties:
          keyFingerprint: xamuanffyhal
          keyFormat: pem
          keyName: jsltsdchgdrtwidgfy
          keyPairId: tqtfcaqdmookxfgpvbzkyzzgstwqh
          keyType: ed25519
          publicKeyMaterial: wewhsgvwdbsygwbukotmsiu
          tags:
            - key: tthjjmap
              value: fcqkvmxnvgkszsjglbmc
        awsRegion: zkxhveyqnzcmihgmancphtwumisld
        awsSourceSchema: qbl
        awsTags:
          key6629: qrszxqxtlbgttasepkymnkamqvw
        publicCloudConnectorsResourceId: dtqfffijdvwrjascztihbhcjfo
        publicCloudResourceName: nyywppatxodspls
      resourceGroupName: rgec2KeyPair
      tags:
        key7076: hevuyqs
Copy

Create Ec2KeyPair Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new Ec2KeyPair(name: string, args: Ec2KeyPairArgs, opts?: CustomResourceOptions);
@overload
def Ec2KeyPair(resource_name: str,
               args: Ec2KeyPairArgs,
               opts: Optional[ResourceOptions] = None)

@overload
def Ec2KeyPair(resource_name: str,
               opts: Optional[ResourceOptions] = None,
               resource_group_name: Optional[str] = None,
               location: Optional[str] = None,
               name: Optional[str] = None,
               properties: Optional[Ec2KeyPairPropertiesArgs] = None,
               tags: Optional[Mapping[str, str]] = None)
func NewEc2KeyPair(ctx *Context, name string, args Ec2KeyPairArgs, opts ...ResourceOption) (*Ec2KeyPair, error)
public Ec2KeyPair(string name, Ec2KeyPairArgs args, CustomResourceOptions? opts = null)
public Ec2KeyPair(String name, Ec2KeyPairArgs args)
public Ec2KeyPair(String name, Ec2KeyPairArgs args, CustomResourceOptions options)
type: azure-native:awsconnector:Ec2KeyPair
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. Ec2KeyPairArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. Ec2KeyPairArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. Ec2KeyPairArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. Ec2KeyPairArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. Ec2KeyPairArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Constructor example

The following reference example uses placeholder values for all input properties.

var ec2KeyPairResource = new AzureNative.AwsConnector.Ec2KeyPair("ec2KeyPairResource", new()
{
    ResourceGroupName = "string",
    Location = "string",
    Name = "string",
    Properties = new AzureNative.AwsConnector.Inputs.Ec2KeyPairPropertiesArgs
    {
        Arn = "string",
        AwsAccountId = "string",
        AwsProperties = new AzureNative.AwsConnector.Inputs.AwsEc2KeyPairPropertiesArgs
        {
            KeyFingerprint = "string",
            KeyFormat = "string",
            KeyName = "string",
            KeyPairId = "string",
            KeyType = "string",
            PublicKeyMaterial = "string",
            Tags = new[]
            {
                new AzureNative.AwsConnector.Inputs.TagArgs
                {
                    Key = "string",
                    Value = "string",
                },
            },
        },
        AwsRegion = "string",
        AwsSourceSchema = "string",
        AwsTags = 
        {
            { "string", "string" },
        },
        PublicCloudConnectorsResourceId = "string",
        PublicCloudResourceName = "string",
    },
    Tags = 
    {
        { "string", "string" },
    },
});
Copy
example, err := awsconnector.NewEc2KeyPair(ctx, "ec2KeyPairResource", &awsconnector.Ec2KeyPairArgs{
	ResourceGroupName: pulumi.String("string"),
	Location:          pulumi.String("string"),
	Name:              pulumi.String("string"),
	Properties: &awsconnector.Ec2KeyPairPropertiesArgs{
		Arn:          pulumi.String("string"),
		AwsAccountId: pulumi.String("string"),
		AwsProperties: &awsconnector.AwsEc2KeyPairPropertiesArgs{
			KeyFingerprint:    pulumi.String("string"),
			KeyFormat:         pulumi.String("string"),
			KeyName:           pulumi.String("string"),
			KeyPairId:         pulumi.String("string"),
			KeyType:           pulumi.String("string"),
			PublicKeyMaterial: pulumi.String("string"),
			Tags: awsconnector.TagArray{
				&awsconnector.TagArgs{
					Key:   pulumi.String("string"),
					Value: pulumi.String("string"),
				},
			},
		},
		AwsRegion:       pulumi.String("string"),
		AwsSourceSchema: pulumi.String("string"),
		AwsTags: pulumi.StringMap{
			"string": pulumi.String("string"),
		},
		PublicCloudConnectorsResourceId: pulumi.String("string"),
		PublicCloudResourceName:         pulumi.String("string"),
	},
	Tags: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
})
Copy
var ec2KeyPairResource = new Ec2KeyPair("ec2KeyPairResource", Ec2KeyPairArgs.builder()
    .resourceGroupName("string")
    .location("string")
    .name("string")
    .properties(Ec2KeyPairPropertiesArgs.builder()
        .arn("string")
        .awsAccountId("string")
        .awsProperties(AwsEc2KeyPairPropertiesArgs.builder()
            .keyFingerprint("string")
            .keyFormat("string")
            .keyName("string")
            .keyPairId("string")
            .keyType("string")
            .publicKeyMaterial("string")
            .tags(TagArgs.builder()
                .key("string")
                .value("string")
                .build())
            .build())
        .awsRegion("string")
        .awsSourceSchema("string")
        .awsTags(Map.of("string", "string"))
        .publicCloudConnectorsResourceId("string")
        .publicCloudResourceName("string")
        .build())
    .tags(Map.of("string", "string"))
    .build());
Copy
ec2_key_pair_resource = azure_native.awsconnector.Ec2KeyPair("ec2KeyPairResource",
    resource_group_name="string",
    location="string",
    name="string",
    properties={
        "arn": "string",
        "aws_account_id": "string",
        "aws_properties": {
            "key_fingerprint": "string",
            "key_format": "string",
            "key_name": "string",
            "key_pair_id": "string",
            "key_type": "string",
            "public_key_material": "string",
            "tags": [{
                "key": "string",
                "value": "string",
            }],
        },
        "aws_region": "string",
        "aws_source_schema": "string",
        "aws_tags": {
            "string": "string",
        },
        "public_cloud_connectors_resource_id": "string",
        "public_cloud_resource_name": "string",
    },
    tags={
        "string": "string",
    })
Copy
const ec2KeyPairResource = new azure_native.awsconnector.Ec2KeyPair("ec2KeyPairResource", {
    resourceGroupName: "string",
    location: "string",
    name: "string",
    properties: {
        arn: "string",
        awsAccountId: "string",
        awsProperties: {
            keyFingerprint: "string",
            keyFormat: "string",
            keyName: "string",
            keyPairId: "string",
            keyType: "string",
            publicKeyMaterial: "string",
            tags: [{
                key: "string",
                value: "string",
            }],
        },
        awsRegion: "string",
        awsSourceSchema: "string",
        awsTags: {
            string: "string",
        },
        publicCloudConnectorsResourceId: "string",
        publicCloudResourceName: "string",
    },
    tags: {
        string: "string",
    },
});
Copy
type: azure-native:awsconnector:Ec2KeyPair
properties:
    location: string
    name: string
    properties:
        arn: string
        awsAccountId: string
        awsProperties:
            keyFingerprint: string
            keyFormat: string
            keyName: string
            keyPairId: string
            keyType: string
            publicKeyMaterial: string
            tags:
                - key: string
                  value: string
        awsRegion: string
        awsSourceSchema: string
        awsTags:
            string: string
        publicCloudConnectorsResourceId: string
        publicCloudResourceName: string
    resourceGroupName: string
    tags:
        string: string
Copy

Ec2KeyPair Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The Ec2KeyPair resource accepts the following input properties:

ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group. The name is case insensitive.
Location Changes to this property will trigger replacement. string
The geo-location where the resource lives
Name Changes to this property will trigger replacement. string
Name of Ec2KeyPair
Properties Pulumi.AzureNative.AwsConnector.Inputs.Ec2KeyPairProperties
The resource-specific properties for this resource.
Tags Dictionary<string, string>
Resource tags.
ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group. The name is case insensitive.
Location Changes to this property will trigger replacement. string
The geo-location where the resource lives
Name Changes to this property will trigger replacement. string
Name of Ec2KeyPair
Properties Ec2KeyPairPropertiesArgs
The resource-specific properties for this resource.
Tags map[string]string
Resource tags.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
The name of the resource group. The name is case insensitive.
location Changes to this property will trigger replacement. String
The geo-location where the resource lives
name Changes to this property will trigger replacement. String
Name of Ec2KeyPair
properties Ec2KeyPairProperties
The resource-specific properties for this resource.
tags Map<String,String>
Resource tags.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group. The name is case insensitive.
location Changes to this property will trigger replacement. string
The geo-location where the resource lives
name Changes to this property will trigger replacement. string
Name of Ec2KeyPair
properties Ec2KeyPairProperties
The resource-specific properties for this resource.
tags {[key: string]: string}
Resource tags.
resource_group_name
This property is required.
Changes to this property will trigger replacement.
str
The name of the resource group. The name is case insensitive.
location Changes to this property will trigger replacement. str
The geo-location where the resource lives
name Changes to this property will trigger replacement. str
Name of Ec2KeyPair
properties Ec2KeyPairPropertiesArgs
The resource-specific properties for this resource.
tags Mapping[str, str]
Resource tags.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
The name of the resource group. The name is case insensitive.
location Changes to this property will trigger replacement. String
The geo-location where the resource lives
name Changes to this property will trigger replacement. String
Name of Ec2KeyPair
properties Property Map
The resource-specific properties for this resource.
tags Map<String>
Resource tags.

Outputs

All input properties are implicitly available as output properties. Additionally, the Ec2KeyPair resource produces the following output properties:

AzureApiVersion string
The Azure API version of the resource.
Id string
The provider-assigned unique ID for this managed resource.
SystemData Pulumi.AzureNative.AwsConnector.Outputs.SystemDataResponse
Azure Resource Manager metadata containing createdBy and modifiedBy information.
Type string
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
AzureApiVersion string
The Azure API version of the resource.
Id string
The provider-assigned unique ID for this managed resource.
SystemData SystemDataResponse
Azure Resource Manager metadata containing createdBy and modifiedBy information.
Type string
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
azureApiVersion String
The Azure API version of the resource.
id String
The provider-assigned unique ID for this managed resource.
systemData SystemDataResponse
Azure Resource Manager metadata containing createdBy and modifiedBy information.
type String
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
azureApiVersion string
The Azure API version of the resource.
id string
The provider-assigned unique ID for this managed resource.
systemData SystemDataResponse
Azure Resource Manager metadata containing createdBy and modifiedBy information.
type string
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
azure_api_version str
The Azure API version of the resource.
id str
The provider-assigned unique ID for this managed resource.
system_data SystemDataResponse
Azure Resource Manager metadata containing createdBy and modifiedBy information.
type str
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
azureApiVersion String
The Azure API version of the resource.
id String
The provider-assigned unique ID for this managed resource.
systemData Property Map
Azure Resource Manager metadata containing createdBy and modifiedBy information.
type String
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

Supporting Types

AwsEc2KeyPairProperties
, AwsEc2KeyPairPropertiesArgs

KeyFingerprint string
Property keyFingerprint
KeyFormat string | Pulumi.AzureNative.AwsConnector.KeyFormat
The format of the key pair. Default: pem
KeyName string
A unique name for the key pair. Constraints: Up to 255 ASCII characters
KeyPairId string
Property keyPairId
KeyType string | Pulumi.AzureNative.AwsConnector.KeyType
The type of key pair. Note that ED25519 keys are not supported for Windows instances. If the PublicKeyMaterial property is specified, the KeyType property is ignored, and the key type is inferred from the PublicKeyMaterial value. Default: rsa
PublicKeyMaterial string
The public key material. The PublicKeyMaterial property is used to import a key pair. If this property is not specified, then a new key pair will be created.
Tags List<Pulumi.AzureNative.AwsConnector.Inputs.Tag>
The tags to apply to the key pair.
KeyFingerprint string
Property keyFingerprint
KeyFormat string | KeyFormat
The format of the key pair. Default: pem
KeyName string
A unique name for the key pair. Constraints: Up to 255 ASCII characters
KeyPairId string
Property keyPairId
KeyType string | KeyType
The type of key pair. Note that ED25519 keys are not supported for Windows instances. If the PublicKeyMaterial property is specified, the KeyType property is ignored, and the key type is inferred from the PublicKeyMaterial value. Default: rsa
PublicKeyMaterial string
The public key material. The PublicKeyMaterial property is used to import a key pair. If this property is not specified, then a new key pair will be created.
Tags []Tag
The tags to apply to the key pair.
keyFingerprint String
Property keyFingerprint
keyFormat String | KeyFormat
The format of the key pair. Default: pem
keyName String
A unique name for the key pair. Constraints: Up to 255 ASCII characters
keyPairId String
Property keyPairId
keyType String | KeyType
The type of key pair. Note that ED25519 keys are not supported for Windows instances. If the PublicKeyMaterial property is specified, the KeyType property is ignored, and the key type is inferred from the PublicKeyMaterial value. Default: rsa
publicKeyMaterial String
The public key material. The PublicKeyMaterial property is used to import a key pair. If this property is not specified, then a new key pair will be created.
tags List<Tag>
The tags to apply to the key pair.
keyFingerprint string
Property keyFingerprint
keyFormat string | KeyFormat
The format of the key pair. Default: pem
keyName string
A unique name for the key pair. Constraints: Up to 255 ASCII characters
keyPairId string
Property keyPairId
keyType string | KeyType
The type of key pair. Note that ED25519 keys are not supported for Windows instances. If the PublicKeyMaterial property is specified, the KeyType property is ignored, and the key type is inferred from the PublicKeyMaterial value. Default: rsa
publicKeyMaterial string
The public key material. The PublicKeyMaterial property is used to import a key pair. If this property is not specified, then a new key pair will be created.
tags Tag[]
The tags to apply to the key pair.
key_fingerprint str
Property keyFingerprint
key_format str | KeyFormat
The format of the key pair. Default: pem
key_name str
A unique name for the key pair. Constraints: Up to 255 ASCII characters
key_pair_id str
Property keyPairId
key_type str | KeyType
The type of key pair. Note that ED25519 keys are not supported for Windows instances. If the PublicKeyMaterial property is specified, the KeyType property is ignored, and the key type is inferred from the PublicKeyMaterial value. Default: rsa
public_key_material str
The public key material. The PublicKeyMaterial property is used to import a key pair. If this property is not specified, then a new key pair will be created.
tags Sequence[Tag]
The tags to apply to the key pair.
keyFingerprint String
Property keyFingerprint
keyFormat String | "pem" | "ppk"
The format of the key pair. Default: pem
keyName String
A unique name for the key pair. Constraints: Up to 255 ASCII characters
keyPairId String
Property keyPairId
keyType String | "ed25519" | "rsa"
The type of key pair. Note that ED25519 keys are not supported for Windows instances. If the PublicKeyMaterial property is specified, the KeyType property is ignored, and the key type is inferred from the PublicKeyMaterial value. Default: rsa
publicKeyMaterial String
The public key material. The PublicKeyMaterial property is used to import a key pair. If this property is not specified, then a new key pair will be created.
tags List<Property Map>
The tags to apply to the key pair.

AwsEc2KeyPairPropertiesResponse
, AwsEc2KeyPairPropertiesResponseArgs

KeyFingerprint string
Property keyFingerprint
KeyFormat string
The format of the key pair. Default: pem
KeyName string
A unique name for the key pair. Constraints: Up to 255 ASCII characters
KeyPairId string
Property keyPairId
KeyType string
The type of key pair. Note that ED25519 keys are not supported for Windows instances. If the PublicKeyMaterial property is specified, the KeyType property is ignored, and the key type is inferred from the PublicKeyMaterial value. Default: rsa
PublicKeyMaterial string
The public key material. The PublicKeyMaterial property is used to import a key pair. If this property is not specified, then a new key pair will be created.
Tags List<Pulumi.AzureNative.AwsConnector.Inputs.TagResponse>
The tags to apply to the key pair.
KeyFingerprint string
Property keyFingerprint
KeyFormat string
The format of the key pair. Default: pem
KeyName string
A unique name for the key pair. Constraints: Up to 255 ASCII characters
KeyPairId string
Property keyPairId
KeyType string
The type of key pair. Note that ED25519 keys are not supported for Windows instances. If the PublicKeyMaterial property is specified, the KeyType property is ignored, and the key type is inferred from the PublicKeyMaterial value. Default: rsa
PublicKeyMaterial string
The public key material. The PublicKeyMaterial property is used to import a key pair. If this property is not specified, then a new key pair will be created.
Tags []TagResponse
The tags to apply to the key pair.
keyFingerprint String
Property keyFingerprint
keyFormat String
The format of the key pair. Default: pem
keyName String
A unique name for the key pair. Constraints: Up to 255 ASCII characters
keyPairId String
Property keyPairId
keyType String
The type of key pair. Note that ED25519 keys are not supported for Windows instances. If the PublicKeyMaterial property is specified, the KeyType property is ignored, and the key type is inferred from the PublicKeyMaterial value. Default: rsa
publicKeyMaterial String
The public key material. The PublicKeyMaterial property is used to import a key pair. If this property is not specified, then a new key pair will be created.
tags List<TagResponse>
The tags to apply to the key pair.
keyFingerprint string
Property keyFingerprint
keyFormat string
The format of the key pair. Default: pem
keyName string
A unique name for the key pair. Constraints: Up to 255 ASCII characters
keyPairId string
Property keyPairId
keyType string
The type of key pair. Note that ED25519 keys are not supported for Windows instances. If the PublicKeyMaterial property is specified, the KeyType property is ignored, and the key type is inferred from the PublicKeyMaterial value. Default: rsa
publicKeyMaterial string
The public key material. The PublicKeyMaterial property is used to import a key pair. If this property is not specified, then a new key pair will be created.
tags TagResponse[]
The tags to apply to the key pair.
key_fingerprint str
Property keyFingerprint
key_format str
The format of the key pair. Default: pem
key_name str
A unique name for the key pair. Constraints: Up to 255 ASCII characters
key_pair_id str
Property keyPairId
key_type str
The type of key pair. Note that ED25519 keys are not supported for Windows instances. If the PublicKeyMaterial property is specified, the KeyType property is ignored, and the key type is inferred from the PublicKeyMaterial value. Default: rsa
public_key_material str
The public key material. The PublicKeyMaterial property is used to import a key pair. If this property is not specified, then a new key pair will be created.
tags Sequence[TagResponse]
The tags to apply to the key pair.
keyFingerprint String
Property keyFingerprint
keyFormat String
The format of the key pair. Default: pem
keyName String
A unique name for the key pair. Constraints: Up to 255 ASCII characters
keyPairId String
Property keyPairId
keyType String
The type of key pair. Note that ED25519 keys are not supported for Windows instances. If the PublicKeyMaterial property is specified, the KeyType property is ignored, and the key type is inferred from the PublicKeyMaterial value. Default: rsa
publicKeyMaterial String
The public key material. The PublicKeyMaterial property is used to import a key pair. If this property is not specified, then a new key pair will be created.
tags List<Property Map>
The tags to apply to the key pair.

Ec2KeyPairProperties
, Ec2KeyPairPropertiesArgs

Arn string
Amazon Resource Name (ARN)
AwsAccountId string
AWS Account ID
AwsProperties Pulumi.AzureNative.AwsConnector.Inputs.AwsEc2KeyPairProperties
AWS Properties
AwsRegion string
AWS Region
AwsSourceSchema string
AWS Source Schema
AwsTags Dictionary<string, string>
AWS Tags
PublicCloudConnectorsResourceId string
Public Cloud Connectors Resource ID
PublicCloudResourceName string
Public Cloud Resource Name
Arn string
Amazon Resource Name (ARN)
AwsAccountId string
AWS Account ID
AwsProperties AwsEc2KeyPairProperties
AWS Properties
AwsRegion string
AWS Region
AwsSourceSchema string
AWS Source Schema
AwsTags map[string]string
AWS Tags
PublicCloudConnectorsResourceId string
Public Cloud Connectors Resource ID
PublicCloudResourceName string
Public Cloud Resource Name
arn String
Amazon Resource Name (ARN)
awsAccountId String
AWS Account ID
awsProperties AwsEc2KeyPairProperties
AWS Properties
awsRegion String
AWS Region
awsSourceSchema String
AWS Source Schema
awsTags Map<String,String>
AWS Tags
publicCloudConnectorsResourceId String
Public Cloud Connectors Resource ID
publicCloudResourceName String
Public Cloud Resource Name
arn string
Amazon Resource Name (ARN)
awsAccountId string
AWS Account ID
awsProperties AwsEc2KeyPairProperties
AWS Properties
awsRegion string
AWS Region
awsSourceSchema string
AWS Source Schema
awsTags {[key: string]: string}
AWS Tags
publicCloudConnectorsResourceId string
Public Cloud Connectors Resource ID
publicCloudResourceName string
Public Cloud Resource Name
arn str
Amazon Resource Name (ARN)
aws_account_id str
AWS Account ID
aws_properties AwsEc2KeyPairProperties
AWS Properties
aws_region str
AWS Region
aws_source_schema str
AWS Source Schema
aws_tags Mapping[str, str]
AWS Tags
public_cloud_connectors_resource_id str
Public Cloud Connectors Resource ID
public_cloud_resource_name str
Public Cloud Resource Name
arn String
Amazon Resource Name (ARN)
awsAccountId String
AWS Account ID
awsProperties Property Map
AWS Properties
awsRegion String
AWS Region
awsSourceSchema String
AWS Source Schema
awsTags Map<String>
AWS Tags
publicCloudConnectorsResourceId String
Public Cloud Connectors Resource ID
publicCloudResourceName String
Public Cloud Resource Name

Ec2KeyPairPropertiesResponse
, Ec2KeyPairPropertiesResponseArgs

ProvisioningState This property is required. string
The status of the last operation.
Arn string
Amazon Resource Name (ARN)
AwsAccountId string
AWS Account ID
AwsProperties Pulumi.AzureNative.AwsConnector.Inputs.AwsEc2KeyPairPropertiesResponse
AWS Properties
AwsRegion string
AWS Region
AwsSourceSchema string
AWS Source Schema
AwsTags Dictionary<string, string>
AWS Tags
PublicCloudConnectorsResourceId string
Public Cloud Connectors Resource ID
PublicCloudResourceName string
Public Cloud Resource Name
ProvisioningState This property is required. string
The status of the last operation.
Arn string
Amazon Resource Name (ARN)
AwsAccountId string
AWS Account ID
AwsProperties AwsEc2KeyPairPropertiesResponse
AWS Properties
AwsRegion string
AWS Region
AwsSourceSchema string
AWS Source Schema
AwsTags map[string]string
AWS Tags
PublicCloudConnectorsResourceId string
Public Cloud Connectors Resource ID
PublicCloudResourceName string
Public Cloud Resource Name
provisioningState This property is required. String
The status of the last operation.
arn String
Amazon Resource Name (ARN)
awsAccountId String
AWS Account ID
awsProperties AwsEc2KeyPairPropertiesResponse
AWS Properties
awsRegion String
AWS Region
awsSourceSchema String
AWS Source Schema
awsTags Map<String,String>
AWS Tags
publicCloudConnectorsResourceId String
Public Cloud Connectors Resource ID
publicCloudResourceName String
Public Cloud Resource Name
provisioningState This property is required. string
The status of the last operation.
arn string
Amazon Resource Name (ARN)
awsAccountId string
AWS Account ID
awsProperties AwsEc2KeyPairPropertiesResponse
AWS Properties
awsRegion string
AWS Region
awsSourceSchema string
AWS Source Schema
awsTags {[key: string]: string}
AWS Tags
publicCloudConnectorsResourceId string
Public Cloud Connectors Resource ID
publicCloudResourceName string
Public Cloud Resource Name
provisioning_state This property is required. str
The status of the last operation.
arn str
Amazon Resource Name (ARN)
aws_account_id str
AWS Account ID
aws_properties AwsEc2KeyPairPropertiesResponse
AWS Properties
aws_region str
AWS Region
aws_source_schema str
AWS Source Schema
aws_tags Mapping[str, str]
AWS Tags
public_cloud_connectors_resource_id str
Public Cloud Connectors Resource ID
public_cloud_resource_name str
Public Cloud Resource Name
provisioningState This property is required. String
The status of the last operation.
arn String
Amazon Resource Name (ARN)
awsAccountId String
AWS Account ID
awsProperties Property Map
AWS Properties
awsRegion String
AWS Region
awsSourceSchema String
AWS Source Schema
awsTags Map<String>
AWS Tags
publicCloudConnectorsResourceId String
Public Cloud Connectors Resource ID
publicCloudResourceName String
Public Cloud Resource Name

KeyFormat
, KeyFormatArgs

Pem
pemKeyFormat enum pem
Ppk
ppkKeyFormat enum ppk
KeyFormatPem
pemKeyFormat enum pem
KeyFormatPpk
ppkKeyFormat enum ppk
Pem
pemKeyFormat enum pem
Ppk
ppkKeyFormat enum ppk
Pem
pemKeyFormat enum pem
Ppk
ppkKeyFormat enum ppk
PEM
pemKeyFormat enum pem
PPK
ppkKeyFormat enum ppk
"pem"
pemKeyFormat enum pem
"ppk"
ppkKeyFormat enum ppk

KeyType
, KeyTypeArgs

Ed25519
ed25519KeyType enum ed25519
Rsa
rsaKeyType enum rsa
KeyTypeEd25519
ed25519KeyType enum ed25519
KeyTypeRsa
rsaKeyType enum rsa
Ed25519
ed25519KeyType enum ed25519
Rsa
rsaKeyType enum rsa
Ed25519
ed25519KeyType enum ed25519
Rsa
rsaKeyType enum rsa
ED25519
ed25519KeyType enum ed25519
RSA
rsaKeyType enum rsa
"ed25519"
ed25519KeyType enum ed25519
"rsa"
rsaKeyType enum rsa

SystemDataResponse
, SystemDataResponseArgs

CreatedAt string
The timestamp of resource creation (UTC).
CreatedBy string
The identity that created the resource.
CreatedByType string
The type of identity that created the resource.
LastModifiedAt string
The timestamp of resource last modification (UTC)
LastModifiedBy string
The identity that last modified the resource.
LastModifiedByType string
The type of identity that last modified the resource.
CreatedAt string
The timestamp of resource creation (UTC).
CreatedBy string
The identity that created the resource.
CreatedByType string
The type of identity that created the resource.
LastModifiedAt string
The timestamp of resource last modification (UTC)
LastModifiedBy string
The identity that last modified the resource.
LastModifiedByType string
The type of identity that last modified the resource.
createdAt String
The timestamp of resource creation (UTC).
createdBy String
The identity that created the resource.
createdByType String
The type of identity that created the resource.
lastModifiedAt String
The timestamp of resource last modification (UTC)
lastModifiedBy String
The identity that last modified the resource.
lastModifiedByType String
The type of identity that last modified the resource.
createdAt string
The timestamp of resource creation (UTC).
createdBy string
The identity that created the resource.
createdByType string
The type of identity that created the resource.
lastModifiedAt string
The timestamp of resource last modification (UTC)
lastModifiedBy string
The identity that last modified the resource.
lastModifiedByType string
The type of identity that last modified the resource.
created_at str
The timestamp of resource creation (UTC).
created_by str
The identity that created the resource.
created_by_type str
The type of identity that created the resource.
last_modified_at str
The timestamp of resource last modification (UTC)
last_modified_by str
The identity that last modified the resource.
last_modified_by_type str
The type of identity that last modified the resource.
createdAt String
The timestamp of resource creation (UTC).
createdBy String
The identity that created the resource.
createdByType String
The type of identity that created the resource.
lastModifiedAt String
The timestamp of resource last modification (UTC)
lastModifiedBy String
The identity that last modified the resource.
lastModifiedByType String
The type of identity that last modified the resource.

Tag
, TagArgs

Key string
The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.
Value string
The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.
Key string
The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.
Value string
The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.
key String
The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.
value String
The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.
key string
The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.
value string
The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.
key str
The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.
value str
The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.
key String
The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.
value String
The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.

TagResponse
, TagResponseArgs

Key string
The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.
Value string
The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.
Key string
The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.
Value string
The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.
key String
The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.
value String
The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.
key string
The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.
value string
The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.
key str
The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.
value str
The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.
key String
The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.
value String
The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.

Import

An existing resource can be imported using its type token, name, and identifier, e.g.

$ pulumi import azure-native:awsconnector:Ec2KeyPair cu /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AwsConnector/ec2KeyPairs/{name} 
Copy

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
Azure Native pulumi/pulumi-azure-native
License
Apache-2.0
This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Azure Native v3.1.0 published on Tuesday, Apr 8, 2025 by Pulumi