You are viewing documentation for version 3 of the AWS SDK for Ruby. Version 2 documentation can be found here.

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

Instance Attribute Summary collapse

Instance Attribute Details

#cloud_functionString

Returns:

  • (String)


549
550
551
552
553
554
555
556
# File 'gems/aws-sdk-s3/lib/aws-sdk-s3/types.rb', line 549

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

#eventString

Bucket event for which to send notifications.

Returns:

  • (String)


549
550
551
552
553
554
555
556
# File 'gems/aws-sdk-s3/lib/aws-sdk-s3/types.rb', line 549

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

#eventsArray<String>

Returns:

  • (Array<String>)


549
550
551
552
553
554
555
556
# File 'gems/aws-sdk-s3/lib/aws-sdk-s3/types.rb', line 549

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

#idString

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

Returns:

  • (String)


549
550
551
552
553
554
555
556
# File 'gems/aws-sdk-s3/lib/aws-sdk-s3/types.rb', line 549

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

#invocation_roleString

Returns:

  • (String)


549
550
551
552
553
554
555
556
# File 'gems/aws-sdk-s3/lib/aws-sdk-s3/types.rb', line 549

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