Show / Hide Table of Contents

Class CfnJobDefinition.PodPropertiesProperty

Inheritance
object
CfnJobDefinition.PodPropertiesProperty
Implements
CfnJobDefinition.IPodPropertiesProperty
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Amazon.CDK.AWS.Batch
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnJobDefinition.PodPropertiesProperty : CfnJobDefinition.IPodPropertiesProperty
Syntax (vb)
Public Class CfnJobDefinition.PodPropertiesProperty Implements 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

Constructors

PodPropertiesProperty()

Properties

Containers
DnsPolicy
HostNetwork
ImagePullSecrets
InitContainers
Metadata
ServiceAccountName
ShareProcessNamespace
Volumes

Constructors

PodPropertiesProperty()

public PodPropertiesProperty()
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
                     }
                 } }
             };

Properties

Containers

public object? Containers { get; set; }
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

public string? DnsPolicy { get; set; }
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

public object? HostNetwork { get; set; }
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

public object? ImagePullSecrets { get; set; }
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

public object? InitContainers { get; set; }
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

public object? Metadata { get; set; }
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

public string? ServiceAccountName { get; set; }
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

public object? ShareProcessNamespace { get; set; }
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

public object? Volumes { get; set; }
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)[]

Implements

CfnJobDefinition.IPodPropertiesProperty
Back to top Generated by DocFX