Class: Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV2AwsOrganizationalUnit

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/securitycenter_v1beta2/classes.rb,
lib/google/apis/securitycenter_v1beta2/representations.rb,
lib/google/apis/securitycenter_v1beta2/representations.rb

Overview

An Organizational Unit (OU) is a container of AWS accounts within a root of an organization. Policies that are attached to an OU apply to all accounts contained in that OU and in any child OUs.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudSecuritycenterV2AwsOrganizationalUnit

Returns a new instance of GoogleCloudSecuritycenterV2AwsOrganizationalUnit.



3749
3750
3751
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 3749

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#idString

The unique identifier (ID) associated with this OU. The regex pattern for an organizational unit ID string requires "ou-" followed by from 4 to 32 lowercase letters or digits (the ID of the root that contains the OU). This string is followed by a second "-" dash and from 8 to 32 additional lowercase letters or digits. For example, "ou-ab12-cd34ef56". Corresponds to the JSON property id

Returns:

  • (String)


3742
3743
3744
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 3742

def id
  @id
end

#nameString

The friendly name of the OU. Corresponds to the JSON property name

Returns:

  • (String)


3747
3748
3749
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 3747

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3754
3755
3756
3757
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 3754

def update!(**args)
  @id = args[:id] if args.key?(:id)
  @name = args[:name] if args.key?(:name)
end