Class: Aws::Budgets::Types::SpendPrincipal

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

Overview

A principal whose spend you want to query.

Constant Summary collapse

SENSITIVE =
[:id]

Instance Attribute Summary collapse

Instance Attribute Details

#id ⇒ String

The ID of the principal. The value depends on the principal type:

  • For an Identity Center user, specify the user ID.

  • For an IAM principal, specify the ARN of the IAM root user, IAM user or role, or the STS assumed-role or federated-user ARN.

Returns:

  • (String)


2436
2437
2438
2439
2440
2441
# File 'gems/aws-sdk-budgets/lib/aws-sdk-budgets/types.rb', line 2436

class SpendPrincipal < Struct.new(
  :type,
  :id)
  SENSITIVE = [:id]
  include Aws::Structure
end

#type ⇒ String

The kind of principal. Valid values are IDENTITY_CENTER_USER and IAM_PRINCIPAL.

Returns:

  • (String)


2436
2437
2438
2439
2440
2441
# File 'gems/aws-sdk-budgets/lib/aws-sdk-budgets/types.rb', line 2436

class SpendPrincipal < Struct.new(
  :type,
  :id)
  SENSITIVE = [:id]
  include Aws::Structure
end