Actions, resources, and condition keys for Amazon Kinesis Data Streams
Amazon Kinesis Data Streams (service prefix: kinesis) provides the following
service-specific operations, resources, actions, and condition keys for use in IAM permission
policies.
References:
-
Learn how to configure this service.
-
View a list of the API operations available for this service.
-
Learn how to secure this service and its resources by using IAM permission policies.
-
View the programmatic service authorization reference
for this service.
Topics
API operations defined by Amazon Kinesis Data Streams
The following table maps API operations to the IAM actions they authorize. Only condition keys that have static values for the given API and action are listed; for the full set of condition keys supported by each action, see the Actions table.
| Operation | IAM action | Condition key | Possible value(s) | Access level |
|---|---|---|---|---|
|
AddTagsToStream |
Tagging, Write |
|||
|
CreateStream |
Tagging, Write |
|||
Write |
||||
|
DecreaseStreamRetentionPeriod |
Write |
|||
|
DeleteResourcePolicy |
Write |
|||
|
DeleteStream |
Write |
|||
|
DeregisterStreamConsumer |
Write |
|||
|
DescribeAccountSettings |
Read |
|||
|
DescribeLimits |
Read |
|||
|
DescribeStream |
Read |
|||
|
DescribeStreamConsumer |
Read |
|||
|
DescribeStreamSummary |
Read |
|||
|
DisableEnhancedMonitoring |
Write |
|||
|
EnableEnhancedMonitoring |
Write |
|||
|
GetRecords |
Read |
|||
|
GetResourcePolicy |
Read |
|||
|
GetShardIterator |
Read |
|||
|
IncreaseStreamRetentionPeriod |
Write |
|||
|
ListShards |
List |
|||
|
ListStreamConsumers |
List |
|||
|
ListStreams |
List |
|||
|
ListTagsForResource |
Read |
|||
|
ListTagsForStream |
Read |
|||
|
MergeShards |
Write |
|||
|
PutRecord |
Write |
|||
|
PutRecords |
Write |
|||
|
PutResourcePolicy |
Write |
|||
|
RegisterStreamConsumer |
Write |
|||
Tagging, Write |
||||
|
RemoveTagsFromStream |
Tagging, Write |
|||
|
SplitShard |
Write |
|||
|
StartStreamEncryption |
Write |
|||
|
StopStreamEncryption |
Write |
|||
|
SubscribeToShard |
Read |
|||
|
TagResource |
Tagging, Write |
|||
|
UntagResource |
Tagging, Write |
|||
|
UpdateAccountSettings |
Write |
|||
|
UpdateMaxRecordSize |
Write |
|||
|
UpdateShardCount |
Write |
|||
|
UpdateStreamMode |
Write |
|||
|
UpdateStreamWarmThroughput |
Write |
Actions defined by Amazon Kinesis Data Streams
You can specify the following actions in the Action element of an IAM
policy statement. Use policies to grant permissions to perform an operation in Amazon. When
you use an action in a policy, you usually allow or deny access to the API operation or CLI
command with the same name. However, in some cases, a single action controls access to more
than one operation. Alternatively, some operations require several different actions.
| Actions | Description | Resource types (*required) | Condition keys | Access level |
|---|---|---|---|---|
Grants permission to add or update tags for the specified Amazon Kinesis stream. Each stream can have up to 50 tags |
Tagging, Write |
|||
Grants permission to create a Amazon Kinesis stream |
Write |
|||
Grants permission to decrease the stream's retention period, which is the length of time data records are accessible after they are added to the stream |
Write |
|||
Grants permission to delete a resource policy associated with a specified stream or consumer |
Write |
|||
Grants permission to delete a stream and all its shards and data |
Write |
|||
Grants permission to deregister a stream consumer with a Kinesis data stream |
Write |
|||
Grants permission to describe the account-level settings for Amazon Kinesis Data Streams |
Read |
|||
Grants permission to describe the shard limits and usage for the account |
Read |
|||
Grants permission to describe the specified stream |
Read |
|||
Grants permission to get the description of a registered stream consumer |
Read |
|||
Grants permission to provide a summarized description of the specified Kinesis data stream without the shard list |
Read |
|||
Grants permission to disables enhanced monitoring |
Write |
|||
Grants permission to enable enhanced Kinesis data stream monitoring for shard-level metrics |
Write |
|||
Grants permission to get data records from a shard |
Read |
|||
Grants permission to get a resource policy associated with a specified stream or consumer |
Read |
|||
Grants permission to get a shard iterator. A shard iterator expires five minutes after it is returned to the requester |
Read |
|||
Grants permission to increase the stream's retention period, which is the length of time data records are accessible after they are added to the stream |
Write |
|||
Grants permission to list the shards in a stream and provides information about each shard |
List |
|||
Grants permission to list the stream consumers registered to receive data from a Kinesis stream using enhanced fan-out, and provides information about each consumer |
List |
|||
Grants permission to list your streams |
List |
|||
Grants permission to list the tags for the specified Amazon Kinesis resource |
Read |
|||
Grants permission to list the tags for the specified Amazon Kinesis stream |
Read |
|||
Grants permission to merge two adjacent shards in a stream and combines them into a single shard to reduce the stream's capacity to ingest and transport data |
Write |
|||
Grants permission to write a single data record from a producer into an Amazon Kinesis stream |
Write |
|||
Grants permission to write multiple data records from a producer into an Amazon Kinesis stream in a single call (also referred to as a PutRecords request) |
Write |
|||
Grants permission to attach a resource policy to a specified stream or consumer |
Write |
|||
Grants permission to register a stream consumer with a Kinesis data stream |
Write |
|||
Grants permission to remove tags from the specified Kinesis data stream. Removed tags are deleted and cannot be recovered after this operation successfully completes |
Tagging, Write |
|||
Grants permission to split a shard into two new shards in the Kinesis data stream, to increase the stream's capacity to ingest and transport data |
Write |
|||
Grants permission to enable or update server-side encryption using an Amazon KMS key for a specified stream |
Write |
|||
Grants permission to disable server-side encryption for a specified stream |
Write |
|||
Grants permission to listen to a specific shard with enhanced fan-out |
Read |
|||
Grants permission to add or update tags for the specified Amazon Kinesis resource. Each resource can have up to 50 tags |
Tagging, Write |
|||
Grants permission to remove tags from the specified Kinesis data resource. Removed tags are deleted and cannot be recovered after this operation successfully completes |
Tagging, Write |
|||
Grants permission to update the account-level settings for Amazon Kinesis Data Streams |
Write |
|||
Grants permission to update the maximum record size for a Kinesis data stream |
Write |
|||
Grants permission to update the shard count of the specified stream to the specified number of shards |
Write |
|||
Grants permission to update the capacity mode of the data stream |
Write |
|||
Grants permission to update the warm throughput for a Kinesis on-demand data stream |
Write |
Permission-only actions for Amazon Kinesis Data Streams
The following actions are defined by Amazon Kinesis Data Streams but are not directly invocable through any API operation. They can only be used in IAM policy statements to grant or deny permissions.
| Actions | Description | Resource types (*required) | Condition keys | Access level |
|---|---|---|---|---|
Grants permission to temporarily inject errors for target API requests |
Write |
Resource types defined by Amazon Kinesis Data Streams
The following resource types are defined by this service and can be used in the
Resource element of IAM permission policy statements.
| Resource types | ARN | Condition keys |
|---|---|---|
arn:${Partition}:kinesis:${Region}:${Account}:${StreamType}/${StreamName}/consumer/${ConsumerName}:${ConsumerCreationTimpstamp} |
||
arn:${Partition}:kms:${Region}:${Account}:key/${KeyId} |
||
arn:${Partition}:kinesis:${Region}:${Account}:stream/${StreamName} |
Condition keys for Amazon Kinesis Data Streams
Amazon Kinesis Data Streams defines the following condition keys that can be used in the
Condition element of an IAM policy.
| Condition keys | Description | Type |
|---|---|---|
Filters access by the presence of tag key-value pairs in the request |
String |
|
Filters access by tag key-value pairs attached to the resource |
String |
|
Filters access by the presence of tag keys in the request |
ArrayOfString |
|
Filters access by the ID of an Amazon FIS action |
String |
|
Filters access by the percentage of calls being affected by an Amazon FIS action |
Numeric |
|
Filters access by the ARN of an Amazon FIS target |
ArrayOfARN |