Class CfnServiceEnvironmentProps
Properties for defining a CfnServiceEnvironment.
Implements
Inherited Members
Namespace: Amazon.CDK.AWS.Batch
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnServiceEnvironmentProps : ICfnServiceEnvironmentProps
Syntax (vb)
Public Class CfnServiceEnvironmentProps Implements ICfnServiceEnvironmentProps
Remarks
ExampleMetadata: fixture=_generated
Examples
// 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 cfnServiceEnvironmentProps = new CfnServiceEnvironmentProps {
CapacityLimits = new [] { new CapacityLimitProperty {
CapacityUnit = "capacityUnit",
MaxCapacity = 123
} },
ServiceEnvironmentType = "serviceEnvironmentType",
// the properties below are optional
ServiceEnvironmentName = "serviceEnvironmentName",
State = "state",
Tags = new Dictionary<string, string> {
{ "tagsKey", "tags" }
}
};
Synopsis
Constructors
| CfnServiceEnvironmentProps() | Properties for defining a |
Properties
| CapacityLimits | The capacity limits for the service environment. |
| ServiceEnvironmentName | The name of the service environment. |
| ServiceEnvironmentType | The type of service environment. |
| State | The state of the service environment. |
| Tags | The tags associated with the service environment. |
Constructors
CfnServiceEnvironmentProps()
Properties for defining a CfnServiceEnvironment.
public CfnServiceEnvironmentProps()
Remarks
ExampleMetadata: fixture=_generated
Examples
// 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 cfnServiceEnvironmentProps = new CfnServiceEnvironmentProps {
CapacityLimits = new [] { new CapacityLimitProperty {
CapacityUnit = "capacityUnit",
MaxCapacity = 123
} },
ServiceEnvironmentType = "serviceEnvironmentType",
// the properties below are optional
ServiceEnvironmentName = "serviceEnvironmentName",
State = "state",
Tags = new Dictionary<string, string> {
{ "tagsKey", "tags" }
}
};
Properties
CapacityLimits
The capacity limits for the service environment.
public object CapacityLimits { get; set; }
Property Value
Remarks
This defines the maximum resources that can be used by service jobs in this environment.
Type union: either IResolvable or (either IResolvable or CfnServiceEnvironment.ICapacityLimitProperty)[]
ServiceEnvironmentName
The name of the service environment.
public string? ServiceEnvironmentName { get; set; }
Property Value
Remarks
ServiceEnvironmentType
The type of service environment.
public string ServiceEnvironmentType { get; set; }
Property Value
Remarks
For SageMaker Training jobs, this value is SAGEMAKER_TRAINING .
State
The state of the service environment.
public string? State { get; set; }
Property Value
Remarks
Valid values are ENABLED and DISABLED .
Tags
The tags associated with the service environment.
public IDictionary<string, string>? Tags { get; set; }
Property Value
Remarks
Each tag consists of a key and an optional value. For more information, see Tagging your AWS Batch resources .