1414
1515
1616if TYPE_CHECKING :
17+ from datadog_api_client .v2 .model .logs_archive_encryption_s3 import LogsArchiveEncryptionS3
1718 from datadog_api_client .v2 .model .logs_archive_integration_s3 import LogsArchiveIntegrationS3
1819 from datadog_api_client .v2 .model .logs_archive_destination_s3_type import LogsArchiveDestinationS3Type
1920
2021
2122class LogsArchiveDestinationS3 (ModelNormal ):
2223 @cached_property
2324 def openapi_types (_ ):
25+ from datadog_api_client .v2 .model .logs_archive_encryption_s3 import LogsArchiveEncryptionS3
2426 from datadog_api_client .v2 .model .logs_archive_integration_s3 import LogsArchiveIntegrationS3
2527 from datadog_api_client .v2 .model .logs_archive_destination_s3_type import LogsArchiveDestinationS3Type
2628
2729 return {
2830 "bucket" : (str ,),
31+ "encryption" : (LogsArchiveEncryptionS3 ,),
2932 "integration" : (LogsArchiveIntegrationS3 ,),
3033 "path" : (str ,),
3134 "type" : (LogsArchiveDestinationS3Type ,),
3235 }
3336
3437 attribute_map = {
3538 "bucket" : "bucket" ,
39+ "encryption" : "encryption" ,
3640 "integration" : "integration" ,
3741 "path" : "path" ,
3842 "type" : "type" ,
@@ -43,6 +47,7 @@ def __init__(
4347 bucket : str ,
4448 integration : LogsArchiveIntegrationS3 ,
4549 type : LogsArchiveDestinationS3Type ,
50+ encryption : Union [LogsArchiveEncryptionS3 , UnsetType ] = unset ,
4651 path : Union [str , UnsetType ] = unset ,
4752 ** kwargs ,
4853 ):
@@ -52,6 +57,9 @@ def __init__(
5257 :param bucket: The bucket where the archive will be stored.
5358 :type bucket: str
5459
60+ :param encryption: The S3 encryption settings.
61+ :type encryption: LogsArchiveEncryptionS3, optional
62+
5563 :param integration: The S3 Archive's integration destination.
5664 :type integration: LogsArchiveIntegrationS3
5765
@@ -61,6 +69,8 @@ def __init__(
6169 :param type: Type of the S3 archive destination.
6270 :type type: LogsArchiveDestinationS3Type
6371 """
72+ if encryption is not unset :
73+ kwargs ["encryption" ] = encryption
6474 if path is not unset :
6575 kwargs ["path" ] = path
6676 super ().__init__ (kwargs )
0 commit comments