Class: Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV2AwsOrganizationalUnit
- Inherits:
-
Object
- Object
- Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV2AwsOrganizationalUnit
- 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
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
-
#id ⇒ String
The unique identifier (ID) associated with this OU.
-
#name ⇒ String
The friendly name of the OU.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudSecuritycenterV2AwsOrganizationalUnit
constructor
A new instance of GoogleCloudSecuritycenterV2AwsOrganizationalUnit.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudSecuritycenterV2AwsOrganizationalUnit
Returns a new instance of GoogleCloudSecuritycenterV2AwsOrganizationalUnit.
4266 4267 4268 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 4266 def initialize(**args) update!(**args) end |
Instance Attribute Details
#id ⇒ String
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
4259 4260 4261 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 4259 def id @id end |
#name ⇒ String
The friendly name of the OU.
Corresponds to the JSON property name
4264 4265 4266 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 4264 def name @name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4271 4272 4273 4274 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 4271 def update!(**args) @id = args[:id] if args.key?(:id) @name = args[:name] if args.key?(:name) end |