Skip to content
v2.276.0

ResourceSharingConfigProperty Struct Added in v2.276.0 ​

Idle-resource-sharing strategy for this team's quota.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_sagemaker as sagemaker } from 'aws-cdk-lib';
const resourceSharingConfigProperty: sagemaker.CfnComputeQuota.ResourceSharingConfigProperty = {
  strategy: 'strategy',

  // the properties below are optional
  absoluteBorrowLimits: [{
    instanceType: 'instanceType',

    // the properties below are optional
    acceleratorPartition: {
      count: 123,
      type: 'type',
    },
    accelerators: 123,
    count: 123,
    memoryInGiB: 123,
    vCpu: 123,
  }],
  borrowLimit: 123,
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_sagemaker as sagemaker

resource_sharing_config_property = sagemaker.CfnComputeQuota.ResourceSharingConfigProperty(
    strategy="strategy",

    # the properties below are optional
    absolute_borrow_limits=[sagemaker.CfnComputeQuota.ComputeQuotaResourceConfigProperty(
        instance_type="instanceType",

        # the properties below are optional
        accelerator_partition=sagemaker.CfnComputeQuota.AcceleratorPartitionConfigProperty(
            count=123,
            type="type"
        ),
        accelerators=123,
        count=123,
        memory_in_gi_b=123,
        v_cpu=123
    )],
    borrow_limit=123
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.sagemaker.*;

ResourceSharingConfigProperty resourceSharingConfigProperty = ResourceSharingConfigProperty.builder()
        .strategy("strategy")

        // the properties below are optional
        .absoluteBorrowLimits(List.of(ComputeQuotaResourceConfigProperty.builder()
                .instanceType("instanceType")

                // the properties below are optional
                .acceleratorPartition(AcceleratorPartitionConfigProperty.builder()
                        .count(123)
                        .type("type")
                        .build())
                .accelerators(123)
                .count(123)
                .memoryInGiB(123)
                .vCpu(123)
                .build()))
        .borrowLimit(123)
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Sagemaker;

var resourceSharingConfigProperty = new ResourceSharingConfigProperty {
    Strategy = "strategy",

    // the properties below are optional
    AbsoluteBorrowLimits = new [] { new ComputeQuotaResourceConfigProperty {
        InstanceType = "instanceType",

        // the properties below are optional
        AcceleratorPartition = new AcceleratorPartitionConfigProperty {
            Count = 123,
            Type = "type"
        },
        Accelerators = 123,
        Count = 123,
        MemoryInGiB = 123,
        VCpu = 123
    } },
    BorrowLimit = 123
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

resourceSharingConfigProperty := &ResourceSharingConfigProperty{
	Strategy: jsii.String("strategy"),

	// the properties below are optional
	AbsoluteBorrowLimits: []interface{}{
		&ComputeQuotaResourceConfigProperty{
			InstanceType: jsii.String("instanceType"),

			// the properties below are optional
			AcceleratorPartition: &AcceleratorPartitionConfigProperty{
				Count: jsii.Number(123),
				Type: jsii.String("type"),
			},
			Accelerators: jsii.Number(123),
			Count: jsii.Number(123),
			MemoryInGiB: jsii.Number(123),
			VCpu: jsii.Number(123),
		},
	},
	BorrowLimit: jsii.Number(123),
}

Properties ​

absoluteBorrowLimitsoptionalIResolvable | IResolvable | CfnComputeQuota.ComputeQuotaResourceConfigProperty[]absolute_borrow_limitsoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, ComputeQuotaResourceConfigProperty]]]absoluteBorrowLimitsoptionalIResolvableAbsoluteBorrowLimitsoptionalIResolvableAbsoluteBorrowLimitsoptionalinterface{}#
Per-instance-type absolute caps on resources this team can borrow.
borrowLimitoptionalnumberborrow_limitoptionalint | floatborrowLimitoptionalNumberBorrowLimitoptionaldoubleBorrowLimitoptional*float64#
Maximum percentage of the team's idle quota that can be borrowed by other teams.

Smithy admits 0..10000; in practice the service-documented operational range is 1..500. Defaults service-side to 50 when omitted on Create.

strategystringstrategystrstrategyStringStrategystringStrategy*stringrequired#
How this team participates in idle-resource sharing.