CfnQuotaShareProps Struct
Properties for defining a CfnQuotaShare.
| Source | |
|---|---|
| Type last changed |
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_batch as batch } from 'aws-cdk-lib';
const cfnQuotaShareProps: batch.CfnQuotaShareProps = {
capacityLimits: [{
capacityUnit: 'capacityUnit',
maxCapacity: 123,
}],
jobQueue: 'jobQueue',
preemptionConfiguration: {
inSharePreemption: 'inSharePreemption',
},
resourceSharingConfiguration: {
strategy: 'strategy',
// the properties below are optional
borrowLimit: 123,
},
// the properties below are optional
quotaShareName: 'quotaShareName',
state: 'state',
tags: {
tagsKey: 'tags',
},
};
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_batch as batch
cfn_quota_share_props = batch.CfnQuotaShareProps(
capacity_limits=[batch.CfnQuotaShare.QuotaShareCapacityLimitProperty(
capacity_unit="capacityUnit",
max_capacity=123
)],
job_queue="jobQueue",
preemption_configuration=batch.CfnQuotaShare.QuotaSharePreemptionConfigurationProperty(
in_share_preemption="inSharePreemption"
),
resource_sharing_configuration=batch.CfnQuotaShare.QuotaShareResourceSharingConfigurationProperty(
strategy="strategy",
# the properties below are optional
borrow_limit=123
),
# the properties below are optional
quota_share_name="quotaShareName",
state="state",
tags={
"tags_key": "tags"
}
)
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.batch.*;
CfnQuotaShareProps cfnQuotaShareProps = CfnQuotaShareProps.builder()
.capacityLimits(List.of(QuotaShareCapacityLimitProperty.builder()
.capacityUnit("capacityUnit")
.maxCapacity(123)
.build()))
.jobQueue("jobQueue")
.preemptionConfiguration(QuotaSharePreemptionConfigurationProperty.builder()
.inSharePreemption("inSharePreemption")
.build())
.resourceSharingConfiguration(QuotaShareResourceSharingConfigurationProperty.builder()
.strategy("strategy")
// the properties below are optional
.borrowLimit(123)
.build())
// the properties below are optional
.quotaShareName("quotaShareName")
.state("state")
.tags(Map.of(
"tagsKey", "tags"))
.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.Batch;
var cfnQuotaShareProps = new CfnQuotaShareProps {
CapacityLimits = new [] { new QuotaShareCapacityLimitProperty {
CapacityUnit = "capacityUnit",
MaxCapacity = 123
} },
JobQueue = "jobQueue",
PreemptionConfiguration = new QuotaSharePreemptionConfigurationProperty {
InSharePreemption = "inSharePreemption"
},
ResourceSharingConfiguration = new QuotaShareResourceSharingConfigurationProperty {
Strategy = "strategy",
// the properties below are optional
BorrowLimit = 123
},
// the properties below are optional
QuotaShareName = "quotaShareName",
State = "state",
Tags = new Dictionary<string, string> {
{ "tagsKey", "tags" }
}
};
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"
cfnQuotaShareProps := &CfnQuotaShareProps{
CapacityLimits: []interface{}{
&QuotaShareCapacityLimitProperty{
CapacityUnit: jsii.String("capacityUnit"),
MaxCapacity: jsii.Number(123),
},
},
JobQueue: jsii.String("jobQueue"),
PreemptionConfiguration: &QuotaSharePreemptionConfigurationProperty{
InSharePreemption: jsii.String("inSharePreemption"),
},
ResourceSharingConfiguration: &QuotaShareResourceSharingConfigurationProperty{
Strategy: jsii.String("strategy"),
// the properties below are optional
BorrowLimit: jsii.Number(123),
},
// the properties below are optional
QuotaShareName: jsii.String("quotaShareName"),
State: jsii.String("state"),
Tags: map[string]*string{
"tagsKey": jsii.String("tags"),
},
}
Properties
capacityLimitsIResolvable | IResolvable | CfnQuotaShare.capacity_limitstyping.Union[IResolvable, typing.List[typing.Union[IResolvable, QuotaShareCapacityLimitProperty]]]capacityLimitsIResolvableCapacityLimitsIResolvableCapacityLimitsinterface{} required #A list that specifies the quantity and type of compute capacity allocated to the quota share.
The AWS Batch job queue associated with the quota share.
This can be the job queue name or ARN. A job queue must be in the VALID state before you can associate it with a quota share.
preemptionConfigurationIResolvable | CfnQuotaShare.preemption_configurationtyping.Union[IResolvable, QuotaSharePreemptionConfigurationProperty]preemptionConfigurationIResolvablePreemptionConfigurationIResolvablePreemptionConfigurationinterface{} required #resourceSharingConfigurationIResolvable | CfnQuotaShare.resource_sharing_configurationtyping.Union[IResolvable, QuotaShareResourceSharingConfigurationProperty]resourceSharingConfigurationIResolvableResourceSharingConfigurationIResolvableResourceSharingConfigurationinterface{} required #The state of the quota share.
If the quota share is ENABLED, it is able to accept jobs. If the quota share is DISABLED, new jobs won't be accepted but jobs already submitted can finish. The default state is ENABLED.
tagsoptional{ [key: string]: string }tagsoptionaltyping.Mapping[str, str]tagsoptionalMap<String, String>TagsoptionalIDictionary<string, string>Tagsoptional*map[string]*string #The tags that you apply to the quota share to help you categorize and organize your resources.
Each tag consists of a key and an optional value.