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

Class: Aws::IoT::Types::CreateRoleAliasRequest

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 CreateRoleAliasRequest data as a hash:

{
  role_alias: "RoleAlias", # required
  role_arn: "RoleArn", # required
  credential_duration_seconds: 1,
}

Instance Attribute Summary collapse

Instance Attribute Details

#credential_duration_secondsInteger

How long (in seconds) the credentials will be valid.

Returns:

  • (Integer)


1462
1463
1464
1465
1466
1467
# File 'gems/aws-sdk-iot/lib/aws-sdk-iot/types.rb', line 1462

class CreateRoleAliasRequest < Struct.new(
  :role_alias,
  :role_arn,
  :credential_duration_seconds)
  include Aws::Structure
end

#role_aliasString

The role alias that points to a role ARN. This allows you to change the role without having to update the device.

Returns:

  • (String)


1462
1463
1464
1465
1466
1467
# File 'gems/aws-sdk-iot/lib/aws-sdk-iot/types.rb', line 1462

class CreateRoleAliasRequest < Struct.new(
  :role_alias,
  :role_arn,
  :credential_duration_seconds)
  include Aws::Structure
end

#role_arnString

The role ARN.

Returns:

  • (String)


1462
1463
1464
1465
1466
1467
# File 'gems/aws-sdk-iot/lib/aws-sdk-iot/types.rb', line 1462

class CreateRoleAliasRequest < Struct.new(
  :role_alias,
  :role_arn,
  :credential_duration_seconds)
  include Aws::Structure
end