interface PodPropertiesProperty
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.Batch.CfnJobDefinition.PodPropertiesProperty |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awsbatch#CfnJobDefinition_PodPropertiesProperty |
![]() | software.amazon.awscdk.services.batch.CfnJobDefinition.PodPropertiesProperty |
![]() | aws_cdk.aws_batch.CfnJobDefinition.PodPropertiesProperty |
![]() | aws-cdk-lib » aws_batch » CfnJobDefinition » PodPropertiesProperty |
Example
// 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';
declare const labels: any;
declare const limits: any;
declare const requests: any;
const podPropertiesProperty: batch.CfnJobDefinition.PodPropertiesProperty = {
containers: [{
image: 'image',
// the properties below are optional
args: ['args'],
command: ['command'],
env: [{
name: 'name',
// the properties below are optional
value: 'value',
}],
imagePullPolicy: 'imagePullPolicy',
name: 'name',
resources: {
limits: limits,
requests: requests,
},
securityContext: {
allowPrivilegeEscalation: false,
privileged: false,
readOnlyRootFilesystem: false,
runAsGroup: 123,
runAsNonRoot: false,
runAsUser: 123,
},
volumeMounts: [{
mountPath: 'mountPath',
name: 'name',
readOnly: false,
subPath: 'subPath',
}],
}],
dnsPolicy: 'dnsPolicy',
hostNetwork: false,
imagePullSecrets: [{
name: 'name',
}],
initContainers: [{
image: 'image',
// the properties below are optional
args: ['args'],
command: ['command'],
env: [{
name: 'name',
// the properties below are optional
value: 'value',
}],
imagePullPolicy: 'imagePullPolicy',
name: 'name',
resources: {
limits: limits,
requests: requests,
},
securityContext: {
allowPrivilegeEscalation: false,
privileged: false,
readOnlyRootFilesystem: false,
runAsGroup: 123,
runAsNonRoot: false,
runAsUser: 123,
},
volumeMounts: [{
mountPath: 'mountPath',
name: 'name',
readOnly: false,
subPath: 'subPath',
}],
}],
metadata: {
labels: labels,
},
serviceAccountName: 'serviceAccountName',
shareProcessNamespace: false,
volumes: [{
name: 'name',
// the properties below are optional
emptyDir: {
medium: 'medium',
sizeLimit: 'sizeLimit',
},
hostPath: {
path: 'path',
},
persistentVolumeClaim: {
claimName: 'claimName',
// the properties below are optional
readOnly: false,
},
secret: {
secretName: 'secretName',
// the properties below are optional
optional: false,
},
}],
};
Properties
Name | Type | Description |
---|---|---|
containers? | IResolvable | IResolvable | Eks [] | |
dns | string | |
host | boolean | IResolvable | |
image | IResolvable | IResolvable | Image [] | |
init | IResolvable | IResolvable | Eks [] | |
metadata? | IResolvable | Metadata | |
service | string | |
share | boolean | IResolvable | |
volumes? | IResolvable | IResolvable | Eks [] |
containers?
Type:
IResolvable
|
IResolvable
|
Eks
[]
(optional)
dnsPolicy?
Type:
string
(optional)
hostNetwork?
Type:
boolean |
IResolvable
(optional)
imagePullSecrets?
Type:
IResolvable
|
IResolvable
|
Image
[]
(optional)
initContainers?
Type:
IResolvable
|
IResolvable
|
Eks
[]
(optional)
metadata?
Type:
IResolvable
|
Metadata
(optional)
serviceAccountName?
Type:
string
(optional)
shareProcessNamespace?
Type:
boolean |
IResolvable
(optional)
volumes?
Type:
IResolvable
|
IResolvable
|
Eks
[]
(optional)