@awboost/cfn-resource-types 0.1.402 → 0.1.403

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,26 @@
1
+ import { Resource as $Resource } from "@awboost/cfn-template-builder/template/resource";
2
+ import type { ResourceOptions as $ResourceOptions } from "@awboost/cfn-template-builder/template";
3
+ /**
4
+ * Resource Type definition for AWS::APS::ResourcePolicy
5
+ * @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-aps-resourcepolicy.html}
6
+ */
7
+ export type APSResourcePolicyProperties = {
8
+ /**
9
+ * The JSON to use as the Resource-based Policy.
10
+ */
11
+ PolicyDocument: string;
12
+ /**
13
+ * The Arn of an APS Workspace that the PolicyDocument will be attached to.
14
+ * @pattern `^arn:(aws|aws-us-gov|aws-cn):aps:[a-z0-9-]+:[0-9]+:workspace/[a-zA-Z0-9-]+$`
15
+ */
16
+ WorkspaceArn: string;
17
+ };
18
+ /**
19
+ * Resource Type definition for AWS::APS::ResourcePolicy
20
+ * @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-aps-resourcepolicy.html}
21
+ */
22
+ export declare class APSResourcePolicy extends $Resource<"AWS::APS::ResourcePolicy", APSResourcePolicyProperties, Record<string, never>> {
23
+ static readonly Type = "AWS::APS::ResourcePolicy";
24
+ constructor(logicalId: string, properties: APSResourcePolicyProperties, options?: $ResourceOptions);
25
+ }
26
+ //# sourceMappingURL=AWS-APS-ResourcePolicy.d.ts.map
@@ -0,0 +1,12 @@
1
+ import { Resource as $Resource } from "@awboost/cfn-template-builder/template/resource";
2
+ /**
3
+ * Resource Type definition for AWS::APS::ResourcePolicy
4
+ * @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-aps-resourcepolicy.html}
5
+ */
6
+ export class APSResourcePolicy extends $Resource {
7
+ static Type = "AWS::APS::ResourcePolicy";
8
+ constructor(logicalId, properties, options) {
9
+ super(logicalId, APSResourcePolicy.Type, properties, options);
10
+ }
11
+ }
12
+ //# sourceMappingURL=AWS-APS-ResourcePolicy.js.map
@@ -25,6 +25,15 @@ export type EKSAddonProperties = {
25
25
  * @minLength `1`
26
26
  */
27
27
  ConfigurationValues?: string;
28
+ /**
29
+ * The custom namespace configuration to use with the add-on
30
+ */
31
+ NamespaceConfig?: {
32
+ /**
33
+ * The custom namespace for creating the add-on
34
+ */
35
+ Namespace: string;
36
+ };
28
37
  /**
29
38
  * An array of pod identities to apply to this add-on.
30
39
  */
@@ -90,6 +90,37 @@ export type SageMakerClusterAttributes = {
90
90
  CurrentCount: number;
91
91
  }[];
92
92
  };
93
+ /**
94
+ * Type definition for `AWS::SageMaker::Cluster.AlarmDetails`.
95
+ * The details of the alarm to monitor during the AMI update.
96
+ * @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-cluster-alarmdetails.html}
97
+ */
98
+ export type AlarmDetails = {
99
+ /**
100
+ * The name of the alarm.
101
+ * @minLength `1`
102
+ * @maxLength `256`
103
+ * @pattern `(?!\s*$).+`
104
+ */
105
+ AlarmName: string;
106
+ };
107
+ /**
108
+ * Type definition for `AWS::SageMaker::Cluster.CapacitySizeConfig`.
109
+ * The configuration of the size measurements of the AMI update. Using this configuration, you can specify whether SageMaker should update your instance group by an amount or percentage of instances.
110
+ * @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-cluster-capacitysizeconfig.html}
111
+ */
112
+ export type CapacitySizeConfig = {
113
+ /**
114
+ * Specifies whether SageMaker should process the update by amount or percentage of instances.
115
+ * @pattern `INSTANCE_COUNT|CAPACITY_PERCENTAGE`
116
+ */
117
+ Type: string;
118
+ /**
119
+ * Specifies the amount or percentage of instances SageMaker updates at a time.
120
+ * @min `1`
121
+ */
122
+ Value: number;
123
+ };
93
124
  /**
94
125
  * Type definition for `AWS::SageMaker::Cluster.ClusterEbsVolumeConfig`.
95
126
  * Defines the configuration for attaching additional Amazon Elastic Block Store (EBS) volumes to the instances in the SageMaker HyperPod cluster instance group. The additional EBS volume is attached to each instance within the SageMaker HyperPod cluster instance group and mounted to /opt/sagemaker.
@@ -156,6 +187,10 @@ export type ClusterInstanceGroup = {
156
187
  * Specifies an Amazon Virtual Private Cloud (VPC) that your SageMaker jobs, hosted models, and compute resources have access to. You can control access to and from your resources by configuring a VPC.
157
188
  */
158
189
  OverrideVpcConfig?: VpcConfig;
190
+ /**
191
+ * The configuration object of the schedule that SageMaker follows when updating the AMI.
192
+ */
193
+ ScheduledUpdateConfig?: ScheduledUpdateConfig;
159
194
  /**
160
195
  * The number you specified to TreadsPerCore in CreateCluster for enabling or disabling multithreading. For instance types that support multithreading, you can specify 1 for disabling multithreading and 2 for enabling multithreading.
161
196
  * @min `1`
@@ -277,6 +312,27 @@ export type ClusterRestrictedInstanceGroup = {
277
312
  * @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-cluster-deephealthchecktype.html}
278
313
  */
279
314
  export type DeepHealthCheckType = "InstanceStress" | "InstanceConnectivity";
315
+ /**
316
+ * Type definition for `AWS::SageMaker::Cluster.DeploymentConfig`.
317
+ * The configuration to use when updating the AMI versions.
318
+ * @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-cluster-deploymentconfig.html}
319
+ */
320
+ export type DeploymentConfig = {
321
+ /**
322
+ * An array that contains the alarms that SageMaker monitors to know whether to roll back the AMI update.
323
+ */
324
+ AutoRollbackConfiguration?: AlarmDetails[];
325
+ /**
326
+ * The policy that SageMaker uses when updating the AMI versions of the cluster.
327
+ */
328
+ RollingUpdatePolicy?: RollingUpdatePolicy;
329
+ /**
330
+ * The duration in seconds that SageMaker waits before updating more instances in the cluster.
331
+ * @min `0`
332
+ * @max `3600`
333
+ */
334
+ WaitIntervalInSeconds?: number;
335
+ };
280
336
  /**
281
337
  * Type definition for `AWS::SageMaker::Cluster.EnvironmentConfig`.
282
338
  * The configuration for the restricted instance groups (RIG) environment.
@@ -318,6 +374,39 @@ export type Orchestrator = {
318
374
  */
319
375
  Eks: ClusterOrchestratorEksConfig;
320
376
  };
377
+ /**
378
+ * Type definition for `AWS::SageMaker::Cluster.RollingUpdatePolicy`.
379
+ * The policy that SageMaker uses when updating the AMI versions of the cluster.
380
+ * @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-cluster-rollingupdatepolicy.html}
381
+ */
382
+ export type RollingUpdatePolicy = {
383
+ /**
384
+ * The configuration of the size measurements of the AMI update. Using this configuration, you can specify whether SageMaker should update your instance group by an amount or percentage of instances.
385
+ */
386
+ MaximumBatchSize: CapacitySizeConfig;
387
+ /**
388
+ * The configuration of the size measurements of the AMI update. Using this configuration, you can specify whether SageMaker should update your instance group by an amount or percentage of instances.
389
+ */
390
+ RollbackMaximumBatchSize?: CapacitySizeConfig;
391
+ };
392
+ /**
393
+ * Type definition for `AWS::SageMaker::Cluster.ScheduledUpdateConfig`.
394
+ * The configuration object of the schedule that SageMaker follows when updating the AMI.
395
+ * @see {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-cluster-scheduledupdateconfig.html}
396
+ */
397
+ export type ScheduledUpdateConfig = {
398
+ /**
399
+ * The configuration to use when updating the AMI versions.
400
+ */
401
+ DeploymentConfig?: DeploymentConfig;
402
+ /**
403
+ * A cron expression that specifies the schedule that SageMaker follows when updating the AMI.
404
+ * @minLength `1`
405
+ * @maxLength `256`
406
+ * @pattern `cron\((?:[0-5][0-9]|[0-9]|) (?:[01][0-9]|2[0-3]|[0-9]) (?:[1-9]|0[1-9]|[12][0-9]|3[01]|\?) (?:[1-9]|0[1-9]|1[0-2]|\*|\/‍*(?:[1-9]|1[0-2])|) (?:MON|TUE|WED|THU|FRI|SAT|SUN|[1-7]|\?|L|(?:[1-7]#[1-5])|(?:[1-7]L)) (?:20[2-9][0-9]|\*|)\)`
407
+ */
408
+ ScheduleExpression: string;
409
+ };
321
410
  /**
322
411
  * Type definition for `AWS::SageMaker::Cluster.Tag`.
323
412
  * A key-value pair to associate with a resource.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@awboost/cfn-resource-types",
3
- "version": "0.1.402",
3
+ "version": "0.1.403",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },