Class: Aws::Batch::Types::EksContainerSecurityContext

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-batch/lib/aws-sdk-batch/types.rb

Overview

The security context for a job. For more information, see Configure a security context for a pod or container in the Kubernetes documentation.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#allow_privilege_escalation ⇒ Boolean

Whether or not a container or a Kubernetes pod is allowed to gain more privileges than its parent process. The default value is false.

Returns:

  • (Boolean)


5518
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529
# File 'gems/aws-sdk-batch/lib/aws-sdk-batch/types.rb', line 5518

class EksContainerSecurityContext < Struct.new(
  :run_as_user,
  :run_as_group,
  :privileged,
  :allow_privilege_escalation,
  :read_only_root_filesystem,
  :run_as_non_root,
  :capabilities,
  :seccomp_profile)
  SENSITIVE = []
  include Aws::Structure
end

#capabilities ⇒ Types::EksContainerLinuxCapabilities

Adds or removes Linux capabilities from the container's default capability set. With Linux capabilities, you can grant specific privileges without granting full root permissions.



5518
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529
# File 'gems/aws-sdk-batch/lib/aws-sdk-batch/types.rb', line 5518

class EksContainerSecurityContext < Struct.new(
  :run_as_user,
  :run_as_group,
  :privileged,
  :allow_privilege_escalation,
  :read_only_root_filesystem,
  :run_as_non_root,
  :capabilities,
  :seccomp_profile)
  SENSITIVE = []
  include Aws::Structure
end

#privileged ⇒ Boolean

When this parameter is true, the container is given elevated permissions on the host container instance. The level of permissions are similar to the root user permissions. The default value is false. This parameter maps to privileged policy in the Privileged pod security policies in the Kubernetes documentation.

Returns:

  • (Boolean)


5518
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529
# File 'gems/aws-sdk-batch/lib/aws-sdk-batch/types.rb', line 5518

class EksContainerSecurityContext < Struct.new(
  :run_as_user,
  :run_as_group,
  :privileged,
  :allow_privilege_escalation,
  :read_only_root_filesystem,
  :run_as_non_root,
  :capabilities,
  :seccomp_profile)
  SENSITIVE = []
  include Aws::Structure
end

#read_only_root_filesystem ⇒ Boolean

When this parameter is true, the container is given read-only access to its root file system. The default value is false. This parameter maps to ReadOnlyRootFilesystem policy in the Volumes and file systems pod security policies in the Kubernetes documentation.

Returns:

  • (Boolean)


5518
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529
# File 'gems/aws-sdk-batch/lib/aws-sdk-batch/types.rb', line 5518

class EksContainerSecurityContext < Struct.new(
  :run_as_user,
  :run_as_group,
  :privileged,
  :allow_privilege_escalation,
  :read_only_root_filesystem,
  :run_as_non_root,
  :capabilities,
  :seccomp_profile)
  SENSITIVE = []
  include Aws::Structure
end

#run_as_group ⇒ Integer

When this parameter is specified, the container is run as the specified group ID (gid). If this parameter isn't specified, the default is the group that's specified in the image metadata. The supported value range is 0 through 2147483647. This parameter maps to RunAsGroup and MustRunAs policy in the Users and groups pod security policies in the Kubernetes documentation.

Returns:

  • (Integer)


5518
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529
# File 'gems/aws-sdk-batch/lib/aws-sdk-batch/types.rb', line 5518

class EksContainerSecurityContext < Struct.new(
  :run_as_user,
  :run_as_group,
  :privileged,
  :allow_privilege_escalation,
  :read_only_root_filesystem,
  :run_as_non_root,
  :capabilities,
  :seccomp_profile)
  SENSITIVE = []
  include Aws::Structure
end

#run_as_non_root ⇒ Boolean

When this parameter is specified, the container is run as a user with a uid other than 0. If this parameter isn't specified, so such rule is enforced. This parameter maps to RunAsUser and MustRunAsNonRoot policy in the Users and groups pod security policies in the Kubernetes documentation.

Returns:

  • (Boolean)


5518
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529
# File 'gems/aws-sdk-batch/lib/aws-sdk-batch/types.rb', line 5518

class EksContainerSecurityContext < Struct.new(
  :run_as_user,
  :run_as_group,
  :privileged,
  :allow_privilege_escalation,
  :read_only_root_filesystem,
  :run_as_non_root,
  :capabilities,
  :seccomp_profile)
  SENSITIVE = []
  include Aws::Structure
end

#run_as_user ⇒ Integer

When this parameter is specified, the container is run as the specified user ID (uid). If this parameter isn't specified, the default is the user that's specified in the image metadata. The supported value range is 0 through 2147483647. This parameter maps to RunAsUser and MustRunAs policy in the Users and groups pod security policies in the Kubernetes documentation.

Returns:

  • (Integer)


5518
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529
# File 'gems/aws-sdk-batch/lib/aws-sdk-batch/types.rb', line 5518

class EksContainerSecurityContext < Struct.new(
  :run_as_user,
  :run_as_group,
  :privileged,
  :allow_privilege_escalation,
  :read_only_root_filesystem,
  :run_as_non_root,
  :capabilities,
  :seccomp_profile)
  SENSITIVE = []
  include Aws::Structure
end

#seccomp_profile ⇒ Types::EksSeccompProfile

The seccomp profile for the container. A container-level seccomp profile overrides the profile in the pod security context, which defines security settings that apply to all containers in the pod unless a container overrides them. If this parameter isn't specified, the container uses the pod security context's seccomp profile when one is specified.



5518
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529
# File 'gems/aws-sdk-batch/lib/aws-sdk-batch/types.rb', line 5518

class EksContainerSecurityContext < Struct.new(
  :run_as_user,
  :run_as_group,
  :privileged,
  :allow_privilege_escalation,
  :read_only_root_filesystem,
  :run_as_non_root,
  :capabilities,
  :seccomp_profile)
  SENSITIVE = []
  include Aws::Structure
end