Skip to content

Commit 94f65ef

Browse files
author
cibot
committed
Definitions Update remediations
1 parent ea1506e commit 94f65ef

File tree

2 files changed

+69
-2
lines changed

2 files changed

+69
-2
lines changed

alsdkdefs/apis/remediations/examples.yaml

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3540,41 +3540,74 @@ FullAssetGroupTopologyPreviewExample:
35403540
created_on: 1427317669194
35413541
group_membership: IN
35423542
key: "/aws/us-east-1"
3543+
membership_counts:
3544+
host:
3545+
in: 1
3546+
not_in: 0
3547+
image:
3548+
in: 1
3549+
not_in: 0
3550+
subnet:
3551+
in: 1
3552+
not_in: 0
3553+
vpc:
3554+
in: 1
3555+
not_in: 0
35433556
threat_level: 3
35443557
threatiness: 22
35453558
type: region
35463559
814C2911-09BB-1005-9916-7831C1BAC182:region:/aws/us-west-2:
35473560
created_on: 1589381951438
35483561
group_membership: NOT_IN
35493562
key: "/aws/us-west-2"
3563+
membership_counts:
3564+
image:
3565+
in: 1
3566+
not_in: 0
35503567
threat_level: 0
35513568
threatiness: 0
35523569
type: region
35533570
814C2911-09BB-1005-9916-7831C1BAC182:region:/aws/eu-west-1:
35543571
created_on: 1589381951438
35553572
group_membership: EXCLUDED
35563573
key: "/aws/eu-west-1"
3574+
membership_counts:
3575+
vpc:
3576+
in: 0
3577+
not_in: 1
35573578
threat_level: 0
35583579
threatiness: 0
35593580
type: region
35603581
814C2911-09BB-1005-9916-7831C1BAC182:subnet:/aws/us-east-1/subnet/subnet-1a-web:
35613582
created_on: 1427317669627
35623583
group_membership: IN
35633584
key: "/aws/us-east-1/subnet/subnet-1a-web"
3585+
membership_counts:
3586+
host:
3587+
in: 1
3588+
not_in: 0
35643589
threat_level: 2
35653590
threatiness: 8
35663591
type: subnet
35673592
814C2911-09BB-1005-9916-7831C1BAC182:vpc:/aws/us-east-1/vpc/vpc-1:
35683593
created_on: 1427317669270
35693594
group_membership: IN
35703595
key: "/aws/us-east-1/vpc/vpc-1"
3596+
membership_counts:
3597+
host:
3598+
in: 1
3599+
not_in: 0
3600+
subnet:
3601+
in: 1
3602+
not_in: 0
35713603
threat_level: 3
35723604
threatiness: 22
35733605
type: vpc
35743606
814C2911-09BB-1005-9916-7831C1BAC182:vpc:/aws/eu-west-1/vpc/vpc-2:
35753607
created_on: 1427317669270
35763608
group_membership: EXCLUDED
35773609
key: "/aws/eu-west-1/vpc/vpc-2"
3610+
membership_counts: {}
35783611
threat_level: 3
35793612
threatiness: 22
35803613
type: vpc
@@ -3621,34 +3654,60 @@ HostAssetGroupTopologyPreviewExample:
36213654
created_on: 1427317669194
36223655
group_membership: IN
36233656
key: "/aws/us-east-1"
3657+
membership_counts:
3658+
host:
3659+
in: 1
3660+
not_in: 0
3661+
subnet:
3662+
in: 1
3663+
not_in: 0
3664+
vpc:
3665+
in: 1
3666+
not_in: 0
36243667
threat_level: 3
36253668
threatiness: 22
36263669
type: region
36273670
814C2911-09BB-1005-9916-7831C1BAC182:region:/aws/us-west-2:
36283671
created_on: 1589381951438
36293672
group_membership: NOT_IN
36303673
key: "/aws/us-west-2"
3674+
membership_counts: {}
36313675
threat_level: 0
36323676
threatiness: 0
36333677
type: region
36343678
814C2911-09BB-1005-9916-7831C1BAC182:region:/aws/eu-west-1:
36353679
created_on: 1589381951438
36363680
group_membership: EXCLUDED
36373681
key: "/aws/eu-west-1"
3682+
membership_counts:
3683+
vpc:
3684+
in: 0
3685+
not_in: 1
36383686
threat_level: 0
36393687
threatiness: 0
36403688
type: region
36413689
814C2911-09BB-1005-9916-7831C1BAC182:subnet:/aws/us-east-1/subnet/subnet-1a-web:
36423690
created_on: 1427317669627
36433691
group_membership: IN
36443692
key: "/aws/us-east-1/subnet/subnet-1a-web"
3693+
membership_counts:
3694+
host:
3695+
in: 1
3696+
not_in: 0
36453697
threat_level: 2
36463698
threatiness: 8
36473699
type: subnet
36483700
814C2911-09BB-1005-9916-7831C1BAC182:vpc:/aws/us-east-1/vpc/vpc-1:
36493701
created_on: 1427317669270
36503702
group_membership: IN
36513703
key: "/aws/us-east-1/vpc/vpc-1"
3704+
membership_counts:
3705+
host:
3706+
in: 1
3707+
not_in: 0
3708+
subnet:
3709+
in: 1
3710+
not_in: 0
36523711
threat_level: 3
36533712
threatiness: 22
36543713
type: vpc

alsdkdefs/apis/remediations/schemas.yaml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -466,8 +466,11 @@ TopologyPreviewResponse:
466466
An object containing all of the asset details for asset references in the
467467
`topology.assets`. The object keys are asset
468468
references produced by colon-joining deployment ID, asset type and asset key, e.g.,
469-
`814C2911-09BB-1005-9916-7831C1BAC182:region:/aws/us-east-1`. All assets are decorated with a
470-
`group_membership` property that must be consulted to determine membership in the group. Possible values are described below:
469+
`814C2911-09BB-1005-9916-7831C1BAC182:region:/aws/us-east-1`.
470+
471+
All assets are decorated with a few additional properties:
472+
473+
1. A `group_membership` property that must be consulted to determine membership in the group. Possible values are described below:
471474
472475
`IN` - The asset is included in the group by scope definition.
473476
@@ -479,6 +482,11 @@ TopologyPreviewResponse:
479482
`EXCLUDED` - The asset is excluded from the group by scope definition.
480483
481484
`NOT_IN` - The asset does not meet all criteria for inclusion in the group by scope definition, but is not explicitly excluded.
485+
486+
2. A `membership_counts` object containing keys of asset types and an object value of `in` and `not_in` counts for topological child types.
487+
If an asset has no topological children but is of a type that could have topological children (e.g. a region that
488+
currently does not have any declared vpcs yet), the membership_counts object may be an empty object `{}`.
489+
482490
rows:
483491
type: integer
484492
description: The count of rows in the `topology.assets` array.

0 commit comments

Comments
 (0)