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

Class: Aws::Snowball::Types::Notification

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

Overview

Note:

When making an API call, you may pass Notification data as a hash:

{
  sns_topic_arn: "SnsTopicARN",
  job_states_to_notify: ["New"], # accepts New, PreparingAppliance, PreparingShipment, InTransitToCustomer, WithCustomer, InTransitToAWS, WithAWS, InProgress, Complete, Cancelled, Listing, Pending
  notify_all: false,
}

The Amazon Simple Notification Service (Amazon SNS) notification settings associated with a specific job. The Notification object is returned as a part of the response syntax of the DescribeJob action in the JobMetadata data type.

When the notification settings are defined during job creation, you can choose to notify based on a specific set of job states using the JobStatesToNotify array of strings, or you can specify that you want to have Amazon SNS notifications sent out for all job states with NotifyAll set to true.

Instance Attribute Summary collapse

Instance Attribute Details

#job_states_to_notifyArray<String>

The list of job states that will trigger a notification for this job.

Returns:

  • (Array<String>)


1472
1473
1474
1475
1476
1477
# File 'gems/aws-sdk-snowball/lib/aws-sdk-snowball/types.rb', line 1472

class Notification < Struct.new(
  :sns_topic_arn,
  :job_states_to_notify,
  :notify_all)
  include Aws::Structure
end

#notify_allBoolean

Any change in job state will trigger a notification for this job.

Returns:

  • (Boolean)


1472
1473
1474
1475
1476
1477
# File 'gems/aws-sdk-snowball/lib/aws-sdk-snowball/types.rb', line 1472

class Notification < Struct.new(
  :sns_topic_arn,
  :job_states_to_notify,
  :notify_all)
  include Aws::Structure
end

#sns_topic_arnString

The new SNS TopicArn that you want to associate with this job. You can create Amazon Resource Names (ARNs) for topics by using the CreateTopic Amazon SNS API action.

You can subscribe email addresses to an Amazon SNS topic through the AWS Management Console, or by using the Subscribe AWS Simple Notification Service (SNS) API action.

Returns:

  • (String)


1472
1473
1474
1475
1476
1477
# File 'gems/aws-sdk-snowball/lib/aws-sdk-snowball/types.rb', line 1472

class Notification < Struct.new(
  :sns_topic_arn,
  :job_states_to_notify,
  :notify_all)
  include Aws::Structure
end