Class: Aws::SecurityHub::Types::Target

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

Overview

Note:

Target is a union - when making an API calls you must set exactly one of the members.

Note:

Target is a union - when returned from an API call exactly one value will be set and the returned type will be a subclass of Target corresponding to the set member.

The target account, organizational unit, or the root that is associated with an Security Hub configuration. The configuration can be a configuration policy or self-managed behavior.

Direct Known Subclasses

AccountId, OrganizationalUnitId, RootId, Unknown

Defined Under Namespace

Classes: AccountId, OrganizationalUnitId, RootId, Unknown

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#account_idString

The Amazon Web Services account ID of the target account.

Returns:

  • (String)


30618
30619
30620
30621
30622
30623
30624
30625
30626
30627
30628
30629
30630
30631
# File 'gems/aws-sdk-securityhub/lib/aws-sdk-securityhub/types.rb', line 30618

class Target < Struct.new(
  :account_id,
  :organizational_unit_id,
  :root_id,
  :unknown)
  SENSITIVE = []
  include Aws::Structure
  include Aws::Structure::Union

  class AccountId < Target; end
  class OrganizationalUnitId < Target; end
  class RootId < Target; end
  class Unknown < Target; end
end

#organizational_unit_idString

The organizational unit ID of the target organizational unit.

Returns:

  • (String)


30618
30619
30620
30621
30622
30623
30624
30625
30626
30627
30628
30629
30630
30631
# File 'gems/aws-sdk-securityhub/lib/aws-sdk-securityhub/types.rb', line 30618

class Target < Struct.new(
  :account_id,
  :organizational_unit_id,
  :root_id,
  :unknown)
  SENSITIVE = []
  include Aws::Structure
  include Aws::Structure::Union

  class AccountId < Target; end
  class OrganizationalUnitId < Target; end
  class RootId < Target; end
  class Unknown < Target; end
end

#root_idString

The ID of the organization root.

Returns:

  • (String)


30618
30619
30620
30621
30622
30623
30624
30625
30626
30627
30628
30629
30630
30631
# File 'gems/aws-sdk-securityhub/lib/aws-sdk-securityhub/types.rb', line 30618

class Target < Struct.new(
  :account_id,
  :organizational_unit_id,
  :root_id,
  :unknown)
  SENSITIVE = []
  include Aws::Structure
  include Aws::Structure::Union

  class AccountId < Target; end
  class OrganizationalUnitId < Target; end
  class RootId < Target; end
  class Unknown < Target; end
end

#unknownObject

Returns the value of attribute unknown

Returns:

  • (Object)

    the current value of unknown



30618
30619
30620
# File 'gems/aws-sdk-securityhub/lib/aws-sdk-securityhub/types.rb', line 30618

def unknown
  @unknown
end