aws.dms-instance

Filters

kms-key

Filter a resource by its associcated kms key and optionally the aliasname of the kms key by using ‘c7n:AliasName’

example
policies:
    - name:
      resource: dms-instance
      filters:
        - type: kms-key
          key: c7n:AliasName
          value: alias/aws/dms
properties:
  default:
    type: object
  key:
    type: string
  match-resource:
    type: boolean
  op:
    enum:
    - eq
    - equal
    - ne
    - not-equal
    - gt
    - greater-than
    - ge
    - gte
    - le
    - lte
    - lt
    - less-than
    - glob
    - regex
    - regex-case
    - in
    - ni
    - not-in
    - contains
    - difference
    - intersect
  operator:
    enum:
    - and
    - or
  type:
    enum:
    - kms-key
  value:
    oneOf:
    - type: array
    - type: string
    - type: boolean
    - type: number
    - type: 'null'
  value_from:
    additionalProperties: 'False'
    properties:
      expr:
        oneOf:
        - type: integer
        - type: string
      format:
        enum:
        - csv
        - json
        - txt
        - csv2dict
      url:
        type: string
    required:
    - url
    type: object
  value_regex:
    type: string
  value_type:
    enum:
    - age
    - integer
    - expiration
    - normalize
    - size
    - cidr
    - cidr_size
    - swap
    - resource_count
    - expr
    - unique_size
    - date
    - version
required:
- type

Actions

delete

properties:
  type:
    enum:
    - delete
required:
- type

modify-instance

Modify replication instance(s) to apply new settings

example

policies:
  - name: enable-minor-version-upgrade
    resource: dms-instance
    filters:
      - AutoMinorVersionUpgrade: False
    actions:
      - type: modify-instance
        ApplyImmediately: True
        AutoMinorVersionUpgrade: True
        PreferredMaintenanceWindow: mon:23:00-mon:23:59
AWS ModifyReplicationInstance Documentation:

https://docs.aws.amazon.com/dms/latest/APIReference/API_ModifyReplicationInstance.html

properties:
  AllocatedStorage:
    type: integer
  AllowMajorVersionUpgrade:
    type: boolean
  ApplyImmediately:
    type: boolean
  AutoMinorVersionUpgrade:
    type: boolean
  EngineVersion:
    type: string
  MultiAZ:
    type: boolean
  PreferredMaintenanceWindow:
    type: string
  ReplicationInstanceArn:
    type: string
  ReplicationInstanceClass:
    type: string
  ReplicationInstanceIdentifier:
    type: string
  VpcSecurityGroupIds:
    items:
      type: string
    type: array
  type:
    enum:
    - modify-instance