downtime

package
v9.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 29, 2023 License: MPL-2.0 Imports: 7 Imported by: 0

README

datadog_downtime

Refer to the Terraform Registory for docs: datadog_downtime.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Downtime_IsConstruct

func Downtime_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 Downtime_IsTerraformElement

func Downtime_IsTerraformElement(x interface{}) *bool

Experimental.

func Downtime_IsTerraformResource

func Downtime_IsTerraformResource(x interface{}) *bool

Experimental.

func Downtime_TfResourceType

func Downtime_TfResourceType() *string

func NewDowntimeRecurrenceOutputReference_Override

func NewDowntimeRecurrenceOutputReference_Override(d DowntimeRecurrenceOutputReference, terraformResource cdktf.IInterpolatingParent, terraformAttribute *string)

func NewDowntime_Override

func NewDowntime_Override(d Downtime, scope constructs.Construct, id *string, config *DowntimeConfig)

Create a new {@link https://registry.terraform.io/providers/datadog/datadog/3.29.0/docs/resources/downtime datadog_downtime} Resource.

Types

type Downtime

type Downtime interface {
	cdktf.TerraformResource
	Active() cdktf.IResolvable
	ActiveChildId() *float64
	// Experimental.
	CdktfStack() cdktf.TerraformStack
	// 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)
	Disabled() cdktf.IResolvable
	End() *float64
	SetEnd(val *float64)
	EndDate() *string
	SetEndDate(val *string)
	EndDateInput() *string
	EndInput() *float64
	// 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)
	Message() *string
	SetMessage(val *string)
	MessageInput() *string
	MonitorId() *float64
	SetMonitorId(val *float64)
	MonitorIdInput() *float64
	MonitorTags() *[]*string
	SetMonitorTags(val *[]*string)
	MonitorTagsInput() *[]*string
	MuteFirstRecoveryNotification() interface{}
	SetMuteFirstRecoveryNotification(val interface{})
	MuteFirstRecoveryNotificationInput() interface{}
	// 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{}
	Recurrence() DowntimeRecurrenceOutputReference
	RecurrenceInput() *DowntimeRecurrence
	Scope() *[]*string
	SetScope(val *[]*string)
	ScopeInput() *[]*string
	Start() *float64
	SetStart(val *float64)
	StartDate() *string
	SetStartDate(val *string)
	StartDateInput() *string
	StartInput() *float64
	// Experimental.
	TerraformGeneratorMetadata() *cdktf.TerraformProviderGeneratorMetadata
	// Experimental.
	TerraformMetaArguments() *map[string]interface{}
	// Experimental.
	TerraformResourceType() *string
	Timezone() *string
	SetTimezone(val *string)
	TimezoneInput() *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)
	PutRecurrence(value *DowntimeRecurrence)
	ResetEnd()
	ResetEndDate()
	ResetId()
	ResetMessage()
	ResetMonitorId()
	ResetMonitorTags()
	ResetMuteFirstRecoveryNotification()
	// Resets a previously passed logical Id to use the auto-generated logical id again.
	// Experimental.
	ResetOverrideLogicalId()
	ResetRecurrence()
	ResetStart()
	ResetStartDate()
	ResetTimezone()
	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/datadog/datadog/3.29.0/docs/resources/downtime datadog_downtime}.

func NewDowntime

func NewDowntime(scope constructs.Construct, id *string, config *DowntimeConfig) Downtime

Create a new {@link https://registry.terraform.io/providers/datadog/datadog/3.29.0/docs/resources/downtime datadog_downtime} Resource.

type DowntimeConfig

type DowntimeConfig 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"`
	// specify the group scope to which this downtime applies. For everything use '*'.
	//
	// Docs at Terraform Registry: {@link https://registry.terraform.io/providers/datadog/datadog/3.29.0/docs/resources/downtime#scope Downtime#scope}
	Scope *[]*string `field:"required" json:"scope" yaml:"scope"`
	// Optionally specify an end date when this downtime should expire. Accepts a Unix timestamp in UTC.
	//
	// Docs at Terraform Registry: {@link https://registry.terraform.io/providers/datadog/datadog/3.29.0/docs/resources/downtime#end Downtime#end}
	End *float64 `field:"optional" json:"end" yaml:"end"`
	// String representing date and time to end the downtime in RFC3339 format.
	//
	// Docs at Terraform Registry: {@link https://registry.terraform.io/providers/datadog/datadog/3.29.0/docs/resources/downtime#end_date Downtime#end_date}
	EndDate *string `field:"optional" json:"endDate" yaml:"endDate"`
	// Docs at Terraform Registry: {@link https://registry.terraform.io/providers/datadog/datadog/3.29.0/docs/resources/downtime#id Downtime#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"`
	// An optional message to provide when creating the downtime, can include notification handles.
	//
	// Docs at Terraform Registry: {@link https://registry.terraform.io/providers/datadog/datadog/3.29.0/docs/resources/downtime#message Downtime#message}
	Message *string `field:"optional" json:"message" yaml:"message"`
	// When specified, this downtime will only apply to this monitor.
	//
	// Docs at Terraform Registry: {@link https://registry.terraform.io/providers/datadog/datadog/3.29.0/docs/resources/downtime#monitor_id Downtime#monitor_id}
	MonitorId *float64 `field:"optional" json:"monitorId" yaml:"monitorId"`
	// A list of monitor tags (up to 32) to base the scheduled downtime on.
	//
	// Only monitors that have all selected tags are silenced
	//
	// Docs at Terraform Registry: {@link https://registry.terraform.io/providers/datadog/datadog/3.29.0/docs/resources/downtime#monitor_tags Downtime#monitor_tags}
	MonitorTags *[]*string `field:"optional" json:"monitorTags" yaml:"monitorTags"`
	// When true the first recovery notification during the downtime will be muted.
	//
	// Docs at Terraform Registry: {@link https://registry.terraform.io/providers/datadog/datadog/3.29.0/docs/resources/downtime#mute_first_recovery_notification Downtime#mute_first_recovery_notification}
	MuteFirstRecoveryNotification interface{} `field:"optional" json:"muteFirstRecoveryNotification" yaml:"muteFirstRecoveryNotification"`
	// recurrence block.
	//
	// Docs at Terraform Registry: {@link https://registry.terraform.io/providers/datadog/datadog/3.29.0/docs/resources/downtime#recurrence Downtime#recurrence}
	Recurrence *DowntimeRecurrence `field:"optional" json:"recurrence" yaml:"recurrence"`
	// Specify when this downtime should start. Accepts a Unix timestamp in UTC.
	//
	// Docs at Terraform Registry: {@link https://registry.terraform.io/providers/datadog/datadog/3.29.0/docs/resources/downtime#start Downtime#start}
	Start *float64 `field:"optional" json:"start" yaml:"start"`
	// String representing date and time to start the downtime in RFC3339 format.
	//
	// Docs at Terraform Registry: {@link https://registry.terraform.io/providers/datadog/datadog/3.29.0/docs/resources/downtime#start_date Downtime#start_date}
	StartDate *string `field:"optional" json:"startDate" yaml:"startDate"`
	// The timezone for the downtime, default UTC. Follows IANA timezone database identifiers.
	//
	// Docs at Terraform Registry: {@link https://registry.terraform.io/providers/datadog/datadog/3.29.0/docs/resources/downtime#timezone Downtime#timezone}
	Timezone *string `field:"optional" json:"timezone" yaml:"timezone"`
}

type DowntimeRecurrence

type DowntimeRecurrence struct {
	// One of `days`, `weeks`, `months`, `years`, or `rrule`.
	//
	// Docs at Terraform Registry: {@link https://registry.terraform.io/providers/datadog/datadog/3.29.0/docs/resources/downtime#type Downtime#type}
	Type *string `field:"required" json:"type" yaml:"type"`
	// How often to repeat as an integer.
	//
	// For example to repeat every 3 days, select a `type` of `days` and a `period` of `3`.
	//
	// Docs at Terraform Registry: {@link https://registry.terraform.io/providers/datadog/datadog/3.29.0/docs/resources/downtime#period Downtime#period}
	Period *float64 `field:"optional" json:"period" yaml:"period"`
	// The RRULE standard for defining recurring events.
	//
	// For example, to have a recurring event on the first day of each month, use `FREQ=MONTHLY;INTERVAL=1`. Most common rrule options from the iCalendar Spec are supported. Attributes specifying the duration in RRULE are not supported (for example, `DTSTART`, `DTEND`, `DURATION`). Only applicable when `type` is `rrule`.
	//
	// Docs at Terraform Registry: {@link https://registry.terraform.io/providers/datadog/datadog/3.29.0/docs/resources/downtime#rrule Downtime#rrule}
	Rrule *string `field:"optional" json:"rrule" yaml:"rrule"`
	// The date at which the recurrence should end as a POSIX timestamp. `until_occurrences` and `until_date` are mutually exclusive.
	//
	// Docs at Terraform Registry: {@link https://registry.terraform.io/providers/datadog/datadog/3.29.0/docs/resources/downtime#until_date Downtime#until_date}
	UntilDate *float64 `field:"optional" json:"untilDate" yaml:"untilDate"`
	// How many times the downtime will be rescheduled. `until_occurrences` and `until_date` are mutually exclusive.
	//
	// Docs at Terraform Registry: {@link https://registry.terraform.io/providers/datadog/datadog/3.29.0/docs/resources/downtime#until_occurrences Downtime#until_occurrences}
	UntilOccurrences *float64 `field:"optional" json:"untilOccurrences" yaml:"untilOccurrences"`
	// A list of week days to repeat on.
	//
	// Choose from: `Mon`, `Tue`, `Wed`, `Thu`, `Fri`, `Sat` or `Sun`. Only applicable when `type` is `weeks`. First letter must be capitalized.
	//
	// Docs at Terraform Registry: {@link https://registry.terraform.io/providers/datadog/datadog/3.29.0/docs/resources/downtime#week_days Downtime#week_days}
	WeekDays *[]*string `field:"optional" json:"weekDays" yaml:"weekDays"`
}

type DowntimeRecurrenceOutputReference

type DowntimeRecurrenceOutputReference 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
	// Experimental.
	Fqn() *string
	InternalValue() *DowntimeRecurrence
	SetInternalValue(val *DowntimeRecurrence)
	Period() *float64
	SetPeriod(val *float64)
	PeriodInput() *float64
	Rrule() *string
	SetRrule(val *string)
	RruleInput() *string
	// Experimental.
	TerraformAttribute() *string
	// Experimental.
	SetTerraformAttribute(val *string)
	// Experimental.
	TerraformResource() cdktf.IInterpolatingParent
	// Experimental.
	SetTerraformResource(val cdktf.IInterpolatingParent)
	Type() *string
	SetType(val *string)
	TypeInput() *string
	UntilDate() *float64
	SetUntilDate(val *float64)
	UntilDateInput() *float64
	UntilOccurrences() *float64
	SetUntilOccurrences(val *float64)
	UntilOccurrencesInput() *float64
	WeekDays() *[]*string
	SetWeekDays(val *[]*string)
	WeekDaysInput() *[]*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
	ResetPeriod()
	ResetRrule()
	ResetUntilDate()
	ResetUntilOccurrences()
	ResetWeekDays()
	// 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 NewDowntimeRecurrenceOutputReference

func NewDowntimeRecurrenceOutputReference(terraformResource cdktf.IInterpolatingParent, terraformAttribute *string) DowntimeRecurrenceOutputReference

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL