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

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 AwsMetadata\AwsOrganization

The AWS organization associated with the resource.

↳ organizational_units array<AwsMetadata\AwsOrganizationalUnit>

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

↳ account AwsMetadata\AwsAccount

The AWS account associated with the resource.

getOrganization

The AWS organization associated with the resource.

Returns
Type Description
AwsMetadata\AwsOrganization|null

hasOrganization

clearOrganization

setOrganization

The AWS organization associated with the resource.

Parameter
Name Description
var 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<AwsMetadata\AwsOrganizationalUnit>
Returns
Type Description
$this

getAccount

The AWS account associated with the resource.

Returns
Type Description
AwsMetadata\AwsAccount|null

hasAccount

clearAccount

setAccount

The AWS account associated with the resource.

Parameter
Name Description
var AwsMetadata\AwsAccount
Returns
Type Description
$this