aws.batch resources

aws.batch-compute

Actions

delete

Delete an AWS batch compute environment

example

policies:
  - name: delete-environments
    resource: batch-compute
    filters:
      - computeResources.desiredvCpus: 0
    actions:
      - type: delete
properties:
  type:
    enum:
    - delete
required:
- type

update-environment

Updates an AWS batch compute environment

example

policies:
  - name: update-environments
    resource: batch-compute
    filters:
      - computeResources.desiredvCpus: 0
      - state: ENABLED
    actions:
      - type: update-environment
        state: DISABLED
properties:
  computeEnvironment:
    type: string
  computeResources:
    additionalProperties: false
    properties:
      desiredvCpus:
        type: integer
      maxvCpus:
        type: integer
      minvCpus:
        type: integer
    type: object
  serviceRole:
    type: string
  state:
    enum:
    - ENABLED
    - DISABLED
    type: string
  type:
    enum:
    - update-environment

aws.batch-definition

Actions

deregister

Deregisters a batch definition

example

policies:
  - name: deregister-definition
    resource: batch-definition
    filters:
      - containerProperties.image: amazonlinux
    actions:
      - type: deregister
properties:
  type:
    enum:
    - deregister
required:
- type