Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
com.pulumi.azurenative.awsconnector.inputs.AwsEc2FlowLogPropertiesArgs Maven / Gradle / Ivy
Go to download
A native Pulumi package for creating and managing Azure resources.
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package com.pulumi.azurenative.awsconnector.inputs;
import com.pulumi.azurenative.awsconnector.enums.LogDestinationType;
import com.pulumi.azurenative.awsconnector.enums.ResourceType;
import com.pulumi.azurenative.awsconnector.enums.TrafficType;
import com.pulumi.azurenative.awsconnector.inputs.DestinationOptionsModelPropertiesArgs;
import com.pulumi.azurenative.awsconnector.inputs.TagArgs;
import com.pulumi.core.Either;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.Integer;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
/**
* Definition of awsEc2FlowLog
*
*/
public final class AwsEc2FlowLogPropertiesArgs extends com.pulumi.resources.ResourceArgs {
public static final AwsEc2FlowLogPropertiesArgs Empty = new AwsEc2FlowLogPropertiesArgs();
/**
* The ARN of the IAM role that allows Amazon EC2 to publish flow logs across accounts.
*
*/
@Import(name="deliverCrossAccountRole")
private @Nullable Output deliverCrossAccountRole;
/**
* @return The ARN of the IAM role that allows Amazon EC2 to publish flow logs across accounts.
*
*/
public Optional> deliverCrossAccountRole() {
return Optional.ofNullable(this.deliverCrossAccountRole);
}
/**
* The ARN for the IAM role that permits Amazon EC2 to publish flow logs to a CloudWatch Logs log group in your account. If you specify LogDestinationType as s3 or kinesis-data-firehose, do not specify DeliverLogsPermissionArn or LogGroupName.
*
*/
@Import(name="deliverLogsPermissionArn")
private @Nullable Output deliverLogsPermissionArn;
/**
* @return The ARN for the IAM role that permits Amazon EC2 to publish flow logs to a CloudWatch Logs log group in your account. If you specify LogDestinationType as s3 or kinesis-data-firehose, do not specify DeliverLogsPermissionArn or LogGroupName.
*
*/
public Optional> deliverLogsPermissionArn() {
return Optional.ofNullable(this.deliverLogsPermissionArn);
}
/**
* Property destinationOptions
*
*/
@Import(name="destinationOptions")
private @Nullable Output destinationOptions;
/**
* @return Property destinationOptions
*
*/
public Optional> destinationOptions() {
return Optional.ofNullable(this.destinationOptions);
}
/**
* The Flow Log ID
*
*/
@Import(name="id")
private @Nullable Output id;
/**
* @return The Flow Log ID
*
*/
public Optional> id() {
return Optional.ofNullable(this.id);
}
/**
* Specifies the destination to which the flow log data is to be published. Flow log data can be published to a CloudWatch Logs log group, an Amazon S3 bucket, or a Kinesis Firehose stream. The value specified for this parameter depends on the value specified for LogDestinationType.
*
*/
@Import(name="logDestination")
private @Nullable Output logDestination;
/**
* @return Specifies the destination to which the flow log data is to be published. Flow log data can be published to a CloudWatch Logs log group, an Amazon S3 bucket, or a Kinesis Firehose stream. The value specified for this parameter depends on the value specified for LogDestinationType.
*
*/
public Optional> logDestination() {
return Optional.ofNullable(this.logDestination);
}
/**
* Specifies the type of destination to which the flow log data is to be published. Flow log data can be published to CloudWatch Logs or Amazon S3.
*
*/
@Import(name="logDestinationType")
private @Nullable Output> logDestinationType;
/**
* @return Specifies the type of destination to which the flow log data is to be published. Flow log data can be published to CloudWatch Logs or Amazon S3.
*
*/
public Optional>> logDestinationType() {
return Optional.ofNullable(this.logDestinationType);
}
/**
* The fields to include in the flow log record, in the order in which they should appear.
*
*/
@Import(name="logFormat")
private @Nullable Output logFormat;
/**
* @return The fields to include in the flow log record, in the order in which they should appear.
*
*/
public Optional> logFormat() {
return Optional.ofNullable(this.logFormat);
}
/**
* The name of a new or existing CloudWatch Logs log group where Amazon EC2 publishes your flow logs. If you specify LogDestinationType as s3 or kinesis-data-firehose, do not specify DeliverLogsPermissionArn or LogGroupName.
*
*/
@Import(name="logGroupName")
private @Nullable Output logGroupName;
/**
* @return The name of a new or existing CloudWatch Logs log group where Amazon EC2 publishes your flow logs. If you specify LogDestinationType as s3 or kinesis-data-firehose, do not specify DeliverLogsPermissionArn or LogGroupName.
*
*/
public Optional> logGroupName() {
return Optional.ofNullable(this.logGroupName);
}
/**
* The maximum interval of time during which a flow of packets is captured and aggregated into a flow log record. You can specify 60 seconds (1 minute) or 600 seconds (10 minutes).
*
*/
@Import(name="maxAggregationInterval")
private @Nullable Output maxAggregationInterval;
/**
* @return The maximum interval of time during which a flow of packets is captured and aggregated into a flow log record. You can specify 60 seconds (1 minute) or 600 seconds (10 minutes).
*
*/
public Optional> maxAggregationInterval() {
return Optional.ofNullable(this.maxAggregationInterval);
}
/**
* The ID of the subnet, network interface, or VPC for which you want to create a flow log.
*
*/
@Import(name="resourceId")
private @Nullable Output resourceId;
/**
* @return The ID of the subnet, network interface, or VPC for which you want to create a flow log.
*
*/
public Optional> resourceId() {
return Optional.ofNullable(this.resourceId);
}
/**
* The type of resource for which to create the flow log. For example, if you specified a VPC ID for the ResourceId property, specify VPC for this property.
*
*/
@Import(name="resourceType")
private @Nullable Output> resourceType;
/**
* @return The type of resource for which to create the flow log. For example, if you specified a VPC ID for the ResourceId property, specify VPC for this property.
*
*/
public Optional>> resourceType() {
return Optional.ofNullable(this.resourceType);
}
/**
* The tags to apply to the flow logs.
*
*/
@Import(name="tags")
private @Nullable Output> tags;
/**
* @return The tags to apply to the flow logs.
*
*/
public Optional>> tags() {
return Optional.ofNullable(this.tags);
}
/**
* The type of traffic to log. You can log traffic that the resource accepts or rejects, or all traffic.
*
*/
@Import(name="trafficType")
private @Nullable Output> trafficType;
/**
* @return The type of traffic to log. You can log traffic that the resource accepts or rejects, or all traffic.
*
*/
public Optional>> trafficType() {
return Optional.ofNullable(this.trafficType);
}
private AwsEc2FlowLogPropertiesArgs() {}
private AwsEc2FlowLogPropertiesArgs(AwsEc2FlowLogPropertiesArgs $) {
this.deliverCrossAccountRole = $.deliverCrossAccountRole;
this.deliverLogsPermissionArn = $.deliverLogsPermissionArn;
this.destinationOptions = $.destinationOptions;
this.id = $.id;
this.logDestination = $.logDestination;
this.logDestinationType = $.logDestinationType;
this.logFormat = $.logFormat;
this.logGroupName = $.logGroupName;
this.maxAggregationInterval = $.maxAggregationInterval;
this.resourceId = $.resourceId;
this.resourceType = $.resourceType;
this.tags = $.tags;
this.trafficType = $.trafficType;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(AwsEc2FlowLogPropertiesArgs defaults) {
return new Builder(defaults);
}
public static final class Builder {
private AwsEc2FlowLogPropertiesArgs $;
public Builder() {
$ = new AwsEc2FlowLogPropertiesArgs();
}
public Builder(AwsEc2FlowLogPropertiesArgs defaults) {
$ = new AwsEc2FlowLogPropertiesArgs(Objects.requireNonNull(defaults));
}
/**
* @param deliverCrossAccountRole The ARN of the IAM role that allows Amazon EC2 to publish flow logs across accounts.
*
* @return builder
*
*/
public Builder deliverCrossAccountRole(@Nullable Output deliverCrossAccountRole) {
$.deliverCrossAccountRole = deliverCrossAccountRole;
return this;
}
/**
* @param deliverCrossAccountRole The ARN of the IAM role that allows Amazon EC2 to publish flow logs across accounts.
*
* @return builder
*
*/
public Builder deliverCrossAccountRole(String deliverCrossAccountRole) {
return deliverCrossAccountRole(Output.of(deliverCrossAccountRole));
}
/**
* @param deliverLogsPermissionArn The ARN for the IAM role that permits Amazon EC2 to publish flow logs to a CloudWatch Logs log group in your account. If you specify LogDestinationType as s3 or kinesis-data-firehose, do not specify DeliverLogsPermissionArn or LogGroupName.
*
* @return builder
*
*/
public Builder deliverLogsPermissionArn(@Nullable Output deliverLogsPermissionArn) {
$.deliverLogsPermissionArn = deliverLogsPermissionArn;
return this;
}
/**
* @param deliverLogsPermissionArn The ARN for the IAM role that permits Amazon EC2 to publish flow logs to a CloudWatch Logs log group in your account. If you specify LogDestinationType as s3 or kinesis-data-firehose, do not specify DeliverLogsPermissionArn or LogGroupName.
*
* @return builder
*
*/
public Builder deliverLogsPermissionArn(String deliverLogsPermissionArn) {
return deliverLogsPermissionArn(Output.of(deliverLogsPermissionArn));
}
/**
* @param destinationOptions Property destinationOptions
*
* @return builder
*
*/
public Builder destinationOptions(@Nullable Output destinationOptions) {
$.destinationOptions = destinationOptions;
return this;
}
/**
* @param destinationOptions Property destinationOptions
*
* @return builder
*
*/
public Builder destinationOptions(DestinationOptionsModelPropertiesArgs destinationOptions) {
return destinationOptions(Output.of(destinationOptions));
}
/**
* @param id The Flow Log ID
*
* @return builder
*
*/
public Builder id(@Nullable Output id) {
$.id = id;
return this;
}
/**
* @param id The Flow Log ID
*
* @return builder
*
*/
public Builder id(String id) {
return id(Output.of(id));
}
/**
* @param logDestination Specifies the destination to which the flow log data is to be published. Flow log data can be published to a CloudWatch Logs log group, an Amazon S3 bucket, or a Kinesis Firehose stream. The value specified for this parameter depends on the value specified for LogDestinationType.
*
* @return builder
*
*/
public Builder logDestination(@Nullable Output logDestination) {
$.logDestination = logDestination;
return this;
}
/**
* @param logDestination Specifies the destination to which the flow log data is to be published. Flow log data can be published to a CloudWatch Logs log group, an Amazon S3 bucket, or a Kinesis Firehose stream. The value specified for this parameter depends on the value specified for LogDestinationType.
*
* @return builder
*
*/
public Builder logDestination(String logDestination) {
return logDestination(Output.of(logDestination));
}
/**
* @param logDestinationType Specifies the type of destination to which the flow log data is to be published. Flow log data can be published to CloudWatch Logs or Amazon S3.
*
* @return builder
*
*/
public Builder logDestinationType(@Nullable Output> logDestinationType) {
$.logDestinationType = logDestinationType;
return this;
}
/**
* @param logDestinationType Specifies the type of destination to which the flow log data is to be published. Flow log data can be published to CloudWatch Logs or Amazon S3.
*
* @return builder
*
*/
public Builder logDestinationType(Either logDestinationType) {
return logDestinationType(Output.of(logDestinationType));
}
/**
* @param logDestinationType Specifies the type of destination to which the flow log data is to be published. Flow log data can be published to CloudWatch Logs or Amazon S3.
*
* @return builder
*
*/
public Builder logDestinationType(String logDestinationType) {
return logDestinationType(Either.ofLeft(logDestinationType));
}
/**
* @param logDestinationType Specifies the type of destination to which the flow log data is to be published. Flow log data can be published to CloudWatch Logs or Amazon S3.
*
* @return builder
*
*/
public Builder logDestinationType(LogDestinationType logDestinationType) {
return logDestinationType(Either.ofRight(logDestinationType));
}
/**
* @param logFormat The fields to include in the flow log record, in the order in which they should appear.
*
* @return builder
*
*/
public Builder logFormat(@Nullable Output logFormat) {
$.logFormat = logFormat;
return this;
}
/**
* @param logFormat The fields to include in the flow log record, in the order in which they should appear.
*
* @return builder
*
*/
public Builder logFormat(String logFormat) {
return logFormat(Output.of(logFormat));
}
/**
* @param logGroupName The name of a new or existing CloudWatch Logs log group where Amazon EC2 publishes your flow logs. If you specify LogDestinationType as s3 or kinesis-data-firehose, do not specify DeliverLogsPermissionArn or LogGroupName.
*
* @return builder
*
*/
public Builder logGroupName(@Nullable Output logGroupName) {
$.logGroupName = logGroupName;
return this;
}
/**
* @param logGroupName The name of a new or existing CloudWatch Logs log group where Amazon EC2 publishes your flow logs. If you specify LogDestinationType as s3 or kinesis-data-firehose, do not specify DeliverLogsPermissionArn or LogGroupName.
*
* @return builder
*
*/
public Builder logGroupName(String logGroupName) {
return logGroupName(Output.of(logGroupName));
}
/**
* @param maxAggregationInterval The maximum interval of time during which a flow of packets is captured and aggregated into a flow log record. You can specify 60 seconds (1 minute) or 600 seconds (10 minutes).
*
* @return builder
*
*/
public Builder maxAggregationInterval(@Nullable Output maxAggregationInterval) {
$.maxAggregationInterval = maxAggregationInterval;
return this;
}
/**
* @param maxAggregationInterval The maximum interval of time during which a flow of packets is captured and aggregated into a flow log record. You can specify 60 seconds (1 minute) or 600 seconds (10 minutes).
*
* @return builder
*
*/
public Builder maxAggregationInterval(Integer maxAggregationInterval) {
return maxAggregationInterval(Output.of(maxAggregationInterval));
}
/**
* @param resourceId The ID of the subnet, network interface, or VPC for which you want to create a flow log.
*
* @return builder
*
*/
public Builder resourceId(@Nullable Output resourceId) {
$.resourceId = resourceId;
return this;
}
/**
* @param resourceId The ID of the subnet, network interface, or VPC for which you want to create a flow log.
*
* @return builder
*
*/
public Builder resourceId(String resourceId) {
return resourceId(Output.of(resourceId));
}
/**
* @param resourceType The type of resource for which to create the flow log. For example, if you specified a VPC ID for the ResourceId property, specify VPC for this property.
*
* @return builder
*
*/
public Builder resourceType(@Nullable Output> resourceType) {
$.resourceType = resourceType;
return this;
}
/**
* @param resourceType The type of resource for which to create the flow log. For example, if you specified a VPC ID for the ResourceId property, specify VPC for this property.
*
* @return builder
*
*/
public Builder resourceType(Either resourceType) {
return resourceType(Output.of(resourceType));
}
/**
* @param resourceType The type of resource for which to create the flow log. For example, if you specified a VPC ID for the ResourceId property, specify VPC for this property.
*
* @return builder
*
*/
public Builder resourceType(String resourceType) {
return resourceType(Either.ofLeft(resourceType));
}
/**
* @param resourceType The type of resource for which to create the flow log. For example, if you specified a VPC ID for the ResourceId property, specify VPC for this property.
*
* @return builder
*
*/
public Builder resourceType(ResourceType resourceType) {
return resourceType(Either.ofRight(resourceType));
}
/**
* @param tags The tags to apply to the flow logs.
*
* @return builder
*
*/
public Builder tags(@Nullable Output> tags) {
$.tags = tags;
return this;
}
/**
* @param tags The tags to apply to the flow logs.
*
* @return builder
*
*/
public Builder tags(List tags) {
return tags(Output.of(tags));
}
/**
* @param tags The tags to apply to the flow logs.
*
* @return builder
*
*/
public Builder tags(TagArgs... tags) {
return tags(List.of(tags));
}
/**
* @param trafficType The type of traffic to log. You can log traffic that the resource accepts or rejects, or all traffic.
*
* @return builder
*
*/
public Builder trafficType(@Nullable Output> trafficType) {
$.trafficType = trafficType;
return this;
}
/**
* @param trafficType The type of traffic to log. You can log traffic that the resource accepts or rejects, or all traffic.
*
* @return builder
*
*/
public Builder trafficType(Either trafficType) {
return trafficType(Output.of(trafficType));
}
/**
* @param trafficType The type of traffic to log. You can log traffic that the resource accepts or rejects, or all traffic.
*
* @return builder
*
*/
public Builder trafficType(String trafficType) {
return trafficType(Either.ofLeft(trafficType));
}
/**
* @param trafficType The type of traffic to log. You can log traffic that the resource accepts or rejects, or all traffic.
*
* @return builder
*
*/
public Builder trafficType(TrafficType trafficType) {
return trafficType(Either.ofRight(trafficType));
}
public AwsEc2FlowLogPropertiesArgs build() {
return $;
}
}
}