Class: Aws::S3::Types::CloudFunctionConfiguration
- Inherits:
-
Struct
- Object
- Struct
- Aws::S3::Types::CloudFunctionConfiguration
- Includes:
- Aws::Structure
- Defined in:
- lib/aws-sdk-s3/types.rb
Overview
When making an API call, you may pass CloudFunctionConfiguration data as a hash:
{
id: "NotificationId",
event: "s3:ReducedRedundancyLostObject", # accepts s3:ReducedRedundancyLostObject, s3:ObjectCreated:*, s3:ObjectCreated:Put, s3:ObjectCreated:Post, s3:ObjectCreated:Copy, s3:ObjectCreated:CompleteMultipartUpload, s3:ObjectRemoved:*, s3:ObjectRemoved:Delete, s3:ObjectRemoved:DeleteMarkerCreated, s3:ObjectRestore:*, s3:ObjectRestore:Post, s3:ObjectRestore:Completed, s3:Replication:*, s3:Replication:OperationFailedReplication, s3:Replication:OperationNotTracked, s3:Replication:OperationMissedThreshold, s3:Replication:OperationReplicatedAfterThreshold, s3:ObjectRestore:Delete, s3:LifecycleTransition, s3:IntelligentTiering, s3:ObjectAcl:Put, s3:LifecycleExpiration:*, s3:LifecycleExpiration:Delete, s3:LifecycleExpiration:DeleteMarkerCreated, s3:ObjectTagging:*, s3:ObjectTagging:Put, s3:ObjectTagging:Delete
events: ["s3:ReducedRedundancyLostObject"], # accepts s3:ReducedRedundancyLostObject, s3:ObjectCreated:*, s3:ObjectCreated:Put, s3:ObjectCreated:Post, s3:ObjectCreated:Copy, s3:ObjectCreated:CompleteMultipartUpload, s3:ObjectRemoved:*, s3:ObjectRemoved:Delete, s3:ObjectRemoved:DeleteMarkerCreated, s3:ObjectRestore:*, s3:ObjectRestore:Post, s3:ObjectRestore:Completed, s3:Replication:*, s3:Replication:OperationFailedReplication, s3:Replication:OperationNotTracked, s3:Replication:OperationMissedThreshold, s3:Replication:OperationReplicatedAfterThreshold, s3:ObjectRestore:Delete, s3:LifecycleTransition, s3:IntelligentTiering, s3:ObjectAcl:Put, s3:LifecycleExpiration:*, s3:LifecycleExpiration:Delete, s3:LifecycleExpiration:DeleteMarkerCreated, s3:ObjectTagging:*, s3:ObjectTagging:Put, s3:ObjectTagging:Delete
cloud_function: "CloudFunction",
invocation_role: "CloudFunctionInvocationRole",
}
Container for specifying the Lambda notification configuration.
Constant Summary collapse
- SENSITIVE =
[]
Instance Attribute Summary collapse
-
#cloud_function ⇒ String
Lambda cloud function ARN that Amazon S3 can invoke when it detects events of the specified type.
-
#event ⇒ String
The bucket event for which to send notifications.
-
#events ⇒ Array<String>
Bucket events for which to send notifications.
-
#id ⇒ String
An optional unique identifier for configurations in a notification configuration.
-
#invocation_role ⇒ String
The role supporting the invocation of the Lambda function.
Instance Attribute Details
#cloud_function ⇒ String
Lambda cloud function ARN that Amazon S3 can invoke when it detects events of the specified type.
956 957 958 959 960 961 962 963 964 |
# File 'lib/aws-sdk-s3/types.rb', line 956 class CloudFunctionConfiguration < Struct.new( :id, :event, :events, :cloud_function, :invocation_role) SENSITIVE = [] include Aws::Structure end |
#event ⇒ String
The bucket event for which to send notifications.
956 957 958 959 960 961 962 963 964 |
# File 'lib/aws-sdk-s3/types.rb', line 956 class CloudFunctionConfiguration < Struct.new( :id, :event, :events, :cloud_function, :invocation_role) SENSITIVE = [] include Aws::Structure end |
#events ⇒ Array<String>
Bucket events for which to send notifications.
956 957 958 959 960 961 962 963 964 |
# File 'lib/aws-sdk-s3/types.rb', line 956 class CloudFunctionConfiguration < Struct.new( :id, :event, :events, :cloud_function, :invocation_role) SENSITIVE = [] include Aws::Structure end |
#id ⇒ String
An optional unique identifier for configurations in a notification configuration. If you don’t provide one, Amazon S3 will assign an ID.
956 957 958 959 960 961 962 963 964 |
# File 'lib/aws-sdk-s3/types.rb', line 956 class CloudFunctionConfiguration < Struct.new( :id, :event, :events, :cloud_function, :invocation_role) SENSITIVE = [] include Aws::Structure end |
#invocation_role ⇒ String
The role supporting the invocation of the Lambda function
956 957 958 959 960 961 962 963 964 |
# File 'lib/aws-sdk-s3/types.rb', line 956 class CloudFunctionConfiguration < Struct.new( :id, :event, :events, :cloud_function, :invocation_role) SENSITIVE = [] include Aws::Structure end |