@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class PutSubscriptionFilterRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
PutSubscriptionFilterRequest() |
Modifier and Type | Method and Description |
---|---|
PutSubscriptionFilterRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getDestinationArn()
The ARN of the destination to deliver matching log events to.
|
String |
getDistribution()
The method used to distribute log data to the destination.
|
String |
getFilterName()
A name for the subscription filter.
|
String |
getFilterPattern()
A filter pattern for subscribing to a filtered stream of log events.
|
String |
getLogGroupName()
The name of the log group.
|
String |
getRoleArn()
The ARN of an IAM role that grants CloudWatch Logs permissions to deliver ingested log events to the destination
stream.
|
int |
hashCode() |
void |
setDestinationArn(String destinationArn)
The ARN of the destination to deliver matching log events to.
|
void |
setDistribution(Distribution distribution)
The method used to distribute log data to the destination.
|
void |
setDistribution(String distribution)
The method used to distribute log data to the destination.
|
void |
setFilterName(String filterName)
A name for the subscription filter.
|
void |
setFilterPattern(String filterPattern)
A filter pattern for subscribing to a filtered stream of log events.
|
void |
setLogGroupName(String logGroupName)
The name of the log group.
|
void |
setRoleArn(String roleArn)
The ARN of an IAM role that grants CloudWatch Logs permissions to deliver ingested log events to the destination
stream.
|
String |
toString()
Returns a string representation of this object.
|
PutSubscriptionFilterRequest |
withDestinationArn(String destinationArn)
The ARN of the destination to deliver matching log events to.
|
PutSubscriptionFilterRequest |
withDistribution(Distribution distribution)
The method used to distribute log data to the destination.
|
PutSubscriptionFilterRequest |
withDistribution(String distribution)
The method used to distribute log data to the destination.
|
PutSubscriptionFilterRequest |
withFilterName(String filterName)
A name for the subscription filter.
|
PutSubscriptionFilterRequest |
withFilterPattern(String filterPattern)
A filter pattern for subscribing to a filtered stream of log events.
|
PutSubscriptionFilterRequest |
withLogGroupName(String logGroupName)
The name of the log group.
|
PutSubscriptionFilterRequest |
withRoleArn(String roleArn)
The ARN of an IAM role that grants CloudWatch Logs permissions to deliver ingested log events to the destination
stream.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setLogGroupName(String logGroupName)
The name of the log group.
logGroupName
- The name of the log group.public String getLogGroupName()
The name of the log group.
public PutSubscriptionFilterRequest withLogGroupName(String logGroupName)
The name of the log group.
logGroupName
- The name of the log group.public void setFilterName(String filterName)
A name for the subscription filter. If you are updating an existing filter, you must specify the correct name in
filterName
. To find the name of the filter currently associated with a log group, use DescribeSubscriptionFilters.
filterName
- A name for the subscription filter. If you are updating an existing filter, you must specify the correct
name in filterName
. To find the name of the filter currently associated with a log group, use
DescribeSubscriptionFilters.public String getFilterName()
A name for the subscription filter. If you are updating an existing filter, you must specify the correct name in
filterName
. To find the name of the filter currently associated with a log group, use DescribeSubscriptionFilters.
filterName
. To find the name of the filter currently associated with a log group,
use DescribeSubscriptionFilters.public PutSubscriptionFilterRequest withFilterName(String filterName)
A name for the subscription filter. If you are updating an existing filter, you must specify the correct name in
filterName
. To find the name of the filter currently associated with a log group, use DescribeSubscriptionFilters.
filterName
- A name for the subscription filter. If you are updating an existing filter, you must specify the correct
name in filterName
. To find the name of the filter currently associated with a log group, use
DescribeSubscriptionFilters.public void setFilterPattern(String filterPattern)
A filter pattern for subscribing to a filtered stream of log events.
filterPattern
- A filter pattern for subscribing to a filtered stream of log events.public String getFilterPattern()
A filter pattern for subscribing to a filtered stream of log events.
public PutSubscriptionFilterRequest withFilterPattern(String filterPattern)
A filter pattern for subscribing to a filtered stream of log events.
filterPattern
- A filter pattern for subscribing to a filtered stream of log events.public void setDestinationArn(String destinationArn)
The ARN of the destination to deliver matching log events to. Currently, the supported destinations are:
An Amazon Kinesis stream belonging to the same account as the subscription filter, for same-account delivery.
A logical destination (specified using an ARN) belonging to a different account, for cross-account delivery.
If you're setting up a cross-account subscription, the destination must have an IAM policy associated with it. The IAM policy must allow the sender to send logs to the destination. For more information, see PutDestinationPolicy.
A Kinesis Data Firehose delivery stream belonging to the same account as the subscription filter, for same-account delivery.
A Lambda function belonging to the same account as the subscription filter, for same-account delivery.
destinationArn
- The ARN of the destination to deliver matching log events to. Currently, the supported destinations
are:
An Amazon Kinesis stream belonging to the same account as the subscription filter, for same-account delivery.
A logical destination (specified using an ARN) belonging to a different account, for cross-account delivery.
If you're setting up a cross-account subscription, the destination must have an IAM policy associated with it. The IAM policy must allow the sender to send logs to the destination. For more information, see PutDestinationPolicy.
A Kinesis Data Firehose delivery stream belonging to the same account as the subscription filter, for same-account delivery.
A Lambda function belonging to the same account as the subscription filter, for same-account delivery.
public String getDestinationArn()
The ARN of the destination to deliver matching log events to. Currently, the supported destinations are:
An Amazon Kinesis stream belonging to the same account as the subscription filter, for same-account delivery.
A logical destination (specified using an ARN) belonging to a different account, for cross-account delivery.
If you're setting up a cross-account subscription, the destination must have an IAM policy associated with it. The IAM policy must allow the sender to send logs to the destination. For more information, see PutDestinationPolicy.
A Kinesis Data Firehose delivery stream belonging to the same account as the subscription filter, for same-account delivery.
A Lambda function belonging to the same account as the subscription filter, for same-account delivery.
An Amazon Kinesis stream belonging to the same account as the subscription filter, for same-account delivery.
A logical destination (specified using an ARN) belonging to a different account, for cross-account delivery.
If you're setting up a cross-account subscription, the destination must have an IAM policy associated with it. The IAM policy must allow the sender to send logs to the destination. For more information, see PutDestinationPolicy.
A Kinesis Data Firehose delivery stream belonging to the same account as the subscription filter, for same-account delivery.
A Lambda function belonging to the same account as the subscription filter, for same-account delivery.
public PutSubscriptionFilterRequest withDestinationArn(String destinationArn)
The ARN of the destination to deliver matching log events to. Currently, the supported destinations are:
An Amazon Kinesis stream belonging to the same account as the subscription filter, for same-account delivery.
A logical destination (specified using an ARN) belonging to a different account, for cross-account delivery.
If you're setting up a cross-account subscription, the destination must have an IAM policy associated with it. The IAM policy must allow the sender to send logs to the destination. For more information, see PutDestinationPolicy.
A Kinesis Data Firehose delivery stream belonging to the same account as the subscription filter, for same-account delivery.
A Lambda function belonging to the same account as the subscription filter, for same-account delivery.
destinationArn
- The ARN of the destination to deliver matching log events to. Currently, the supported destinations
are:
An Amazon Kinesis stream belonging to the same account as the subscription filter, for same-account delivery.
A logical destination (specified using an ARN) belonging to a different account, for cross-account delivery.
If you're setting up a cross-account subscription, the destination must have an IAM policy associated with it. The IAM policy must allow the sender to send logs to the destination. For more information, see PutDestinationPolicy.
A Kinesis Data Firehose delivery stream belonging to the same account as the subscription filter, for same-account delivery.
A Lambda function belonging to the same account as the subscription filter, for same-account delivery.
public void setRoleArn(String roleArn)
The ARN of an IAM role that grants CloudWatch Logs permissions to deliver ingested log events to the destination stream. You don't need to provide the ARN when you are working with a logical destination for cross-account delivery.
roleArn
- The ARN of an IAM role that grants CloudWatch Logs permissions to deliver ingested log events to the
destination stream. You don't need to provide the ARN when you are working with a logical destination for
cross-account delivery.public String getRoleArn()
The ARN of an IAM role that grants CloudWatch Logs permissions to deliver ingested log events to the destination stream. You don't need to provide the ARN when you are working with a logical destination for cross-account delivery.
public PutSubscriptionFilterRequest withRoleArn(String roleArn)
The ARN of an IAM role that grants CloudWatch Logs permissions to deliver ingested log events to the destination stream. You don't need to provide the ARN when you are working with a logical destination for cross-account delivery.
roleArn
- The ARN of an IAM role that grants CloudWatch Logs permissions to deliver ingested log events to the
destination stream. You don't need to provide the ARN when you are working with a logical destination for
cross-account delivery.public void setDistribution(String distribution)
The method used to distribute log data to the destination. By default, log data is grouped by log stream, but the grouping can be set to random for a more even distribution. This property is only applicable when the destination is an Amazon Kinesis data stream.
distribution
- The method used to distribute log data to the destination. By default, log data is grouped by log stream,
but the grouping can be set to random for a more even distribution. This property is only applicable when
the destination is an Amazon Kinesis data stream.Distribution
public String getDistribution()
The method used to distribute log data to the destination. By default, log data is grouped by log stream, but the grouping can be set to random for a more even distribution. This property is only applicable when the destination is an Amazon Kinesis data stream.
Distribution
public PutSubscriptionFilterRequest withDistribution(String distribution)
The method used to distribute log data to the destination. By default, log data is grouped by log stream, but the grouping can be set to random for a more even distribution. This property is only applicable when the destination is an Amazon Kinesis data stream.
distribution
- The method used to distribute log data to the destination. By default, log data is grouped by log stream,
but the grouping can be set to random for a more even distribution. This property is only applicable when
the destination is an Amazon Kinesis data stream.Distribution
public void setDistribution(Distribution distribution)
The method used to distribute log data to the destination. By default, log data is grouped by log stream, but the grouping can be set to random for a more even distribution. This property is only applicable when the destination is an Amazon Kinesis data stream.
distribution
- The method used to distribute log data to the destination. By default, log data is grouped by log stream,
but the grouping can be set to random for a more even distribution. This property is only applicable when
the destination is an Amazon Kinesis data stream.Distribution
public PutSubscriptionFilterRequest withDistribution(Distribution distribution)
The method used to distribute log data to the destination. By default, log data is grouped by log stream, but the grouping can be set to random for a more even distribution. This property is only applicable when the destination is an Amazon Kinesis data stream.
distribution
- The method used to distribute log data to the destination. By default, log data is grouped by log stream,
but the grouping can be set to random for a more even distribution. This property is only applicable when
the destination is an Amazon Kinesis data stream.Distribution
public String toString()
toString
in class Object
Object.toString()
public PutSubscriptionFilterRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()