Method: AWS::SNS::Topic#name

Defined in:
lib/aws/sns/topic.rb

#nameString

The topic name.

If you have not set a display name (see #display_name=) then this is used as the “From” field for notifications to email and email-json endpoints.

Returns:

  • (String)

    Returns the toipc name.



38
39
40
# File 'lib/aws/sns/topic.rb', line 38

def name
  arn.split(/:/)[-1]
end