Skip to content

Commit

Permalink
feat(client-securityhub): Add support for CONTAINS and NOT_CONTAINS c…
Browse files Browse the repository at this point in the history
…omparison operators for Automation Rules string filters and map filters
  • Loading branch information
awstools committed Jul 25, 2023
1 parent 70cb5f7 commit e624fd2
Show file tree
Hide file tree
Showing 14 changed files with 1,618 additions and 1,215 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,31 +66,31 @@ export interface BatchGetAutomationRulesCommandOutput extends BatchGetAutomation
* // ProductArn: [ // StringFilterList
* // { // StringFilter
* // Value: "STRING_VALUE",
* // Comparison: "EQUALS" || "PREFIX" || "NOT_EQUALS" || "PREFIX_NOT_EQUALS",
* // Comparison: "EQUALS" || "PREFIX" || "NOT_EQUALS" || "PREFIX_NOT_EQUALS" || "CONTAINS" || "NOT_CONTAINS",
* // },
* // ],
* // AwsAccountId: [
* // {
* // Value: "STRING_VALUE",
* // Comparison: "EQUALS" || "PREFIX" || "NOT_EQUALS" || "PREFIX_NOT_EQUALS",
* // Comparison: "EQUALS" || "PREFIX" || "NOT_EQUALS" || "PREFIX_NOT_EQUALS" || "CONTAINS" || "NOT_CONTAINS",
* // },
* // ],
* // Id: [
* // {
* // Value: "STRING_VALUE",
* // Comparison: "EQUALS" || "PREFIX" || "NOT_EQUALS" || "PREFIX_NOT_EQUALS",
* // Comparison: "EQUALS" || "PREFIX" || "NOT_EQUALS" || "PREFIX_NOT_EQUALS" || "CONTAINS" || "NOT_CONTAINS",
* // },
* // ],
* // GeneratorId: [
* // {
* // Value: "STRING_VALUE",
* // Comparison: "EQUALS" || "PREFIX" || "NOT_EQUALS" || "PREFIX_NOT_EQUALS",
* // Comparison: "EQUALS" || "PREFIX" || "NOT_EQUALS" || "PREFIX_NOT_EQUALS" || "CONTAINS" || "NOT_CONTAINS",
* // },
* // ],
* // Type: [
* // {
* // Value: "STRING_VALUE",
* // Comparison: "EQUALS" || "PREFIX" || "NOT_EQUALS" || "PREFIX_NOT_EQUALS",
* // Comparison: "EQUALS" || "PREFIX" || "NOT_EQUALS" || "PREFIX_NOT_EQUALS" || "CONTAINS" || "NOT_CONTAINS",
* // },
* // ],
* // FirstObservedAt: [ // DateFilterList
Expand Down Expand Up @@ -161,14 +161,14 @@ export interface BatchGetAutomationRulesCommandOutput extends BatchGetAutomation
* // { // MapFilter
* // Key: "STRING_VALUE",
* // Value: "STRING_VALUE",
* // Comparison: "EQUALS" || "NOT_EQUALS",
* // Comparison: "EQUALS" || "NOT_EQUALS" || "CONTAINS" || "NOT_CONTAINS",
* // },
* // ],
* // ResourceDetailsOther: [
* // {
* // Key: "STRING_VALUE",
* // Value: "STRING_VALUE",
* // Comparison: "EQUALS" || "NOT_EQUALS",
* // Comparison: "EQUALS" || "NOT_EQUALS" || "CONTAINS" || "NOT_CONTAINS",
* // },
* // ],
* // ComplianceStatus: "<StringFilterList>",
Expand All @@ -195,7 +195,7 @@ export interface BatchGetAutomationRulesCommandOutput extends BatchGetAutomation
* // {
* // Key: "STRING_VALUE",
* // Value: "STRING_VALUE",
* // Comparison: "EQUALS" || "NOT_EQUALS",
* // Comparison: "EQUALS" || "NOT_EQUALS" || "CONTAINS" || "NOT_CONTAINS",
* // },
* // ],
* // },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2064,6 +2064,12 @@ export interface BatchImportFindingsCommandOutput extends BatchImportFindingsRes
* DbClusterIdentifier: "STRING_VALUE",
* DbClusterSnapshotIdentifier: "STRING_VALUE",
* IamDatabaseAuthenticationEnabled: true || false,
* DbClusterSnapshotAttributes: [ // AwsRdsDbClusterSnapshotDbClusterSnapshotAttributes
* { // AwsRdsDbClusterSnapshotDbClusterSnapshotAttribute
* AttributeName: "STRING_VALUE",
* AttributeValues: "<NonEmptyStringList>",
* },
* ],
* },
* AwsRdsDbCluster: { // AwsRdsDbClusterDetails
* AllocatedStorage: Number("int"),
Expand Down Expand Up @@ -3822,6 +3828,19 @@ export interface BatchImportFindingsCommandOutput extends BatchImportFindingsRes
* },
* Type: "STRING_VALUE",
* },
* AwsAthenaWorkGroup: { // AwsAthenaWorkGroupDetails
* Name: "STRING_VALUE",
* Description: "STRING_VALUE",
* State: "STRING_VALUE",
* Configuration: { // AwsAthenaWorkGroupConfigurationDetails
* ResultConfiguration: { // AwsAthenaWorkGroupConfigurationResultConfigurationDetails
* EncryptionConfiguration: { // AwsAthenaWorkGroupConfigurationResultConfigurationEncryptionConfigurationDetails
* EncryptionOption: "STRING_VALUE",
* KmsKey: "STRING_VALUE",
* },
* },
* },
* },
* },
* },
* ],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,31 +59,31 @@ export interface BatchUpdateAutomationRulesCommandOutput extends BatchUpdateAuto
* ProductArn: [ // StringFilterList
* { // StringFilter
* Value: "STRING_VALUE",
* Comparison: "EQUALS" || "PREFIX" || "NOT_EQUALS" || "PREFIX_NOT_EQUALS",
* Comparison: "EQUALS" || "PREFIX" || "NOT_EQUALS" || "PREFIX_NOT_EQUALS" || "CONTAINS" || "NOT_CONTAINS",
* },
* ],
* AwsAccountId: [
* {
* Value: "STRING_VALUE",
* Comparison: "EQUALS" || "PREFIX" || "NOT_EQUALS" || "PREFIX_NOT_EQUALS",
* Comparison: "EQUALS" || "PREFIX" || "NOT_EQUALS" || "PREFIX_NOT_EQUALS" || "CONTAINS" || "NOT_CONTAINS",
* },
* ],
* Id: [
* {
* Value: "STRING_VALUE",
* Comparison: "EQUALS" || "PREFIX" || "NOT_EQUALS" || "PREFIX_NOT_EQUALS",
* Comparison: "EQUALS" || "PREFIX" || "NOT_EQUALS" || "PREFIX_NOT_EQUALS" || "CONTAINS" || "NOT_CONTAINS",
* },
* ],
* GeneratorId: [
* {
* Value: "STRING_VALUE",
* Comparison: "EQUALS" || "PREFIX" || "NOT_EQUALS" || "PREFIX_NOT_EQUALS",
* Comparison: "EQUALS" || "PREFIX" || "NOT_EQUALS" || "PREFIX_NOT_EQUALS" || "CONTAINS" || "NOT_CONTAINS",
* },
* ],
* Type: [
* {
* Value: "STRING_VALUE",
* Comparison: "EQUALS" || "PREFIX" || "NOT_EQUALS" || "PREFIX_NOT_EQUALS",
* Comparison: "EQUALS" || "PREFIX" || "NOT_EQUALS" || "PREFIX_NOT_EQUALS" || "CONTAINS" || "NOT_CONTAINS",
* },
* ],
* FirstObservedAt: [ // DateFilterList
Expand Down Expand Up @@ -154,14 +154,14 @@ export interface BatchUpdateAutomationRulesCommandOutput extends BatchUpdateAuto
* { // MapFilter
* Key: "STRING_VALUE",
* Value: "STRING_VALUE",
* Comparison: "EQUALS" || "NOT_EQUALS",
* Comparison: "EQUALS" || "NOT_EQUALS" || "CONTAINS" || "NOT_CONTAINS",
* },
* ],
* ResourceDetailsOther: [
* {
* Key: "STRING_VALUE",
* Value: "STRING_VALUE",
* Comparison: "EQUALS" || "NOT_EQUALS",
* Comparison: "EQUALS" || "NOT_EQUALS" || "CONTAINS" || "NOT_CONTAINS",
* },
* ],
* ComplianceStatus: "<StringFilterList>",
Expand All @@ -188,7 +188,7 @@ export interface BatchUpdateAutomationRulesCommandOutput extends BatchUpdateAuto
* {
* Key: "STRING_VALUE",
* Value: "STRING_VALUE",
* Comparison: "EQUALS" || "NOT_EQUALS",
* Comparison: "EQUALS" || "NOT_EQUALS" || "CONTAINS" || "NOT_CONTAINS",
* },
* ],
* },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,31 +58,31 @@ export interface CreateAutomationRuleCommandOutput extends CreateAutomationRuleR
* ProductArn: [ // StringFilterList
* { // StringFilter
* Value: "STRING_VALUE",
* Comparison: "EQUALS" || "PREFIX" || "NOT_EQUALS" || "PREFIX_NOT_EQUALS",
* Comparison: "EQUALS" || "PREFIX" || "NOT_EQUALS" || "PREFIX_NOT_EQUALS" || "CONTAINS" || "NOT_CONTAINS",
* },
* ],
* AwsAccountId: [
* {
* Value: "STRING_VALUE",
* Comparison: "EQUALS" || "PREFIX" || "NOT_EQUALS" || "PREFIX_NOT_EQUALS",
* Comparison: "EQUALS" || "PREFIX" || "NOT_EQUALS" || "PREFIX_NOT_EQUALS" || "CONTAINS" || "NOT_CONTAINS",
* },
* ],
* Id: [
* {
* Value: "STRING_VALUE",
* Comparison: "EQUALS" || "PREFIX" || "NOT_EQUALS" || "PREFIX_NOT_EQUALS",
* Comparison: "EQUALS" || "PREFIX" || "NOT_EQUALS" || "PREFIX_NOT_EQUALS" || "CONTAINS" || "NOT_CONTAINS",
* },
* ],
* GeneratorId: [
* {
* Value: "STRING_VALUE",
* Comparison: "EQUALS" || "PREFIX" || "NOT_EQUALS" || "PREFIX_NOT_EQUALS",
* Comparison: "EQUALS" || "PREFIX" || "NOT_EQUALS" || "PREFIX_NOT_EQUALS" || "CONTAINS" || "NOT_CONTAINS",
* },
* ],
* Type: [
* {
* Value: "STRING_VALUE",
* Comparison: "EQUALS" || "PREFIX" || "NOT_EQUALS" || "PREFIX_NOT_EQUALS",
* Comparison: "EQUALS" || "PREFIX" || "NOT_EQUALS" || "PREFIX_NOT_EQUALS" || "CONTAINS" || "NOT_CONTAINS",
* },
* ],
* FirstObservedAt: [ // DateFilterList
Expand Down Expand Up @@ -153,14 +153,14 @@ export interface CreateAutomationRuleCommandOutput extends CreateAutomationRuleR
* { // MapFilter
* Key: "STRING_VALUE",
* Value: "STRING_VALUE",
* Comparison: "EQUALS" || "NOT_EQUALS",
* Comparison: "EQUALS" || "NOT_EQUALS" || "CONTAINS" || "NOT_CONTAINS",
* },
* ],
* ResourceDetailsOther: [
* {
* Key: "STRING_VALUE",
* Value: "STRING_VALUE",
* Comparison: "EQUALS" || "NOT_EQUALS",
* Comparison: "EQUALS" || "NOT_EQUALS" || "CONTAINS" || "NOT_CONTAINS",
* },
* ],
* ComplianceStatus: "<StringFilterList>",
Expand All @@ -187,7 +187,7 @@ export interface CreateAutomationRuleCommandOutput extends CreateAutomationRuleR
* {
* Key: "STRING_VALUE",
* Value: "STRING_VALUE",
* Comparison: "EQUALS" || "NOT_EQUALS",
* Comparison: "EQUALS" || "NOT_EQUALS" || "CONTAINS" || "NOT_CONTAINS",
* },
* ],
* },
Expand Down
18 changes: 9 additions & 9 deletions clients/client-securityhub/src/commands/CreateInsightCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,31 +52,31 @@ export interface CreateInsightCommandOutput extends CreateInsightResponse, __Met
* ProductArn: [ // StringFilterList
* { // StringFilter
* Value: "STRING_VALUE",
* Comparison: "EQUALS" || "PREFIX" || "NOT_EQUALS" || "PREFIX_NOT_EQUALS",
* Comparison: "EQUALS" || "PREFIX" || "NOT_EQUALS" || "PREFIX_NOT_EQUALS" || "CONTAINS" || "NOT_CONTAINS",
* },
* ],
* AwsAccountId: [
* {
* Value: "STRING_VALUE",
* Comparison: "EQUALS" || "PREFIX" || "NOT_EQUALS" || "PREFIX_NOT_EQUALS",
* Comparison: "EQUALS" || "PREFIX" || "NOT_EQUALS" || "PREFIX_NOT_EQUALS" || "CONTAINS" || "NOT_CONTAINS",
* },
* ],
* Id: [
* {
* Value: "STRING_VALUE",
* Comparison: "EQUALS" || "PREFIX" || "NOT_EQUALS" || "PREFIX_NOT_EQUALS",
* Comparison: "EQUALS" || "PREFIX" || "NOT_EQUALS" || "PREFIX_NOT_EQUALS" || "CONTAINS" || "NOT_CONTAINS",
* },
* ],
* GeneratorId: [
* {
* Value: "STRING_VALUE",
* Comparison: "EQUALS" || "PREFIX" || "NOT_EQUALS" || "PREFIX_NOT_EQUALS",
* Comparison: "EQUALS" || "PREFIX" || "NOT_EQUALS" || "PREFIX_NOT_EQUALS" || "CONTAINS" || "NOT_CONTAINS",
* },
* ],
* Region: [
* {
* Value: "STRING_VALUE",
* Comparison: "EQUALS" || "PREFIX" || "NOT_EQUALS" || "PREFIX_NOT_EQUALS",
* Comparison: "EQUALS" || "PREFIX" || "NOT_EQUALS" || "PREFIX_NOT_EQUALS" || "CONTAINS" || "NOT_CONTAINS",
* },
* ],
* Type: "<StringFilterList>",
Expand Down Expand Up @@ -157,7 +157,7 @@ export interface CreateInsightCommandOutput extends CreateInsightResponse, __Met
* { // MapFilter
* Key: "STRING_VALUE",
* Value: "STRING_VALUE",
* Comparison: "EQUALS" || "NOT_EQUALS",
* Comparison: "EQUALS" || "NOT_EQUALS" || "CONTAINS" || "NOT_CONTAINS",
* },
* ],
* ProductName: "<StringFilterList>",
Expand All @@ -166,7 +166,7 @@ export interface CreateInsightCommandOutput extends CreateInsightResponse, __Met
* {
* Key: "STRING_VALUE",
* Value: "STRING_VALUE",
* Comparison: "EQUALS" || "NOT_EQUALS",
* Comparison: "EQUALS" || "NOT_EQUALS" || "CONTAINS" || "NOT_CONTAINS",
* },
* ],
* MalwareName: "<StringFilterList>",
Expand Down Expand Up @@ -235,7 +235,7 @@ export interface CreateInsightCommandOutput extends CreateInsightResponse, __Met
* {
* Key: "STRING_VALUE",
* Value: "STRING_VALUE",
* Comparison: "EQUALS" || "NOT_EQUALS",
* Comparison: "EQUALS" || "NOT_EQUALS" || "CONTAINS" || "NOT_CONTAINS",
* },
* ],
* ResourceAwsEc2InstanceType: "<StringFilterList>",
Expand Down Expand Up @@ -266,7 +266,7 @@ export interface CreateInsightCommandOutput extends CreateInsightResponse, __Met
* {
* Key: "STRING_VALUE",
* Value: "STRING_VALUE",
* Comparison: "EQUALS" || "NOT_EQUALS",
* Comparison: "EQUALS" || "NOT_EQUALS" || "CONTAINS" || "NOT_CONTAINS",
* },
* ],
* ComplianceStatus: "<StringFilterList>",
Expand Down
Loading

0 comments on commit e624fd2

Please sign in to comment.