Documentation ¶
Index ¶
- func MonitorAlert_IsConstruct(x interface{}) *bool
- func MonitorAlert_IsTerraformElement(x interface{}) *bool
- func MonitorAlert_IsTerraformResource(x interface{}) *bool
- func MonitorAlert_TfResourceType() *string
- func NewMonitorAlertAlertsOutputReference_Override(m MonitorAlertAlertsOutputReference, ...)
- func NewMonitorAlertAlertsSlackList_Override(m MonitorAlertAlertsSlackList, terraformResource cdktf.IInterpolatingParent, ...)
- func NewMonitorAlertAlertsSlackOutputReference_Override(m MonitorAlertAlertsSlackOutputReference, ...)
- func NewMonitorAlert_Override(m MonitorAlert, scope constructs.Construct, id *string, ...)
- type MonitorAlert
- type MonitorAlertAlerts
- type MonitorAlertAlertsOutputReference
- type MonitorAlertAlertsSlack
- type MonitorAlertAlertsSlackList
- type MonitorAlertAlertsSlackOutputReference
- type MonitorAlertConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MonitorAlert_IsConstruct ¶
func MonitorAlert_IsConstruct(x interface{}) *bool
Checks if `x` is a construct.
Use this method instead of `instanceof` to properly detect `Construct` instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the `constructs` library on disk are seen as independent, completely different libraries. As a consequence, the class `Construct` in each copy of the `constructs` library is seen as a different class, and an instance of one class will not test as `instanceof` the other class. `npm install` will not create installations like this, but users may manually symlink construct libraries together or use a monorepo tool: in those cases, multiple copies of the `constructs` library can be accidentally installed, and `instanceof` will behave unpredictably. It is safest to avoid using `instanceof`, and using this type-testing method instead.
Returns: true if `x` is an object created from a class which extends `Construct`.
func MonitorAlert_IsTerraformElement ¶
func MonitorAlert_IsTerraformElement(x interface{}) *bool
Experimental.
func MonitorAlert_IsTerraformResource ¶
func MonitorAlert_IsTerraformResource(x interface{}) *bool
Experimental.
func MonitorAlert_TfResourceType ¶
func MonitorAlert_TfResourceType() *string
func NewMonitorAlertAlertsOutputReference_Override ¶
func NewMonitorAlertAlertsOutputReference_Override(m MonitorAlertAlertsOutputReference, terraformResource cdktf.IInterpolatingParent, terraformAttribute *string)
func NewMonitorAlertAlertsSlackList_Override ¶
func NewMonitorAlertAlertsSlackList_Override(m MonitorAlertAlertsSlackList, terraformResource cdktf.IInterpolatingParent, terraformAttribute *string, wrapsSet *bool)
func NewMonitorAlertAlertsSlackOutputReference_Override ¶
func NewMonitorAlertAlertsSlackOutputReference_Override(m MonitorAlertAlertsSlackOutputReference, terraformResource cdktf.IInterpolatingParent, terraformAttribute *string, complexObjectIndex *float64, complexObjectIsFromSet *bool)
func NewMonitorAlert_Override ¶
func NewMonitorAlert_Override(m MonitorAlert, scope constructs.Construct, id *string, config *MonitorAlertConfig)
Create a new {@link https://registry.terraform.io/providers/digitalocean/digitalocean/2.28.1/docs/resources/monitor_alert digitalocean_monitor_alert} Resource.
Types ¶
type MonitorAlert ¶
type MonitorAlert interface { cdktf.TerraformResource Alerts() MonitorAlertAlertsOutputReference AlertsInput() *MonitorAlertAlerts // Experimental. CdktfStack() cdktf.TerraformStack Compare() *string SetCompare(val *string) CompareInput() *string // Experimental. Connection() interface{} // Experimental. SetConnection(val interface{}) // Experimental. ConstructNodeMetadata() *map[string]interface{} // Experimental. Count() interface{} // Experimental. SetCount(val interface{}) // Experimental. DependsOn() *[]*string // Experimental. SetDependsOn(val *[]*string) Description() *string SetDescription(val *string) DescriptionInput() *string Enabled() interface{} SetEnabled(val interface{}) EnabledInput() interface{} Entities() *[]*string SetEntities(val *[]*string) EntitiesInput() *[]*string // Experimental. ForEach() cdktf.ITerraformIterator // Experimental. SetForEach(val cdktf.ITerraformIterator) // Experimental. Fqn() *string // Experimental. FriendlyUniqueId() *string Id() *string SetId(val *string) IdInput() *string // Experimental. Lifecycle() *cdktf.TerraformResourceLifecycle // Experimental. SetLifecycle(val *cdktf.TerraformResourceLifecycle) // The tree node. Node() constructs.Node // Experimental. Provider() cdktf.TerraformProvider // Experimental. SetProvider(val cdktf.TerraformProvider) // Experimental. Provisioners() *[]interface{} // Experimental. SetProvisioners(val *[]interface{}) // Experimental. RawOverrides() interface{} Tags() *[]*string SetTags(val *[]*string) TagsInput() *[]*string // Experimental. TerraformGeneratorMetadata() *cdktf.TerraformProviderGeneratorMetadata // Experimental. TerraformMetaArguments() *map[string]interface{} // Experimental. TerraformResourceType() *string Type() *string SetType(val *string) TypeInput() *string Uuid() *string Value() *float64 SetValue(val *float64) ValueInput() *float64 Window() *string SetWindow(val *string) WindowInput() *string // Experimental. AddOverride(path *string, value interface{}) // Experimental. GetAnyMapAttribute(terraformAttribute *string) *map[string]interface{} // Experimental. GetBooleanAttribute(terraformAttribute *string) cdktf.IResolvable // Experimental. GetBooleanMapAttribute(terraformAttribute *string) *map[string]*bool // Experimental. GetListAttribute(terraformAttribute *string) *[]*string // Experimental. GetNumberAttribute(terraformAttribute *string) *float64 // Experimental. GetNumberListAttribute(terraformAttribute *string) *[]*float64 // Experimental. GetNumberMapAttribute(terraformAttribute *string) *map[string]*float64 // Experimental. GetStringAttribute(terraformAttribute *string) *string // Experimental. GetStringMapAttribute(terraformAttribute *string) *map[string]*string // Experimental. InterpolationForAttribute(terraformAttribute *string) cdktf.IResolvable // Overrides the auto-generated logical ID with a specific ID. // Experimental. OverrideLogicalId(newLogicalId *string) PutAlerts(value *MonitorAlertAlerts) ResetEnabled() ResetEntities() ResetId() // Resets a previously passed logical Id to use the auto-generated logical id again. // Experimental. ResetOverrideLogicalId() ResetTags() SynthesizeAttributes() *map[string]interface{} // Experimental. ToMetadata() interface{} // Returns a string representation of this construct. ToString() *string // Adds this resource to the terraform JSON output. // Experimental. ToTerraform() interface{} }
Represents a {@link https://registry.terraform.io/providers/digitalocean/digitalocean/2.28.1/docs/resources/monitor_alert digitalocean_monitor_alert}.
func NewMonitorAlert ¶
func NewMonitorAlert(scope constructs.Construct, id *string, config *MonitorAlertConfig) MonitorAlert
Create a new {@link https://registry.terraform.io/providers/digitalocean/digitalocean/2.28.1/docs/resources/monitor_alert digitalocean_monitor_alert} Resource.
type MonitorAlertAlerts ¶
type MonitorAlertAlerts struct { // List of email addresses to sent notifications to. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/digitalocean/digitalocean/2.28.1/docs/resources/monitor_alert#email MonitorAlert#email} Email *[]*string `field:"optional" json:"email" yaml:"email"` // slack block. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/digitalocean/digitalocean/2.28.1/docs/resources/monitor_alert#slack MonitorAlert#slack} Slack interface{} `field:"optional" json:"slack" yaml:"slack"` }
type MonitorAlertAlertsOutputReference ¶
type MonitorAlertAlertsOutputReference interface { cdktf.ComplexObject // the index of the complex object in a list. // Experimental. ComplexObjectIndex() interface{} // Experimental. SetComplexObjectIndex(val interface{}) // set to true if this item is from inside a set and needs tolist() for accessing it set to "0" for single list items. // Experimental. ComplexObjectIsFromSet() *bool // Experimental. SetComplexObjectIsFromSet(val *bool) // The creation stack of this resolvable which will be appended to errors thrown during resolution. // // If this returns an empty array the stack will not be attached. // Experimental. CreationStack() *[]*string Email() *[]*string SetEmail(val *[]*string) EmailInput() *[]*string // Experimental. Fqn() *string InternalValue() *MonitorAlertAlerts SetInternalValue(val *MonitorAlertAlerts) Slack() MonitorAlertAlertsSlackList SlackInput() interface{} // Experimental. TerraformAttribute() *string // Experimental. SetTerraformAttribute(val *string) // Experimental. TerraformResource() cdktf.IInterpolatingParent // Experimental. SetTerraformResource(val cdktf.IInterpolatingParent) // Experimental. ComputeFqn() *string // Experimental. GetAnyMapAttribute(terraformAttribute *string) *map[string]interface{} // Experimental. GetBooleanAttribute(terraformAttribute *string) cdktf.IResolvable // Experimental. GetBooleanMapAttribute(terraformAttribute *string) *map[string]*bool // Experimental. GetListAttribute(terraformAttribute *string) *[]*string // Experimental. GetNumberAttribute(terraformAttribute *string) *float64 // Experimental. GetNumberListAttribute(terraformAttribute *string) *[]*float64 // Experimental. GetNumberMapAttribute(terraformAttribute *string) *map[string]*float64 // Experimental. GetStringAttribute(terraformAttribute *string) *string // Experimental. GetStringMapAttribute(terraformAttribute *string) *map[string]*string // Experimental. InterpolationAsList() cdktf.IResolvable // Experimental. InterpolationForAttribute(property *string) cdktf.IResolvable PutSlack(value interface{}) ResetEmail() ResetSlack() // Produce the Token's value at resolution time. // Experimental. Resolve(_context cdktf.IResolveContext) interface{} // Return a string representation of this resolvable object. // // Returns a reversible string representation. // Experimental. ToString() *string }
func NewMonitorAlertAlertsOutputReference ¶
func NewMonitorAlertAlertsOutputReference(terraformResource cdktf.IInterpolatingParent, terraformAttribute *string) MonitorAlertAlertsOutputReference
type MonitorAlertAlertsSlack ¶
type MonitorAlertAlertsSlack struct { // The Slack channel to send alerts to. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/digitalocean/digitalocean/2.28.1/docs/resources/monitor_alert#channel MonitorAlert#channel} Channel *string `field:"required" json:"channel" yaml:"channel"` // The webhook URL for Slack. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/digitalocean/digitalocean/2.28.1/docs/resources/monitor_alert#url MonitorAlert#url} Url *string `field:"required" json:"url" yaml:"url"` }
type MonitorAlertAlertsSlackList ¶
type MonitorAlertAlertsSlackList interface { cdktf.ComplexList // The creation stack of this resolvable which will be appended to errors thrown during resolution. // // If this returns an empty array the stack will not be attached. // Experimental. CreationStack() *[]*string // Experimental. Fqn() *string InternalValue() interface{} SetInternalValue(val interface{}) // The attribute on the parent resource this class is referencing. TerraformAttribute() *string SetTerraformAttribute(val *string) // The parent resource. TerraformResource() cdktf.IInterpolatingParent SetTerraformResource(val cdktf.IInterpolatingParent) // whether the list is wrapping a set (will add tolist() to be able to access an item via an index). WrapsSet() *bool SetWrapsSet(val *bool) // Experimental. ComputeFqn() *string Get(index *float64) MonitorAlertAlertsSlackOutputReference // Produce the Token's value at resolution time. // Experimental. Resolve(_context cdktf.IResolveContext) interface{} // Return a string representation of this resolvable object. // // Returns a reversible string representation. // Experimental. ToString() *string }
func NewMonitorAlertAlertsSlackList ¶
func NewMonitorAlertAlertsSlackList(terraformResource cdktf.IInterpolatingParent, terraformAttribute *string, wrapsSet *bool) MonitorAlertAlertsSlackList
type MonitorAlertAlertsSlackOutputReference ¶
type MonitorAlertAlertsSlackOutputReference interface { cdktf.ComplexObject Channel() *string SetChannel(val *string) ChannelInput() *string // the index of the complex object in a list. // Experimental. ComplexObjectIndex() interface{} // Experimental. SetComplexObjectIndex(val interface{}) // set to true if this item is from inside a set and needs tolist() for accessing it set to "0" for single list items. // Experimental. ComplexObjectIsFromSet() *bool // Experimental. SetComplexObjectIsFromSet(val *bool) // The creation stack of this resolvable which will be appended to errors thrown during resolution. // // If this returns an empty array the stack will not be attached. // Experimental. CreationStack() *[]*string // Experimental. Fqn() *string InternalValue() interface{} SetInternalValue(val interface{}) // Experimental. TerraformAttribute() *string // Experimental. SetTerraformAttribute(val *string) // Experimental. TerraformResource() cdktf.IInterpolatingParent // Experimental. SetTerraformResource(val cdktf.IInterpolatingParent) Url() *string SetUrl(val *string) UrlInput() *string // Experimental. ComputeFqn() *string // Experimental. GetAnyMapAttribute(terraformAttribute *string) *map[string]interface{} // Experimental. GetBooleanAttribute(terraformAttribute *string) cdktf.IResolvable // Experimental. GetBooleanMapAttribute(terraformAttribute *string) *map[string]*bool // Experimental. GetListAttribute(terraformAttribute *string) *[]*string // Experimental. GetNumberAttribute(terraformAttribute *string) *float64 // Experimental. GetNumberListAttribute(terraformAttribute *string) *[]*float64 // Experimental. GetNumberMapAttribute(terraformAttribute *string) *map[string]*float64 // Experimental. GetStringAttribute(terraformAttribute *string) *string // Experimental. GetStringMapAttribute(terraformAttribute *string) *map[string]*string // Experimental. InterpolationAsList() cdktf.IResolvable // Experimental. InterpolationForAttribute(property *string) cdktf.IResolvable // Produce the Token's value at resolution time. // Experimental. Resolve(_context cdktf.IResolveContext) interface{} // Return a string representation of this resolvable object. // // Returns a reversible string representation. // Experimental. ToString() *string }
func NewMonitorAlertAlertsSlackOutputReference ¶
func NewMonitorAlertAlertsSlackOutputReference(terraformResource cdktf.IInterpolatingParent, terraformAttribute *string, complexObjectIndex *float64, complexObjectIsFromSet *bool) MonitorAlertAlertsSlackOutputReference
type MonitorAlertConfig ¶
type MonitorAlertConfig struct { // Experimental. Connection interface{} `field:"optional" json:"connection" yaml:"connection"` // Experimental. Count interface{} `field:"optional" json:"count" yaml:"count"` // Experimental. DependsOn *[]cdktf.ITerraformDependable `field:"optional" json:"dependsOn" yaml:"dependsOn"` // Experimental. ForEach cdktf.ITerraformIterator `field:"optional" json:"forEach" yaml:"forEach"` // Experimental. Lifecycle *cdktf.TerraformResourceLifecycle `field:"optional" json:"lifecycle" yaml:"lifecycle"` // Experimental. Provider cdktf.TerraformProvider `field:"optional" json:"provider" yaml:"provider"` // Experimental. Provisioners *[]interface{} `field:"optional" json:"provisioners" yaml:"provisioners"` // alerts block. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/digitalocean/digitalocean/2.28.1/docs/resources/monitor_alert#alerts MonitorAlert#alerts} Alerts *MonitorAlertAlerts `field:"required" json:"alerts" yaml:"alerts"` // The comparison operator to use for value. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/digitalocean/digitalocean/2.28.1/docs/resources/monitor_alert#compare MonitorAlert#compare} Compare *string `field:"required" json:"compare" yaml:"compare"` // Description of the alert policy. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/digitalocean/digitalocean/2.28.1/docs/resources/monitor_alert#description MonitorAlert#description} Description *string `field:"required" json:"description" yaml:"description"` // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/digitalocean/digitalocean/2.28.1/docs/resources/monitor_alert#type MonitorAlert#type}. Type *string `field:"required" json:"type" yaml:"type"` // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/digitalocean/digitalocean/2.28.1/docs/resources/monitor_alert#value MonitorAlert#value}. Value *float64 `field:"required" json:"value" yaml:"value"` // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/digitalocean/digitalocean/2.28.1/docs/resources/monitor_alert#window MonitorAlert#window}. Window *string `field:"required" json:"window" yaml:"window"` // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/digitalocean/digitalocean/2.28.1/docs/resources/monitor_alert#enabled MonitorAlert#enabled}. Enabled interface{} `field:"optional" json:"enabled" yaml:"enabled"` // The droplets to apply the alert policy to. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/digitalocean/digitalocean/2.28.1/docs/resources/monitor_alert#entities MonitorAlert#entities} Entities *[]*string `field:"optional" json:"entities" yaml:"entities"` // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/digitalocean/digitalocean/2.28.1/docs/resources/monitor_alert#id MonitorAlert#id}. // // Please be aware that the id field is automatically added to all resources in Terraform providers using a Terraform provider SDK version below 2. // If you experience problems setting this value it might not be settable. Please take a look at the provider documentation to ensure it should be settable. Id *string `field:"optional" json:"id" yaml:"id"` // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/digitalocean/digitalocean/2.28.1/docs/resources/monitor_alert#tags MonitorAlert#tags}. Tags *[]*string `field:"optional" json:"tags" yaml:"tags"` }
Source Files ¶
- MonitorAlert.go
- MonitorAlertAlerts.go
- MonitorAlertAlertsOutputReference.go
- MonitorAlertAlertsOutputReference__checks.go
- MonitorAlertAlertsSlack.go
- MonitorAlertAlertsSlackList.go
- MonitorAlertAlertsSlackList__checks.go
- MonitorAlertAlertsSlackOutputReference.go
- MonitorAlertAlertsSlackOutputReference__checks.go
- MonitorAlertConfig.go
- MonitorAlert__checks.go
- main.go