Google Anthos Multi Cloud V1 Client - Class AwsControlPlane (0.4.4)

Reference documentation and code samples for the Google Anthos Multi Cloud V1 Client class AwsControlPlane.

ControlPlane defines common parameters between control plane nodes.

Generated from protobuf message google.cloud.gkemulticloud.v1.AwsControlPlane

Namespace

Google \ Cloud \ GkeMultiCloud \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ version string

Required. The Kubernetes version to run on control plane replicas (e.g. 1.19.10-gke.1000). You can list all supported versions on a given Google Cloud region by calling GetAwsServerConfig.

↳ instance_type string

Optional. The AWS instance type. When unspecified, it uses a default based on the cluster's version.

↳ ssh_config Google\Cloud\GkeMultiCloud\V1\AwsSshConfig

Optional. SSH configuration for how to access the underlying control plane machines.

↳ subnet_ids array

Required. The list of subnets where control plane replicas will run. A replica will be provisioned on each subnet and up to three values can be provided. Each subnet must be in a different AWS Availability Zone (AZ).

↳ security_group_ids array

Optional. The IDs of additional security groups to add to control plane replicas. The Anthos Multi-Cloud API will automatically create and manage security groups with the minimum rules needed for a functioning cluster.

↳ iam_instance_profile string

Required. The name or ARN of the AWS IAM instance profile to assign to each control plane replica.

↳ root_volume Google\Cloud\GkeMultiCloud\V1\AwsVolumeTemplate

Optional. Configuration related to the root volume provisioned for each control plane replica. Volumes will be provisioned in the availability zone associated with the corresponding subnet. When unspecified, it defaults to 32 GiB with the GP2 volume type.

↳ main_volume Google\Cloud\GkeMultiCloud\V1\AwsVolumeTemplate

Optional. Configuration related to the main volume provisioned for each control plane replica. The main volume is in charge of storing all of the cluster's etcd state. Volumes will be provisioned in the availability zone associated with the corresponding subnet. When unspecified, it defaults to 8 GiB with the GP2 volume type.

↳ database_encryption Google\Cloud\GkeMultiCloud\V1\AwsDatabaseEncryption

Required. The ARN of the AWS KMS key used to encrypt cluster secrets.

↳ tags array|Google\Protobuf\Internal\MapField

Optional. A set of AWS resource tags to propagate to all underlying managed AWS resources. Specify at most 50 pairs containing alphanumerics, spaces, and symbols (.+-=_:@/). Keys can be up to 127 Unicode characters. Values can be up to 255 Unicode characters.

↳ aws_services_authentication Google\Cloud\GkeMultiCloud\V1\AwsServicesAuthentication

Required. Authentication configuration for management of AWS resources.

↳ proxy_config Google\Cloud\GkeMultiCloud\V1\AwsProxyConfig

Optional. Proxy configuration for outbound HTTP(S) traffic.

↳ config_encryption Google\Cloud\GkeMultiCloud\V1\AwsConfigEncryption

Required. Config encryption for user data.

↳ instance_placement Google\Cloud\GkeMultiCloud\V1\AwsInstancePlacement

Optional. The placement to use on control plane instances. When unspecified, the VPC's default tenancy will be used.

getVersion

Required. The Kubernetes version to run on control plane replicas (e.g. 1.19.10-gke.1000).

You can list all supported versions on a given Google Cloud region by calling GetAwsServerConfig.

Returns
TypeDescription
string

setVersion

Required. The Kubernetes version to run on control plane replicas (e.g. 1.19.10-gke.1000).

You can list all supported versions on a given Google Cloud region by calling GetAwsServerConfig.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getInstanceType

Optional. The AWS instance type.

When unspecified, it uses a default based on the cluster's version.

Returns
TypeDescription
string

setInstanceType

Optional. The AWS instance type.

When unspecified, it uses a default based on the cluster's version.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getSshConfig

Optional. SSH configuration for how to access the underlying control plane machines.

Returns
TypeDescription
Google\Cloud\GkeMultiCloud\V1\AwsSshConfig|null

hasSshConfig

clearSshConfig

setSshConfig

Optional. SSH configuration for how to access the underlying control plane machines.

Parameter
NameDescription
var Google\Cloud\GkeMultiCloud\V1\AwsSshConfig
Returns
TypeDescription
$this

getSubnetIds

Required. The list of subnets where control plane replicas will run.

A replica will be provisioned on each subnet and up to three values can be provided. Each subnet must be in a different AWS Availability Zone (AZ).

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setSubnetIds

Required. The list of subnets where control plane replicas will run.

A replica will be provisioned on each subnet and up to three values can be provided. Each subnet must be in a different AWS Availability Zone (AZ).

Parameter
NameDescription
var string[]
Returns
TypeDescription
$this

getSecurityGroupIds

Optional. The IDs of additional security groups to add to control plane replicas. The Anthos Multi-Cloud API will automatically create and manage security groups with the minimum rules needed for a functioning cluster.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setSecurityGroupIds

Optional. The IDs of additional security groups to add to control plane replicas. The Anthos Multi-Cloud API will automatically create and manage security groups with the minimum rules needed for a functioning cluster.

Parameter
NameDescription
var string[]
Returns
TypeDescription
$this

getIamInstanceProfile

Required. The name or ARN of the AWS IAM instance profile to assign to each control plane replica.

Returns
TypeDescription
string

setIamInstanceProfile

Required. The name or ARN of the AWS IAM instance profile to assign to each control plane replica.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getRootVolume

Optional. Configuration related to the root volume provisioned for each control plane replica.

Volumes will be provisioned in the availability zone associated with the corresponding subnet. When unspecified, it defaults to 32 GiB with the GP2 volume type.

Returns
TypeDescription
Google\Cloud\GkeMultiCloud\V1\AwsVolumeTemplate|null

hasRootVolume

clearRootVolume

setRootVolume

Optional. Configuration related to the root volume provisioned for each control plane replica.

Volumes will be provisioned in the availability zone associated with the corresponding subnet. When unspecified, it defaults to 32 GiB with the GP2 volume type.

Parameter
NameDescription
var Google\Cloud\GkeMultiCloud\V1\AwsVolumeTemplate
Returns
TypeDescription
$this

getMainVolume

Optional. Configuration related to the main volume provisioned for each control plane replica.

The main volume is in charge of storing all of the cluster's etcd state. Volumes will be provisioned in the availability zone associated with the corresponding subnet. When unspecified, it defaults to 8 GiB with the GP2 volume type.

Returns
TypeDescription
Google\Cloud\GkeMultiCloud\V1\AwsVolumeTemplate|null

hasMainVolume

clearMainVolume

setMainVolume

Optional. Configuration related to the main volume provisioned for each control plane replica.

The main volume is in charge of storing all of the cluster's etcd state. Volumes will be provisioned in the availability zone associated with the corresponding subnet. When unspecified, it defaults to 8 GiB with the GP2 volume type.

Parameter
NameDescription
var Google\Cloud\GkeMultiCloud\V1\AwsVolumeTemplate
Returns
TypeDescription
$this

getDatabaseEncryption

Required. The ARN of the AWS KMS key used to encrypt cluster secrets.

Returns
TypeDescription
Google\Cloud\GkeMultiCloud\V1\AwsDatabaseEncryption|null

hasDatabaseEncryption

clearDatabaseEncryption

setDatabaseEncryption

Required. The ARN of the AWS KMS key used to encrypt cluster secrets.

Parameter
NameDescription
var Google\Cloud\GkeMultiCloud\V1\AwsDatabaseEncryption
Returns
TypeDescription
$this

getTags

Optional. A set of AWS resource tags to propagate to all underlying managed AWS resources.

Specify at most 50 pairs containing alphanumerics, spaces, and symbols (.+-=_:@/). Keys can be up to 127 Unicode characters. Values can be up to 255 Unicode characters.

Returns
TypeDescription
Google\Protobuf\Internal\MapField

setTags

Optional. A set of AWS resource tags to propagate to all underlying managed AWS resources.

Specify at most 50 pairs containing alphanumerics, spaces, and symbols (.+-=_:@/). Keys can be up to 127 Unicode characters. Values can be up to 255 Unicode characters.

Parameter
NameDescription
var array|Google\Protobuf\Internal\MapField
Returns
TypeDescription
$this

getAwsServicesAuthentication

Required. Authentication configuration for management of AWS resources.

Returns
TypeDescription
Google\Cloud\GkeMultiCloud\V1\AwsServicesAuthentication|null

hasAwsServicesAuthentication

clearAwsServicesAuthentication

setAwsServicesAuthentication

Required. Authentication configuration for management of AWS resources.

Parameter
NameDescription
var Google\Cloud\GkeMultiCloud\V1\AwsServicesAuthentication
Returns
TypeDescription
$this

getProxyConfig

Optional. Proxy configuration for outbound HTTP(S) traffic.

Returns
TypeDescription
Google\Cloud\GkeMultiCloud\V1\AwsProxyConfig|null

hasProxyConfig

clearProxyConfig

setProxyConfig

Optional. Proxy configuration for outbound HTTP(S) traffic.

Parameter
NameDescription
var Google\Cloud\GkeMultiCloud\V1\AwsProxyConfig
Returns
TypeDescription
$this

getConfigEncryption

Required. Config encryption for user data.

Returns
TypeDescription
Google\Cloud\GkeMultiCloud\V1\AwsConfigEncryption|null

hasConfigEncryption

clearConfigEncryption

setConfigEncryption

Required. Config encryption for user data.

Parameter
NameDescription
var Google\Cloud\GkeMultiCloud\V1\AwsConfigEncryption
Returns
TypeDescription
$this

getInstancePlacement

Optional. The placement to use on control plane instances.

When unspecified, the VPC's default tenancy will be used.

Returns
TypeDescription
Google\Cloud\GkeMultiCloud\V1\AwsInstancePlacement|null

hasInstancePlacement

clearInstancePlacement

setInstancePlacement

Optional. The placement to use on control plane instances.

When unspecified, the VPC's default tenancy will be used.

Parameter
NameDescription
var Google\Cloud\GkeMultiCloud\V1\AwsInstancePlacement
Returns
TypeDescription
$this