Class PutSubscriptionFilterRequest
- All Implemented Interfaces:
ReadLimitInfo
,Serializable
,Cloneable
- See Also:
-
Field Summary
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
Creates a shallow clone of this request.boolean
The ARN of the destination to deliver matching log events to.A name for the subscription filter.A valid CloudWatch Logs filter pattern for subscribing to a filtered stream of log events.The name of the log group to associate the subscription filter with.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
setFilterName
(String filterName) A name for the subscription filter.void
setFilterPattern
(String filterPattern) A valid CloudWatch Logs filter pattern for subscribing to a filtered stream of log events.void
setLogGroupName
(String logGroupName) The name of the log group to associate the subscription filter with.void
setRoleArn
(String roleArn) The ARN of an IAM role that grants CloudWatch Logs permissions to deliver ingested log events to the destination stream.toString()
Returns a string representation of this object; useful for testing and debugging.withDestinationArn
(String destinationArn) The ARN of the destination to deliver matching log events to.withFilterName
(String filterName) A name for the subscription filter.withFilterPattern
(String filterPattern) A valid CloudWatch Logs filter pattern for subscribing to a filtered stream of log events.withLogGroupName
(String logGroupName) The name of the log group to associate the subscription filter with.withRoleArn
(String roleArn) The ARN of an IAM role that grants CloudWatch Logs permissions to deliver ingested log events to the destination stream.Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
-
Constructor Details
-
PutSubscriptionFilterRequest
public PutSubscriptionFilterRequest()
-
-
Method Details
-
setLogGroupName
The name of the log group to associate the subscription filter with.
- Parameters:
logGroupName
- The name of the log group to associate the subscription filter with.
-
getLogGroupName
The name of the log group to associate the subscription filter with.
- Returns:
- The name of the log group to associate the subscription filter with.
-
withLogGroupName
The name of the log group to associate the subscription filter with.
- Parameters:
logGroupName
- The name of the log group to associate the subscription filter with.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setFilterName
A name for the subscription filter.
- Parameters:
filterName
- A name for the subscription filter.
-
getFilterName
A name for the subscription filter.
- Returns:
- A name for the subscription filter.
-
withFilterName
A name for the subscription filter.
- Parameters:
filterName
- A name for the subscription filter.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setFilterPattern
A valid CloudWatch Logs filter pattern for subscribing to a filtered stream of log events.
- Parameters:
filterPattern
- A valid CloudWatch Logs filter pattern for subscribing to a filtered stream of log events.
-
getFilterPattern
A valid CloudWatch Logs filter pattern for subscribing to a filtered stream of log events.
- Returns:
- A valid CloudWatch Logs filter pattern for subscribing to a filtered stream of log events.
-
withFilterPattern
A valid CloudWatch Logs filter pattern for subscribing to a filtered stream of log events.
- Parameters:
filterPattern
- A valid CloudWatch Logs filter pattern for subscribing to a filtered stream of log events.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setDestinationArn
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 (used via an ARN of
Destination
) belonging to a different account, for cross-account delivery. - An Amazon Kinesis Firehose stream belonging to the same account as the subscription filter, for same-account delivery.
- An AWS Lambda function belonging to the same account as the subscription filter, for same-account delivery.
- Parameters:
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 (used via an ARN of
Destination
) belonging to a different account, for cross-account delivery. - An Amazon Kinesis Firehose stream belonging to the same account as the subscription filter, for same-account delivery.
- An AWS Lambda function belonging to the same account as the subscription filter, for same-account delivery.
-
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 (used via an ARN of
Destination
) belonging to a different account, for cross-account delivery. - An Amazon Kinesis Firehose stream belonging to the same account as the subscription filter, for same-account delivery.
- An AWS Lambda function belonging to the same account as the subscription filter, for same-account delivery.
- Returns:
- 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 (used via an ARN of
Destination
) belonging to a different account, for cross-account delivery. - An Amazon Kinesis Firehose stream belonging to the same account as the subscription filter, for same-account delivery.
- An AWS Lambda function belonging to the same account as the subscription filter, for same-account delivery.
-
withDestinationArn
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 (used via an ARN of
Destination
) belonging to a different account, for cross-account delivery. - An Amazon Kinesis Firehose stream belonging to the same account as the subscription filter, for same-account delivery.
- An AWS Lambda function belonging to the same account as the subscription filter, for same-account delivery.
- Parameters:
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 (used via an ARN of
Destination
) belonging to a different account, for cross-account delivery. - An Amazon Kinesis Firehose stream belonging to the same account as the subscription filter, for same-account delivery.
- An AWS Lambda function belonging to the same account as the subscription filter, for same-account delivery.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setRoleArn
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 (used via an ARN of
Destination
) for cross-account delivery.- Parameters:
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 (used via an ARN ofDestination
) for cross-account delivery.
-
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 (used via an ARN of
Destination
) for cross-account delivery.- Returns:
- 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 (used via an ARN of
Destination
) for cross-account delivery.
-
withRoleArn
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 (used via an ARN of
Destination
) for cross-account delivery.- Parameters:
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 (used via an ARN ofDestination
) for cross-account delivery.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
Description copied from class:AmazonWebServiceRequest
Creates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.- Overrides:
clone
in classAmazonWebServiceRequest
- See Also:
-