aws.workspaces¶
Filters¶
connection-status¶
Filter Workspaces based on user connection information
- example
policies:
- name: workspaces-abandoned
resource: workspaces
filters:
- type: connection-status
value_type: age
key: LastKnownUserConnectionTimestamp
op: ge
value: 90
- name: workspaces-expensive-zombies
resource: workspaces
filters:
- "WorkspaceProperties.RunningMode": ALWAYS_ON
- type: connection-status
value_type: age
key: LastKnownUserConnectionTimestamp
op: ge
value: 30
properties:
default:
type: object
key:
type: string
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
type:
enum:
- connection-status
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
Permissions - workspaces:DescribeWorkspacesConnectionStatus