Class: AWS.PCS
- Inherits:
-
AWS.Service
- Object
- AWS.Service
- AWS.PCS
- Identifier:
- pcs
- API Version:
- 2023-02-10
- Defined in:
- (unknown)
Overview
Constructs a service interface object. Each API operation is exposed as a function on service.
Service Description
Amazon Web Services Parallel Computing Service (Amazon Web Services PCS) is a managed service that makes it easier for you to run and scale your high performance computing (HPC) workloads, and build scientific and engineering models on Amazon Web Services using Slurm. For more information, see the Amazon Web Services Parallel Computing Service User Guide.
This reference describes the actions and data types of the service management API. You can use the Amazon Web Services SDKs to call the API actions in software, or use the Command Line Interface (CLI) to call the API actions manually. These API actions manage the service through an Amazon Web Services account.
The API actions operate on Amazon Web Services PCS resources. A resource is an entity in Amazon Web Services that you can work with. Amazon Web Services services create resources when you use the features of the service. Examples of Amazon Web Services PCS resources include clusters, compute node groups, and queues. For more information about resources in Amazon Web Services, see Resource in the Resource Explorer User Guide.
An Amazon Web Services PCS compute node is an Amazon EC2 instance. You don't launch compute nodes directly. Amazon Web Services PCS uses configuration information that you provide to launch compute nodes in your Amazon Web Services account. You receive billing charges for your running compute nodes. Amazon Web Services PCS automatically terminates your compute nodes when you delete the Amazon Web Services PCS resources related to those compute nodes.
Sending a Request Using PCS
var pcs = new AWS.PCS();
pcs.createCluster(params, function (err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Locking the API Version
In order to ensure that the PCS object uses this specific API, you can
construct the object by passing the apiVersion
option to the constructor:
var pcs = new AWS.PCS({apiVersion: '2023-02-10'});
You can also set the API version globally in AWS.config.apiVersions
using
the pcs service identifier:
AWS.config.apiVersions = {
pcs: '2023-02-10',
// other service API versions
};
var pcs = new AWS.PCS();
Version:
-
2023-02-10
Constructor Summary collapse
-
new AWS.PCS(options = {}) ⇒ Object
constructor
Constructs a service object.
Property Summary collapse
-
endpoint ⇒ AWS.Endpoint
readwrite
An Endpoint object representing the endpoint URL for service requests.
Properties inherited from AWS.Service
Method Summary collapse
-
createCluster(params = {}, callback) ⇒ AWS.Request
Creates a cluster in your account.
-
createComputeNodeGroup(params = {}, callback) ⇒ AWS.Request
Creates a managed set of compute nodes.
-
createQueue(params = {}, callback) ⇒ AWS.Request
Creates a job queue.
-
deleteCluster(params = {}, callback) ⇒ AWS.Request
Deletes a cluster and all its linked resources.
-
deleteComputeNodeGroup(params = {}, callback) ⇒ AWS.Request
Deletes a compute node group.
-
deleteQueue(params = {}, callback) ⇒ AWS.Request
Deletes a job queue.
-
getCluster(params = {}, callback) ⇒ AWS.Request
Returns detailed information about a running cluster in your account.
-
getComputeNodeGroup(params = {}, callback) ⇒ AWS.Request
Returns detailed information about a compute node group.
-
getQueue(params = {}, callback) ⇒ AWS.Request
Returns detailed information about a queue.
-
listClusters(params = {}, callback) ⇒ AWS.Request
Returns a list of running clusters in your account.
.
-
listComputeNodeGroups(params = {}, callback) ⇒ AWS.Request
Returns a list of all compute node groups associated with a cluster.
.
-
listQueues(params = {}, callback) ⇒ AWS.Request
Returns a list of all queues associated with a cluster.
.
-
listTagsForResource(params = {}, callback) ⇒ AWS.Request
Returns a list of all tags on an Amazon Web Services PCS resource.
.
-
registerComputeNodeGroupInstance(params = {}, callback) ⇒ AWS.Request
This API action isn't intended for you to use.
Amazon Web Services PCS uses this API action to register the compute nodes it launches in your account.
. -
tagResource(params = {}, callback) ⇒ AWS.Request
Adds or edits tags on an Amazon Web Services PCS resource.
-
untagResource(params = {}, callback) ⇒ AWS.Request
Deletes tags from an Amazon Web Services PCS resource.
-
updateComputeNodeGroup(params = {}, callback) ⇒ AWS.Request
Updates a compute node group.
-
updateQueue(params = {}, callback) ⇒ AWS.Request
Updates the compute node group configuration of a queue.
-
waitFor(state, params = {}, callback) ⇒ AWS.Request
Waits for a given PCS resource.
Methods inherited from AWS.Service
makeRequest, makeUnauthenticatedRequest, setupRequestListeners, defineService
Constructor Details
new AWS.PCS(options = {}) ⇒ Object
Constructs a service object. This object has one method for each API operation.
Examples:
Constructing a PCS object
var pcs = new AWS.PCS({apiVersion: '2023-02-10'});
Options Hash (options):
-
params
(map)
—
An optional map of parameters to bind to every request sent by this service object. For more information on bound parameters, see "Working with Services" in the Getting Started Guide.
-
endpoint
(String|AWS.Endpoint)
—
The endpoint URI to send requests to. The default endpoint is built from the configured
region
. The endpoint should be a string like'https://{service}.{region}.amazonaws.com'
or an Endpoint object. -
accessKeyId
(String)
—
your AWS access key ID.
-
secretAccessKey
(String)
—
your AWS secret access key.
-
sessionToken
(AWS.Credentials)
—
the optional AWS session token to sign requests with.
-
credentials
(AWS.Credentials)
—
the AWS credentials to sign requests with. You can either specify this object, or specify the accessKeyId and secretAccessKey options directly.
-
credentialProvider
(AWS.CredentialProviderChain)
—
the provider chain used to resolve credentials if no static
credentials
property is set. -
region
(String)
—
the region to send service requests to. See AWS.PCS.region for more information.
-
maxRetries
(Integer)
—
the maximum amount of retries to attempt with a request. See AWS.PCS.maxRetries for more information.
-
maxRedirects
(Integer)
—
the maximum amount of redirects to follow with a request. See AWS.PCS.maxRedirects for more information.
-
sslEnabled
(Boolean)
—
whether to enable SSL for requests.
-
paramValidation
(Boolean|map)
—
whether input parameters should be validated against the operation description before sending the request. Defaults to true. Pass a map to enable any of the following specific validation features:
- min [Boolean] — Validates that a value meets the min
constraint. This is enabled by default when paramValidation is set
to
true
. - max [Boolean] — Validates that a value meets the max constraint.
- pattern [Boolean] — Validates that a string value matches a regular expression.
- enum [Boolean] — Validates that a string value matches one of the allowable enum values.
- min [Boolean] — Validates that a value meets the min
constraint. This is enabled by default when paramValidation is set
to
-
computeChecksums
(Boolean)
—
whether to compute checksums for payload bodies when the service accepts it (currently supported in S3 only)
-
convertResponseTypes
(Boolean)
—
whether types are converted when parsing response data. Currently only supported for JSON based services. Turning this off may improve performance on large response payloads. Defaults to
true
. -
correctClockSkew
(Boolean)
—
whether to apply a clock skew correction and retry requests that fail because of an skewed client clock. Defaults to
false
. -
s3ForcePathStyle
(Boolean)
—
whether to force path style URLs for S3 objects.
-
s3BucketEndpoint
(Boolean)
—
whether the provided endpoint addresses an individual bucket (false if it addresses the root API endpoint). Note that setting this configuration option requires an
endpoint
to be provided explicitly to the service constructor. -
s3DisableBodySigning
(Boolean)
—
whether S3 body signing should be disabled when using signature version
v4
. Body signing can only be disabled when using https. Defaults totrue
. -
s3UsEast1RegionalEndpoint
('legacy'|'regional')
—
when region is set to 'us-east-1', whether to send s3 request to global endpoints or 'us-east-1' regional endpoints. This config is only applicable to S3 client. Defaults to
legacy
-
s3UseArnRegion
(Boolean)
—
whether to override the request region with the region inferred from requested resource's ARN. Only available for S3 buckets Defaults to
true
-
retryDelayOptions
(map)
—
A set of options to configure the retry delay on retryable errors. Currently supported options are:
- base [Integer] — The base number of milliseconds to use in the exponential backoff for operation retries. Defaults to 100 ms for all services except DynamoDB, where it defaults to 50ms.
- customBackoff [function] — A custom function that accepts a
retry count and error and returns the amount of time to delay in
milliseconds. If the result is a non-zero negative value, no further
retry attempts will be made. The
base
option will be ignored if this option is supplied. The function is only called for retryable errors.
-
httpOptions
(map)
—
A set of options to pass to the low-level HTTP request. Currently supported options are:
- proxy [String] — the URL to proxy requests through
- agent [http.Agent, https.Agent] — the Agent object to perform
HTTP requests with. Used for connection pooling. Defaults to the global
agent (
http.globalAgent
) for non-SSL connections. Note that for SSL connections, a special Agent object is used in order to enable peer certificate verification. This feature is only available in the Node.js environment. - connectTimeout [Integer] — Sets the socket to timeout after
failing to establish a connection with the server after
connectTimeout
milliseconds. This timeout has no effect once a socket connection has been established. - timeout [Integer] — Sets the socket to timeout after timeout milliseconds of inactivity on the socket. Defaults to two minutes (120000).
- xhrAsync [Boolean] — Whether the SDK will send asynchronous HTTP requests. Used in the browser environment only. Set to false to send requests synchronously. Defaults to true (async on).
- xhrWithCredentials [Boolean] — Sets the "withCredentials" property of an XMLHttpRequest object. Used in the browser environment only. Defaults to false.
-
apiVersion
(String, Date)
—
a String in YYYY-MM-DD format (or a date) that represents the latest possible API version that can be used in all services (unless overridden by
apiVersions
). Specify 'latest' to use the latest possible version. -
apiVersions
(map<String, String|Date>)
—
a map of service identifiers (the lowercase service class name) with the API version to use when instantiating a service. Specify 'latest' for each individual that can use the latest available version.
-
logger
(#write, #log)
—
an object that responds to .write() (like a stream) or .log() (like the console object) in order to log information about requests
-
systemClockOffset
(Number)
—
an offset value in milliseconds to apply to all signing times. Use this to compensate for clock skew when your system may be out of sync with the service time. Note that this configuration option can only be applied to the global
AWS.config
object and cannot be overridden in service-specific configuration. Defaults to 0 milliseconds. -
signatureVersion
(String)
—
the signature version to sign requests with (overriding the API configuration). Possible values are: 'v2', 'v3', 'v4'.
-
signatureCache
(Boolean)
—
whether the signature to sign requests with (overriding the API configuration) is cached. Only applies to the signature version 'v4'. Defaults to
true
. -
dynamoDbCrc32
(Boolean)
—
whether to validate the CRC32 checksum of HTTP response bodies returned by DynamoDB. Default:
true
. -
useAccelerateEndpoint
(Boolean)
—
Whether to use the S3 Transfer Acceleration endpoint with the S3 service. Default:
false
. -
clientSideMonitoring
(Boolean)
—
whether to collect and publish this client's performance metrics of all its API requests.
-
endpointDiscoveryEnabled
(Boolean|undefined)
—
whether to call operations with endpoints given by service dynamically. Setting this
-
endpointCacheSize
(Number)
—
the size of the global cache storing endpoints from endpoint discovery operations. Once endpoint cache is created, updating this setting cannot change existing cache size. Defaults to 1000
-
hostPrefixEnabled
(Boolean)
—
whether to marshal request parameters to the prefix of hostname. Defaults to
true
. -
stsRegionalEndpoints
('legacy'|'regional')
—
whether to send sts request to global endpoints or regional endpoints. Defaults to 'legacy'.
-
useFipsEndpoint
(Boolean)
—
Enables FIPS compatible endpoints. Defaults to
false
. -
useDualstackEndpoint
(Boolean)
—
Enables IPv6 dualstack endpoint. Defaults to
false
.
Property Details
Method Details
createCluster(params = {}, callback) ⇒ AWS.Request
Creates a cluster in your account. Amazon Web Services PCS creates the cluster controller in a service-owned account. The cluster controller communicates with the cluster resources in your account. The subnets and security groups for the cluster must already exist before you use this API action.
Creating
state until it is ready to use. There can only be 1 cluster in a Creating
state per Amazon Web Services Region per Amazon Web Services account. CreateCluster
fails with a ServiceQuotaExceededException
if there is already a cluster in a Creating
state. Service Reference:
Examples:
Calling the createCluster operation
var params = {
clusterName: 'STRING_VALUE', /* required */
networking: { /* required */
securityGroupIds: [
'STRING_VALUE',
/* more items */
],
subnetIds: [
'STRING_VALUE',
/* more items */
]
},
scheduler: { /* required */
type: SLURM, /* required */
version: 'STRING_VALUE' /* required */
},
size: SMALL | MEDIUM | LARGE, /* required */
clientToken: 'STRING_VALUE',
slurmConfiguration: {
scaleDownIdleTimeInSeconds: 'NUMBER_VALUE',
slurmCustomSettings: [
{
parameterName: 'STRING_VALUE', /* required */
parameterValue: 'STRING_VALUE' /* required */
},
/* more items */
]
},
tags: {
'<TagKey>': 'STRING_VALUE',
/* '<TagKey>': ... */
}
};
pcs.createCluster(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
clusterName
— (String
)A name to identify the cluster. Example:
MyCluster
scheduler
— (map
)The cluster management and job scheduling software associated with the cluster.
type
— required — (String
)The software Amazon Web Services PCS uses to manage cluster scaling and job scheduling.
Possible values include:"SLURM"
version
— required — (String
)The version of the specified scheduling software that Amazon Web Services PCS uses to manage cluster scaling and job scheduling.
size
— (String
)A value that determines the maximum number of compute nodes in the cluster and the maximum number of jobs (active and queued).
-
SMALL
: 32 compute nodes and 256 jobs -
MEDIUM
: 512 compute nodes and 8192 jobs -
LARGE
: 2048 compute nodes and 16,384 jobs
"SMALL"
"MEDIUM"
"LARGE"
-
networking
— (map
)The networking configuration used to set up the cluster's control plane.
subnetIds
— (Array<String>
)The list of subnet IDs where Amazon Web Services PCS creates an Elastic Network Interface (ENI) to enable communication between managed controllers and Amazon Web Services PCS resources. Subnet IDs have the form
subnet-0123456789abcdef0
.Subnets can't be in Outposts, Wavelength or an Amazon Web Services Local Zone.
Note: Amazon Web Services PCS currently supports only 1 subnet in this list.securityGroupIds
— (Array<String>
)A list of security group IDs associated with the Elastic Network Interface (ENI) created in subnets.
slurmConfiguration
— (map
)Additional options related to the Slurm scheduler.
scaleDownIdleTimeInSeconds
— (Integer
)The time before an idle node is scaled down.
slurmCustomSettings
— (Array<map>
)Additional Slurm-specific configuration that directly maps to Slurm settings.
parameterName
— required — (String
)Amazon Web Services PCS supports configuration of the following Slurm parameters:
Prolog
,Epilog
, andSelectTypeParameters
.parameterValue
— required — (String
)The values for the configured Slurm settings.
clientToken
— (String
)A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. Idempotency ensures that an API request completes only once. With an idempotent request, if the original request completes successfully, the subsequent retries with the same client token return the result from the original successful request and they have no additional effect. If you don't specify a client token, the CLI and SDK automatically generate 1 for you.
If a token is not provided, the SDK will use a version 4 UUID.tags
— (map<String>
)1 or more tags added to the resource. Each tag consists of a tag key and tag value. The tag value is optional and can be an empty string.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:cluster
— (map
)The cluster resource.
name
— required — (String
)The name that identifies the cluster.
id
— required — (String
)The generated unique ID of the cluster.
arn
— required — (String
)The unique Amazon Resource Name (ARN) of the cluster.
status
— required — (String
)The provisioning status of the cluster.
Note: The provisioning status doesn't indicate the overall health of the cluster.Possible values include:"CREATING"
"ACTIVE"
"UPDATING"
"DELETING"
"CREATE_FAILED"
"DELETE_FAILED"
"UPDATE_FAILED"
createdAt
— required — (Date
)The date and time the resource was created.
modifiedAt
— required — (Date
)The date and time the resource was modified.
scheduler
— required — (map
)The cluster management and job scheduling software associated with the cluster.
type
— required — (String
)The software Amazon Web Services PCS uses to manage cluster scaling and job scheduling.
Possible values include:"SLURM"
version
— required — (String
)The version of the specified scheduling software that Amazon Web Services PCS uses to manage cluster scaling and job scheduling.
size
— required — (String
)The size of the cluster.
-
SMALL
: 32 compute nodes and 256 jobs -
MEDIUM
: 512 compute nodes and 8192 jobs -
LARGE
: 2048 compute nodes and 16,384 jobs
"SMALL"
"MEDIUM"
"LARGE"
-
slurmConfiguration
— (map
)Additional options related to the Slurm scheduler.
scaleDownIdleTimeInSeconds
— (Integer
)The time before an idle node is scaled down.
slurmCustomSettings
— (Array<map>
)Additional Slurm-specific configuration that directly maps to Slurm settings.
parameterName
— required — (String
)Amazon Web Services PCS supports configuration of the following Slurm parameters:
Prolog
,Epilog
, andSelectTypeParameters
.parameterValue
— required — (String
)The values for the configured Slurm settings.
authKey
— (map
)The shared Slurm key for authentication, also known as the cluster secret.
secretArn
— required — (String
)The Amazon Resource Name (ARN) of the the shared Slurm key.
secretVersion
— required — (String
)The version of the shared Slurm key.
networking
— required — (map
)The networking configuration for the cluster's control plane.
subnetIds
— (Array<String>
)The ID of the subnet where Amazon Web Services PCS creates an Elastic Network Interface (ENI) to enable communication between managed controllers and Amazon Web Services PCS resources. The subnet must have an available IP address, cannot reside in AWS Outposts, AWS Wavelength, or an AWS Local Zone.
Example:
subnet-abcd1234
securityGroupIds
— (Array<String>
)The list of security group IDs associated with the Elastic Network Interface (ENI) created in subnets.
The following rules are required:
-
Inbound rule 1
-
Protocol: All
-
Ports: All
-
Source: Self
-
-
Outbound rule 1
-
Protocol: All
-
Ports: All
-
Destination: 0.0.0.0/0 (IPv4)
-
-
Outbound rule 2
-
Protocol: All
-
Ports: All
-
Destination: Self
-
-
endpoints
— (Array<map>
)The list of endpoints available for interaction with the scheduler.
type
— required — (String
)Indicates the type of endpoint running at the specific IP address.
Possible values include:"SLURMCTLD"
"SLURMDBD"
privateIpAddress
— required — (String
)The endpoint's private IP address.
Example:
2.2.2.2
publicIpAddress
— (String
)The endpoint's public IP address.
Example:
1.1.1.1
port
— required — (String
)The endpoint's connection port number.
Example:
1234
errorInfo
— (Array<map>
)The list of errors that occurred during cluster provisioning.
code
— (String
)The short-form error code.
message
— (String
)The detailed error information.
-
(AWS.Response)
—
Returns:
createComputeNodeGroup(params = {}, callback) ⇒ AWS.Request
Creates a managed set of compute nodes. You associate a compute node group with a cluster through 1 or more Amazon Web Services PCS queues or as part of the login fleet. A compute node group includes the definition of the compute properties and lifecycle management. Amazon Web Services PCS uses the information you provide to this API action to launch compute nodes in your account. You can only specify subnets in the same Amazon VPC as your cluster. You receive billing charges for the compute nodes that Amazon Web Services PCS launches in your account. You must already have a launch template before you call this API. For more information, see Launch an instance from a launch template in the Amazon Elastic Compute Cloud User Guide for Linux Instances.
Service Reference:
Examples:
Calling the createComputeNodeGroup operation
var params = {
clusterIdentifier: 'STRING_VALUE', /* required */
computeNodeGroupName: 'STRING_VALUE', /* required */
customLaunchTemplate: { /* required */
id: 'STRING_VALUE', /* required */
version: 'STRING_VALUE' /* required */
},
iamInstanceProfileArn: 'STRING_VALUE', /* required */
instanceConfigs: [ /* required */
{
instanceType: 'STRING_VALUE'
},
/* more items */
],
scalingConfiguration: { /* required */
maxInstanceCount: 'NUMBER_VALUE', /* required */
minInstanceCount: 'NUMBER_VALUE' /* required */
},
subnetIds: [ /* required */
'STRING_VALUE',
/* more items */
],
amiId: 'STRING_VALUE',
clientToken: 'STRING_VALUE',
purchaseOption: ONDEMAND | SPOT,
slurmConfiguration: {
slurmCustomSettings: [
{
parameterName: 'STRING_VALUE', /* required */
parameterValue: 'STRING_VALUE' /* required */
},
/* more items */
]
},
spotOptions: {
allocationStrategy: lowest-price | capacity-optimized | price-capacity-optimized
},
tags: {
'<TagKey>': 'STRING_VALUE',
/* '<TagKey>': ... */
}
};
pcs.createComputeNodeGroup(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
clusterIdentifier
— (String
)The name or ID of the cluster to create a compute node group in.
computeNodeGroupName
— (String
)A name to identify the cluster. Example:
MyCluster
amiId
— (String
)The ID of the Amazon Machine Image (AMI) that Amazon Web Services PCS uses to launch compute nodes (Amazon EC2 instances). If you don't provide this value, Amazon Web Services PCS uses the AMI ID specified in the custom launch template.
subnetIds
— (Array<String>
)The list of subnet IDs where the compute node group launches instances. Subnets must be in the same VPC as the cluster.
purchaseOption
— (String
)Specifies how EC2 instances are purchased on your behalf. Amazon Web Services PCS supports On-Demand and Spot instances. For more information, see Instance purchasing options in the Amazon Elastic Compute Cloud User Guide. If you don't provide this option, it defaults to On-Demand.
Possible values include:"ONDEMAND"
"SPOT"
customLaunchTemplate
— (map
)An Amazon EC2 launch template Amazon Web Services PCS uses to launch compute nodes.
id
— required — (String
)The ID of the EC2 launch template to use to provision instances.
Example:
lt-xxxx
version
— required — (String
)The version of the EC2 launch template to use to provision instances.
iamInstanceProfileArn
— (String
)The Amazon Resource Name (ARN) of the IAM instance profile used to pass an IAM role when launching EC2 instances. The role contained in your instance profile must have
pcs:RegisterComputeNodeGroupInstance
permissions attached in order to provision instances correctly. The resource identifier of the ARN must start withAWSPCS
. For example,arn:aws:iam:123456789012:instance-profile/AWSPCSMyComputeNodeInstanceProfile
.scalingConfiguration
— (map
)Specifies the boundaries of the compute node group auto scaling.
minInstanceCount
— required — (Integer
)The lower bound of the number of instances allowed in the compute fleet.
maxInstanceCount
— required — (Integer
)The upper bound of the number of instances allowed in the compute fleet.
instanceConfigs
— (Array<map>
)A list of EC2 instance configurations that Amazon Web Services PCS can provision in the compute node group.
instanceType
— (String
)The EC2 instance type that Amazon Web Services PCS can provision in the compute node group.
Example:
t2.xlarge
spotOptions
— (map
)Additional configuration when you specify
SPOT
as thepurchaseOption
for theCreateComputeNodeGroup
API action.allocationStrategy
— (String
)The Amazon EC2 allocation strategy Amazon Web Services PCS uses to provision EC2 instances. Amazon Web Services PCS supports lowest price, capacity optimized, and price capacity optimized. For more information, see Use allocation strategies to determine how EC2 Fleet or Spot Fleet fulfills Spot and On-Demand capacity in the Amazon Elastic Compute Cloud User Guide. If you don't provide this option, it defaults to price capacity optimized.
Possible values include:"lowest-price"
"capacity-optimized"
"price-capacity-optimized"
slurmConfiguration
— (map
)Additional options related to the Slurm scheduler.
slurmCustomSettings
— (Array<map>
)Additional Slurm-specific configuration that directly maps to Slurm settings.
parameterName
— required — (String
)Amazon Web Services PCS supports configuration of the following Slurm parameters:
Prolog
,Epilog
, andSelectTypeParameters
.parameterValue
— required — (String
)The values for the configured Slurm settings.
clientToken
— (String
)A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. Idempotency ensures that an API request completes only once. With an idempotent request, if the original request completes successfully, the subsequent retries with the same client token return the result from the original successful request and they have no additional effect. If you don't specify a client token, the CLI and SDK automatically generate 1 for you.
If a token is not provided, the SDK will use a version 4 UUID.tags
— (map<String>
)1 or more tags added to the resource. Each tag consists of a tag key and tag value. The tag value is optional and can be an empty string.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:computeNodeGroup
— (map
)A compute node group associated with a cluster.
name
— required — (String
)The name that identifies the compute node group.
id
— required — (String
)The generated unique ID of the compute node group.
arn
— required — (String
)The unique Amazon Resource Name (ARN) of the compute node group.
clusterId
— required — (String
)The ID of the cluster of the compute node group.
createdAt
— required — (Date
)The date and time the resource was created.
modifiedAt
— required — (Date
)The date and time the resource was modified.
status
— required — (String
)The provisioning status of the compute node group.
Note: The provisioning status doesn't indicate the overall health of the compute node group.Possible values include:"CREATING"
"ACTIVE"
"UPDATING"
"DELETING"
"CREATE_FAILED"
"DELETE_FAILED"
"UPDATE_FAILED"
"DELETED"
amiId
— (String
)The ID of the Amazon Machine Image (AMI) that Amazon Web Services PCS uses to launch instances. If not provided, Amazon Web Services PCS uses the AMI ID specified in the custom launch template.
subnetIds
— required — (Array<String>
)The list of subnet IDs where instances are provisioned by the compute node group. The subnets must be in the same VPC as the cluster.
purchaseOption
— (String
)Specifies how EC2 instances are purchased on your behalf. Amazon Web Services PCS supports On-Demand and Spot instances. For more information, see Instance purchasing options in the Amazon Elastic Compute Cloud User Guide. If you don't provide this option, it defaults to On-Demand.
Possible values include:"ONDEMAND"
"SPOT"
customLaunchTemplate
— required — (map
)An Amazon EC2 launch template Amazon Web Services PCS uses to launch compute nodes.
id
— required — (String
)The ID of the EC2 launch template to use to provision instances.
Example:
lt-xxxx
version
— required — (String
)The version of the EC2 launch template to use to provision instances.
iamInstanceProfileArn
— required — (String
)The Amazon Resource Name (ARN) of the IAM instance profile used to pass an IAM role when launching EC2 instances. The role contained in your instance profile must have
pcs:RegisterComputeNodeGroupInstance
permissions attached to provision instances correctly.scalingConfiguration
— required — (map
)Specifies the boundaries of the compute node group auto scaling.
minInstanceCount
— required — (Integer
)The lower bound of the number of instances allowed in the compute fleet.
maxInstanceCount
— required — (Integer
)The upper bound of the number of instances allowed in the compute fleet.
instanceConfigs
— required — (Array<map>
)A list of EC2 instance configurations that Amazon Web Services PCS can provision in the compute node group.
instanceType
— (String
)The EC2 instance type that Amazon Web Services PCS can provision in the compute node group.
Example:
t2.xlarge
spotOptions
— (map
)Additional configuration when you specify
SPOT
as thepurchaseOption
for theCreateComputeNodeGroup
API action.allocationStrategy
— (String
)The Amazon EC2 allocation strategy Amazon Web Services PCS uses to provision EC2 instances. Amazon Web Services PCS supports lowest price, capacity optimized, and price capacity optimized. For more information, see Use allocation strategies to determine how EC2 Fleet or Spot Fleet fulfills Spot and On-Demand capacity in the Amazon Elastic Compute Cloud User Guide. If you don't provide this option, it defaults to price capacity optimized.
Possible values include:"lowest-price"
"capacity-optimized"
"price-capacity-optimized"
slurmConfiguration
— (map
)Additional options related to the Slurm scheduler.
slurmCustomSettings
— (Array<map>
)Additional Slurm-specific configuration that directly maps to Slurm settings.
parameterName
— required — (String
)Amazon Web Services PCS supports configuration of the following Slurm parameters:
Prolog
,Epilog
, andSelectTypeParameters
.parameterValue
— required — (String
)The values for the configured Slurm settings.
errorInfo
— (Array<map>
)The list of errors that occurred during compute node group provisioning.
code
— (String
)The short-form error code.
message
— (String
)The detailed error information.
-
(AWS.Response)
—
Returns:
createQueue(params = {}, callback) ⇒ AWS.Request
Creates a job queue. You must associate 1 or more compute node groups with the queue. You can associate 1 compute node group with multiple queues.
Service Reference:
Examples:
Calling the createQueue operation
var params = {
clusterIdentifier: 'STRING_VALUE', /* required */
queueName: 'STRING_VALUE', /* required */
clientToken: 'STRING_VALUE',
computeNodeGroupConfigurations: [
{
computeNodeGroupId: 'STRING_VALUE'
},
/* more items */
],
tags: {
'<TagKey>': 'STRING_VALUE',
/* '<TagKey>': ... */
}
};
pcs.createQueue(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
clusterIdentifier
— (String
)The name or ID of the cluster for which to create a queue.
queueName
— (String
)A name to identify the queue.
computeNodeGroupConfigurations
— (Array<map>
)The list of compute node group configurations to associate with the queue. Queues assign jobs to associated compute node groups.
computeNodeGroupId
— (String
)The compute node group ID for the compute node group configuration.
clientToken
— (String
)A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. Idempotency ensures that an API request completes only once. With an idempotent request, if the original request completes successfully, the subsequent retries with the same client token return the result from the original successful request and they have no additional effect. If you don't specify a client token, the CLI and SDK automatically generate 1 for you.
If a token is not provided, the SDK will use a version 4 UUID.tags
— (map<String>
)1 or more tags added to the resource. Each tag consists of a tag key and tag value. The tag value is optional and can be an empty string.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:queue
— (map
)A queue resource.
name
— required — (String
)The name that identifies the queue.
id
— required — (String
)The generated unique ID of the queue.
arn
— required — (String
)The unique Amazon Resource Name (ARN) of the queue.
clusterId
— required — (String
)The ID of the cluster of the queue.
createdAt
— required — (Date
)The date and time the resource was created.
modifiedAt
— required — (Date
)The date and time the resource was modified.
status
— required — (String
)The provisioning status of the queue.
Note: The provisioning status doesn't indicate the overall health of the queue.Possible values include:"CREATING"
"ACTIVE"
"UPDATING"
"DELETING"
"CREATE_FAILED"
"DELETE_FAILED"
"UPDATE_FAILED"
computeNodeGroupConfigurations
— required — (Array<map>
)The list of compute node group configurations associated with the queue. Queues assign jobs to associated compute node groups.
computeNodeGroupId
— (String
)The compute node group ID for the compute node group configuration.
errorInfo
— (Array<map>
)The list of errors that occurred during queue provisioning.
code
— (String
)The short-form error code.
message
— (String
)The detailed error information.
-
(AWS.Response)
—
Returns:
deleteCluster(params = {}, callback) ⇒ AWS.Request
Deletes a cluster and all its linked resources. You must delete all queues and compute node groups associated with the cluster before you can delete the cluster.
Service Reference:
Examples:
Calling the deleteCluster operation
var params = {
clusterIdentifier: 'STRING_VALUE', /* required */
clientToken: 'STRING_VALUE'
};
pcs.deleteCluster(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
clusterIdentifier
— (String
)The name or ID of the cluster to delete.
clientToken
— (String
)A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. Idempotency ensures that an API request completes only once. With an idempotent request, if the original request completes successfully, the subsequent retries with the same client token return the result from the original successful request and they have no additional effect. If you don't specify a client token, the CLI and SDK automatically generate 1 for you.
If a token is not provided, the SDK will use a version 4 UUID.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs.
-
(AWS.Response)
—
Returns:
deleteComputeNodeGroup(params = {}, callback) ⇒ AWS.Request
Deletes a compute node group. You must delete all queues associated with the compute node group first.
Service Reference:
Examples:
Calling the deleteComputeNodeGroup operation
var params = {
clusterIdentifier: 'STRING_VALUE', /* required */
computeNodeGroupIdentifier: 'STRING_VALUE', /* required */
clientToken: 'STRING_VALUE'
};
pcs.deleteComputeNodeGroup(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
clusterIdentifier
— (String
)The name or ID of the cluster of the compute node group.
computeNodeGroupIdentifier
— (String
)The name or ID of the compute node group to delete.
clientToken
— (String
)A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. Idempotency ensures that an API request completes only once. With an idempotent request, if the original request completes successfully, the subsequent retries with the same client token return the result from the original successful request and they have no additional effect. If you don't specify a client token, the CLI and SDK automatically generate 1 for you.
If a token is not provided, the SDK will use a version 4 UUID.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs.
-
(AWS.Response)
—
Returns:
deleteQueue(params = {}, callback) ⇒ AWS.Request
Deletes a job queue. If the compute node group associated with this queue isn't associated with any other queues, Amazon Web Services PCS terminates all the compute nodes for this queue.
Service Reference:
Examples:
Calling the deleteQueue operation
var params = {
clusterIdentifier: 'STRING_VALUE', /* required */
queueIdentifier: 'STRING_VALUE', /* required */
clientToken: 'STRING_VALUE'
};
pcs.deleteQueue(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
clusterIdentifier
— (String
)The name or ID of the cluster of the queue.
queueIdentifier
— (String
)The name or ID of the queue to delete.
clientToken
— (String
)A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. Idempotency ensures that an API request completes only once. With an idempotent request, if the original request completes successfully, the subsequent retries with the same client token return the result from the original successful request and they have no additional effect. If you don't specify a client token, the CLI and SDK automatically generate 1 for you.
If a token is not provided, the SDK will use a version 4 UUID.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs.
-
(AWS.Response)
—
Returns:
getCluster(params = {}, callback) ⇒ AWS.Request
Returns detailed information about a running cluster in your account. This API action provides networking information, endpoint information for communication with the scheduler, and provisioning status.
Service Reference:
Examples:
Calling the getCluster operation
var params = {
clusterIdentifier: 'STRING_VALUE' /* required */
};
pcs.getCluster(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
clusterIdentifier
— (String
)The name or ID of the cluster of the queue.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:cluster
— (map
)The cluster resource.
name
— required — (String
)The name that identifies the cluster.
id
— required — (String
)The generated unique ID of the cluster.
arn
— required — (String
)The unique Amazon Resource Name (ARN) of the cluster.
status
— required — (String
)The provisioning status of the cluster.
Note: The provisioning status doesn't indicate the overall health of the cluster.Possible values include:"CREATING"
"ACTIVE"
"UPDATING"
"DELETING"
"CREATE_FAILED"
"DELETE_FAILED"
"UPDATE_FAILED"
createdAt
— required — (Date
)The date and time the resource was created.
modifiedAt
— required — (Date
)The date and time the resource was modified.
scheduler
— required — (map
)The cluster management and job scheduling software associated with the cluster.
type
— required — (String
)The software Amazon Web Services PCS uses to manage cluster scaling and job scheduling.
Possible values include:"SLURM"
version
— required — (String
)The version of the specified scheduling software that Amazon Web Services PCS uses to manage cluster scaling and job scheduling.
size
— required — (String
)The size of the cluster.
-
SMALL
: 32 compute nodes and 256 jobs -
MEDIUM
: 512 compute nodes and 8192 jobs -
LARGE
: 2048 compute nodes and 16,384 jobs
"SMALL"
"MEDIUM"
"LARGE"
-
slurmConfiguration
— (map
)Additional options related to the Slurm scheduler.
scaleDownIdleTimeInSeconds
— (Integer
)The time before an idle node is scaled down.
slurmCustomSettings
— (Array<map>
)Additional Slurm-specific configuration that directly maps to Slurm settings.
parameterName
— required — (String
)Amazon Web Services PCS supports configuration of the following Slurm parameters:
Prolog
,Epilog
, andSelectTypeParameters
.parameterValue
— required — (String
)The values for the configured Slurm settings.
authKey
— (map
)The shared Slurm key for authentication, also known as the cluster secret.
secretArn
— required — (String
)The Amazon Resource Name (ARN) of the the shared Slurm key.
secretVersion
— required — (String
)The version of the shared Slurm key.
networking
— required — (map
)The networking configuration for the cluster's control plane.
subnetIds
— (Array<String>
)The ID of the subnet where Amazon Web Services PCS creates an Elastic Network Interface (ENI) to enable communication between managed controllers and Amazon Web Services PCS resources. The subnet must have an available IP address, cannot reside in AWS Outposts, AWS Wavelength, or an AWS Local Zone.
Example:
subnet-abcd1234
securityGroupIds
— (Array<String>
)The list of security group IDs associated with the Elastic Network Interface (ENI) created in subnets.
The following rules are required:
-
Inbound rule 1
-
Protocol: All
-
Ports: All
-
Source: Self
-
-
Outbound rule 1
-
Protocol: All
-
Ports: All
-
Destination: 0.0.0.0/0 (IPv4)
-
-
Outbound rule 2
-
Protocol: All
-
Ports: All
-
Destination: Self
-
-
endpoints
— (Array<map>
)The list of endpoints available for interaction with the scheduler.
type
— required — (String
)Indicates the type of endpoint running at the specific IP address.
Possible values include:"SLURMCTLD"
"SLURMDBD"
privateIpAddress
— required — (String
)The endpoint's private IP address.
Example:
2.2.2.2
publicIpAddress
— (String
)The endpoint's public IP address.
Example:
1.1.1.1
port
— required — (String
)The endpoint's connection port number.
Example:
1234
errorInfo
— (Array<map>
)The list of errors that occurred during cluster provisioning.
code
— (String
)The short-form error code.
message
— (String
)The detailed error information.
-
(AWS.Response)
—
Returns:
getComputeNodeGroup(params = {}, callback) ⇒ AWS.Request
Returns detailed information about a compute node group. This API action provides networking information, EC2 instance type, compute node group status, and scheduler (such as Slurm) configuration.
Service Reference:
Examples:
Calling the getComputeNodeGroup operation
var params = {
clusterIdentifier: 'STRING_VALUE', /* required */
computeNodeGroupIdentifier: 'STRING_VALUE' /* required */
};
pcs.getComputeNodeGroup(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
clusterIdentifier
— (String
)The name or ID of the cluster.
computeNodeGroupIdentifier
— (String
)The name or ID of the compute node group.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:computeNodeGroup
— (map
)A compute node group associated with a cluster.
name
— required — (String
)The name that identifies the compute node group.
id
— required — (String
)The generated unique ID of the compute node group.
arn
— required — (String
)The unique Amazon Resource Name (ARN) of the compute node group.
clusterId
— required — (String
)The ID of the cluster of the compute node group.
createdAt
— required — (Date
)The date and time the resource was created.
modifiedAt
— required — (Date
)The date and time the resource was modified.
status
— required — (String
)The provisioning status of the compute node group.
Note: The provisioning status doesn't indicate the overall health of the compute node group.Possible values include:"CREATING"
"ACTIVE"
"UPDATING"
"DELETING"
"CREATE_FAILED"
"DELETE_FAILED"
"UPDATE_FAILED"
"DELETED"
amiId
— (String
)The ID of the Amazon Machine Image (AMI) that Amazon Web Services PCS uses to launch instances. If not provided, Amazon Web Services PCS uses the AMI ID specified in the custom launch template.
subnetIds
— required — (Array<String>
)The list of subnet IDs where instances are provisioned by the compute node group. The subnets must be in the same VPC as the cluster.
purchaseOption
— (String
)Specifies how EC2 instances are purchased on your behalf. Amazon Web Services PCS supports On-Demand and Spot instances. For more information, see Instance purchasing options in the Amazon Elastic Compute Cloud User Guide. If you don't provide this option, it defaults to On-Demand.
Possible values include:"ONDEMAND"
"SPOT"
customLaunchTemplate
— required — (map
)An Amazon EC2 launch template Amazon Web Services PCS uses to launch compute nodes.
id
— required — (String
)The ID of the EC2 launch template to use to provision instances.
Example:
lt-xxxx
version
— required — (String
)The version of the EC2 launch template to use to provision instances.
iamInstanceProfileArn
— required — (String
)The Amazon Resource Name (ARN) of the IAM instance profile used to pass an IAM role when launching EC2 instances. The role contained in your instance profile must have
pcs:RegisterComputeNodeGroupInstance
permissions attached to provision instances correctly.scalingConfiguration
— required — (map
)Specifies the boundaries of the compute node group auto scaling.
minInstanceCount
— required — (Integer
)The lower bound of the number of instances allowed in the compute fleet.
maxInstanceCount
— required — (Integer
)The upper bound of the number of instances allowed in the compute fleet.
instanceConfigs
— required — (Array<map>
)A list of EC2 instance configurations that Amazon Web Services PCS can provision in the compute node group.
instanceType
— (String
)The EC2 instance type that Amazon Web Services PCS can provision in the compute node group.
Example:
t2.xlarge
spotOptions
— (map
)Additional configuration when you specify
SPOT
as thepurchaseOption
for theCreateComputeNodeGroup
API action.allocationStrategy
— (String
)The Amazon EC2 allocation strategy Amazon Web Services PCS uses to provision EC2 instances. Amazon Web Services PCS supports lowest price, capacity optimized, and price capacity optimized. For more information, see Use allocation strategies to determine how EC2 Fleet or Spot Fleet fulfills Spot and On-Demand capacity in the Amazon Elastic Compute Cloud User Guide. If you don't provide this option, it defaults to price capacity optimized.
Possible values include:"lowest-price"
"capacity-optimized"
"price-capacity-optimized"
slurmConfiguration
— (map
)Additional options related to the Slurm scheduler.
slurmCustomSettings
— (Array<map>
)Additional Slurm-specific configuration that directly maps to Slurm settings.
parameterName
— required — (String
)Amazon Web Services PCS supports configuration of the following Slurm parameters:
Prolog
,Epilog
, andSelectTypeParameters
.parameterValue
— required — (String
)The values for the configured Slurm settings.
errorInfo
— (Array<map>
)The list of errors that occurred during compute node group provisioning.
code
— (String
)The short-form error code.
message
— (String
)The detailed error information.
-
(AWS.Response)
—
Returns:
getQueue(params = {}, callback) ⇒ AWS.Request
Returns detailed information about a queue. The information includes the compute node groups that the queue uses to schedule jobs.
Service Reference:
Examples:
Calling the getQueue operation
var params = {
clusterIdentifier: 'STRING_VALUE', /* required */
queueIdentifier: 'STRING_VALUE' /* required */
};
pcs.getQueue(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
clusterIdentifier
— (String
)The name or ID of the cluster of the queue.
queueIdentifier
— (String
)The name or ID of the queue.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:queue
— (map
)A queue resource.
name
— required — (String
)The name that identifies the queue.
id
— required — (String
)The generated unique ID of the queue.
arn
— required — (String
)The unique Amazon Resource Name (ARN) of the queue.
clusterId
— required — (String
)The ID of the cluster of the queue.
createdAt
— required — (Date
)The date and time the resource was created.
modifiedAt
— required — (Date
)The date and time the resource was modified.
status
— required — (String
)The provisioning status of the queue.
Note: The provisioning status doesn't indicate the overall health of the queue.Possible values include:"CREATING"
"ACTIVE"
"UPDATING"
"DELETING"
"CREATE_FAILED"
"DELETE_FAILED"
"UPDATE_FAILED"
computeNodeGroupConfigurations
— required — (Array<map>
)The list of compute node group configurations associated with the queue. Queues assign jobs to associated compute node groups.
computeNodeGroupId
— (String
)The compute node group ID for the compute node group configuration.
errorInfo
— (Array<map>
)The list of errors that occurred during queue provisioning.
code
— (String
)The short-form error code.
message
— (String
)The detailed error information.
-
(AWS.Response)
—
Returns:
listClusters(params = {}, callback) ⇒ AWS.Request
Returns a list of running clusters in your account.
Service Reference:
Examples:
Calling the listClusters operation
var params = {
maxResults: 'NUMBER_VALUE',
nextToken: 'STRING_VALUE'
};
pcs.listClusters(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
nextToken
— (String
)The value of
nextToken
is a unique pagination token for each page of results returned. IfnextToken
is returned, there are more results available. Make the call again using the returned token to retrieve the next page. Keep all other arguments unchanged. Each pagination token expires after 24 hours. Using an expired pagination token returns anHTTP 400 InvalidToken
error.maxResults
— (Integer
)The maximum number of results that are returned per call. You can use
nextToken
to obtain further pages of results. The default is 10 results, and the maximum allowed page size is 100 results. A value of 0 uses the default.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:clusters
— (Array<map>
)The list of clusters.
name
— required — (String
)The name that identifies the cluster.
id
— required — (String
)The generated unique ID of the cluster.
arn
— required — (String
)The unique Amazon Resource Name (ARN) of the cluster.
createdAt
— required — (Date
)The date and time the resource was created.
modifiedAt
— required — (Date
)The date and time the resource was modified.
status
— required — (String
)The provisioning status of the cluster.
Note: The provisioning status doesn't indicate the overall health of the cluster.Possible values include:"CREATING"
"ACTIVE"
"UPDATING"
"DELETING"
"CREATE_FAILED"
"DELETE_FAILED"
"UPDATE_FAILED"
nextToken
— (String
)The value of
nextToken
is a unique pagination token for each page of results returned. IfnextToken
is returned, there are more results available. Make the call again using the returned token to retrieve the next page. Keep all other arguments unchanged. Each pagination token expires after 24 hours. Using an expired pagination token returns anHTTP 400 InvalidToken
error.
-
(AWS.Response)
—
Returns:
listComputeNodeGroups(params = {}, callback) ⇒ AWS.Request
Returns a list of all compute node groups associated with a cluster.
Service Reference:
Examples:
Calling the listComputeNodeGroups operation
var params = {
clusterIdentifier: 'STRING_VALUE', /* required */
maxResults: 'NUMBER_VALUE',
nextToken: 'STRING_VALUE'
};
pcs.listComputeNodeGroups(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
clusterIdentifier
— (String
)The name or ID of the cluster to list compute node groups for.
nextToken
— (String
)The value of
nextToken
is a unique pagination token for each page of results returned. IfnextToken
is returned, there are more results available. Make the call again using the returned token to retrieve the next page. Keep all other arguments unchanged. Each pagination token expires after 24 hours. Using an expired pagination token returns anHTTP 400 InvalidToken
error.maxResults
— (Integer
)The maximum number of results that are returned per call. You can use
nextToken
to obtain further pages of results. The default is 10 results, and the maximum allowed page size is 100 results. A value of 0 uses the default.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:computeNodeGroups
— (Array<map>
)The list of compute node groups for the cluster.
name
— required — (String
)The name that identifies the compute node group.
id
— required — (String
)The generated unique ID of the compute node group.
arn
— required — (String
)The unique Amazon Resource Name (ARN) of the compute node group.
clusterId
— required — (String
)The ID of the cluster of the compute node group.
createdAt
— required — (Date
)The date and time the resource was created.
modifiedAt
— required — (Date
)The date and time the resource was modified.
status
— required — (String
)The provisioning status of the compute node group.
Note: The provisioning status doesn't indicate the overall health of the compute node group.Possible values include:"CREATING"
"ACTIVE"
"UPDATING"
"DELETING"
"CREATE_FAILED"
"DELETE_FAILED"
"UPDATE_FAILED"
"DELETED"
nextToken
— (String
)The value of
nextToken
is a unique pagination token for each page of results returned. IfnextToken
is returned, there are more results available. Make the call again using the returned token to retrieve the next page. Keep all other arguments unchanged. Each pagination token expires after 24 hours. Using an expired pagination token returns anHTTP 400 InvalidToken
error.
-
(AWS.Response)
—
Returns:
listQueues(params = {}, callback) ⇒ AWS.Request
Returns a list of all queues associated with a cluster.
Service Reference:
Examples:
Calling the listQueues operation
var params = {
clusterIdentifier: 'STRING_VALUE', /* required */
maxResults: 'NUMBER_VALUE',
nextToken: 'STRING_VALUE'
};
pcs.listQueues(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
clusterIdentifier
— (String
)The name or ID of the cluster to list queues for.
nextToken
— (String
)The value of
nextToken
is a unique pagination token for each page of results returned. IfnextToken
is returned, there are more results available. Make the call again using the returned token to retrieve the next page. Keep all other arguments unchanged. Each pagination token expires after 24 hours. Using an expired pagination token returns anHTTP 400 InvalidToken
error.maxResults
— (Integer
)The maximum number of results that are returned per call. You can use
nextToken
to obtain further pages of results. The default is 10 results, and the maximum allowed page size is 100 results. A value of 0 uses the default.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:queues
— (Array<map>
)The list of queues associated with the cluster.
name
— required — (String
)The name that identifies the queue.
id
— required — (String
)The generated unique ID of the queue.
arn
— required — (String
)The unique Amazon Resource Name (ARN) of the queue.
clusterId
— required — (String
)The ID of the cluster of the queue.
createdAt
— required — (Date
)The date and time the resource was created.
modifiedAt
— required — (Date
)The date and time the resource was modified.
status
— required — (String
)The provisioning status of the queue.
Note: The provisioning status doesn't indicate the overall health of the queue.Possible values include:"CREATING"
"ACTIVE"
"UPDATING"
"DELETING"
"CREATE_FAILED"
"DELETE_FAILED"
"UPDATE_FAILED"
nextToken
— (String
)The value of
nextToken
is a unique pagination token for each page of results returned. IfnextToken
is returned, there are more results available. Make the call again using the returned token to retrieve the next page. Keep all other arguments unchanged. Each pagination token expires after 24 hours. Using an expired pagination token returns anHTTP 400 InvalidToken
error.
-
(AWS.Response)
—
Returns:
listTagsForResource(params = {}, callback) ⇒ AWS.Request
Returns a list of all tags on an Amazon Web Services PCS resource.
Service Reference:
Examples:
Calling the listTagsForResource operation
var params = {
resourceArn: 'STRING_VALUE' /* required */
};
pcs.listTagsForResource(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
resourceArn
— (String
)The Amazon Resource Name (ARN) of the resource for which to list tags.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:tags
— (map<String>
)1 or more tags added to the resource. Each tag consists of a tag key and tag value. The tag value is optional and can be an empty string.
-
(AWS.Response)
—
Returns:
registerComputeNodeGroupInstance(params = {}, callback) ⇒ AWS.Request
This API action isn't intended for you to use.
Amazon Web Services PCS uses this API action to register the compute nodes it launches in your account.
Service Reference:
Examples:
Calling the registerComputeNodeGroupInstance operation
var params = {
bootstrapId: 'STRING_VALUE', /* required */
clusterIdentifier: 'STRING_VALUE' /* required */
};
pcs.registerComputeNodeGroupInstance(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
clusterIdentifier
— (String
)The name or ID of the cluster to register the compute node group instance in.
bootstrapId
— (String
)The client-generated token to allow for retries.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:nodeID
— (String
)The scheduler node ID for this instance.
sharedSecret
— (String
)For the Slurm scheduler, this is the shared Munge key the scheduler uses to authenticate compute node group instances.
endpoints
— (Array<map>
)The list of endpoints available for interaction with the scheduler.
type
— required — (String
)Indicates the type of endpoint running at the specific IP address.
Possible values include:"SLURMCTLD"
"SLURMDBD"
privateIpAddress
— required — (String
)The endpoint's private IP address.
Example:
2.2.2.2
publicIpAddress
— (String
)The endpoint's public IP address.
Example:
1.1.1.1
port
— required — (String
)The endpoint's connection port number.
Example:
1234
-
(AWS.Response)
—
Returns:
tagResource(params = {}, callback) ⇒ AWS.Request
Adds or edits tags on an Amazon Web Services PCS resource. Each tag consists of a tag key and a tag value. The tag key and tag value are case-sensitive strings. The tag value can be an empty (null) string. To add a tag, specify a new tag key and a tag value. To edit a tag, specify an existing tag key and a new tag value.
Service Reference:
Examples:
Calling the tagResource operation
var params = {
resourceArn: 'STRING_VALUE', /* required */
tags: { /* required */
'<TagKey>': 'STRING_VALUE',
/* '<TagKey>': ... */
}
};
pcs.tagResource(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
resourceArn
— (String
)The Amazon Resource Name (ARN) of the resource.
tags
— (map<String>
)1 or more tags added to the resource. Each tag consists of a tag key and tag value. The tag value is optional and can be an empty string.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs.
-
(AWS.Response)
—
Returns:
untagResource(params = {}, callback) ⇒ AWS.Request
Deletes tags from an Amazon Web Services PCS resource. To delete a tag, specify the tag key and the Amazon Resource Name (ARN) of the Amazon Web Services PCS resource.
Service Reference:
Examples:
Calling the untagResource operation
var params = {
resourceArn: 'STRING_VALUE', /* required */
tagKeys: [ /* required */
'STRING_VALUE',
/* more items */
]
};
pcs.untagResource(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
resourceArn
— (String
)The Amazon Resource Name (ARN) of the resource.
tagKeys
— (Array<String>
)1 or more tag keys to remove from the resource. Specify only tag keys and not tag values.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs.
-
(AWS.Response)
—
Returns:
updateComputeNodeGroup(params = {}, callback) ⇒ AWS.Request
Updates a compute node group. You can update many of the fields related to your compute node group including the configurations for networking, compute nodes, and settings specific to your scheduler (such as Slurm).
Service Reference:
Examples:
Calling the updateComputeNodeGroup operation
var params = {
clusterIdentifier: 'STRING_VALUE', /* required */
computeNodeGroupIdentifier: 'STRING_VALUE', /* required */
amiId: 'STRING_VALUE',
clientToken: 'STRING_VALUE',
customLaunchTemplate: {
id: 'STRING_VALUE', /* required */
version: 'STRING_VALUE' /* required */
},
iamInstanceProfileArn: 'STRING_VALUE',
purchaseOption: ONDEMAND | SPOT,
scalingConfiguration: {
maxInstanceCount: 'NUMBER_VALUE', /* required */
minInstanceCount: 'NUMBER_VALUE' /* required */
},
slurmConfiguration: {
slurmCustomSettings: [
{
parameterName: 'STRING_VALUE', /* required */
parameterValue: 'STRING_VALUE' /* required */
},
/* more items */
]
},
spotOptions: {
allocationStrategy: lowest-price | capacity-optimized | price-capacity-optimized
},
subnetIds: [
'STRING_VALUE',
/* more items */
]
};
pcs.updateComputeNodeGroup(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
clusterIdentifier
— (String
)The name or ID of the cluster of the compute node group.
computeNodeGroupIdentifier
— (String
)The name or ID of the compute node group.
amiId
— (String
)The ID of the Amazon Machine Image (AMI) that Amazon Web Services PCS uses to launch instances. If not provided, Amazon Web Services PCS uses the AMI ID specified in the custom launch template.
subnetIds
— (Array<String>
)The list of subnet IDs where the compute node group provisions instances. The subnets must be in the same VPC as the cluster.
customLaunchTemplate
— (map
)An Amazon EC2 launch template Amazon Web Services PCS uses to launch compute nodes.
id
— required — (String
)The ID of the EC2 launch template to use to provision instances.
Example:
lt-xxxx
version
— required — (String
)The version of the EC2 launch template to use to provision instances.
purchaseOption
— (String
)Specifies how EC2 instances are purchased on your behalf. Amazon Web Services PCS supports On-Demand and Spot instances. For more information, see Instance purchasing options in the Amazon Elastic Compute Cloud User Guide. If you don't provide this option, it defaults to On-Demand.
Possible values include:"ONDEMAND"
"SPOT"
spotOptions
— (map
)Additional configuration when you specify
SPOT
as thepurchaseOption
for theCreateComputeNodeGroup
API action.allocationStrategy
— (String
)The Amazon EC2 allocation strategy Amazon Web Services PCS uses to provision EC2 instances. Amazon Web Services PCS supports lowest price, capacity optimized, and price capacity optimized. For more information, see Use allocation strategies to determine how EC2 Fleet or Spot Fleet fulfills Spot and On-Demand capacity in the Amazon Elastic Compute Cloud User Guide. If you don't provide this option, it defaults to price capacity optimized.
Possible values include:"lowest-price"
"capacity-optimized"
"price-capacity-optimized"
scalingConfiguration
— (map
)Specifies the boundaries of the compute node group auto scaling.
minInstanceCount
— required — (Integer
)The lower bound of the number of instances allowed in the compute fleet.
maxInstanceCount
— required — (Integer
)The upper bound of the number of instances allowed in the compute fleet.
iamInstanceProfileArn
— (String
)The Amazon Resource Name (ARN) of the IAM instance profile used to pass an IAM role when launching EC2 instances. The role contained in your instance profile must have
pcs:RegisterComputeNodeGroupInstance
permissions attached to provision instances correctly.slurmConfiguration
— (map
)Additional options related to the Slurm scheduler.
slurmCustomSettings
— (Array<map>
)Additional Slurm-specific configuration that directly maps to Slurm settings.
parameterName
— required — (String
)Amazon Web Services PCS supports configuration of the following Slurm parameters:
Prolog
,Epilog
, andSelectTypeParameters
.parameterValue
— required — (String
)The values for the configured Slurm settings.
clientToken
— (String
)A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. Idempotency ensures that an API request completes only once. With an idempotent request, if the original request completes successfully, the subsequent retries with the same client token return the result from the original successful request and they have no additional effect. If you don't specify a client token, the CLI and SDK automatically generate 1 for you.
If a token is not provided, the SDK will use a version 4 UUID.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:computeNodeGroup
— (map
)A compute node group associated with a cluster.
name
— required — (String
)The name that identifies the compute node group.
id
— required — (String
)The generated unique ID of the compute node group.
arn
— required — (String
)The unique Amazon Resource Name (ARN) of the compute node group.
clusterId
— required — (String
)The ID of the cluster of the compute node group.
createdAt
— required — (Date
)The date and time the resource was created.
modifiedAt
— required — (Date
)The date and time the resource was modified.
status
— required — (String
)The provisioning status of the compute node group.
Note: The provisioning status doesn't indicate the overall health of the compute node group.Possible values include:"CREATING"
"ACTIVE"
"UPDATING"
"DELETING"
"CREATE_FAILED"
"DELETE_FAILED"
"UPDATE_FAILED"
"DELETED"
amiId
— (String
)The ID of the Amazon Machine Image (AMI) that Amazon Web Services PCS uses to launch instances. If not provided, Amazon Web Services PCS uses the AMI ID specified in the custom launch template.
subnetIds
— required — (Array<String>
)The list of subnet IDs where instances are provisioned by the compute node group. The subnets must be in the same VPC as the cluster.
purchaseOption
— (String
)Specifies how EC2 instances are purchased on your behalf. Amazon Web Services PCS supports On-Demand and Spot instances. For more information, see Instance purchasing options in the Amazon Elastic Compute Cloud User Guide. If you don't provide this option, it defaults to On-Demand.
Possible values include:"ONDEMAND"
"SPOT"
customLaunchTemplate
— required — (map
)An Amazon EC2 launch template Amazon Web Services PCS uses to launch compute nodes.
id
— required — (String
)The ID of the EC2 launch template to use to provision instances.
Example:
lt-xxxx
version
— required — (String
)The version of the EC2 launch template to use to provision instances.
iamInstanceProfileArn
— required — (String
)The Amazon Resource Name (ARN) of the IAM instance profile used to pass an IAM role when launching EC2 instances. The role contained in your instance profile must have
pcs:RegisterComputeNodeGroupInstance
permissions attached to provision instances correctly.scalingConfiguration
— required — (map
)Specifies the boundaries of the compute node group auto scaling.
minInstanceCount
— required — (Integer
)The lower bound of the number of instances allowed in the compute fleet.
maxInstanceCount
— required — (Integer
)The upper bound of the number of instances allowed in the compute fleet.
instanceConfigs
— required — (Array<map>
)A list of EC2 instance configurations that Amazon Web Services PCS can provision in the compute node group.
instanceType
— (String
)The EC2 instance type that Amazon Web Services PCS can provision in the compute node group.
Example:
t2.xlarge
spotOptions
— (map
)Additional configuration when you specify
SPOT
as thepurchaseOption
for theCreateComputeNodeGroup
API action.allocationStrategy
— (String
)The Amazon EC2 allocation strategy Amazon Web Services PCS uses to provision EC2 instances. Amazon Web Services PCS supports lowest price, capacity optimized, and price capacity optimized. For more information, see Use allocation strategies to determine how EC2 Fleet or Spot Fleet fulfills Spot and On-Demand capacity in the Amazon Elastic Compute Cloud User Guide. If you don't provide this option, it defaults to price capacity optimized.
Possible values include:"lowest-price"
"capacity-optimized"
"price-capacity-optimized"
slurmConfiguration
— (map
)Additional options related to the Slurm scheduler.
slurmCustomSettings
— (Array<map>
)Additional Slurm-specific configuration that directly maps to Slurm settings.
parameterName
— required — (String
)Amazon Web Services PCS supports configuration of the following Slurm parameters:
Prolog
,Epilog
, andSelectTypeParameters
.parameterValue
— required — (String
)The values for the configured Slurm settings.
errorInfo
— (Array<map>
)The list of errors that occurred during compute node group provisioning.
code
— (String
)The short-form error code.
message
— (String
)The detailed error information.
-
(AWS.Response)
—
Returns:
updateQueue(params = {}, callback) ⇒ AWS.Request
Updates the compute node group configuration of a queue. Use this API to change the compute node groups that the queue can send jobs to.
Service Reference:
Examples:
Calling the updateQueue operation
var params = {
clusterIdentifier: 'STRING_VALUE', /* required */
queueIdentifier: 'STRING_VALUE', /* required */
clientToken: 'STRING_VALUE',
computeNodeGroupConfigurations: [
{
computeNodeGroupId: 'STRING_VALUE'
},
/* more items */
]
};
pcs.updateQueue(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Parameters:
-
params
(Object)
(defaults to: {})
—
clusterIdentifier
— (String
)The name or ID of the cluster of the queue.
queueIdentifier
— (String
)The name or ID of the queue.
computeNodeGroupConfigurations
— (Array<map>
)The list of compute node group configurations to associate with the queue. Queues assign jobs to associated compute node groups.
computeNodeGroupId
— (String
)The compute node group ID for the compute node group configuration.
clientToken
— (String
)A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. Idempotency ensures that an API request completes only once. With an idempotent request, if the original request completes successfully, the subsequent retries with the same client token return the result from the original successful request and they have no additional effect. If you don't specify a client token, the CLI and SDK automatically generate 1 for you.
If a token is not provided, the SDK will use a version 4 UUID.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:queue
— (map
)A queue resource.
name
— required — (String
)The name that identifies the queue.
id
— required — (String
)The generated unique ID of the queue.
arn
— required — (String
)The unique Amazon Resource Name (ARN) of the queue.
clusterId
— required — (String
)The ID of the cluster of the queue.
createdAt
— required — (Date
)The date and time the resource was created.
modifiedAt
— required — (Date
)The date and time the resource was modified.
status
— required — (String
)The provisioning status of the queue.
Note: The provisioning status doesn't indicate the overall health of the queue.Possible values include:"CREATING"
"ACTIVE"
"UPDATING"
"DELETING"
"CREATE_FAILED"
"DELETE_FAILED"
"UPDATE_FAILED"
computeNodeGroupConfigurations
— required — (Array<map>
)The list of compute node group configurations associated with the queue. Queues assign jobs to associated compute node groups.
computeNodeGroupId
— (String
)The compute node group ID for the compute node group configuration.
errorInfo
— (Array<map>
)The list of errors that occurred during queue provisioning.
code
— (String
)The short-form error code.
message
— (String
)The detailed error information.
-
(AWS.Response)
—
Returns:
waitFor(state, params = {}, callback) ⇒ AWS.Request
Waits for a given PCS resource. The final callback or 'complete' event will be fired only when the resource is either in its final state or the waiter has timed out and stopped polling for the final state.
Parameters:
-
state
(String)
—
the resource state to wait for. Available states for this service are listed in "Waiter Resource States" below.
-
params
(map)
(defaults to: {})
—
a list of parameters for the given state. See each waiter resource state for required parameters.
Callback (callback):
-
function(err, data) { ... }
Callback containing error and data information. See the respective resource state for the expected error or data information.
If the waiter times out its requests, it will return a
ResourceNotReady
error.
Returns: