diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index 488b7e209c2a..57fa3374b8d7 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -64447,6 +64447,16 @@ components: - storage_class type: object x-pipeline-types: [logs] + ObservabilityPipelineAmazonS3DestinationServerSideEncryption: + description: Server-side encryption type for Amazon S3. + enum: + - "aws:kms" + - AES256 + example: "aws:kms" + type: string + x-enum-varnames: + - AWS_KMS + - AES256 ObservabilityPipelineAmazonS3DestinationStorageClass: description: S3 storage class. enum: @@ -64601,6 +64611,14 @@ components: description: AWS region of the S3 bucket. example: "us-east-1" type: string + server_side_encryption: + $ref: "#/components/schemas/ObservabilityPipelineAmazonS3DestinationServerSideEncryption" + ssekms_key_id: + description: |- + The AWS KMS key ID used for SSE-KMS encryption. + Only applies when `server_side_encryption` is set to `aws:kms`. + example: "arn:aws:kms:us-east-1:123456789012:key/mrk-abc123" + type: string storage_class: $ref: "#/components/schemas/ObservabilityPipelineAmazonS3DestinationStorageClass" type: diff --git a/lib/datadog_api_client/inflector.rb b/lib/datadog_api_client/inflector.rb index 84127ecb7d73..32057b3f70e5 100644 --- a/lib/datadog_api_client/inflector.rb +++ b/lib/datadog_api_client/inflector.rb @@ -4936,6 +4936,7 @@ def overrides "v2.observability_pipeline_amazon_open_search_destination_auth_strategy" => "ObservabilityPipelineAmazonOpenSearchDestinationAuthStrategy", "v2.observability_pipeline_amazon_open_search_destination_type" => "ObservabilityPipelineAmazonOpenSearchDestinationType", "v2.observability_pipeline_amazon_s3_destination" => "ObservabilityPipelineAmazonS3Destination", + "v2.observability_pipeline_amazon_s3_destination_server_side_encryption" => "ObservabilityPipelineAmazonS3DestinationServerSideEncryption", "v2.observability_pipeline_amazon_s3_destination_storage_class" => "ObservabilityPipelineAmazonS3DestinationStorageClass", "v2.observability_pipeline_amazon_s3_destination_type" => "ObservabilityPipelineAmazonS3DestinationType", "v2.observability_pipeline_amazon_s3_generic_batch_settings" => "ObservabilityPipelineAmazonS3GenericBatchSettings", diff --git a/lib/datadog_api_client/v2/models/observability_pipeline_amazon_s3_destination_server_side_encryption.rb b/lib/datadog_api_client/v2/models/observability_pipeline_amazon_s3_destination_server_side_encryption.rb new file mode 100644 index 000000000000..19b9b8691c34 --- /dev/null +++ b/lib/datadog_api_client/v2/models/observability_pipeline_amazon_s3_destination_server_side_encryption.rb @@ -0,0 +1,27 @@ +=begin +#Datadog API V2 Collection + +#Collection of all Datadog Public endpoints. + +The version of the OpenAPI document: 1.0 +Contact: support@datadoghq.com +Generated by: https://github.com/DataDog/datadog-api-client-ruby/tree/master/.generator + + 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 2020-Present Datadog, Inc. + +=end + +require 'date' +require 'time' + +module DatadogAPIClient::V2 + # Server-side encryption type for Amazon S3. + class ObservabilityPipelineAmazonS3DestinationServerSideEncryption + include BaseEnumModel + + AWS_KMS = "aws:kms".freeze + AES256 = "AES256".freeze + end +end diff --git a/lib/datadog_api_client/v2/models/observability_pipeline_amazon_s3_generic_destination.rb b/lib/datadog_api_client/v2/models/observability_pipeline_amazon_s3_generic_destination.rb index e59a20ccea32..90c931dcc202 100644 --- a/lib/datadog_api_client/v2/models/observability_pipeline_amazon_s3_generic_destination.rb +++ b/lib/datadog_api_client/v2/models/observability_pipeline_amazon_s3_generic_destination.rb @@ -54,6 +54,13 @@ class ObservabilityPipelineAmazonS3GenericDestination # AWS region of the S3 bucket. attr_reader :region + # Server-side encryption type for Amazon S3. + attr_accessor :server_side_encryption + + # The AWS KMS key ID used for SSE-KMS encryption. + # Only applies when `server_side_encryption` is set to `aws:kms`. + attr_accessor :ssekms_key_id + # S3 storage class. attr_reader :storage_class @@ -76,6 +83,8 @@ def self.attribute_map :'inputs' => :'inputs', :'key_prefix' => :'key_prefix', :'region' => :'region', + :'server_side_encryption' => :'server_side_encryption', + :'ssekms_key_id' => :'ssekms_key_id', :'storage_class' => :'storage_class', :'type' => :'type' } @@ -95,6 +104,8 @@ def self.openapi_types :'inputs' => :'Array', :'key_prefix' => :'String', :'region' => :'String', + :'server_side_encryption' => :'ObservabilityPipelineAmazonS3DestinationServerSideEncryption', + :'ssekms_key_id' => :'String', :'storage_class' => :'ObservabilityPipelineAmazonS3DestinationStorageClass', :'type' => :'ObservabilityPipelineAmazonS3GenericDestinationType' } @@ -160,6 +171,14 @@ def initialize(attributes = {}) self.region = attributes[:'region'] end + if attributes.key?(:'server_side_encryption') + self.server_side_encryption = attributes[:'server_side_encryption'] + end + + if attributes.key?(:'ssekms_key_id') + self.ssekms_key_id = attributes[:'ssekms_key_id'] + end + if attributes.key?(:'storage_class') self.storage_class = attributes[:'storage_class'] end @@ -300,6 +319,8 @@ def ==(o) inputs == o.inputs && key_prefix == o.key_prefix && region == o.region && + server_side_encryption == o.server_side_encryption && + ssekms_key_id == o.ssekms_key_id && storage_class == o.storage_class && type == o.type && additional_properties == o.additional_properties @@ -309,7 +330,7 @@ def ==(o) # @return [Integer] Hash code # @!visibility private def hash - [auth, batch_settings, bucket, buffer, compression, encoding, id, inputs, key_prefix, region, storage_class, type, additional_properties].hash + [auth, batch_settings, bucket, buffer, compression, encoding, id, inputs, key_prefix, region, server_side_encryption, ssekms_key_id, storage_class, type, additional_properties].hash end end end