File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -90,9 +90,6 @@ def __init__(
90
90
if idempotency :
91
91
self .with_idempotency (idempotency )
92
92
93
- for name , value in kwargs .items ():
94
- setattr (self , name , value )
95
-
96
93
self .dlq = None
97
94
98
95
if use_dlq :
@@ -101,14 +98,19 @@ def __init__(
101
98
if use_async_dlq :
102
99
self .use_async_dlq ()
103
100
104
- log_group = dict (Type = "AWS::Logs::LogGroup" , Properties = dict (RetentionInDays = 30 ))
101
+ log_group_properties = kwargs .pop ("log_group" , {}).get ("Properties" ) or dict (RetentionInDays = 30 )
102
+
103
+ log_group = dict (Type = "AWS::Logs::LogGroup" , Properties = log_group_properties )
105
104
if service .has (Encryption ):
106
105
log_group ["Properties" ]["KmsKeyId" ] = EncryptableResource .encryption_arn ()
107
106
if not service .regions :
108
107
log_group ["DependsOn" ] = [EncryptableResource .encryption_key_name () + "Alias" ]
109
108
110
109
service .resources .add (DummyResource (title = self .log_group_name (), ** log_group ))
111
110
111
+ for name , value in kwargs .items ():
112
+ setattr (self , name , value )
113
+
112
114
@property
113
115
def iam (self ):
114
116
if not self ._service .plugins .get (IAMRoles ):
You can’t perform that action at this time.
0 commit comments