public class CreateFlowLogsRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
CreateFlowLogs operation
.
Creates one or more flow logs to capture IP traffic for a specific network interface, subnet, or VPC. Flow logs are delivered to a specified log group in Amazon CloudWatch Logs. If you specify a VPC or subnet in the request, a log stream is created in CloudWatch Logs for each network interface in the subnet or VPC. Log streams can include information about accepted and rejected traffic to a network interface. You can view the data in your log streams using Amazon CloudWatch Logs.
In your request, you must also specify an IAM role that has permission to publish logs to CloudWatch Logs.
NOOP
Constructor and Description |
---|
CreateFlowLogsRequest() |
Modifier and Type | Method and Description |
---|---|
CreateFlowLogsRequest |
clone() |
boolean |
equals(Object obj) |
String |
getClientToken()
Unique, case-sensitive identifier you provide to ensure the
idempotency of the request.
|
String |
getDeliverLogsPermissionArn()
The ARN for the IAM role that's used to post flow logs to a CloudWatch
Logs log group.
|
String |
getLogGroupName()
The name of the CloudWatch log group.
|
List<String> |
getResourceIds()
One or more subnet, network interface, or VPC IDs.
|
String |
getResourceType()
The type of resource on which to create the flow log.
|
String |
getTrafficType()
The type of traffic to log.
|
int |
hashCode() |
void |
setClientToken(String clientToken)
Unique, case-sensitive identifier you provide to ensure the
idempotency of the request.
|
void |
setDeliverLogsPermissionArn(String deliverLogsPermissionArn)
The ARN for the IAM role that's used to post flow logs to a CloudWatch
Logs log group.
|
void |
setLogGroupName(String logGroupName)
The name of the CloudWatch log group.
|
void |
setResourceIds(Collection<String> resourceIds)
One or more subnet, network interface, or VPC IDs.
|
void |
setResourceType(FlowLogsResourceType resourceType)
The type of resource on which to create the flow log.
|
void |
setResourceType(String resourceType)
The type of resource on which to create the flow log.
|
void |
setTrafficType(String trafficType)
The type of traffic to log.
|
void |
setTrafficType(TrafficType trafficType)
The type of traffic to log.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
CreateFlowLogsRequest |
withClientToken(String clientToken)
Unique, case-sensitive identifier you provide to ensure the
idempotency of the request.
|
CreateFlowLogsRequest |
withDeliverLogsPermissionArn(String deliverLogsPermissionArn)
The ARN for the IAM role that's used to post flow logs to a CloudWatch
Logs log group.
|
CreateFlowLogsRequest |
withLogGroupName(String logGroupName)
The name of the CloudWatch log group.
|
CreateFlowLogsRequest |
withResourceIds(Collection<String> resourceIds)
One or more subnet, network interface, or VPC IDs.
|
CreateFlowLogsRequest |
withResourceIds(String... resourceIds)
One or more subnet, network interface, or VPC IDs.
|
CreateFlowLogsRequest |
withResourceType(FlowLogsResourceType resourceType)
The type of resource on which to create the flow log.
|
CreateFlowLogsRequest |
withResourceType(String resourceType)
The type of resource on which to create the flow log.
|
CreateFlowLogsRequest |
withTrafficType(String trafficType)
The type of traffic to log.
|
CreateFlowLogsRequest |
withTrafficType(TrafficType trafficType)
The type of traffic to log.
|
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public List<String> getResourceIds()
public void setResourceIds(Collection<String> resourceIds)
resourceIds
- One or more subnet, network interface, or VPC IDs.public CreateFlowLogsRequest withResourceIds(String... resourceIds)
NOTE: This method appends the values to the existing list (if
any). Use setResourceIds(java.util.Collection)
or withResourceIds(java.util.Collection)
if you want to override the
existing values.
Returns a reference to this object so that method calls can be chained together.
resourceIds
- One or more subnet, network interface, or VPC IDs.public CreateFlowLogsRequest withResourceIds(Collection<String> resourceIds)
Returns a reference to this object so that method calls can be chained together.
resourceIds
- One or more subnet, network interface, or VPC IDs.public String getResourceType()
Constraints:
Allowed Values: VPC, Subnet, NetworkInterface
FlowLogsResourceType
public void setResourceType(String resourceType)
Constraints:
Allowed Values: VPC, Subnet, NetworkInterface
resourceType
- The type of resource on which to create the flow log.FlowLogsResourceType
public CreateFlowLogsRequest withResourceType(String resourceType)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: VPC, Subnet, NetworkInterface
resourceType
- The type of resource on which to create the flow log.FlowLogsResourceType
public void setResourceType(FlowLogsResourceType resourceType)
Constraints:
Allowed Values: VPC, Subnet, NetworkInterface
resourceType
- The type of resource on which to create the flow log.FlowLogsResourceType
public CreateFlowLogsRequest withResourceType(FlowLogsResourceType resourceType)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: VPC, Subnet, NetworkInterface
resourceType
- The type of resource on which to create the flow log.FlowLogsResourceType
public String getTrafficType()
Constraints:
Allowed Values: ACCEPT, REJECT, ALL
TrafficType
public void setTrafficType(String trafficType)
Constraints:
Allowed Values: ACCEPT, REJECT, ALL
trafficType
- The type of traffic to log.TrafficType
public CreateFlowLogsRequest withTrafficType(String trafficType)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: ACCEPT, REJECT, ALL
trafficType
- The type of traffic to log.TrafficType
public void setTrafficType(TrafficType trafficType)
Constraints:
Allowed Values: ACCEPT, REJECT, ALL
trafficType
- The type of traffic to log.TrafficType
public CreateFlowLogsRequest withTrafficType(TrafficType trafficType)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: ACCEPT, REJECT, ALL
trafficType
- The type of traffic to log.TrafficType
public String getLogGroupName()
public void setLogGroupName(String logGroupName)
logGroupName
- The name of the CloudWatch log group.public CreateFlowLogsRequest withLogGroupName(String logGroupName)
Returns a reference to this object so that method calls can be chained together.
logGroupName
- The name of the CloudWatch log group.public String getDeliverLogsPermissionArn()
public void setDeliverLogsPermissionArn(String deliverLogsPermissionArn)
deliverLogsPermissionArn
- The ARN for the IAM role that's used to post flow logs to a CloudWatch
Logs log group.public CreateFlowLogsRequest withDeliverLogsPermissionArn(String deliverLogsPermissionArn)
Returns a reference to this object so that method calls can be chained together.
deliverLogsPermissionArn
- The ARN for the IAM role that's used to post flow logs to a CloudWatch
Logs log group.public String getClientToken()
public void setClientToken(String clientToken)
clientToken
- Unique, case-sensitive identifier you provide to ensure the
idempotency of the request. For more information, see How
to Ensure Idempotency.public CreateFlowLogsRequest withClientToken(String clientToken)
Returns a reference to this object so that method calls can be chained together.
clientToken
- Unique, case-sensitive identifier you provide to ensure the
idempotency of the request. For more information, see How
to Ensure Idempotency.public String toString()
toString
in class Object
Object.toString()
public CreateFlowLogsRequest clone()
clone
in class AmazonWebServiceRequest
Copyright © 2015. All rights reserved.