Google Cloud Security Command Center V2 Client - Class AwsMetadata (1.31.0)

Reference documentation and code samples for the Google Cloud Security Command Center V2 Client class AwsMetadata.

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

Generated from protobuf message google.cloud.securitycenter.v2.AwsMetadata

Namespace

Google \ Cloud \ SecurityCenter \ V2

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ organization Google\Cloud\SecurityCenter\V2\AwsMetadata\AwsOrganization

The AWS organization associated with the resource.

↳ organizational_units array<Google\Cloud\SecurityCenter\V2\AwsMetadata\AwsOrganizationalUnit>

A list of AWS organizational units associated with the resource, ordered from lowest level (closest to the account) to highest level.

↳ account Google\Cloud\SecurityCenter\V2\AwsMetadata\AwsAccount

The AWS account associated with the resource.

getOrganization

The AWS organization associated with the resource.

Returns
Type Description
Google\Cloud\SecurityCenter\V2\AwsMetadata\AwsOrganization|null

hasOrganization

clearOrganization

setOrganization

The AWS organization associated with the resource.

Parameter
Name Description
var Google\Cloud\SecurityCenter\V2\AwsMetadata\AwsOrganization
Returns
Type Description
$this

getOrganizationalUnits

A list of AWS organizational units associated with the resource, ordered from lowest level (closest to the account) to highest level.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setOrganizationalUnits

A list of AWS organizational units associated with the resource, ordered from lowest level (closest to the account) to highest level.

Parameter
Name Description
var array<Google\Cloud\SecurityCenter\V2\AwsMetadata\AwsOrganizationalUnit>
Returns
Type Description
$this

getAccount

The AWS account associated with the resource.

Returns
Type Description
Google\Cloud\SecurityCenter\V2\AwsMetadata\AwsAccount|null

hasAccount

clearAccount

setAccount

The AWS account associated with the resource.

Parameter
Name Description
var Google\Cloud\SecurityCenter\V2\AwsMetadata\AwsAccount
Returns
Type Description
$this