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

Class: Aws::IoT::Types::AuthInfo

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

Overview

Note:

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

{
  action_type: "PUBLISH", # accepts PUBLISH, SUBSCRIBE, RECEIVE, CONNECT
  resources: ["Resource"],
}

A collection of authorization information.

Instance Attribute Summary collapse

Instance Attribute Details

#action_typeString

The type of action for which the principal is being authorized.

Returns:

  • (String)


417
418
419
420
421
# File 'gems/aws-sdk-iot/lib/aws-sdk-iot/types.rb', line 417

class AuthInfo < Struct.new(
  :action_type,
  :resources)
  include Aws::Structure
end

#resourcesArray<String>

The resources for which the principal is being authorized to perform the specified action.

Returns:

  • (Array<String>)


417
418
419
420
421
# File 'gems/aws-sdk-iot/lib/aws-sdk-iot/types.rb', line 417

class AuthInfo < Struct.new(
  :action_type,
  :resources)
  include Aws::Structure
end