Class: Google::Apis::SecuritycenterV1::AwsMetadata
- Inherits:
-
Object
- Object
- Google::Apis::SecuritycenterV1::AwsMetadata
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/securitycenter_v1/classes.rb,
lib/google/apis/securitycenter_v1/representations.rb,
lib/google/apis/securitycenter_v1/representations.rb
Overview
AWS metadata associated with the resource, only applicable if the finding's cloud provider is Amazon Web Services.
Instance Attribute Summary collapse
-
#account ⇒ Google::Apis::SecuritycenterV1::AwsAccount
An AWS account that is a member of an organization.
-
#organization ⇒ Google::Apis::SecuritycenterV1::AwsOrganization
An organization is a collection of accounts that are centrally managed together using consolidated billing, organized hierarchically with organizational units (OUs), and controlled with policies.
-
#organizational_units ⇒ Array<Google::Apis::SecuritycenterV1::AwsOrganizationalUnit>
A list of AWS organizational units associated with the resource, ordered from lowest level (closest to the account) to highest level.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AwsMetadata
constructor
A new instance of AwsMetadata.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ AwsMetadata
Returns a new instance of AwsMetadata.
716 717 718 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 716 def initialize(**args) update!(**args) end |
Instance Attribute Details
#account ⇒ Google::Apis::SecuritycenterV1::AwsAccount
An AWS account that is a member of an organization.
Corresponds to the JSON property account
701 702 703 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 701 def account @account end |
#organization ⇒ Google::Apis::SecuritycenterV1::AwsOrganization
An organization is a collection of accounts that are centrally managed
together using consolidated billing, organized hierarchically with
organizational units (OUs), and controlled with policies.
Corresponds to the JSON property organization
708 709 710 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 708 def organization @organization end |
#organizational_units ⇒ Array<Google::Apis::SecuritycenterV1::AwsOrganizationalUnit>
A list of AWS organizational units associated with the resource, ordered from
lowest level (closest to the account) to highest level.
Corresponds to the JSON property organizationalUnits
714 715 716 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 714 def organizational_units @organizational_units end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
721 722 723 724 725 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 721 def update!(**args) @account = args[:account] if args.key?(:account) @organization = args[:organization] if args.key?(:organization) @organizational_units = args[:organizational_units] if args.key?(:organizational_units) end |