Ec2VolumeArgs

data class Ec2VolumeArgs(val location: Output<String>? = null, val name: Output<String>? = null, val properties: Output<Ec2VolumePropertiesArgs>? = null, val resourceGroupName: Output<String>? = null, val tags: Output<Map<String, String>>? = null) : ConvertibleToJava<Ec2VolumeArgs>

A Microsoft.AwsConnector resource Uses Azure REST API version 2024-12-01.

Example Usage

Ec2Volumes_CreateOrReplace

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var ec2Volume = new AzureNative.AwsConnector.Ec2Volume("ec2Volume", new()
{
Location = "tvdnvkrfzxnahsvnguhrcancxusw",
Name = "Replace this value with a string matching RegExp ^(z=.{0,259}[^zs.]$)(z!.*[zzzzzzzz])",
Properties = new AzureNative.AwsConnector.Inputs.Ec2VolumePropertiesArgs
{
Arn = "evx",
AwsAccountId = "zoosbunhmv",
AwsProperties = new AzureNative.AwsConnector.Inputs.AwsEc2VolumePropertiesArgs
{
AutoEnableIO = true,
AvailabilityZone = "wtzdrwiuscqtvxwi",
Encrypted = true,
Iops = 3,
KmsKeyId = "brtkdxsrwuxdzodllqlhzbrwpgkx",
MultiAttachEnabled = true,
OutpostArn = "umrirqwmsnmeeknbjkph",
Size = 2,
SnapshotId = "upwukogzrkqcaea",
Tags = new[]
{
new AzureNative.AwsConnector.Inputs.TagArgs
{
Key = "hizjca",
Value = "hnfhwndsnhbpnwfv",
},
},
Throughput = 20,
VolumeId = "rdcojpg",
VolumeType = "otkmglqvqws",
},
AwsRegion = "cw",
AwsSourceSchema = "wlglq",
AwsTags =
{
{ "key2425", "rgrfhhzzndrgf" },
},
PublicCloudConnectorsResourceId = "fw",
PublicCloudResourceName = "xowgb",
},
ResourceGroupName = "rgec2Volume",
Tags =
{
{ "key271", "ntenfvupathlqgnlukxvtzwzbmj" },
},
});
});
package main
import (
awsconnector "github.com/pulumi/pulumi-azure-native-sdk/awsconnector/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := awsconnector.NewEc2Volume(ctx, "ec2Volume", &awsconnector.Ec2VolumeArgs{
Location: pulumi.String("tvdnvkrfzxnahsvnguhrcancxusw"),
Name: pulumi.String("Replace this value with a string matching RegExp ^(z=.{0,259}[^zs.]$)(z!.*[zzzzzzzz])"),
Properties: &awsconnector.Ec2VolumePropertiesArgs{
Arn: pulumi.String("evx"),
AwsAccountId: pulumi.String("zoosbunhmv"),
AwsProperties: &awsconnector.AwsEc2VolumePropertiesArgs{
AutoEnableIO: pulumi.Bool(true),
AvailabilityZone: pulumi.String("wtzdrwiuscqtvxwi"),
Encrypted: pulumi.Bool(true),
Iops: pulumi.Int(3),
KmsKeyId: pulumi.String("brtkdxsrwuxdzodllqlhzbrwpgkx"),
MultiAttachEnabled: pulumi.Bool(true),
OutpostArn: pulumi.String("umrirqwmsnmeeknbjkph"),
Size: pulumi.Int(2),
SnapshotId: pulumi.String("upwukogzrkqcaea"),
Tags: awsconnector.TagArray{
&awsconnector.TagArgs{
Key: pulumi.String("hizjca"),
Value: pulumi.String("hnfhwndsnhbpnwfv"),
},
},
Throughput: pulumi.Int(20),
VolumeId: pulumi.String("rdcojpg"),
VolumeType: pulumi.String("otkmglqvqws"),
},
AwsRegion: pulumi.String("cw"),
AwsSourceSchema: pulumi.String("wlglq"),
AwsTags: pulumi.StringMap{
"key2425": pulumi.String("rgrfhhzzndrgf"),
},
PublicCloudConnectorsResourceId: pulumi.String("fw"),
PublicCloudResourceName: pulumi.String("xowgb"),
},
ResourceGroupName: pulumi.String("rgec2Volume"),
Tags: pulumi.StringMap{
"key271": pulumi.String("ntenfvupathlqgnlukxvtzwzbmj"),
},
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.awsconnector.Ec2Volume;
import com.pulumi.azurenative.awsconnector.Ec2VolumeArgs;
import com.pulumi.azurenative.awsconnector.inputs.Ec2VolumePropertiesArgs;
import com.pulumi.azurenative.awsconnector.inputs.AwsEc2VolumePropertiesArgs;
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 ec2Volume = new Ec2Volume("ec2Volume", Ec2VolumeArgs.builder()
.location("tvdnvkrfzxnahsvnguhrcancxusw")
.name("Replace this value with a string matching RegExp ^(z=.{0,259}[^zs.]$)(z!.*[zzzzzzzz])")
.properties(Ec2VolumePropertiesArgs.builder()
.arn("evx")
.awsAccountId("zoosbunhmv")
.awsProperties(AwsEc2VolumePropertiesArgs.builder()
.autoEnableIO(true)
.availabilityZone("wtzdrwiuscqtvxwi")
.encrypted(true)
.iops(3)
.kmsKeyId("brtkdxsrwuxdzodllqlhzbrwpgkx")
.multiAttachEnabled(true)
.outpostArn("umrirqwmsnmeeknbjkph")
.size(2)
.snapshotId("upwukogzrkqcaea")
.tags(TagArgs.builder()
.key("hizjca")
.value("hnfhwndsnhbpnwfv")
.build())
.throughput(20)
.volumeId("rdcojpg")
.volumeType("otkmglqvqws")
.build())
.awsRegion("cw")
.awsSourceSchema("wlglq")
.awsTags(Map.of("key2425", "rgrfhhzzndrgf"))
.publicCloudConnectorsResourceId("fw")
.publicCloudResourceName("xowgb")
.build())
.resourceGroupName("rgec2Volume")
.tags(Map.of("key271", "ntenfvupathlqgnlukxvtzwzbmj"))
.build());
}
}

Import

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

$ pulumi import azure-native:awsconnector:Ec2Volume fgfntrewk /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AwsConnector/ec2Volumes/{name}

Constructors

Link copied to clipboard
constructor(location: Output<String>? = null, name: Output<String>? = null, properties: Output<Ec2VolumePropertiesArgs>? = null, resourceGroupName: Output<String>? = null, tags: Output<Map<String, String>>? = null)

Properties

Link copied to clipboard
val location: Output<String>? = null

The geo-location where the resource lives

Link copied to clipboard
val name: Output<String>? = null

Name of Ec2Volume

Link copied to clipboard
val properties: Output<Ec2VolumePropertiesArgs>? = null

The resource-specific properties for this resource.

Link copied to clipboard
val resourceGroupName: Output<String>? = null

The name of the resource group. The name is case insensitive.

Link copied to clipboard
val tags: Output<Map<String, String>>? = null

Resource tags.

Functions

Link copied to clipboard
open override fun toJava(): Ec2VolumeArgs