Skip to content

Commit c538ed7

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 7f9bfc5 of spec repo
1 parent f1db7da commit c538ed7

192 files changed

Lines changed: 2140 additions & 992 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.generator/schemas/v2/openapi.yaml

Lines changed: 222 additions & 76 deletions
Original file line numberDiff line numberDiff line change
@@ -2437,6 +2437,158 @@ components:
24372437
type: string
24382438
x-enum-varnames:
24392439
- CCM_CONFIG
2440+
AWSCcmConfigValidationIssue:
2441+
description: A single validation issue found while validating an AWS Cost and Usage Report (CUR) 2.0 configuration.
2442+
properties:
2443+
code:
2444+
$ref: "#/components/schemas/AWSCcmConfigValidationIssueCode"
2445+
description:
2446+
description: Human-readable description of the validation issue.
2447+
example: 'no CUR 2.0 export named "cost-and-usage-report" found'
2448+
type: string
2449+
required:
2450+
- code
2451+
- description
2452+
type: object
2453+
AWSCcmConfigValidationIssueCode:
2454+
description: Identifies the specific reason a Cost and Usage Report (CUR) 2.0 configuration failed validation.
2455+
enum:
2456+
- ISSUE_CODE_UNSPECIFIED
2457+
- CREDENTIAL_ERROR
2458+
- BUCKET_NAME_INVALID_GOVCLOUD
2459+
- S3_LIST_PERMISSION_MISSING
2460+
- S3_GET_PERMISSION_MISSING
2461+
- S3_BUCKET_REGION_MISMATCH
2462+
- S3_BUCKET_NOT_ACCESSIBLE
2463+
- EXPORT_LIST_PERMISSION_MISSING
2464+
- EXPORT_GET_PERMISSION_MISSING
2465+
- EXPORT_NOT_FOUND
2466+
- EXPORT_STATUS_UNHEALTHY
2467+
- TIME_GRANULARITY_INVALID
2468+
- FILE_FORMAT_INVALID
2469+
- INCLUDE_RESOURCES_DISABLED
2470+
- REFRESH_CADENCE_INVALID
2471+
- OVERWRITE_MODE_INVALID
2472+
- QUERY_STATEMENT_INVALID
2473+
example: "EXPORT_NOT_FOUND"
2474+
type: string
2475+
x-enum-varnames:
2476+
- ISSUE_CODE_UNSPECIFIED
2477+
- CREDENTIAL_ERROR
2478+
- BUCKET_NAME_INVALID_GOVCLOUD
2479+
- S3_LIST_PERMISSION_MISSING
2480+
- S3_GET_PERMISSION_MISSING
2481+
- S3_BUCKET_REGION_MISMATCH
2482+
- S3_BUCKET_NOT_ACCESSIBLE
2483+
- EXPORT_LIST_PERMISSION_MISSING
2484+
- EXPORT_GET_PERMISSION_MISSING
2485+
- EXPORT_NOT_FOUND
2486+
- EXPORT_STATUS_UNHEALTHY
2487+
- TIME_GRANULARITY_INVALID
2488+
- FILE_FORMAT_INVALID
2489+
- INCLUDE_RESOURCES_DISABLED
2490+
- REFRESH_CADENCE_INVALID
2491+
- OVERWRITE_MODE_INVALID
2492+
- QUERY_STATEMENT_INVALID
2493+
AWSCcmConfigValidationIssues:
2494+
description: List of validation issues found for the Cost and Usage Report (CUR) 2.0 configuration. Empty when the configuration is valid.
2495+
items:
2496+
$ref: "#/components/schemas/AWSCcmConfigValidationIssue"
2497+
type: array
2498+
AWSCcmConfigValidationRequest:
2499+
description: AWS CCM config validation request body.
2500+
properties:
2501+
data:
2502+
$ref: "#/components/schemas/AWSCcmConfigValidationRequestData"
2503+
required:
2504+
- data
2505+
type: object
2506+
AWSCcmConfigValidationRequestAttributes:
2507+
description: Attributes for an AWS CCM config validation request.
2508+
properties:
2509+
account_id:
2510+
description: Your AWS Account ID without dashes.
2511+
example: "123456789012"
2512+
type: string
2513+
bucket_name:
2514+
description: Name of the S3 bucket where the Cost and Usage Report is stored.
2515+
example: "billing"
2516+
type: string
2517+
bucket_region:
2518+
description: AWS region of the S3 bucket.
2519+
example: "us-east-1"
2520+
type: string
2521+
report_name:
2522+
description: Name of the Cost and Usage Report.
2523+
example: "cost-and-usage-report"
2524+
type: string
2525+
report_prefix:
2526+
description: S3 prefix where the Cost and Usage Report is stored.
2527+
example: "reports"
2528+
type: string
2529+
required:
2530+
- account_id
2531+
- bucket_name
2532+
- bucket_region
2533+
- report_name
2534+
type: object
2535+
AWSCcmConfigValidationRequestData:
2536+
description: AWS CCM config validation request data.
2537+
properties:
2538+
attributes:
2539+
$ref: "#/components/schemas/AWSCcmConfigValidationRequestAttributes"
2540+
type:
2541+
$ref: "#/components/schemas/AWSCcmConfigValidationType"
2542+
required:
2543+
- attributes
2544+
- type
2545+
type: object
2546+
AWSCcmConfigValidationResponse:
2547+
description: AWS CCM config validation response body.
2548+
properties:
2549+
data:
2550+
$ref: "#/components/schemas/AWSCcmConfigValidationResponseData"
2551+
required:
2552+
- data
2553+
type: object
2554+
AWSCcmConfigValidationResponseAttributes:
2555+
description: Attributes for an AWS CCM config validation response.
2556+
properties:
2557+
account_id:
2558+
description: Your AWS Account ID without dashes.
2559+
example: "123456789012"
2560+
type: string
2561+
issues:
2562+
$ref: "#/components/schemas/AWSCcmConfigValidationIssues"
2563+
required:
2564+
- account_id
2565+
- issues
2566+
type: object
2567+
AWSCcmConfigValidationResponseData:
2568+
description: AWS CCM config validation response data.
2569+
properties:
2570+
attributes:
2571+
$ref: "#/components/schemas/AWSCcmConfigValidationResponseAttributes"
2572+
id:
2573+
description: AWS CCM config validation resource identifier.
2574+
example: "ccm_config_validation"
2575+
type: string
2576+
type:
2577+
$ref: "#/components/schemas/AWSCcmConfigValidationType"
2578+
required:
2579+
- attributes
2580+
- id
2581+
- type
2582+
type: object
2583+
AWSCcmConfigValidationType:
2584+
default: "ccm_config_validation"
2585+
description: AWS CCM config validation resource type.
2586+
enum:
2587+
- ccm_config_validation
2588+
example: "ccm_config_validation"
2589+
type: string
2590+
x-enum-varnames:
2591+
- CCM_CONFIG_VALIDATION
24402592
AWSCloudAuthPersonaMappingAttributesResponse:
24412593
description: Attributes for AWS cloud authentication persona mapping response
24422594
properties:
@@ -55624,7 +55776,6 @@ components:
5562455776
- $ref: "#/components/schemas/ObservabilityPipelineSyslogNgDestination"
5562555777
- $ref: "#/components/schemas/ObservabilityPipelineDatabricksZerobusDestination"
5562655778
- $ref: "#/components/schemas/ObservabilityPipelineDatadogMetricsDestination"
55627-
- $ref: "#/components/schemas/ObservabilityPipelineSplunkHecMetricsDestination"
5562855779
ObservabilityPipelineConfigPipelineType:
5562955780
default: logs
5563055781
description: The type of data being ingested. Defaults to `logs` if not specified.
@@ -59746,81 +59897,6 @@ components:
5974659897
type: string
5974759898
x-enum-varnames:
5974859899
- SPLUNK_HEC
59749-
ObservabilityPipelineSplunkHecMetricsDestination:
59750-
description: |-
59751-
The `splunk_hec_metrics` destination forwards metrics to Splunk using the HTTP Event Collector (HEC).
59752-
59753-
**Supported pipeline types:** metrics
59754-
properties:
59755-
buffer:
59756-
$ref: "#/components/schemas/ObservabilityPipelineBufferOptions"
59757-
compression:
59758-
$ref: "#/components/schemas/ObservabilityPipelineSplunkHecMetricsDestinationCompression"
59759-
default_namespace:
59760-
description: Optional default namespace for metrics sent to Splunk HEC.
59761-
example: "custom_namespace"
59762-
type: string
59763-
endpoint_url_key:
59764-
description: Name of the environment variable or secret that holds the Splunk HEC endpoint URL.
59765-
example: SPLUNK_HEC_ENDPOINT_URL
59766-
type: string
59767-
id:
59768-
description: The unique identifier for this component. Used in other parts of the pipeline to reference this component (for example, as the `input` to downstream components).
59769-
example: splunk-hec-metrics-destination
59770-
type: string
59771-
index:
59772-
description: Optional name of the Splunk index where metrics are written.
59773-
example: "metrics"
59774-
type: string
59775-
inputs:
59776-
description: A list of component IDs whose output is used as the `input` for this component.
59777-
example: ["metrics-filter-processor"]
59778-
items:
59779-
description: The ID of a component whose output is used as input for this destination.
59780-
type: string
59781-
type: array
59782-
source:
59783-
description: The Splunk source field value for metric events.
59784-
example: "observability_pipelines"
59785-
type: string
59786-
sourcetype:
59787-
description: The Splunk sourcetype to assign to metric events.
59788-
example: "custom_sourcetype"
59789-
type: string
59790-
tls:
59791-
$ref: "#/components/schemas/ObservabilityPipelineTls"
59792-
token_key:
59793-
description: Name of the environment variable or secret that holds the Splunk HEC token.
59794-
example: SPLUNK_HEC_TOKEN
59795-
type: string
59796-
type:
59797-
$ref: "#/components/schemas/ObservabilityPipelineSplunkHecMetricsDestinationType"
59798-
required:
59799-
- id
59800-
- type
59801-
- inputs
59802-
type: object
59803-
x-pipeline-types: [metrics]
59804-
ObservabilityPipelineSplunkHecMetricsDestinationCompression:
59805-
default: none
59806-
description: Compression algorithm applied when sending metrics to Splunk HEC.
59807-
enum:
59808-
- none
59809-
- gzip
59810-
example: none
59811-
type: string
59812-
x-enum-varnames:
59813-
- NONE
59814-
- GZIP
59815-
ObservabilityPipelineSplunkHecMetricsDestinationType:
59816-
default: splunk_hec_metrics
59817-
description: The destination type. Always `splunk_hec_metrics`.
59818-
enum:
59819-
- splunk_hec_metrics
59820-
example: splunk_hec_metrics
59821-
type: string
59822-
x-enum-varnames:
59823-
- SPLUNK_HEC_METRICS
5982459900
ObservabilityPipelineSplunkHecSource:
5982559901
description: |-
5982659902
The `splunk_hec` source implements the Splunk HTTP Event Collector (HEC) API.
@@ -121645,6 +121721,76 @@ paths:
121645121721
operator: OR
121646121722
permissions:
121647121723
- aws_configuration_read
121724+
/api/v2/integration/aws/validate_ccm_config:
121725+
post:
121726+
description: |-
121727+
Validate a Cloud Cost Management config for an AWS account using Cost and Usage Report
121728+
(CUR) 2.0 against Datadog's ingest requirements without persisting it.
121729+
operationId: ValidateAWSCCMConfig
121730+
requestBody:
121731+
content:
121732+
application/json:
121733+
examples:
121734+
default:
121735+
value:
121736+
data:
121737+
attributes:
121738+
account_id: "123456789012"
121739+
bucket_name: billing
121740+
bucket_region: us-east-1
121741+
report_name: cost-and-usage-report
121742+
report_prefix: reports
121743+
type: ccm_config_validation
121744+
schema:
121745+
$ref: "#/components/schemas/AWSCcmConfigValidationRequest"
121746+
description: Validate a Cloud Cost Management config for an AWS account integration config.
121747+
required: true
121748+
responses:
121749+
"200":
121750+
content:
121751+
application/json:
121752+
examples:
121753+
default:
121754+
value:
121755+
data:
121756+
attributes:
121757+
account_id: "123456789012"
121758+
issues:
121759+
- code: EXPORT_NOT_FOUND
121760+
description: 'no CUR 2.0 export named "cost-and-usage-report" found'
121761+
id: ccm_config_validation
121762+
type: ccm_config_validation
121763+
schema:
121764+
$ref: "#/components/schemas/AWSCcmConfigValidationResponse"
121765+
description: AWS CCM Config validation result
121766+
"400":
121767+
content:
121768+
application/json:
121769+
schema:
121770+
$ref: "#/components/schemas/JSONAPIErrorResponse"
121771+
description: Bad Request
121772+
"403":
121773+
$ref: "#/components/responses/ForbiddenResponse"
121774+
"429":
121775+
$ref: "#/components/responses/TooManyRequestsResponse"
121776+
"503":
121777+
content:
121778+
application/json:
121779+
schema:
121780+
$ref: "#/components/schemas/JSONAPIErrorResponse"
121781+
description: Service Unavailable
121782+
summary: Validate AWS CCM config
121783+
tags:
121784+
- AWS Integration
121785+
x-codegen-request-body-name: body
121786+
"x-permission":
121787+
operator: OR
121788+
permissions:
121789+
- cloud_cost_management_read
121790+
- cloud_cost_management_write
121791+
x-unstable: |-
121792+
**Note**: This endpoint is in Preview and may be subject to change.
121793+
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).
121648121794
/api/v2/integration/gcp/accounts:
121649121795
get:
121650121796
description: List all GCP STS-enabled service accounts configured in your Datadog account.
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
// Validate AWS CCM config returns "AWS CCM Config validation result" response
2+
3+
import com.datadog.api.client.ApiClient;
4+
import com.datadog.api.client.ApiException;
5+
import com.datadog.api.client.v2.api.AwsIntegrationApi;
6+
import com.datadog.api.client.v2.model.AWSCcmConfigValidationRequest;
7+
import com.datadog.api.client.v2.model.AWSCcmConfigValidationRequestAttributes;
8+
import com.datadog.api.client.v2.model.AWSCcmConfigValidationRequestData;
9+
import com.datadog.api.client.v2.model.AWSCcmConfigValidationResponse;
10+
import com.datadog.api.client.v2.model.AWSCcmConfigValidationType;
11+
12+
public class Example {
13+
public static void main(String[] args) {
14+
ApiClient defaultClient = ApiClient.getDefaultApiClient();
15+
defaultClient.setUnstableOperationEnabled("v2.validateAWSCCMConfig", true);
16+
AwsIntegrationApi apiInstance = new AwsIntegrationApi(defaultClient);
17+
18+
AWSCcmConfigValidationRequest body =
19+
new AWSCcmConfigValidationRequest()
20+
.data(
21+
new AWSCcmConfigValidationRequestData()
22+
.attributes(
23+
new AWSCcmConfigValidationRequestAttributes()
24+
.accountId("123456789012")
25+
.bucketName("billing")
26+
.bucketRegion("us-east-1")
27+
.reportName("cost-and-usage-report")
28+
.reportPrefix("reports"))
29+
.type(AWSCcmConfigValidationType.CCM_CONFIG_VALIDATION));
30+
31+
try {
32+
AWSCcmConfigValidationResponse result = apiInstance.validateAWSCCMConfig(body);
33+
System.out.println(result);
34+
} catch (ApiException e) {
35+
System.err.println("Exception when calling AwsIntegrationApi#validateAWSCCMConfig");
36+
System.err.println("Status code: " + e.getCode());
37+
System.err.println("Reason: " + e.getResponseBody());
38+
System.err.println("Response headers: " + e.getResponseHeaders());
39+
e.printStackTrace();
40+
}
41+
}
42+
}

src/main/java/com/datadog/api/client/ApiClient.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1044,6 +1044,7 @@ public class ApiClient {
10441044
put("v2.deleteAWSAccountCCMConfig", false);
10451045
put("v2.getAWSAccountCCMConfig", false);
10461046
put("v2.updateAWSAccountCCMConfig", false);
1047+
put("v2.validateAWSCCMConfig", false);
10471048
put("v2.createJiraIssueTemplate", false);
10481049
put("v2.deleteJiraAccount", false);
10491050
put("v2.deleteJiraIssueTemplate", false);

0 commit comments

Comments
 (0)