# Cloud Security Command Center V1 API - Class Google::Cloud::SecurityCenter::V1::AwsMetadata (v1.10.0)

1.10.0 (latest) 1.9.1 1.8.0 1.7.1 1.6.0 1.5.0 1.4.1 1.3.0 1.2.0 1.1.0 1.0.0 0.41.0 0.40.0 0.39.0 0.38.0 0.37.0 0.36.0 0.35.0 0.34.2 0.33.0 0.32.0 0.31.1 0.30.0 0.29.1 0.28.0 0.27.0 0.26.0 0.25.1 0.24.0 0.23.0 0.22.0 0.21.0 0.20.0 0.19.0 0.18.0 0.17.0 0.16.0 0.15.0 0.14.0 0.13.0 0.12.1 0.11.1 Reference documentation and code samples for the Cloud Security Command Center V1 API class Google::Cloud::SecurityCenter::V1::AwsMetadata.

AWS metadata associated with the resource, only applicable if the finding's
cloud provider is Amazon Web Services.

## Inherits

- [Object](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security_center-v1/latest/Google-Cloud-SecurityCenter-V1-Kubernetes-Object)

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #account

    def account() -> ::Google::Cloud::SecurityCenter::V1::AwsMetadata::AwsAccount

**Returns**

- ([::Google::Cloud::SecurityCenter::V1::AwsMetadata::AwsAccount](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security_center-v1/latest/Google-Cloud-SecurityCenter-V1-AwsMetadata-AwsAccount)) --- The AWS account associated with the resource.

### #account=

    def account=(value) -> ::Google::Cloud::SecurityCenter::V1::AwsMetadata::AwsAccount

**Parameter**

- **value** ([::Google::Cloud::SecurityCenter::V1::AwsMetadata::AwsAccount](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security_center-v1/latest/Google-Cloud-SecurityCenter-V1-AwsMetadata-AwsAccount)) --- The AWS account associated with the resource.
**Returns**

- ([::Google::Cloud::SecurityCenter::V1::AwsMetadata::AwsAccount](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security_center-v1/latest/Google-Cloud-SecurityCenter-V1-AwsMetadata-AwsAccount)) --- The AWS account associated with the resource.

### #organization

    def organization() -> ::Google::Cloud::SecurityCenter::V1::AwsMetadata::AwsOrganization

**Returns**

- ([::Google::Cloud::SecurityCenter::V1::AwsMetadata::AwsOrganization](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security_center-v1/latest/Google-Cloud-SecurityCenter-V1-AwsMetadata-AwsOrganization)) --- The AWS organization associated with the resource.

### #organization=

    def organization=(value) -> ::Google::Cloud::SecurityCenter::V1::AwsMetadata::AwsOrganization

**Parameter**

- **value** ([::Google::Cloud::SecurityCenter::V1::AwsMetadata::AwsOrganization](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security_center-v1/latest/Google-Cloud-SecurityCenter-V1-AwsMetadata-AwsOrganization)) --- The AWS organization associated with the resource.
**Returns**

- ([::Google::Cloud::SecurityCenter::V1::AwsMetadata::AwsOrganization](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security_center-v1/latest/Google-Cloud-SecurityCenter-V1-AwsMetadata-AwsOrganization)) --- The AWS organization associated with the resource.

### #organizational_units

    def organizational_units() -> ::Array<::Google::Cloud::SecurityCenter::V1::AwsMetadata::AwsOrganizationalUnit>

**Returns**

- (::Array\<[::Google::Cloud::SecurityCenter::V1::AwsMetadata::AwsOrganizationalUnit](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security_center-v1/latest/Google-Cloud-SecurityCenter-V1-AwsMetadata-AwsOrganizationalUnit)\>) --- A list of AWS organizational units associated with the resource, ordered from lowest level (closest to the account) to highest level.

### #organizational_units=

    def organizational_units=(value) -> ::Array<::Google::Cloud::SecurityCenter::V1::AwsMetadata::AwsOrganizationalUnit>

**Parameter**

- **value** (::Array\<[::Google::Cloud::SecurityCenter::V1::AwsMetadata::AwsOrganizationalUnit](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security_center-v1/latest/Google-Cloud-SecurityCenter-V1-AwsMetadata-AwsOrganizationalUnit)\>) --- A list of AWS organizational units associated with the resource, ordered from lowest level (closest to the account) to highest level.
**Returns**

- (::Array\<[::Google::Cloud::SecurityCenter::V1::AwsMetadata::AwsOrganizationalUnit](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security_center-v1/latest/Google-Cloud-SecurityCenter-V1-AwsMetadata-AwsOrganizationalUnit)\>) --- A list of AWS organizational units associated with the resource, ordered from lowest level (closest to the account) to highest level.