From f268c073043e376bb921d74fb3ca8379fe36ccfc Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Tue, 24 Nov 2026 19:47:37 +0000 Subject: [PATCH] Regenerate client from commit bdcd026 of spec repo --- .generator/schemas/v2/openapi.yaml | 191 +++++++++++ .../GetAWSIdentityCenterAWSAccounts.java | 28 ++ .../com/datadog/api/client/ApiClient.java | 1 + .../client/v2/api/SecurityMonitoringApi.java | 140 +++++++++ ...MonitoringAWSIdentityCenterAWSAccount.java | 279 +++++++++++++++++ ...WSIdentityCenterAWSAccountsAttributes.java | 239 ++++++++++++++ ...oringAWSIdentityCenterAWSAccountsData.java | 225 +++++++++++++ ...IdentityCenterAWSAccountsResourceType.java | 68 ++++ ...gAWSIdentityCenterAWSAccountsResponse.java | 160 ++++++++++ ...nterIntegrationConfigCreateAttributes.java | 268 ++++++++++++++++ ...nterIntegrationConfigUpdateAttributes.java | 296 ++++++++++++++++++ ...ringIntegrationConfigCreateAttributes.java | 108 +++++++ ...ringIntegrationConfigUpdateAttributes.java | 108 +++++++ .../SecurityMonitoringIntegrationType.java | 10 +- ...oringIntegrationTypeAWSIdentityCenter.java | 63 ++++ .../client/v2/api/security_monitoring.feature | 7 + .../com/datadog/api/client/v2/api/undo.json | 6 + 17 files changed, 2196 insertions(+), 1 deletion(-) create mode 100644 examples/v2/security-monitoring/GetAWSIdentityCenterAWSAccounts.java create mode 100644 src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringAWSIdentityCenterAWSAccount.java create mode 100644 src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringAWSIdentityCenterAWSAccountsAttributes.java create mode 100644 src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringAWSIdentityCenterAWSAccountsData.java create mode 100644 src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringAWSIdentityCenterAWSAccountsResourceType.java create mode 100644 src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringAWSIdentityCenterAWSAccountsResponse.java create mode 100644 src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringAWSIdentityCenterIntegrationConfigCreateAttributes.java create mode 100644 src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringAWSIdentityCenterIntegrationConfigUpdateAttributes.java create mode 100644 src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringIntegrationTypeAWSIdentityCenter.java diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index 9e9835c3f78..c6a5798c5a1 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -131811,6 +131811,137 @@ components: x-enum-varnames: - DONE - TIMEOUT + SecurityMonitoringAWSIdentityCenterAWSAccount: + description: An integrated AWS account the AWS IAM Identity Center integration reads users from. + properties: + account_config_id: + description: The ID of the AWS account integration configuration. + example: 11111111-2222-3333-4444-555555555555 + type: string + account_id: + description: The AWS account ID. + example: "111122223333" + type: string + account_name: + description: The name of the AWS account integration. + example: management + type: string + collecting_users: + description: Whether AWS IAM Identity Center users were collected from this AWS account. + example: false + type: boolean + resource_collection_enabled: + description: Whether resource collection is enabled for this AWS account. + example: true + type: boolean + required: + - account_id + - account_config_id + - account_name + - resource_collection_enabled + - collecting_users + type: object + SecurityMonitoringAWSIdentityCenterAWSAccountsAttributes: + description: The attributes of the AWS IAM Identity Center AWS account prerequisites. + properties: + aws_accounts: + description: |- + The integrated AWS accounts that users are read from, including AWS Organization management accounts + and any accounts that users were collected from. + items: + $ref: "#/components/schemas/SecurityMonitoringAWSIdentityCenterAWSAccount" + type: array + has_valid_prerequisite: + description: Whether AWS IAM Identity Center users were collected for the organization. + example: false + type: boolean + reason: + description: The missing setup step when `has_valid_prerequisite` is `false`. + example: Resource collection on an AWS Organization management account is required + type: string + required: + - aws_accounts + - has_valid_prerequisite + type: object + SecurityMonitoringAWSIdentityCenterAWSAccountsData: + description: The AWS account prerequisites for the AWS IAM Identity Center integration. + properties: + attributes: + $ref: "#/components/schemas/SecurityMonitoringAWSIdentityCenterAWSAccountsAttributes" + id: + description: The ID of the organization the AWS accounts belong to. + example: "123456" + type: string + type: + $ref: "#/components/schemas/SecurityMonitoringAWSIdentityCenterAWSAccountsResourceType" + required: + - id + - type + - attributes + type: object + SecurityMonitoringAWSIdentityCenterAWSAccountsResourceType: + default: aws_identity_center_aws_accounts + description: The type of the resource. The value should always be `aws_identity_center_aws_accounts`. + enum: + - aws_identity_center_aws_accounts + example: aws_identity_center_aws_accounts + type: string + x-enum-varnames: + - AWS_IDENTITY_CENTER_AWS_ACCOUNTS + SecurityMonitoringAWSIdentityCenterAWSAccountsResponse: + description: Response containing the AWS account prerequisites for the AWS IAM Identity Center integration. + properties: + data: + $ref: "#/components/schemas/SecurityMonitoringAWSIdentityCenterAWSAccountsData" + required: + - data + type: object + SecurityMonitoringAWSIdentityCenterIntegrationConfigCreateAttributes: + description: |- + The attributes of an AWS IAM Identity Center entity context sync configuration to create. The sync reads + the users that the AWS integration collects, so it doesn't require any secrets. + properties: + domain: + description: The domain associated with the external entity source. + example: default + type: string + integration_type: + $ref: "#/components/schemas/SecurityMonitoringIntegrationTypeAWSIdentityCenter" + name: + description: The display name for the entity context sync configuration. + example: AWS IAM Identity Center + type: string + settings: + $ref: "#/components/schemas/SecurityMonitoringIntegrationConfigSettings" + required: + - integration_type + - domain + - name + type: object + SecurityMonitoringAWSIdentityCenterIntegrationConfigUpdateAttributes: + description: |- + Fields to update on an AWS IAM Identity Center entity context sync configuration. Enabling the sync requires + the AWS integration to have collected AWS IAM Identity Center users. + properties: + domain: + description: The new domain associated with the external entity source. + example: default + type: string + enabled: + description: Whether the entity context sync should be enabled. + example: true + type: boolean + integration_type: + $ref: "#/components/schemas/SecurityMonitoringIntegrationTypeAWSIdentityCenter" + name: + description: The new display name for the entity context sync configuration. + example: AWS IAM Identity Center (renamed) + type: string + settings: + $ref: "#/components/schemas/SecurityMonitoringIntegrationConfigSettings" + required: + - integration_type + type: object SecurityMonitoringAzureAppRegistration: description: An Azure App Registration discovered for the organization. properties: @@ -133993,6 +134124,7 @@ components: - $ref: "#/components/schemas/SecurityMonitoringGoogleWorkspaceIntegrationConfigCreateAttributes" - $ref: "#/components/schemas/SecurityMonitoringOktaIntegrationConfigCreateAttributes" - $ref: "#/components/schemas/SecurityMonitoringEntraIdIntegrationConfigCreateAttributes" + - $ref: "#/components/schemas/SecurityMonitoringAWSIdentityCenterIntegrationConfigCreateAttributes" - $ref: "#/components/schemas/SecurityMonitoringCrowdStrikeIntegrationConfigCreateAttributes" - $ref: "#/components/schemas/SecurityMonitoringSentinelOneIntegrationConfigCreateAttributes" SecurityMonitoringIntegrationConfigCreateData: @@ -134144,6 +134276,7 @@ components: - $ref: "#/components/schemas/SecurityMonitoringGoogleWorkspaceIntegrationConfigUpdateAttributes" - $ref: "#/components/schemas/SecurityMonitoringOktaIntegrationConfigUpdateAttributes" - $ref: "#/components/schemas/SecurityMonitoringEntraIdIntegrationConfigUpdateAttributes" + - $ref: "#/components/schemas/SecurityMonitoringAWSIdentityCenterIntegrationConfigUpdateAttributes" - $ref: "#/components/schemas/SecurityMonitoringCrowdStrikeIntegrationConfigUpdateAttributes" - $ref: "#/components/schemas/SecurityMonitoringSentinelOneIntegrationConfigUpdateAttributes" SecurityMonitoringIntegrationConfigUpdateData: @@ -134209,6 +134342,7 @@ components: - GOOGLE_WORKSPACE - OKTA - ENTRA_ID + - AWS_IDENTITY_CENTER - CROWDSTRIKE - SENTINELONE example: GOOGLE_WORKSPACE @@ -134217,8 +134351,17 @@ components: - GOOGLE_WORKSPACE - OKTA - ENTRA_ID + - AWS_IDENTITY_CENTER - CROWDSTRIKE - SENTINELONE + SecurityMonitoringIntegrationTypeAWSIdentityCenter: + description: The source type for an AWS IAM Identity Center entity context sync. + enum: + - AWS_IDENTITY_CENTER + example: AWS_IDENTITY_CENTER + type: string + x-enum-varnames: + - AWS_IDENTITY_CENTER SecurityMonitoringIntegrationTypeCrowdStrike: description: The source type for a CrowdStrike entity context sync. enum: @@ -261574,6 +261717,54 @@ paths: x-unstable: |- **Note**: This endpoint is in preview and is subject to change. If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/). + /api/v2/security_monitoring/configuration/integration_config/aws_identity_center/aws_accounts: + get: + description: |- + Get the integrated AWS accounts that the AWS IAM Identity Center entity context sync reads users from, and + whether users have been collected from them. Collected users are a prerequisite for creating or enabling the + AWS IAM Identity Center entity context sync configuration. The accounts include AWS Organization management + accounts and any accounts that users were collected from. + operationId: GetAWSIdentityCenterAWSAccounts + responses: + "200": + content: + application/json: + examples: + default: + value: + data: + attributes: + aws_accounts: + - account_config_id: 11111111-2222-3333-4444-555555555555 + account_id: "111122223333" + account_name: management + collecting_users: false + resource_collection_enabled: true + has_valid_prerequisite: false + reason: AWS IAM Identity Center users collected from an AWS Organization management account are required + id: "123456" + type: aws_identity_center_aws_accounts + schema: + $ref: "#/components/schemas/SecurityMonitoringAWSIdentityCenterAWSAccountsResponse" + description: OK + "403": + $ref: "#/components/responses/NotAuthorizedResponse" + "429": + $ref: "#/components/responses/TooManyRequestsResponse" + security: + - apiKeyAuth: [] + appKeyAuth: [] + - AuthZ: + - integrations_read + summary: Get AWS IAM Identity Center account prerequisites + tags: ["Security Monitoring"] + x-permission: + operator: OR + permissions: + - integrations_read + x-unstable: |- + **Note**: This endpoint is in preview and is subject to change. + If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/). /api/v2/security_monitoring/configuration/integration_config/entra_id/azure_app_registrations: get: description: |- diff --git a/examples/v2/security-monitoring/GetAWSIdentityCenterAWSAccounts.java b/examples/v2/security-monitoring/GetAWSIdentityCenterAWSAccounts.java new file mode 100644 index 00000000000..1b7d1492ac3 --- /dev/null +++ b/examples/v2/security-monitoring/GetAWSIdentityCenterAWSAccounts.java @@ -0,0 +1,28 @@ +// Get AWS IAM Identity Center account prerequisites returns "OK" response + +import com.datadog.api.client.ApiClient; +import com.datadog.api.client.ApiException; +import com.datadog.api.client.v2.api.SecurityMonitoringApi; +import com.datadog.api.client.v2.model.SecurityMonitoringAWSIdentityCenterAWSAccountsResponse; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = ApiClient.getDefaultApiClient(); + defaultClient.setAccessToken(System.getenv("DD_BEARER_TOKEN")); + defaultClient.setUnstableOperationEnabled("v2.getAWSIdentityCenterAWSAccounts", true); + SecurityMonitoringApi apiInstance = new SecurityMonitoringApi(defaultClient); + + try { + SecurityMonitoringAWSIdentityCenterAWSAccountsResponse result = + apiInstance.getAWSIdentityCenterAWSAccounts(); + System.out.println(result); + } catch (ApiException e) { + System.err.println( + "Exception when calling SecurityMonitoringApi#getAWSIdentityCenterAWSAccounts"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} diff --git a/src/main/java/com/datadog/api/client/ApiClient.java b/src/main/java/com/datadog/api/client/ApiClient.java index e1726d750e5..2bd05d61dbe 100644 --- a/src/main/java/com/datadog/api/client/ApiClient.java +++ b/src/main/java/com/datadog/api/client/ApiClient.java @@ -1260,6 +1260,7 @@ public class ApiClient { put("v2.disableSecurityFindingsAutomationDefaultInboxRule", false); put("v2.enableSecurityFindingsAutomationDefaultInboxRule", false); put("v2.exportSecurityMonitoringTerraformResource", false); + put("v2.getAWSIdentityCenterAWSAccounts", false); put("v2.getContentPacksStates", false); put("v2.getEntityContext", false); put("v2.getEntityContextRecentlyUpdated", false); diff --git a/src/main/java/com/datadog/api/client/v2/api/SecurityMonitoringApi.java b/src/main/java/com/datadog/api/client/v2/api/SecurityMonitoringApi.java index 536c9fb0dc1..59ea99e9a66 100644 --- a/src/main/java/com/datadog/api/client/v2/api/SecurityMonitoringApi.java +++ b/src/main/java/com/datadog/api/client/v2/api/SecurityMonitoringApi.java @@ -116,6 +116,7 @@ import com.datadog.api.client.v2.model.SecurityFindingsSearchRequestDataAttributes; import com.datadog.api.client.v2.model.SecurityFindingsSearchRequestPage; import com.datadog.api.client.v2.model.SecurityFindingsSort; +import com.datadog.api.client.v2.model.SecurityMonitoringAWSIdentityCenterAWSAccountsResponse; import com.datadog.api.client.v2.model.SecurityMonitoringBatchMigrationCreateRequest; import com.datadog.api.client.v2.model.SecurityMonitoringBatchMigrationPublishRequest; import com.datadog.api.client.v2.model.SecurityMonitoringBatchMigrationPublishResponse; @@ -11655,6 +11656,145 @@ public SecurityMonitoringTerraformExportResponse exportSecurityMonitoringTerrafo new GenericType() {}); } + /** + * Get AWS IAM Identity Center account prerequisites. + * + *

See {@link #getAWSIdentityCenterAWSAccountsWithHttpInfo}. + * + * @return SecurityMonitoringAWSIdentityCenterAWSAccountsResponse + * @throws ApiException if fails to make API call + */ + public SecurityMonitoringAWSIdentityCenterAWSAccountsResponse getAWSIdentityCenterAWSAccounts() + throws ApiException { + return getAWSIdentityCenterAWSAccountsWithHttpInfo().getData(); + } + + /** + * Get AWS IAM Identity Center account prerequisites. + * + *

See {@link #getAWSIdentityCenterAWSAccountsWithHttpInfoAsync}. + * + * @return CompletableFuture<SecurityMonitoringAWSIdentityCenterAWSAccountsResponse> + */ + public CompletableFuture + getAWSIdentityCenterAWSAccountsAsync() { + return getAWSIdentityCenterAWSAccountsWithHttpInfoAsync() + .thenApply( + response -> { + return response.getData(); + }); + } + + /** + * Get the integrated AWS accounts that the AWS IAM Identity Center entity context sync reads + * users from, and whether users have been collected from them. Collected users are a prerequisite + * for creating or enabling the AWS IAM Identity Center entity context sync configuration. The + * accounts include AWS Organization management accounts and any accounts that users were + * collected from. + * + * @return ApiResponse<SecurityMonitoringAWSIdentityCenterAWSAccountsResponse> + * @throws ApiException if fails to make API call + * @http.response.details + * + * + * + * + * + * + *
Response details
Status Code Description Response Headers
200 OK -
403 Not Authorized -
429 Too many requests -
+ */ + public ApiResponse + getAWSIdentityCenterAWSAccountsWithHttpInfo() throws ApiException { + // Check if unstable operation is enabled + String operationId = "getAWSIdentityCenterAWSAccounts"; + if (apiClient.isUnstableOperationEnabled("v2." + operationId)) { + apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId)); + } else { + throw new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId)); + } + Object localVarPostBody = null; + // create path and map variables + String localVarPath = + "/api/v2/security_monitoring/configuration/integration_config/aws_identity_center/aws_accounts"; + + Map localVarHeaderParams = new HashMap(); + + Invocation.Builder builder = + apiClient.createBuilder( + "v2.SecurityMonitoringApi.getAWSIdentityCenterAWSAccounts", + localVarPath, + new ArrayList(), + localVarHeaderParams, + new HashMap(), + new String[] {"application/json"}, + new String[] {"apiKeyAuth", "appKeyAuth", "AuthZ"}); + return apiClient.invokeAPI( + "GET", + builder, + localVarHeaderParams, + new String[] {}, + localVarPostBody, + new HashMap(), + false, + new GenericType() {}); + } + + /** + * Get AWS IAM Identity Center account prerequisites. + * + *

See {@link #getAWSIdentityCenterAWSAccountsWithHttpInfo}. + * + * @return + * CompletableFuture<ApiResponse<SecurityMonitoringAWSIdentityCenterAWSAccountsResponse>> + */ + public CompletableFuture> + getAWSIdentityCenterAWSAccountsWithHttpInfoAsync() { + // Check if unstable operation is enabled + String operationId = "getAWSIdentityCenterAWSAccounts"; + if (apiClient.isUnstableOperationEnabled("v2." + operationId)) { + apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId)); + } else { + CompletableFuture> + result = new CompletableFuture<>(); + result.completeExceptionally( + new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId))); + return result; + } + Object localVarPostBody = null; + // create path and map variables + String localVarPath = + "/api/v2/security_monitoring/configuration/integration_config/aws_identity_center/aws_accounts"; + + Map localVarHeaderParams = new HashMap(); + + Invocation.Builder builder; + try { + builder = + apiClient.createBuilder( + "v2.SecurityMonitoringApi.getAWSIdentityCenterAWSAccounts", + localVarPath, + new ArrayList(), + localVarHeaderParams, + new HashMap(), + new String[] {"application/json"}, + new String[] {"apiKeyAuth", "appKeyAuth", "AuthZ"}); + } catch (ApiException ex) { + CompletableFuture> + result = new CompletableFuture<>(); + result.completeExceptionally(ex); + return result; + } + return apiClient.invokeAPIAsync( + "GET", + builder, + localVarHeaderParams, + new String[] {}, + localVarPostBody, + new HashMap(), + false, + new GenericType() {}); + } + /** * Get content pack states. * diff --git a/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringAWSIdentityCenterAWSAccount.java b/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringAWSIdentityCenterAWSAccount.java new file mode 100644 index 00000000000..ff3bcdd9d3d --- /dev/null +++ b/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringAWSIdentityCenterAWSAccount.java @@ -0,0 +1,279 @@ +/* + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2019-Present Datadog, Inc. + */ + +package com.datadog.api.client.v2.model; + +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +/** An integrated AWS account the AWS IAM Identity Center integration reads users from. */ +@JsonPropertyOrder({ + SecurityMonitoringAWSIdentityCenterAWSAccount.JSON_PROPERTY_ACCOUNT_CONFIG_ID, + SecurityMonitoringAWSIdentityCenterAWSAccount.JSON_PROPERTY_ACCOUNT_ID, + SecurityMonitoringAWSIdentityCenterAWSAccount.JSON_PROPERTY_ACCOUNT_NAME, + SecurityMonitoringAWSIdentityCenterAWSAccount.JSON_PROPERTY_COLLECTING_USERS, + SecurityMonitoringAWSIdentityCenterAWSAccount.JSON_PROPERTY_RESOURCE_COLLECTION_ENABLED +}) +@jakarta.annotation.Generated( + value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") +public class SecurityMonitoringAWSIdentityCenterAWSAccount { + @JsonIgnore public boolean unparsed = false; + public static final String JSON_PROPERTY_ACCOUNT_CONFIG_ID = "account_config_id"; + private String accountConfigId; + + public static final String JSON_PROPERTY_ACCOUNT_ID = "account_id"; + private String accountId; + + public static final String JSON_PROPERTY_ACCOUNT_NAME = "account_name"; + private String accountName; + + public static final String JSON_PROPERTY_COLLECTING_USERS = "collecting_users"; + private Boolean collectingUsers; + + public static final String JSON_PROPERTY_RESOURCE_COLLECTION_ENABLED = + "resource_collection_enabled"; + private Boolean resourceCollectionEnabled; + + public SecurityMonitoringAWSIdentityCenterAWSAccount() {} + + @JsonCreator + public SecurityMonitoringAWSIdentityCenterAWSAccount( + @JsonProperty(required = true, value = JSON_PROPERTY_ACCOUNT_CONFIG_ID) + String accountConfigId, + @JsonProperty(required = true, value = JSON_PROPERTY_ACCOUNT_ID) String accountId, + @JsonProperty(required = true, value = JSON_PROPERTY_ACCOUNT_NAME) String accountName, + @JsonProperty(required = true, value = JSON_PROPERTY_COLLECTING_USERS) + Boolean collectingUsers, + @JsonProperty(required = true, value = JSON_PROPERTY_RESOURCE_COLLECTION_ENABLED) + Boolean resourceCollectionEnabled) { + this.accountConfigId = accountConfigId; + this.accountId = accountId; + this.accountName = accountName; + this.collectingUsers = collectingUsers; + this.resourceCollectionEnabled = resourceCollectionEnabled; + } + + public SecurityMonitoringAWSIdentityCenterAWSAccount accountConfigId(String accountConfigId) { + this.accountConfigId = accountConfigId; + return this; + } + + /** + * The ID of the AWS account integration configuration. + * + * @return accountConfigId + */ + @JsonProperty(JSON_PROPERTY_ACCOUNT_CONFIG_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getAccountConfigId() { + return accountConfigId; + } + + public void setAccountConfigId(String accountConfigId) { + this.accountConfigId = accountConfigId; + } + + public SecurityMonitoringAWSIdentityCenterAWSAccount accountId(String accountId) { + this.accountId = accountId; + return this; + } + + /** + * The AWS account ID. + * + * @return accountId + */ + @JsonProperty(JSON_PROPERTY_ACCOUNT_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getAccountId() { + return accountId; + } + + public void setAccountId(String accountId) { + this.accountId = accountId; + } + + public SecurityMonitoringAWSIdentityCenterAWSAccount accountName(String accountName) { + this.accountName = accountName; + return this; + } + + /** + * The name of the AWS account integration. + * + * @return accountName + */ + @JsonProperty(JSON_PROPERTY_ACCOUNT_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getAccountName() { + return accountName; + } + + public void setAccountName(String accountName) { + this.accountName = accountName; + } + + public SecurityMonitoringAWSIdentityCenterAWSAccount collectingUsers(Boolean collectingUsers) { + this.collectingUsers = collectingUsers; + return this; + } + + /** + * Whether AWS IAM Identity Center users were collected from this AWS account. + * + * @return collectingUsers + */ + @JsonProperty(JSON_PROPERTY_COLLECTING_USERS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public Boolean getCollectingUsers() { + return collectingUsers; + } + + public void setCollectingUsers(Boolean collectingUsers) { + this.collectingUsers = collectingUsers; + } + + public SecurityMonitoringAWSIdentityCenterAWSAccount resourceCollectionEnabled( + Boolean resourceCollectionEnabled) { + this.resourceCollectionEnabled = resourceCollectionEnabled; + return this; + } + + /** + * Whether resource collection is enabled for this AWS account. + * + * @return resourceCollectionEnabled + */ + @JsonProperty(JSON_PROPERTY_RESOURCE_COLLECTION_ENABLED) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public Boolean getResourceCollectionEnabled() { + return resourceCollectionEnabled; + } + + public void setResourceCollectionEnabled(Boolean resourceCollectionEnabled) { + this.resourceCollectionEnabled = resourceCollectionEnabled; + } + + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SecurityMonitoringAWSIdentityCenterAWSAccount + */ + @JsonAnySetter + public SecurityMonitoringAWSIdentityCenterAWSAccount putAdditionalProperty( + String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + /** Return true if this SecurityMonitoringAWSIdentityCenterAWSAccount object is equal to o. */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SecurityMonitoringAWSIdentityCenterAWSAccount securityMonitoringAwsIdentityCenterAwsAccount = + (SecurityMonitoringAWSIdentityCenterAWSAccount) o; + return Objects.equals( + this.accountConfigId, securityMonitoringAwsIdentityCenterAwsAccount.accountConfigId) + && Objects.equals(this.accountId, securityMonitoringAwsIdentityCenterAwsAccount.accountId) + && Objects.equals( + this.accountName, securityMonitoringAwsIdentityCenterAwsAccount.accountName) + && Objects.equals( + this.collectingUsers, securityMonitoringAwsIdentityCenterAwsAccount.collectingUsers) + && Objects.equals( + this.resourceCollectionEnabled, + securityMonitoringAwsIdentityCenterAwsAccount.resourceCollectionEnabled) + && Objects.equals( + this.additionalProperties, + securityMonitoringAwsIdentityCenterAwsAccount.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash( + accountConfigId, + accountId, + accountName, + collectingUsers, + resourceCollectionEnabled, + additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SecurityMonitoringAWSIdentityCenterAWSAccount {\n"); + sb.append(" accountConfigId: ").append(toIndentedString(accountConfigId)).append("\n"); + sb.append(" accountId: ").append(toIndentedString(accountId)).append("\n"); + sb.append(" accountName: ").append(toIndentedString(accountName)).append("\n"); + sb.append(" collectingUsers: ").append(toIndentedString(collectingUsers)).append("\n"); + sb.append(" resourceCollectionEnabled: ") + .append(toIndentedString(resourceCollectionEnabled)) + .append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); + sb.append('}'); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} diff --git a/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringAWSIdentityCenterAWSAccountsAttributes.java b/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringAWSIdentityCenterAWSAccountsAttributes.java new file mode 100644 index 00000000000..4f8cc49c96a --- /dev/null +++ b/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringAWSIdentityCenterAWSAccountsAttributes.java @@ -0,0 +1,239 @@ +/* + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2019-Present Datadog, Inc. + */ + +package com.datadog.api.client.v2.model; + +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; + +/** The attributes of the AWS IAM Identity Center AWS account prerequisites. */ +@JsonPropertyOrder({ + SecurityMonitoringAWSIdentityCenterAWSAccountsAttributes.JSON_PROPERTY_AWS_ACCOUNTS, + SecurityMonitoringAWSIdentityCenterAWSAccountsAttributes.JSON_PROPERTY_HAS_VALID_PREREQUISITE, + SecurityMonitoringAWSIdentityCenterAWSAccountsAttributes.JSON_PROPERTY_REASON +}) +@jakarta.annotation.Generated( + value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") +public class SecurityMonitoringAWSIdentityCenterAWSAccountsAttributes { + @JsonIgnore public boolean unparsed = false; + public static final String JSON_PROPERTY_AWS_ACCOUNTS = "aws_accounts"; + private List awsAccounts = new ArrayList<>(); + + public static final String JSON_PROPERTY_HAS_VALID_PREREQUISITE = "has_valid_prerequisite"; + private Boolean hasValidPrerequisite; + + public static final String JSON_PROPERTY_REASON = "reason"; + private String reason; + + public SecurityMonitoringAWSIdentityCenterAWSAccountsAttributes() {} + + @JsonCreator + public SecurityMonitoringAWSIdentityCenterAWSAccountsAttributes( + @JsonProperty(required = true, value = JSON_PROPERTY_AWS_ACCOUNTS) + List awsAccounts, + @JsonProperty(required = true, value = JSON_PROPERTY_HAS_VALID_PREREQUISITE) + Boolean hasValidPrerequisite) { + this.awsAccounts = awsAccounts; + for (SecurityMonitoringAWSIdentityCenterAWSAccount item : awsAccounts) { + this.unparsed |= item.unparsed; + } + this.hasValidPrerequisite = hasValidPrerequisite; + } + + public SecurityMonitoringAWSIdentityCenterAWSAccountsAttributes awsAccounts( + List awsAccounts) { + this.awsAccounts = awsAccounts; + for (SecurityMonitoringAWSIdentityCenterAWSAccount item : awsAccounts) { + this.unparsed |= item.unparsed; + } + return this; + } + + public SecurityMonitoringAWSIdentityCenterAWSAccountsAttributes addAwsAccountsItem( + SecurityMonitoringAWSIdentityCenterAWSAccount awsAccountsItem) { + this.awsAccounts.add(awsAccountsItem); + this.unparsed |= awsAccountsItem.unparsed; + return this; + } + + /** + * The integrated AWS accounts that users are read from, including AWS Organization management + * accounts and any accounts that users were collected from. + * + * @return awsAccounts + */ + @JsonProperty(JSON_PROPERTY_AWS_ACCOUNTS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public List getAwsAccounts() { + return awsAccounts; + } + + public void setAwsAccounts(List awsAccounts) { + this.awsAccounts = awsAccounts; + if (awsAccounts != null) { + for (SecurityMonitoringAWSIdentityCenterAWSAccount item : awsAccounts) { + this.unparsed |= item.unparsed; + } + } + } + + public SecurityMonitoringAWSIdentityCenterAWSAccountsAttributes hasValidPrerequisite( + Boolean hasValidPrerequisite) { + this.hasValidPrerequisite = hasValidPrerequisite; + return this; + } + + /** + * Whether AWS IAM Identity Center users were collected for the organization. + * + * @return hasValidPrerequisite + */ + @JsonProperty(JSON_PROPERTY_HAS_VALID_PREREQUISITE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public Boolean getHasValidPrerequisite() { + return hasValidPrerequisite; + } + + public void setHasValidPrerequisite(Boolean hasValidPrerequisite) { + this.hasValidPrerequisite = hasValidPrerequisite; + } + + public SecurityMonitoringAWSIdentityCenterAWSAccountsAttributes reason(String reason) { + this.reason = reason; + return this; + } + + /** + * The missing setup step when has_valid_prerequisite is false. + * + * @return reason + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_REASON) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getReason() { + return reason; + } + + public void setReason(String reason) { + this.reason = reason; + } + + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SecurityMonitoringAWSIdentityCenterAWSAccountsAttributes + */ + @JsonAnySetter + public SecurityMonitoringAWSIdentityCenterAWSAccountsAttributes putAdditionalProperty( + String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + /** + * Return true if this SecurityMonitoringAWSIdentityCenterAWSAccountsAttributes object is equal to + * o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SecurityMonitoringAWSIdentityCenterAWSAccountsAttributes + securityMonitoringAwsIdentityCenterAwsAccountsAttributes = + (SecurityMonitoringAWSIdentityCenterAWSAccountsAttributes) o; + return Objects.equals( + this.awsAccounts, securityMonitoringAwsIdentityCenterAwsAccountsAttributes.awsAccounts) + && Objects.equals( + this.hasValidPrerequisite, + securityMonitoringAwsIdentityCenterAwsAccountsAttributes.hasValidPrerequisite) + && Objects.equals( + this.reason, securityMonitoringAwsIdentityCenterAwsAccountsAttributes.reason) + && Objects.equals( + this.additionalProperties, + securityMonitoringAwsIdentityCenterAwsAccountsAttributes.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash(awsAccounts, hasValidPrerequisite, reason, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SecurityMonitoringAWSIdentityCenterAWSAccountsAttributes {\n"); + sb.append(" awsAccounts: ").append(toIndentedString(awsAccounts)).append("\n"); + sb.append(" hasValidPrerequisite: ") + .append(toIndentedString(hasValidPrerequisite)) + .append("\n"); + sb.append(" reason: ").append(toIndentedString(reason)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); + sb.append('}'); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} diff --git a/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringAWSIdentityCenterAWSAccountsData.java b/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringAWSIdentityCenterAWSAccountsData.java new file mode 100644 index 00000000000..8660608f8f9 --- /dev/null +++ b/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringAWSIdentityCenterAWSAccountsData.java @@ -0,0 +1,225 @@ +/* + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2019-Present Datadog, Inc. + */ + +package com.datadog.api.client.v2.model; + +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +/** The AWS account prerequisites for the AWS IAM Identity Center integration. */ +@JsonPropertyOrder({ + SecurityMonitoringAWSIdentityCenterAWSAccountsData.JSON_PROPERTY_ATTRIBUTES, + SecurityMonitoringAWSIdentityCenterAWSAccountsData.JSON_PROPERTY_ID, + SecurityMonitoringAWSIdentityCenterAWSAccountsData.JSON_PROPERTY_TYPE +}) +@jakarta.annotation.Generated( + value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") +public class SecurityMonitoringAWSIdentityCenterAWSAccountsData { + @JsonIgnore public boolean unparsed = false; + public static final String JSON_PROPERTY_ATTRIBUTES = "attributes"; + private SecurityMonitoringAWSIdentityCenterAWSAccountsAttributes attributes; + + public static final String JSON_PROPERTY_ID = "id"; + private String id; + + public static final String JSON_PROPERTY_TYPE = "type"; + private SecurityMonitoringAWSIdentityCenterAWSAccountsResourceType type = + SecurityMonitoringAWSIdentityCenterAWSAccountsResourceType.AWS_IDENTITY_CENTER_AWS_ACCOUNTS; + + public SecurityMonitoringAWSIdentityCenterAWSAccountsData() {} + + @JsonCreator + public SecurityMonitoringAWSIdentityCenterAWSAccountsData( + @JsonProperty(required = true, value = JSON_PROPERTY_ATTRIBUTES) + SecurityMonitoringAWSIdentityCenterAWSAccountsAttributes attributes, + @JsonProperty(required = true, value = JSON_PROPERTY_ID) String id, + @JsonProperty(required = true, value = JSON_PROPERTY_TYPE) + SecurityMonitoringAWSIdentityCenterAWSAccountsResourceType type) { + this.attributes = attributes; + this.unparsed |= attributes.unparsed; + this.id = id; + this.type = type; + this.unparsed |= !type.isValid(); + } + + public SecurityMonitoringAWSIdentityCenterAWSAccountsData attributes( + SecurityMonitoringAWSIdentityCenterAWSAccountsAttributes attributes) { + this.attributes = attributes; + this.unparsed |= attributes.unparsed; + return this; + } + + /** + * The attributes of the AWS IAM Identity Center AWS account prerequisites. + * + * @return attributes + */ + @JsonProperty(JSON_PROPERTY_ATTRIBUTES) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public SecurityMonitoringAWSIdentityCenterAWSAccountsAttributes getAttributes() { + return attributes; + } + + public void setAttributes(SecurityMonitoringAWSIdentityCenterAWSAccountsAttributes attributes) { + this.attributes = attributes; + if (attributes != null) { + this.unparsed |= attributes.unparsed; + } + } + + public SecurityMonitoringAWSIdentityCenterAWSAccountsData id(String id) { + this.id = id; + return this; + } + + /** + * The ID of the organization the AWS accounts belong to. + * + * @return id + */ + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public SecurityMonitoringAWSIdentityCenterAWSAccountsData type( + SecurityMonitoringAWSIdentityCenterAWSAccountsResourceType type) { + this.type = type; + this.unparsed |= !type.isValid(); + return this; + } + + /** + * The type of the resource. The value should always be aws_identity_center_aws_accounts + * . + * + * @return type + */ + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public SecurityMonitoringAWSIdentityCenterAWSAccountsResourceType getType() { + return type; + } + + public void setType(SecurityMonitoringAWSIdentityCenterAWSAccountsResourceType type) { + if (!type.isValid()) { + this.unparsed = true; + } + this.type = type; + } + + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SecurityMonitoringAWSIdentityCenterAWSAccountsData + */ + @JsonAnySetter + public SecurityMonitoringAWSIdentityCenterAWSAccountsData putAdditionalProperty( + String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + /** + * Return true if this SecurityMonitoringAWSIdentityCenterAWSAccountsData object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SecurityMonitoringAWSIdentityCenterAWSAccountsData + securityMonitoringAwsIdentityCenterAwsAccountsData = + (SecurityMonitoringAWSIdentityCenterAWSAccountsData) o; + return Objects.equals( + this.attributes, securityMonitoringAwsIdentityCenterAwsAccountsData.attributes) + && Objects.equals(this.id, securityMonitoringAwsIdentityCenterAwsAccountsData.id) + && Objects.equals(this.type, securityMonitoringAwsIdentityCenterAwsAccountsData.type) + && Objects.equals( + this.additionalProperties, + securityMonitoringAwsIdentityCenterAwsAccountsData.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash(attributes, id, type, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SecurityMonitoringAWSIdentityCenterAWSAccountsData {\n"); + sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); + sb.append('}'); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} diff --git a/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringAWSIdentityCenterAWSAccountsResourceType.java b/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringAWSIdentityCenterAWSAccountsResourceType.java new file mode 100644 index 00000000000..075b4cfe7e6 --- /dev/null +++ b/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringAWSIdentityCenterAWSAccountsResourceType.java @@ -0,0 +1,68 @@ +/* + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2019-Present Datadog, Inc. + */ + +package com.datadog.api.client.v2.model; + +import com.datadog.api.client.ModelEnum; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonProcessingException; +import com.fasterxml.jackson.databind.SerializerProvider; +import com.fasterxml.jackson.databind.annotation.JsonSerialize; +import com.fasterxml.jackson.databind.ser.std.StdSerializer; +import java.io.IOException; +import java.util.Arrays; +import java.util.HashSet; +import java.util.Set; + +/** + * The type of the resource. The value should always be aws_identity_center_aws_accounts + * . + */ +@JsonSerialize( + using = + SecurityMonitoringAWSIdentityCenterAWSAccountsResourceType + .SecurityMonitoringAWSIdentityCenterAWSAccountsResourceTypeSerializer.class) +public class SecurityMonitoringAWSIdentityCenterAWSAccountsResourceType extends ModelEnum { + + private static final Set allowedValues = + new HashSet(Arrays.asList("aws_identity_center_aws_accounts")); + + public static final SecurityMonitoringAWSIdentityCenterAWSAccountsResourceType + AWS_IDENTITY_CENTER_AWS_ACCOUNTS = + new SecurityMonitoringAWSIdentityCenterAWSAccountsResourceType( + "aws_identity_center_aws_accounts"); + + SecurityMonitoringAWSIdentityCenterAWSAccountsResourceType(String value) { + super(value, allowedValues); + } + + public static class SecurityMonitoringAWSIdentityCenterAWSAccountsResourceTypeSerializer + extends StdSerializer { + public SecurityMonitoringAWSIdentityCenterAWSAccountsResourceTypeSerializer( + Class t) { + super(t); + } + + public SecurityMonitoringAWSIdentityCenterAWSAccountsResourceTypeSerializer() { + this(null); + } + + @Override + public void serialize( + SecurityMonitoringAWSIdentityCenterAWSAccountsResourceType value, + JsonGenerator jgen, + SerializerProvider provider) + throws IOException, JsonProcessingException { + jgen.writeObject(value.value); + } + } + + @JsonCreator + public static SecurityMonitoringAWSIdentityCenterAWSAccountsResourceType fromValue(String value) { + return new SecurityMonitoringAWSIdentityCenterAWSAccountsResourceType(value); + } +} diff --git a/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringAWSIdentityCenterAWSAccountsResponse.java b/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringAWSIdentityCenterAWSAccountsResponse.java new file mode 100644 index 00000000000..27e0889fd1d --- /dev/null +++ b/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringAWSIdentityCenterAWSAccountsResponse.java @@ -0,0 +1,160 @@ +/* + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2019-Present Datadog, Inc. + */ + +package com.datadog.api.client.v2.model; + +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +/** + * Response containing the AWS account prerequisites for the AWS IAM Identity Center integration. + */ +@JsonPropertyOrder({SecurityMonitoringAWSIdentityCenterAWSAccountsResponse.JSON_PROPERTY_DATA}) +@jakarta.annotation.Generated( + value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") +public class SecurityMonitoringAWSIdentityCenterAWSAccountsResponse { + @JsonIgnore public boolean unparsed = false; + public static final String JSON_PROPERTY_DATA = "data"; + private SecurityMonitoringAWSIdentityCenterAWSAccountsData data; + + public SecurityMonitoringAWSIdentityCenterAWSAccountsResponse() {} + + @JsonCreator + public SecurityMonitoringAWSIdentityCenterAWSAccountsResponse( + @JsonProperty(required = true, value = JSON_PROPERTY_DATA) + SecurityMonitoringAWSIdentityCenterAWSAccountsData data) { + this.data = data; + this.unparsed |= data.unparsed; + } + + public SecurityMonitoringAWSIdentityCenterAWSAccountsResponse data( + SecurityMonitoringAWSIdentityCenterAWSAccountsData data) { + this.data = data; + this.unparsed |= data.unparsed; + return this; + } + + /** + * The AWS account prerequisites for the AWS IAM Identity Center integration. + * + * @return data + */ + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public SecurityMonitoringAWSIdentityCenterAWSAccountsData getData() { + return data; + } + + public void setData(SecurityMonitoringAWSIdentityCenterAWSAccountsData data) { + this.data = data; + if (data != null) { + this.unparsed |= data.unparsed; + } + } + + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SecurityMonitoringAWSIdentityCenterAWSAccountsResponse + */ + @JsonAnySetter + public SecurityMonitoringAWSIdentityCenterAWSAccountsResponse putAdditionalProperty( + String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + /** + * Return true if this SecurityMonitoringAWSIdentityCenterAWSAccountsResponse object is equal to + * o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SecurityMonitoringAWSIdentityCenterAWSAccountsResponse + securityMonitoringAwsIdentityCenterAwsAccountsResponse = + (SecurityMonitoringAWSIdentityCenterAWSAccountsResponse) o; + return Objects.equals(this.data, securityMonitoringAwsIdentityCenterAwsAccountsResponse.data) + && Objects.equals( + this.additionalProperties, + securityMonitoringAwsIdentityCenterAwsAccountsResponse.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash(data, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SecurityMonitoringAWSIdentityCenterAWSAccountsResponse {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); + sb.append('}'); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} diff --git a/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringAWSIdentityCenterIntegrationConfigCreateAttributes.java b/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringAWSIdentityCenterIntegrationConfigCreateAttributes.java new file mode 100644 index 00000000000..72f60b58312 --- /dev/null +++ b/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringAWSIdentityCenterIntegrationConfigCreateAttributes.java @@ -0,0 +1,268 @@ +/* + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2019-Present Datadog, Inc. + */ + +package com.datadog.api.client.v2.model; + +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +/** + * The attributes of an AWS IAM Identity Center entity context sync configuration to create. The + * sync reads the users that the AWS integration collects, so it doesn't require any secrets. + */ +@JsonPropertyOrder({ + SecurityMonitoringAWSIdentityCenterIntegrationConfigCreateAttributes.JSON_PROPERTY_DOMAIN, + SecurityMonitoringAWSIdentityCenterIntegrationConfigCreateAttributes + .JSON_PROPERTY_INTEGRATION_TYPE, + SecurityMonitoringAWSIdentityCenterIntegrationConfigCreateAttributes.JSON_PROPERTY_NAME, + SecurityMonitoringAWSIdentityCenterIntegrationConfigCreateAttributes.JSON_PROPERTY_SETTINGS +}) +@jakarta.annotation.Generated( + value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") +public class SecurityMonitoringAWSIdentityCenterIntegrationConfigCreateAttributes { + @JsonIgnore public boolean unparsed = false; + public static final String JSON_PROPERTY_DOMAIN = "domain"; + private String domain; + + public static final String JSON_PROPERTY_INTEGRATION_TYPE = "integration_type"; + private SecurityMonitoringIntegrationTypeAWSIdentityCenter integrationType; + + public static final String JSON_PROPERTY_NAME = "name"; + private String name; + + public static final String JSON_PROPERTY_SETTINGS = "settings"; + private Map settings = null; + + public SecurityMonitoringAWSIdentityCenterIntegrationConfigCreateAttributes() {} + + @JsonCreator + public SecurityMonitoringAWSIdentityCenterIntegrationConfigCreateAttributes( + @JsonProperty(required = true, value = JSON_PROPERTY_DOMAIN) String domain, + @JsonProperty(required = true, value = JSON_PROPERTY_INTEGRATION_TYPE) + SecurityMonitoringIntegrationTypeAWSIdentityCenter integrationType, + @JsonProperty(required = true, value = JSON_PROPERTY_NAME) String name) { + this.domain = domain; + this.integrationType = integrationType; + this.unparsed |= !integrationType.isValid(); + this.name = name; + } + + public SecurityMonitoringAWSIdentityCenterIntegrationConfigCreateAttributes domain( + String domain) { + this.domain = domain; + return this; + } + + /** + * The domain associated with the external entity source. + * + * @return domain + */ + @JsonProperty(JSON_PROPERTY_DOMAIN) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getDomain() { + return domain; + } + + public void setDomain(String domain) { + this.domain = domain; + } + + public SecurityMonitoringAWSIdentityCenterIntegrationConfigCreateAttributes integrationType( + SecurityMonitoringIntegrationTypeAWSIdentityCenter integrationType) { + this.integrationType = integrationType; + this.unparsed |= !integrationType.isValid(); + return this; + } + + /** + * The source type for an AWS IAM Identity Center entity context sync. + * + * @return integrationType + */ + @JsonProperty(JSON_PROPERTY_INTEGRATION_TYPE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public SecurityMonitoringIntegrationTypeAWSIdentityCenter getIntegrationType() { + return integrationType; + } + + public void setIntegrationType( + SecurityMonitoringIntegrationTypeAWSIdentityCenter integrationType) { + if (!integrationType.isValid()) { + this.unparsed = true; + } + this.integrationType = integrationType; + } + + public SecurityMonitoringAWSIdentityCenterIntegrationConfigCreateAttributes name(String name) { + this.name = name; + return this; + } + + /** + * The display name for the entity context sync configuration. + * + * @return name + */ + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public SecurityMonitoringAWSIdentityCenterIntegrationConfigCreateAttributes settings( + Map settings) { + this.settings = settings; + return this; + } + + public SecurityMonitoringAWSIdentityCenterIntegrationConfigCreateAttributes putSettingsItem( + String key, Object settingsItem) { + if (this.settings == null) { + this.settings = new HashMap<>(); + } + this.settings.put(key, settingsItem); + return this; + } + + /** + * Free-form, non-sensitive settings for the entity context sync. The accepted keys depend on the + * source type. + * + * @return settings + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_SETTINGS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map getSettings() { + return settings; + } + + public void setSettings(Map settings) { + this.settings = settings; + } + + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SecurityMonitoringAWSIdentityCenterIntegrationConfigCreateAttributes + */ + @JsonAnySetter + public SecurityMonitoringAWSIdentityCenterIntegrationConfigCreateAttributes putAdditionalProperty( + String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + /** + * Return true if this SecurityMonitoringAWSIdentityCenterIntegrationConfigCreateAttributes object + * is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SecurityMonitoringAWSIdentityCenterIntegrationConfigCreateAttributes + securityMonitoringAwsIdentityCenterIntegrationConfigCreateAttributes = + (SecurityMonitoringAWSIdentityCenterIntegrationConfigCreateAttributes) o; + return Objects.equals( + this.domain, + securityMonitoringAwsIdentityCenterIntegrationConfigCreateAttributes.domain) + && Objects.equals( + this.integrationType, + securityMonitoringAwsIdentityCenterIntegrationConfigCreateAttributes.integrationType) + && Objects.equals( + this.name, securityMonitoringAwsIdentityCenterIntegrationConfigCreateAttributes.name) + && Objects.equals( + this.settings, + securityMonitoringAwsIdentityCenterIntegrationConfigCreateAttributes.settings) + && Objects.equals( + this.additionalProperties, + securityMonitoringAwsIdentityCenterIntegrationConfigCreateAttributes + .additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash(domain, integrationType, name, settings, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SecurityMonitoringAWSIdentityCenterIntegrationConfigCreateAttributes {\n"); + sb.append(" domain: ").append(toIndentedString(domain)).append("\n"); + sb.append(" integrationType: ").append(toIndentedString(integrationType)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" settings: ").append(toIndentedString(settings)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); + sb.append('}'); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} diff --git a/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringAWSIdentityCenterIntegrationConfigUpdateAttributes.java b/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringAWSIdentityCenterIntegrationConfigUpdateAttributes.java new file mode 100644 index 00000000000..e712703e238 --- /dev/null +++ b/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringAWSIdentityCenterIntegrationConfigUpdateAttributes.java @@ -0,0 +1,296 @@ +/* + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2019-Present Datadog, Inc. + */ + +package com.datadog.api.client.v2.model; + +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +/** + * Fields to update on an AWS IAM Identity Center entity context sync configuration. Enabling the + * sync requires the AWS integration to have collected AWS IAM Identity Center users. + */ +@JsonPropertyOrder({ + SecurityMonitoringAWSIdentityCenterIntegrationConfigUpdateAttributes.JSON_PROPERTY_DOMAIN, + SecurityMonitoringAWSIdentityCenterIntegrationConfigUpdateAttributes.JSON_PROPERTY_ENABLED, + SecurityMonitoringAWSIdentityCenterIntegrationConfigUpdateAttributes + .JSON_PROPERTY_INTEGRATION_TYPE, + SecurityMonitoringAWSIdentityCenterIntegrationConfigUpdateAttributes.JSON_PROPERTY_NAME, + SecurityMonitoringAWSIdentityCenterIntegrationConfigUpdateAttributes.JSON_PROPERTY_SETTINGS +}) +@jakarta.annotation.Generated( + value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") +public class SecurityMonitoringAWSIdentityCenterIntegrationConfigUpdateAttributes { + @JsonIgnore public boolean unparsed = false; + public static final String JSON_PROPERTY_DOMAIN = "domain"; + private String domain; + + public static final String JSON_PROPERTY_ENABLED = "enabled"; + private Boolean enabled; + + public static final String JSON_PROPERTY_INTEGRATION_TYPE = "integration_type"; + private SecurityMonitoringIntegrationTypeAWSIdentityCenter integrationType; + + public static final String JSON_PROPERTY_NAME = "name"; + private String name; + + public static final String JSON_PROPERTY_SETTINGS = "settings"; + private Map settings = null; + + public SecurityMonitoringAWSIdentityCenterIntegrationConfigUpdateAttributes() {} + + @JsonCreator + public SecurityMonitoringAWSIdentityCenterIntegrationConfigUpdateAttributes( + @JsonProperty(required = true, value = JSON_PROPERTY_INTEGRATION_TYPE) + SecurityMonitoringIntegrationTypeAWSIdentityCenter integrationType) { + this.integrationType = integrationType; + this.unparsed |= !integrationType.isValid(); + } + + public SecurityMonitoringAWSIdentityCenterIntegrationConfigUpdateAttributes domain( + String domain) { + this.domain = domain; + return this; + } + + /** + * The new domain associated with the external entity source. + * + * @return domain + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_DOMAIN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getDomain() { + return domain; + } + + public void setDomain(String domain) { + this.domain = domain; + } + + public SecurityMonitoringAWSIdentityCenterIntegrationConfigUpdateAttributes enabled( + Boolean enabled) { + this.enabled = enabled; + return this; + } + + /** + * Whether the entity context sync should be enabled. + * + * @return enabled + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_ENABLED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Boolean getEnabled() { + return enabled; + } + + public void setEnabled(Boolean enabled) { + this.enabled = enabled; + } + + public SecurityMonitoringAWSIdentityCenterIntegrationConfigUpdateAttributes integrationType( + SecurityMonitoringIntegrationTypeAWSIdentityCenter integrationType) { + this.integrationType = integrationType; + this.unparsed |= !integrationType.isValid(); + return this; + } + + /** + * The source type for an AWS IAM Identity Center entity context sync. + * + * @return integrationType + */ + @JsonProperty(JSON_PROPERTY_INTEGRATION_TYPE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public SecurityMonitoringIntegrationTypeAWSIdentityCenter getIntegrationType() { + return integrationType; + } + + public void setIntegrationType( + SecurityMonitoringIntegrationTypeAWSIdentityCenter integrationType) { + if (!integrationType.isValid()) { + this.unparsed = true; + } + this.integrationType = integrationType; + } + + public SecurityMonitoringAWSIdentityCenterIntegrationConfigUpdateAttributes name(String name) { + this.name = name; + return this; + } + + /** + * The new display name for the entity context sync configuration. + * + * @return name + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public SecurityMonitoringAWSIdentityCenterIntegrationConfigUpdateAttributes settings( + Map settings) { + this.settings = settings; + return this; + } + + public SecurityMonitoringAWSIdentityCenterIntegrationConfigUpdateAttributes putSettingsItem( + String key, Object settingsItem) { + if (this.settings == null) { + this.settings = new HashMap<>(); + } + this.settings.put(key, settingsItem); + return this; + } + + /** + * Free-form, non-sensitive settings for the entity context sync. The accepted keys depend on the + * source type. + * + * @return settings + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_SETTINGS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map getSettings() { + return settings; + } + + public void setSettings(Map settings) { + this.settings = settings; + } + + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return SecurityMonitoringAWSIdentityCenterIntegrationConfigUpdateAttributes + */ + @JsonAnySetter + public SecurityMonitoringAWSIdentityCenterIntegrationConfigUpdateAttributes putAdditionalProperty( + String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + /** + * Return true if this SecurityMonitoringAWSIdentityCenterIntegrationConfigUpdateAttributes object + * is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SecurityMonitoringAWSIdentityCenterIntegrationConfigUpdateAttributes + securityMonitoringAwsIdentityCenterIntegrationConfigUpdateAttributes = + (SecurityMonitoringAWSIdentityCenterIntegrationConfigUpdateAttributes) o; + return Objects.equals( + this.domain, + securityMonitoringAwsIdentityCenterIntegrationConfigUpdateAttributes.domain) + && Objects.equals( + this.enabled, + securityMonitoringAwsIdentityCenterIntegrationConfigUpdateAttributes.enabled) + && Objects.equals( + this.integrationType, + securityMonitoringAwsIdentityCenterIntegrationConfigUpdateAttributes.integrationType) + && Objects.equals( + this.name, securityMonitoringAwsIdentityCenterIntegrationConfigUpdateAttributes.name) + && Objects.equals( + this.settings, + securityMonitoringAwsIdentityCenterIntegrationConfigUpdateAttributes.settings) + && Objects.equals( + this.additionalProperties, + securityMonitoringAwsIdentityCenterIntegrationConfigUpdateAttributes + .additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash(domain, enabled, integrationType, name, settings, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SecurityMonitoringAWSIdentityCenterIntegrationConfigUpdateAttributes {\n"); + sb.append(" domain: ").append(toIndentedString(domain)).append("\n"); + sb.append(" enabled: ").append(toIndentedString(enabled)).append("\n"); + sb.append(" integrationType: ").append(toIndentedString(integrationType)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" settings: ").append(toIndentedString(settings)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); + sb.append('}'); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} diff --git a/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringIntegrationConfigCreateAttributes.java b/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringIntegrationConfigCreateAttributes.java index e6b32520b46..ed7f182dac0 100644 --- a/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringIntegrationConfigCreateAttributes.java +++ b/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringIntegrationConfigCreateAttributes.java @@ -277,6 +277,76 @@ public SecurityMonitoringIntegrationConfigCreateAttributes deserialize( e); } + // deserialize SecurityMonitoringAWSIdentityCenterIntegrationConfigCreateAttributes + try { + boolean attemptParsing = true; + // ensure that we respect type coercion as set on the client ObjectMapper + if (SecurityMonitoringAWSIdentityCenterIntegrationConfigCreateAttributes.class.equals( + Integer.class) + || SecurityMonitoringAWSIdentityCenterIntegrationConfigCreateAttributes.class.equals( + Long.class) + || SecurityMonitoringAWSIdentityCenterIntegrationConfigCreateAttributes.class.equals( + Float.class) + || SecurityMonitoringAWSIdentityCenterIntegrationConfigCreateAttributes.class.equals( + Double.class) + || SecurityMonitoringAWSIdentityCenterIntegrationConfigCreateAttributes.class.equals( + Boolean.class) + || SecurityMonitoringAWSIdentityCenterIntegrationConfigCreateAttributes.class.equals( + String.class)) { + attemptParsing = typeCoercion; + if (!attemptParsing) { + attemptParsing |= + ((SecurityMonitoringAWSIdentityCenterIntegrationConfigCreateAttributes.class.equals( + Integer.class) + || SecurityMonitoringAWSIdentityCenterIntegrationConfigCreateAttributes + .class + .equals(Long.class)) + && token == JsonToken.VALUE_NUMBER_INT); + attemptParsing |= + ((SecurityMonitoringAWSIdentityCenterIntegrationConfigCreateAttributes.class.equals( + Float.class) + || SecurityMonitoringAWSIdentityCenterIntegrationConfigCreateAttributes + .class + .equals(Double.class)) + && (token == JsonToken.VALUE_NUMBER_FLOAT + || token == JsonToken.VALUE_NUMBER_INT)); + attemptParsing |= + (SecurityMonitoringAWSIdentityCenterIntegrationConfigCreateAttributes.class.equals( + Boolean.class) + && (token == JsonToken.VALUE_FALSE || token == JsonToken.VALUE_TRUE)); + attemptParsing |= + (SecurityMonitoringAWSIdentityCenterIntegrationConfigCreateAttributes.class.equals( + String.class) + && token == JsonToken.VALUE_STRING); + } + } + if (attemptParsing) { + tmp = + tree.traverse(jp.getCodec()) + .readValueAs( + SecurityMonitoringAWSIdentityCenterIntegrationConfigCreateAttributes.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + if (!((SecurityMonitoringAWSIdentityCenterIntegrationConfigCreateAttributes) tmp) + .unparsed) { + deserialized = tmp; + match++; + } + log.log( + Level.FINER, + "Input data matches schema" + + " 'SecurityMonitoringAWSIdentityCenterIntegrationConfigCreateAttributes'"); + } + } catch (Exception e) { + // deserialization failed, continue + log.log( + Level.FINER, + "Input data does not match schema" + + " 'SecurityMonitoringAWSIdentityCenterIntegrationConfigCreateAttributes'", + e); + } + // deserialize SecurityMonitoringCrowdStrikeIntegrationConfigCreateAttributes try { boolean attemptParsing = true; @@ -460,6 +530,12 @@ public SecurityMonitoringIntegrationConfigCreateAttributes( setActualInstance(o); } + public SecurityMonitoringIntegrationConfigCreateAttributes( + SecurityMonitoringAWSIdentityCenterIntegrationConfigCreateAttributes o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + public SecurityMonitoringIntegrationConfigCreateAttributes( SecurityMonitoringCrowdStrikeIntegrationConfigCreateAttributes o) { super("oneOf", Boolean.FALSE); @@ -482,6 +558,9 @@ public SecurityMonitoringIntegrationConfigCreateAttributes( schemas.put( "SecurityMonitoringEntraIdIntegrationConfigCreateAttributes", new GenericType() {}); + schemas.put( + "SecurityMonitoringAWSIdentityCenterIntegrationConfigCreateAttributes", + new GenericType() {}); schemas.put( "SecurityMonitoringCrowdStrikeIntegrationConfigCreateAttributes", new GenericType() {}); @@ -504,6 +583,7 @@ public Map getSchemas() { * SecurityMonitoringGoogleWorkspaceIntegrationConfigCreateAttributes, * SecurityMonitoringOktaIntegrationConfigCreateAttributes, * SecurityMonitoringEntraIdIntegrationConfigCreateAttributes, + * SecurityMonitoringAWSIdentityCenterIntegrationConfigCreateAttributes, * SecurityMonitoringCrowdStrikeIntegrationConfigCreateAttributes, * SecurityMonitoringSentinelOneIntegrationConfigCreateAttributes * @@ -533,6 +613,13 @@ public void setActualInstance(Object instance) { super.setActualInstance(instance); return; } + if (JSON.isInstanceOf( + SecurityMonitoringAWSIdentityCenterIntegrationConfigCreateAttributes.class, + instance, + new HashSet>())) { + super.setActualInstance(instance); + return; + } if (JSON.isInstanceOf( SecurityMonitoringCrowdStrikeIntegrationConfigCreateAttributes.class, instance, @@ -557,6 +644,7 @@ public void setActualInstance(Object instance) { + " SecurityMonitoringGoogleWorkspaceIntegrationConfigCreateAttributes," + " SecurityMonitoringOktaIntegrationConfigCreateAttributes," + " SecurityMonitoringEntraIdIntegrationConfigCreateAttributes," + + " SecurityMonitoringAWSIdentityCenterIntegrationConfigCreateAttributes," + " SecurityMonitoringCrowdStrikeIntegrationConfigCreateAttributes," + " SecurityMonitoringSentinelOneIntegrationConfigCreateAttributes"); } @@ -566,6 +654,7 @@ public void setActualInstance(Object instance) { * SecurityMonitoringGoogleWorkspaceIntegrationConfigCreateAttributes, * SecurityMonitoringOktaIntegrationConfigCreateAttributes, * SecurityMonitoringEntraIdIntegrationConfigCreateAttributes, + * SecurityMonitoringAWSIdentityCenterIntegrationConfigCreateAttributes, * SecurityMonitoringCrowdStrikeIntegrationConfigCreateAttributes, * SecurityMonitoringSentinelOneIntegrationConfigCreateAttributes * @@ -573,6 +662,7 @@ public void setActualInstance(Object instance) { * (SecurityMonitoringGoogleWorkspaceIntegrationConfigCreateAttributes, * SecurityMonitoringOktaIntegrationConfigCreateAttributes, * SecurityMonitoringEntraIdIntegrationConfigCreateAttributes, + * SecurityMonitoringAWSIdentityCenterIntegrationConfigCreateAttributes, * SecurityMonitoringCrowdStrikeIntegrationConfigCreateAttributes, * SecurityMonitoringSentinelOneIntegrationConfigCreateAttributes) */ @@ -627,6 +717,24 @@ public Object getActualInstance() { return (SecurityMonitoringEntraIdIntegrationConfigCreateAttributes) super.getActualInstance(); } + /** + * Get the actual instance of + * `SecurityMonitoringAWSIdentityCenterIntegrationConfigCreateAttributes`. If the actual instance + * is not `SecurityMonitoringAWSIdentityCenterIntegrationConfigCreateAttributes`, the + * ClassCastException will be thrown. + * + * @return The actual instance of + * `SecurityMonitoringAWSIdentityCenterIntegrationConfigCreateAttributes` + * @throws ClassCastException if the instance is not + * `SecurityMonitoringAWSIdentityCenterIntegrationConfigCreateAttributes` + */ + public SecurityMonitoringAWSIdentityCenterIntegrationConfigCreateAttributes + getSecurityMonitoringAWSIdentityCenterIntegrationConfigCreateAttributes() + throws ClassCastException { + return (SecurityMonitoringAWSIdentityCenterIntegrationConfigCreateAttributes) + super.getActualInstance(); + } + /** * Get the actual instance of `SecurityMonitoringCrowdStrikeIntegrationConfigCreateAttributes`. If * the actual instance is not `SecurityMonitoringCrowdStrikeIntegrationConfigCreateAttributes`, diff --git a/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringIntegrationConfigUpdateAttributes.java b/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringIntegrationConfigUpdateAttributes.java index 59d5dbd1f66..ff3bbb14c0f 100644 --- a/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringIntegrationConfigUpdateAttributes.java +++ b/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringIntegrationConfigUpdateAttributes.java @@ -277,6 +277,76 @@ public SecurityMonitoringIntegrationConfigUpdateAttributes deserialize( e); } + // deserialize SecurityMonitoringAWSIdentityCenterIntegrationConfigUpdateAttributes + try { + boolean attemptParsing = true; + // ensure that we respect type coercion as set on the client ObjectMapper + if (SecurityMonitoringAWSIdentityCenterIntegrationConfigUpdateAttributes.class.equals( + Integer.class) + || SecurityMonitoringAWSIdentityCenterIntegrationConfigUpdateAttributes.class.equals( + Long.class) + || SecurityMonitoringAWSIdentityCenterIntegrationConfigUpdateAttributes.class.equals( + Float.class) + || SecurityMonitoringAWSIdentityCenterIntegrationConfigUpdateAttributes.class.equals( + Double.class) + || SecurityMonitoringAWSIdentityCenterIntegrationConfigUpdateAttributes.class.equals( + Boolean.class) + || SecurityMonitoringAWSIdentityCenterIntegrationConfigUpdateAttributes.class.equals( + String.class)) { + attemptParsing = typeCoercion; + if (!attemptParsing) { + attemptParsing |= + ((SecurityMonitoringAWSIdentityCenterIntegrationConfigUpdateAttributes.class.equals( + Integer.class) + || SecurityMonitoringAWSIdentityCenterIntegrationConfigUpdateAttributes + .class + .equals(Long.class)) + && token == JsonToken.VALUE_NUMBER_INT); + attemptParsing |= + ((SecurityMonitoringAWSIdentityCenterIntegrationConfigUpdateAttributes.class.equals( + Float.class) + || SecurityMonitoringAWSIdentityCenterIntegrationConfigUpdateAttributes + .class + .equals(Double.class)) + && (token == JsonToken.VALUE_NUMBER_FLOAT + || token == JsonToken.VALUE_NUMBER_INT)); + attemptParsing |= + (SecurityMonitoringAWSIdentityCenterIntegrationConfigUpdateAttributes.class.equals( + Boolean.class) + && (token == JsonToken.VALUE_FALSE || token == JsonToken.VALUE_TRUE)); + attemptParsing |= + (SecurityMonitoringAWSIdentityCenterIntegrationConfigUpdateAttributes.class.equals( + String.class) + && token == JsonToken.VALUE_STRING); + } + } + if (attemptParsing) { + tmp = + tree.traverse(jp.getCodec()) + .readValueAs( + SecurityMonitoringAWSIdentityCenterIntegrationConfigUpdateAttributes.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + if (!((SecurityMonitoringAWSIdentityCenterIntegrationConfigUpdateAttributes) tmp) + .unparsed) { + deserialized = tmp; + match++; + } + log.log( + Level.FINER, + "Input data matches schema" + + " 'SecurityMonitoringAWSIdentityCenterIntegrationConfigUpdateAttributes'"); + } + } catch (Exception e) { + // deserialization failed, continue + log.log( + Level.FINER, + "Input data does not match schema" + + " 'SecurityMonitoringAWSIdentityCenterIntegrationConfigUpdateAttributes'", + e); + } + // deserialize SecurityMonitoringCrowdStrikeIntegrationConfigUpdateAttributes try { boolean attemptParsing = true; @@ -460,6 +530,12 @@ public SecurityMonitoringIntegrationConfigUpdateAttributes( setActualInstance(o); } + public SecurityMonitoringIntegrationConfigUpdateAttributes( + SecurityMonitoringAWSIdentityCenterIntegrationConfigUpdateAttributes o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + public SecurityMonitoringIntegrationConfigUpdateAttributes( SecurityMonitoringCrowdStrikeIntegrationConfigUpdateAttributes o) { super("oneOf", Boolean.FALSE); @@ -482,6 +558,9 @@ public SecurityMonitoringIntegrationConfigUpdateAttributes( schemas.put( "SecurityMonitoringEntraIdIntegrationConfigUpdateAttributes", new GenericType() {}); + schemas.put( + "SecurityMonitoringAWSIdentityCenterIntegrationConfigUpdateAttributes", + new GenericType() {}); schemas.put( "SecurityMonitoringCrowdStrikeIntegrationConfigUpdateAttributes", new GenericType() {}); @@ -504,6 +583,7 @@ public Map getSchemas() { * SecurityMonitoringGoogleWorkspaceIntegrationConfigUpdateAttributes, * SecurityMonitoringOktaIntegrationConfigUpdateAttributes, * SecurityMonitoringEntraIdIntegrationConfigUpdateAttributes, + * SecurityMonitoringAWSIdentityCenterIntegrationConfigUpdateAttributes, * SecurityMonitoringCrowdStrikeIntegrationConfigUpdateAttributes, * SecurityMonitoringSentinelOneIntegrationConfigUpdateAttributes * @@ -533,6 +613,13 @@ public void setActualInstance(Object instance) { super.setActualInstance(instance); return; } + if (JSON.isInstanceOf( + SecurityMonitoringAWSIdentityCenterIntegrationConfigUpdateAttributes.class, + instance, + new HashSet>())) { + super.setActualInstance(instance); + return; + } if (JSON.isInstanceOf( SecurityMonitoringCrowdStrikeIntegrationConfigUpdateAttributes.class, instance, @@ -557,6 +644,7 @@ public void setActualInstance(Object instance) { + " SecurityMonitoringGoogleWorkspaceIntegrationConfigUpdateAttributes," + " SecurityMonitoringOktaIntegrationConfigUpdateAttributes," + " SecurityMonitoringEntraIdIntegrationConfigUpdateAttributes," + + " SecurityMonitoringAWSIdentityCenterIntegrationConfigUpdateAttributes," + " SecurityMonitoringCrowdStrikeIntegrationConfigUpdateAttributes," + " SecurityMonitoringSentinelOneIntegrationConfigUpdateAttributes"); } @@ -566,6 +654,7 @@ public void setActualInstance(Object instance) { * SecurityMonitoringGoogleWorkspaceIntegrationConfigUpdateAttributes, * SecurityMonitoringOktaIntegrationConfigUpdateAttributes, * SecurityMonitoringEntraIdIntegrationConfigUpdateAttributes, + * SecurityMonitoringAWSIdentityCenterIntegrationConfigUpdateAttributes, * SecurityMonitoringCrowdStrikeIntegrationConfigUpdateAttributes, * SecurityMonitoringSentinelOneIntegrationConfigUpdateAttributes * @@ -573,6 +662,7 @@ public void setActualInstance(Object instance) { * (SecurityMonitoringGoogleWorkspaceIntegrationConfigUpdateAttributes, * SecurityMonitoringOktaIntegrationConfigUpdateAttributes, * SecurityMonitoringEntraIdIntegrationConfigUpdateAttributes, + * SecurityMonitoringAWSIdentityCenterIntegrationConfigUpdateAttributes, * SecurityMonitoringCrowdStrikeIntegrationConfigUpdateAttributes, * SecurityMonitoringSentinelOneIntegrationConfigUpdateAttributes) */ @@ -627,6 +717,24 @@ public Object getActualInstance() { return (SecurityMonitoringEntraIdIntegrationConfigUpdateAttributes) super.getActualInstance(); } + /** + * Get the actual instance of + * `SecurityMonitoringAWSIdentityCenterIntegrationConfigUpdateAttributes`. If the actual instance + * is not `SecurityMonitoringAWSIdentityCenterIntegrationConfigUpdateAttributes`, the + * ClassCastException will be thrown. + * + * @return The actual instance of + * `SecurityMonitoringAWSIdentityCenterIntegrationConfigUpdateAttributes` + * @throws ClassCastException if the instance is not + * `SecurityMonitoringAWSIdentityCenterIntegrationConfigUpdateAttributes` + */ + public SecurityMonitoringAWSIdentityCenterIntegrationConfigUpdateAttributes + getSecurityMonitoringAWSIdentityCenterIntegrationConfigUpdateAttributes() + throws ClassCastException { + return (SecurityMonitoringAWSIdentityCenterIntegrationConfigUpdateAttributes) + super.getActualInstance(); + } + /** * Get the actual instance of `SecurityMonitoringCrowdStrikeIntegrationConfigUpdateAttributes`. If * the actual instance is not `SecurityMonitoringCrowdStrikeIntegrationConfigUpdateAttributes`, diff --git a/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringIntegrationType.java b/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringIntegrationType.java index 78ab58d5b54..e669b6676ae 100644 --- a/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringIntegrationType.java +++ b/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringIntegrationType.java @@ -25,7 +25,13 @@ public class SecurityMonitoringIntegrationType extends ModelEnum { private static final Set allowedValues = new HashSet( - Arrays.asList("GOOGLE_WORKSPACE", "OKTA", "ENTRA_ID", "CROWDSTRIKE", "SENTINELONE")); + Arrays.asList( + "GOOGLE_WORKSPACE", + "OKTA", + "ENTRA_ID", + "AWS_IDENTITY_CENTER", + "CROWDSTRIKE", + "SENTINELONE")); public static final SecurityMonitoringIntegrationType GOOGLE_WORKSPACE = new SecurityMonitoringIntegrationType("GOOGLE_WORKSPACE"); @@ -33,6 +39,8 @@ public class SecurityMonitoringIntegrationType extends ModelEnum { new SecurityMonitoringIntegrationType("OKTA"); public static final SecurityMonitoringIntegrationType ENTRA_ID = new SecurityMonitoringIntegrationType("ENTRA_ID"); + public static final SecurityMonitoringIntegrationType AWS_IDENTITY_CENTER = + new SecurityMonitoringIntegrationType("AWS_IDENTITY_CENTER"); public static final SecurityMonitoringIntegrationType CROWDSTRIKE = new SecurityMonitoringIntegrationType("CROWDSTRIKE"); public static final SecurityMonitoringIntegrationType SENTINELONE = diff --git a/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringIntegrationTypeAWSIdentityCenter.java b/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringIntegrationTypeAWSIdentityCenter.java new file mode 100644 index 00000000000..00372f05bc2 --- /dev/null +++ b/src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringIntegrationTypeAWSIdentityCenter.java @@ -0,0 +1,63 @@ +/* + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2019-Present Datadog, Inc. + */ + +package com.datadog.api.client.v2.model; + +import com.datadog.api.client.ModelEnum; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonProcessingException; +import com.fasterxml.jackson.databind.SerializerProvider; +import com.fasterxml.jackson.databind.annotation.JsonSerialize; +import com.fasterxml.jackson.databind.ser.std.StdSerializer; +import java.io.IOException; +import java.util.Arrays; +import java.util.HashSet; +import java.util.Set; + +/** The source type for an AWS IAM Identity Center entity context sync. */ +@JsonSerialize( + using = + SecurityMonitoringIntegrationTypeAWSIdentityCenter + .SecurityMonitoringIntegrationTypeAWSIdentityCenterSerializer.class) +public class SecurityMonitoringIntegrationTypeAWSIdentityCenter extends ModelEnum { + + private static final Set allowedValues = + new HashSet(Arrays.asList("AWS_IDENTITY_CENTER")); + + public static final SecurityMonitoringIntegrationTypeAWSIdentityCenter AWS_IDENTITY_CENTER = + new SecurityMonitoringIntegrationTypeAWSIdentityCenter("AWS_IDENTITY_CENTER"); + + SecurityMonitoringIntegrationTypeAWSIdentityCenter(String value) { + super(value, allowedValues); + } + + public static class SecurityMonitoringIntegrationTypeAWSIdentityCenterSerializer + extends StdSerializer { + public SecurityMonitoringIntegrationTypeAWSIdentityCenterSerializer( + Class t) { + super(t); + } + + public SecurityMonitoringIntegrationTypeAWSIdentityCenterSerializer() { + this(null); + } + + @Override + public void serialize( + SecurityMonitoringIntegrationTypeAWSIdentityCenter value, + JsonGenerator jgen, + SerializerProvider provider) + throws IOException, JsonProcessingException { + jgen.writeObject(value.value); + } + } + + @JsonCreator + public static SecurityMonitoringIntegrationTypeAWSIdentityCenter fromValue(String value) { + return new SecurityMonitoringIntegrationTypeAWSIdentityCenter(value); + } +} diff --git a/src/test/resources/com/datadog/api/client/v2/api/security_monitoring.feature b/src/test/resources/com/datadog/api/client/v2/api/security_monitoring.feature index 124ec242671..fd3f11258ea 100644 --- a/src/test/resources/com/datadog/api/client/v2/api/security_monitoring.feature +++ b/src/test/resources/com/datadog/api/client/v2/api/security_monitoring.feature @@ -1816,6 +1816,13 @@ Feature: Security Monitoring When the request is sent Then the response status is 200 OK + @generated @skip @team:ddoghq/cloud-siem + Scenario: Get AWS IAM Identity Center account prerequisites returns "OK" response + Given operation "GetAWSIdentityCenterAWSAccounts" enabled + And new "GetAWSIdentityCenterAWSAccounts" request + When the request is sent + Then the response status is 200 OK + @generated @skip @team:ddoghq/cloud-siem Scenario: Get Entra ID Azure App Registration prerequisites returns "OK" response Given operation "GetEntraIdAzureAppRegistrations" enabled diff --git a/src/test/resources/com/datadog/api/client/v2/api/undo.json b/src/test/resources/com/datadog/api/client/v2/api/undo.json index 6371f7ac7e8..472c620596a 100644 --- a/src/test/resources/com/datadog/api/client/v2/api/undo.json +++ b/src/test/resources/com/datadog/api/client/v2/api/undo.json @@ -5269,6 +5269,12 @@ "type": "safe" } }, + "GetAWSIdentityCenterAWSAccounts": { + "tag": "Security Monitoring", + "undo": { + "type": "safe" + } + }, "GetAWSIntegrationIAMPermissions": { "tag": "AWS Integration", "undo": {