Class: Aws::S3::Types::CloudFunctionConfiguration

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-s3/lib/aws-sdk-s3/types.rb

Overview

Note:

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
  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
  cloud_function: "CloudFunction",
  invocation_role: "CloudFunctionInvocationRole",
}

Container for specifying the AWS Lambda notification configuration.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#cloud_functionString

Lambda cloud function ARN that Amazon S3 can invoke when it detects events of the specified type.

Returns:

  • (String)


860
861
862
863
864
865
866
867
868
# File 'gems/aws-sdk-s3/lib/aws-sdk-s3/types.rb', line 860

class CloudFunctionConfiguration < Struct.new(
  :id,
  :event,
  :events,
  :cloud_function,
  :invocation_role)
  SENSITIVE = []
  include Aws::Structure
end

#eventString

The bucket event for which to send notifications.

Returns:

  • (String)


860
861
862
863
864
865
866
867
868
# File 'gems/aws-sdk-s3/lib/aws-sdk-s3/types.rb', line 860

class CloudFunctionConfiguration < Struct.new(
  :id,
  :event,
  :events,
  :cloud_function,
  :invocation_role)
  SENSITIVE = []
  include Aws::Structure
end

#eventsArray<String>

Bucket events for which to send notifications.

Returns:

  • (Array<String>)


860
861
862
863
864
865
866
867
868
# File 'gems/aws-sdk-s3/lib/aws-sdk-s3/types.rb', line 860

class CloudFunctionConfiguration < Struct.new(
  :id,
  :event,
  :events,
  :cloud_function,
  :invocation_role)
  SENSITIVE = []
  include Aws::Structure
end

#idString

An optional unique identifier for configurations in a notification configuration. If you don't provide one, Amazon S3 will assign an ID.

Returns:

  • (String)


860
861
862
863
864
865
866
867
868
# File 'gems/aws-sdk-s3/lib/aws-sdk-s3/types.rb', line 860

class CloudFunctionConfiguration < Struct.new(
  :id,
  :event,
  :events,
  :cloud_function,
  :invocation_role)
  SENSITIVE = []
  include Aws::Structure
end

#invocation_roleString

The role supporting the invocation of the Lambda function

Returns:

  • (String)


860
861
862
863
864
865
866
867
868
# File 'gems/aws-sdk-s3/lib/aws-sdk-s3/types.rb', line 860

class CloudFunctionConfiguration < Struct.new(
  :id,
  :event,
  :events,
  :cloud_function,
  :invocation_role)
  SENSITIVE = []
  include Aws::Structure
end