Show / Hide Table of Contents

Interface CfnJobDefinition.IPodPropertiesProperty

Namespace: Amazon.CDK.AWS.Batch
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface CfnJobDefinition.IPodPropertiesProperty
Syntax (vb)
Public Interface CfnJobDefinition.IPodPropertiesProperty
Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-jobdefinition-podproperties.html

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 labels;
             var limits;
             var requests;

             var podPropertiesProperty = new PodPropertiesProperty {
                 Containers = new [] { new EksContainerProperty {
                     Image = "image",

                     // the properties below are optional
                     Args = new [] { "args" },
                     Command = new [] { "command" },
                     Env = new [] { new EksContainerEnvironmentVariableProperty {
                         Name = "name",

                         // the properties below are optional
                         Value = "value"
                     } },
                     ImagePullPolicy = "imagePullPolicy",
                     Name = "name",
                     Resources = new ResourcesProperty {
                         Limits = limits,
                         Requests = requests
                     },
                     SecurityContext = new SecurityContextProperty {
                         AllowPrivilegeEscalation = false,
                         Privileged = false,
                         ReadOnlyRootFilesystem = false,
                         RunAsGroup = 123,
                         RunAsNonRoot = false,
                         RunAsUser = 123
                     },
                     VolumeMounts = new [] { new EksContainerVolumeMountProperty {
                         MountPath = "mountPath",
                         Name = "name",
                         ReadOnly = false,
                         SubPath = "subPath"
                     } }
                 } },
                 DnsPolicy = "dnsPolicy",
                 HostNetwork = false,
                 ImagePullSecrets = new [] { new ImagePullSecretProperty {
                     Name = "name"
                 } },
                 InitContainers = new [] { new EksContainerProperty {
                     Image = "image",

                     // the properties below are optional
                     Args = new [] { "args" },
                     Command = new [] { "command" },
                     Env = new [] { new EksContainerEnvironmentVariableProperty {
                         Name = "name",

                         // the properties below are optional
                         Value = "value"
                     } },
                     ImagePullPolicy = "imagePullPolicy",
                     Name = "name",
                     Resources = new ResourcesProperty {
                         Limits = limits,
                         Requests = requests
                     },
                     SecurityContext = new SecurityContextProperty {
                         AllowPrivilegeEscalation = false,
                         Privileged = false,
                         ReadOnlyRootFilesystem = false,
                         RunAsGroup = 123,
                         RunAsNonRoot = false,
                         RunAsUser = 123
                     },
                     VolumeMounts = new [] { new EksContainerVolumeMountProperty {
                         MountPath = "mountPath",
                         Name = "name",
                         ReadOnly = false,
                         SubPath = "subPath"
                     } }
                 } },
                 Metadata = new MetadataProperty {
                     Labels = labels
                 },
                 ServiceAccountName = "serviceAccountName",
                 ShareProcessNamespace = false,
                 Volumes = new [] { new EksVolumeProperty {
                     Name = "name",

                     // the properties below are optional
                     EmptyDir = new EmptyDirProperty {
                         Medium = "medium",
                         SizeLimit = "sizeLimit"
                     },
                     HostPath = new HostPathProperty {
                         Path = "path"
                     },
                     PersistentVolumeClaim = new EksPersistentVolumeClaimProperty {
                         ClaimName = "claimName",

                         // the properties below are optional
                         ReadOnly = false
                     },
                     Secret = new EksSecretProperty {
                         SecretName = "secretName",

                         // the properties below are optional
                         Optional = false
                     }
                 } }
             };

Synopsis

Properties

Containers
DnsPolicy
HostNetwork
ImagePullSecrets
InitContainers
Metadata
ServiceAccountName
ShareProcessNamespace
Volumes

Properties

Containers

object? Containers { get; }
Property Value

object

Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-jobdefinition-podproperties.html#cfn-batch-jobdefinition-podproperties-containers

Type union: either IResolvable or (either IResolvable or CfnJobDefinition.IEksContainerProperty)[]

DnsPolicy

string? DnsPolicy { get; }
Property Value

string

Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-jobdefinition-podproperties.html#cfn-batch-jobdefinition-podproperties-dnspolicy

HostNetwork

object? HostNetwork { get; }
Property Value

object

Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-jobdefinition-podproperties.html#cfn-batch-jobdefinition-podproperties-hostnetwork

Type union: either bool or IResolvable

ImagePullSecrets

object? ImagePullSecrets { get; }
Property Value

object

Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-jobdefinition-podproperties.html#cfn-batch-jobdefinition-podproperties-imagepullsecrets

Type union: either IResolvable or (either IResolvable or CfnJobDefinition.IImagePullSecretProperty)[]

InitContainers

object? InitContainers { get; }
Property Value

object

Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-jobdefinition-podproperties.html#cfn-batch-jobdefinition-podproperties-initcontainers

Type union: either IResolvable or (either IResolvable or CfnJobDefinition.IEksContainerProperty)[]

Metadata

object? Metadata { get; }
Property Value

object

Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-jobdefinition-podproperties.html#cfn-batch-jobdefinition-podproperties-metadata

Type union: either IResolvable or CfnJobDefinition.IMetadataProperty

ServiceAccountName

string? ServiceAccountName { get; }
Property Value

string

Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-jobdefinition-podproperties.html#cfn-batch-jobdefinition-podproperties-serviceaccountname

ShareProcessNamespace

object? ShareProcessNamespace { get; }
Property Value

object

Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-jobdefinition-podproperties.html#cfn-batch-jobdefinition-podproperties-shareprocessnamespace

Type union: either bool or IResolvable

Volumes

object? Volumes { get; }
Property Value

object

Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-jobdefinition-podproperties.html#cfn-batch-jobdefinition-podproperties-volumes

Type union: either IResolvable or (either IResolvable or CfnJobDefinition.IEksVolumeProperty)[]

Back to top Generated by DocFX