@@ -17,6 +17,10 @@ type CloudConfigurationRulePayload struct {
1717 Cases []CloudConfigurationRuleCaseCreate `json:"cases"`
1818 // How to generate compliance signals. Useful for cloud_configuration rules only.
1919 ComplianceSignalOptions CloudConfigurationRuleComplianceSignalOptions `json:"complianceSignalOptions"`
20+ // Custom/Overridden message for generated signals (used in case of Default rule update).
21+ CustomMessage * string `json:"customMessage,omitempty"`
22+ // Custom/Overridden name of the rule (used in case of Default rule update).
23+ CustomName * string `json:"customName,omitempty"`
2024 // Additional queries to filter matched events before they are processed.
2125 Filters []SecurityMonitoringFilter `json:"filters,omitempty"`
2226 // Whether the rule is enabled.
@@ -105,6 +109,62 @@ func (o *CloudConfigurationRulePayload) SetComplianceSignalOptions(v CloudConfig
105109 o .ComplianceSignalOptions = v
106110}
107111
112+ // GetCustomMessage returns the CustomMessage field value if set, zero value otherwise.
113+ func (o * CloudConfigurationRulePayload ) GetCustomMessage () string {
114+ if o == nil || o .CustomMessage == nil {
115+ var ret string
116+ return ret
117+ }
118+ return * o .CustomMessage
119+ }
120+
121+ // GetCustomMessageOk returns a tuple with the CustomMessage field value if set, nil otherwise
122+ // and a boolean to check if the value has been set.
123+ func (o * CloudConfigurationRulePayload ) GetCustomMessageOk () (* string , bool ) {
124+ if o == nil || o .CustomMessage == nil {
125+ return nil , false
126+ }
127+ return o .CustomMessage , true
128+ }
129+
130+ // HasCustomMessage returns a boolean if a field has been set.
131+ func (o * CloudConfigurationRulePayload ) HasCustomMessage () bool {
132+ return o != nil && o .CustomMessage != nil
133+ }
134+
135+ // SetCustomMessage gets a reference to the given string and assigns it to the CustomMessage field.
136+ func (o * CloudConfigurationRulePayload ) SetCustomMessage (v string ) {
137+ o .CustomMessage = & v
138+ }
139+
140+ // GetCustomName returns the CustomName field value if set, zero value otherwise.
141+ func (o * CloudConfigurationRulePayload ) GetCustomName () string {
142+ if o == nil || o .CustomName == nil {
143+ var ret string
144+ return ret
145+ }
146+ return * o .CustomName
147+ }
148+
149+ // GetCustomNameOk returns a tuple with the CustomName field value if set, nil otherwise
150+ // and a boolean to check if the value has been set.
151+ func (o * CloudConfigurationRulePayload ) GetCustomNameOk () (* string , bool ) {
152+ if o == nil || o .CustomName == nil {
153+ return nil , false
154+ }
155+ return o .CustomName , true
156+ }
157+
158+ // HasCustomName returns a boolean if a field has been set.
159+ func (o * CloudConfigurationRulePayload ) HasCustomName () bool {
160+ return o != nil && o .CustomName != nil
161+ }
162+
163+ // SetCustomName gets a reference to the given string and assigns it to the CustomName field.
164+ func (o * CloudConfigurationRulePayload ) SetCustomName (v string ) {
165+ o .CustomName = & v
166+ }
167+
108168// GetFilters returns the Filters field value if set, zero value otherwise.
109169func (o * CloudConfigurationRulePayload ) GetFilters () []SecurityMonitoringFilter {
110170 if o == nil || o .Filters == nil {
@@ -289,6 +349,12 @@ func (o CloudConfigurationRulePayload) MarshalJSON() ([]byte, error) {
289349 }
290350 toSerialize ["cases" ] = o .Cases
291351 toSerialize ["complianceSignalOptions" ] = o .ComplianceSignalOptions
352+ if o .CustomMessage != nil {
353+ toSerialize ["customMessage" ] = o .CustomMessage
354+ }
355+ if o .CustomName != nil {
356+ toSerialize ["customName" ] = o .CustomName
357+ }
292358 if o .Filters != nil {
293359 toSerialize ["filters" ] = o .Filters
294360 }
@@ -314,6 +380,8 @@ func (o *CloudConfigurationRulePayload) UnmarshalJSON(bytes []byte) (err error)
314380 all := struct {
315381 Cases * []CloudConfigurationRuleCaseCreate `json:"cases"`
316382 ComplianceSignalOptions * CloudConfigurationRuleComplianceSignalOptions `json:"complianceSignalOptions"`
383+ CustomMessage * string `json:"customMessage,omitempty"`
384+ CustomName * string `json:"customName,omitempty"`
317385 Filters []SecurityMonitoringFilter `json:"filters,omitempty"`
318386 IsEnabled * bool `json:"isEnabled"`
319387 Message * string `json:"message"`
@@ -345,7 +413,7 @@ func (o *CloudConfigurationRulePayload) UnmarshalJSON(bytes []byte) (err error)
345413 }
346414 additionalProperties := make (map [string ]interface {})
347415 if err = datadog .Unmarshal (bytes , & additionalProperties ); err == nil {
348- datadog .DeleteKeys (additionalProperties , & []string {"cases" , "complianceSignalOptions" , "filters" , "isEnabled" , "message" , "name" , "options" , "tags" , "type" })
416+ datadog .DeleteKeys (additionalProperties , & []string {"cases" , "complianceSignalOptions" , "customMessage" , "customName" , " filters" , "isEnabled" , "message" , "name" , "options" , "tags" , "type" })
349417 } else {
350418 return err
351419 }
@@ -356,6 +424,8 @@ func (o *CloudConfigurationRulePayload) UnmarshalJSON(bytes []byte) (err error)
356424 hasInvalidField = true
357425 }
358426 o .ComplianceSignalOptions = * all .ComplianceSignalOptions
427+ o .CustomMessage = all .CustomMessage
428+ o .CustomName = all .CustomName
359429 o .Filters = all .Filters
360430 o .IsEnabled = * all .IsEnabled
361431 o .Message = * all .Message
0 commit comments