Ec2Flow Log Args
data class Ec2FlowLogArgs(val location: Output<String>? = null, val name: Output<String>? = null, val properties: Output<Ec2FlowLogPropertiesArgs>? = null, val resourceGroupName: Output<String>? = null, val tags: Output<Map<String, String>>? = null) : ConvertibleToJava<Ec2FlowLogArgs>
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
Ec2FlowLogs_CreateOrReplace
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var ec2FlowLog = new AzureNative.AwsConnector.Ec2FlowLog("ec2FlowLog", new()
{
Location = "iheortzyczwfplyjuuqwhdtpscn",
Name = "Replace this value with a string matching RegExp ^(z=.{0,259}[^zs.]$)(z!.*[zzzzzzzz])",
Properties = new AzureNative.AwsConnector.Inputs.Ec2FlowLogPropertiesArgs
{
Arn = "ilajcrcqxitnhyhorqitssmvsfwen",
AwsAccountId = "shsomlkgpjnxnonvrv",
AwsProperties = new AzureNative.AwsConnector.Inputs.AwsEc2FlowLogPropertiesArgs
{
DeliverCrossAccountRole = "upu",
DeliverLogsPermissionArn = "sfhmarwniuptmkaegsplmsozsmc",
DestinationOptions = new AzureNative.AwsConnector.Inputs.DestinationOptionsModelPropertiesArgs
{
FileFormat = AzureNative.AwsConnector.FileFormat.Parquet,
HiveCompatiblePartitions = true,
PerHourPartition = true,
},
Id = "idflwxdxpu",
LogDestination = "ztqhcrirplxmgncvubutyzqefvd",
LogDestinationType = AzureNative.AwsConnector.LogDestinationType.CloudWatchLogs,
LogFormat = "miqwrkvqyq",
LogGroupName = "gptervjekilsbzqokcmrbumaie",
MaxAggregationInterval = 15,
ResourceId = "mokmavuqvq",
ResourceType = "NetworkInterface",
Tags = new[]
{
new AzureNative.AwsConnector.Inputs.TagArgs
{
Key = "hpdlgqvamjjtqreaoxergrowvu",
Value = "qdqsngozfinennzbilnzeemjzilpb",
},
},
TrafficType = AzureNative.AwsConnector.TrafficType.ACCEPT,
},
AwsRegion = "stazvnpsmrpkoxyyzngdkkuif",
AwsSourceSchema = "pnjgqxqhnwhcs",
AwsTags =
{
{ "key3000", "acmzumzbkwgpabbmyshaigqlt" },
},
PublicCloudConnectorsResourceId = "djh",
PublicCloudResourceName = "ymv",
},
ResourceGroupName = "rgec2FlowLog",
Tags =
{
{ "key8783", "hbgkwojrzrpoaac" },
},
});
});
Content copied to clipboard
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.NewEc2FlowLog(ctx, "ec2FlowLog", &awsconnector.Ec2FlowLogArgs{
Location: pulumi.String("iheortzyczwfplyjuuqwhdtpscn"),
Name: pulumi.String("Replace this value with a string matching RegExp ^(z=.{0,259}[^zs.]$)(z!.*[zzzzzzzz])"),
Properties: &awsconnector.Ec2FlowLogPropertiesArgs{
Arn: pulumi.String("ilajcrcqxitnhyhorqitssmvsfwen"),
AwsAccountId: pulumi.String("shsomlkgpjnxnonvrv"),
AwsProperties: &awsconnector.AwsEc2FlowLogPropertiesArgs{
DeliverCrossAccountRole: pulumi.String("upu"),
DeliverLogsPermissionArn: pulumi.String("sfhmarwniuptmkaegsplmsozsmc"),
DestinationOptions: &awsconnector.DestinationOptionsModelPropertiesArgs{
FileFormat: pulumi.String(awsconnector.FileFormatParquet),
HiveCompatiblePartitions: pulumi.Bool(true),
PerHourPartition: pulumi.Bool(true),
},
Id: pulumi.String("idflwxdxpu"),
LogDestination: pulumi.String("ztqhcrirplxmgncvubutyzqefvd"),
LogDestinationType: pulumi.String(awsconnector.LogDestinationTypeCloudWatchLogs),
LogFormat: pulumi.String("miqwrkvqyq"),
LogGroupName: pulumi.String("gptervjekilsbzqokcmrbumaie"),
MaxAggregationInterval: pulumi.Int(15),
ResourceId: pulumi.String("mokmavuqvq"),
ResourceType: pulumi.String("NetworkInterface"),
Tags: awsconnector.TagArray{
&awsconnector.TagArgs{
Key: pulumi.String("hpdlgqvamjjtqreaoxergrowvu"),
Value: pulumi.String("qdqsngozfinennzbilnzeemjzilpb"),
},
},
TrafficType: pulumi.String(awsconnector.TrafficTypeACCEPT),
},
AwsRegion: pulumi.String("stazvnpsmrpkoxyyzngdkkuif"),
AwsSourceSchema: pulumi.String("pnjgqxqhnwhcs"),
AwsTags: pulumi.StringMap{
"key3000": pulumi.String("acmzumzbkwgpabbmyshaigqlt"),
},
PublicCloudConnectorsResourceId: pulumi.String("djh"),
PublicCloudResourceName: pulumi.String("ymv"),
},
ResourceGroupName: pulumi.String("rgec2FlowLog"),
Tags: pulumi.StringMap{
"key8783": pulumi.String("hbgkwojrzrpoaac"),
},
})
if err != nil {
return err
}
return nil
})
}
Content copied to clipboard
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.awsconnector.Ec2FlowLog;
import com.pulumi.azurenative.awsconnector.Ec2FlowLogArgs;
import com.pulumi.azurenative.awsconnector.inputs.Ec2FlowLogPropertiesArgs;
import com.pulumi.azurenative.awsconnector.inputs.AwsEc2FlowLogPropertiesArgs;
import com.pulumi.azurenative.awsconnector.inputs.DestinationOptionsModelPropertiesArgs;
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 ec2FlowLog = new Ec2FlowLog("ec2FlowLog", Ec2FlowLogArgs.builder()
.location("iheortzyczwfplyjuuqwhdtpscn")
.name("Replace this value with a string matching RegExp ^(z=.{0,259}[^zs.]$)(z!.*[zzzzzzzz])")
.properties(Ec2FlowLogPropertiesArgs.builder()
.arn("ilajcrcqxitnhyhorqitssmvsfwen")
.awsAccountId("shsomlkgpjnxnonvrv")
.awsProperties(AwsEc2FlowLogPropertiesArgs.builder()
.deliverCrossAccountRole("upu")
.deliverLogsPermissionArn("sfhmarwniuptmkaegsplmsozsmc")
.destinationOptions(DestinationOptionsModelPropertiesArgs.builder()
.fileFormat("parquet")
.hiveCompatiblePartitions(true)
.perHourPartition(true)
.build())
.id("idflwxdxpu")
.logDestination("ztqhcrirplxmgncvubutyzqefvd")
.logDestinationType("cloud-watch-logs")
.logFormat("miqwrkvqyq")
.logGroupName("gptervjekilsbzqokcmrbumaie")
.maxAggregationInterval(15)
.resourceId("mokmavuqvq")
.resourceType("NetworkInterface")
.tags(TagArgs.builder()
.key("hpdlgqvamjjtqreaoxergrowvu")
.value("qdqsngozfinennzbilnzeemjzilpb")
.build())
.trafficType("ACCEPT")
.build())
.awsRegion("stazvnpsmrpkoxyyzngdkkuif")
.awsSourceSchema("pnjgqxqhnwhcs")
.awsTags(Map.of("key3000", "acmzumzbkwgpabbmyshaigqlt"))
.publicCloudConnectorsResourceId("djh")
.publicCloudResourceName("ymv")
.build())
.resourceGroupName("rgec2FlowLog")
.tags(Map.of("key8783", "hbgkwojrzrpoaac"))
.build());
}
}
Content copied to clipboard
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:awsconnector:Ec2FlowLog tpcivqsrlbvmapaplm /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AwsConnector/ec2FlowLogs/{name}
Content copied to clipboard