Reference documentation and code samples for the Google Anthos Multi Cloud V1 Client class CreateAwsNodePoolRequest.
Response message for AwsClusters.CreateAwsNodePool method.
Generated from protobuf message google.cloud.gkemulticloud.v1.CreateAwsNodePoolRequest
Namespace
Google \ Cloud \ GkeMultiCloud \ V1
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ parent
string
Required. The AwsCluster resource where this node pool will be created. AwsCluster names are formatted as projects/<project-id>/locations/<region>/awsClusters/<cluster-id>. See Resource Names for more details on Google Cloud resource names.
Required. The specification of the AwsNodePool to create.
↳ aws_node_pool_id
string
Required. A client provided ID the resource. Must be unique within the parent resource. The provided ID will be part of the AwsNodePool resource name formatted as projects/<project-id>/locations/<region>/awsClusters/<cluster-id>/awsNodePools/<node-pool-id>. Valid characters are /[a-z][0-9]-/. Cannot be longer than 63 characters.
↳ validate_only
bool
If set, only validate the request, but do not actually create the node pool.
getParent
Required. The AwsCluster
resource where this node pool will be created.
AwsCluster names are formatted as
projects/<project-id>/locations/<region>/awsClusters/<cluster-id>.
See Resource Names
for more details on Google Cloud resource names.
Returns
Type
Description
string
setParent
Required. The AwsCluster
resource where this node pool will be created.
AwsCluster names are formatted as
projects/<project-id>/locations/<region>/awsClusters/<cluster-id>.
See Resource Names
for more details on Google Cloud resource names.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getAwsNodePool
Required. The specification of the
AwsNodePool to create.
Required. A client provided ID the resource. Must be unique within the
parent resource.
The provided ID will be part of the
AwsNodePool resource name
formatted as
projects/<project-id>/locations/<region>/awsClusters/<cluster-id>/awsNodePools/<node-pool-id>.
Valid characters are /[a-z][0-9]-/. Cannot be longer than 63 characters.
Returns
Type
Description
string
setAwsNodePoolId
Required. A client provided ID the resource. Must be unique within the
parent resource.
The provided ID will be part of the
AwsNodePool resource name
formatted as
projects/<project-id>/locations/<region>/awsClusters/<cluster-id>/awsNodePools/<node-pool-id>.
Valid characters are /[a-z][0-9]-/. Cannot be longer than 63 characters.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getValidateOnly
If set, only validate the request, but do not actually create the node
pool.
Returns
Type
Description
bool
setValidateOnly
If set, only validate the request, but do not actually create the node
pool.
Parameter
Name
Description
var
bool
Returns
Type
Description
$this
static::build
Parameters
Name
Description
parent
string
Required. The AwsCluster
resource where this node pool will be created.
AwsCluster names are formatted as
projects/<project-id>/locations/<region>/awsClusters/<cluster-id>.
See Resource Names
for more details on Google Cloud resource names. Please see
AwsClustersClient::awsClusterName() for help formatting this field.
Required. The specification of the
AwsNodePool to create.
awsNodePoolId
string
Required. A client provided ID the resource. Must be unique within the
parent resource.
The provided ID will be part of the
AwsNodePool resource name
formatted as
projects/<project-id>/locations/<region>/awsClusters/<cluster-id>/awsNodePools/<node-pool-id>.
Valid characters are /[a-z][0-9]-/. Cannot be longer than 63 characters.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Google Anthos Multi Cloud V1 Client - Class CreateAwsNodePoolRequest (1.2.2)\n\nVersion latestkeyboard_arrow_down\n\n- [1.2.2 (latest)](/php/docs/reference/cloud-gke-multi-cloud/latest/V1.CreateAwsNodePoolRequest)\n- [1.2.1](/php/docs/reference/cloud-gke-multi-cloud/1.2.1/V1.CreateAwsNodePoolRequest)\n- [1.1.2](/php/docs/reference/cloud-gke-multi-cloud/1.1.2/V1.CreateAwsNodePoolRequest)\n- [1.0.0](/php/docs/reference/cloud-gke-multi-cloud/1.0.0/V1.CreateAwsNodePoolRequest)\n- [0.6.1](/php/docs/reference/cloud-gke-multi-cloud/0.6.1/V1.CreateAwsNodePoolRequest)\n- [0.5.4](/php/docs/reference/cloud-gke-multi-cloud/0.5.4/V1.CreateAwsNodePoolRequest)\n- [0.4.4](/php/docs/reference/cloud-gke-multi-cloud/0.4.4/V1.CreateAwsNodePoolRequest)\n- [0.3.0](/php/docs/reference/cloud-gke-multi-cloud/0.3.0/V1.CreateAwsNodePoolRequest)\n- [0.2.3](/php/docs/reference/cloud-gke-multi-cloud/0.2.3/V1.CreateAwsNodePoolRequest)\n- [0.1.4](/php/docs/reference/cloud-gke-multi-cloud/0.1.4/V1.CreateAwsNodePoolRequest) \nReference documentation and code samples for the Google Anthos Multi Cloud V1 Client class CreateAwsNodePoolRequest.\n\nResponse message for `AwsClusters.CreateAwsNodePool` method.\n\nGenerated from protobuf message `google.cloud.gkemulticloud.v1.CreateAwsNodePoolRequest`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ GkeMultiCloud \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getParent\n\nRequired. The [AwsCluster](/php/docs/reference/cloud-gke-multi-cloud/latest/V1.AwsCluster)\nresource where this node pool will be created.\n\n`AwsCluster` names are formatted as\n`projects/\u003cproject-id\u003e/locations/\u003cregion\u003e/awsClusters/\u003ccluster-id\u003e`.\nSee [Resource Names](https://cloud.google.com/apis/design/resource_names)\nfor more details on Google Cloud resource names.\n\n### setParent\n\nRequired. The [AwsCluster](/php/docs/reference/cloud-gke-multi-cloud/latest/V1.AwsCluster)\nresource where this node pool will be created.\n\n`AwsCluster` names are formatted as\n`projects/\u003cproject-id\u003e/locations/\u003cregion\u003e/awsClusters/\u003ccluster-id\u003e`.\nSee [Resource Names](https://cloud.google.com/apis/design/resource_names)\nfor more details on Google Cloud resource names.\n\n### getAwsNodePool\n\nRequired. The specification of the\n[AwsNodePool](/php/docs/reference/cloud-gke-multi-cloud/latest/V1.AwsNodePool) to create.\n\n### hasAwsNodePool\n\n### clearAwsNodePool\n\n### setAwsNodePool\n\nRequired. The specification of the\n[AwsNodePool](/php/docs/reference/cloud-gke-multi-cloud/latest/V1.AwsNodePool) to create.\n\n### getAwsNodePoolId\n\nRequired. A client provided ID the resource. Must be unique within the\nparent resource.\n\nThe provided ID will be part of the\n[AwsNodePool](/php/docs/reference/cloud-gke-multi-cloud/latest/V1.AwsNodePool) resource name\nformatted as\n`projects/\u003cproject-id\u003e/locations/\u003cregion\u003e/awsClusters/\u003ccluster-id\u003e/awsNodePools/\u003cnode-pool-id\u003e`.\nValid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters.\n\n### setAwsNodePoolId\n\nRequired. A client provided ID the resource. Must be unique within the\nparent resource.\n\nThe provided ID will be part of the\n[AwsNodePool](/php/docs/reference/cloud-gke-multi-cloud/latest/V1.AwsNodePool) resource name\nformatted as\n`projects/\u003cproject-id\u003e/locations/\u003cregion\u003e/awsClusters/\u003ccluster-id\u003e/awsNodePools/\u003cnode-pool-id\u003e`.\nValid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters.\n\n### getValidateOnly\n\nIf set, only validate the request, but do not actually create the node\npool.\n\n### setValidateOnly\n\nIf set, only validate the request, but do not actually create the node\npool.\n\n### static::build"]]