rhizo-co-terraform-provider-opsgenie
Version:
Prebuilt opsgenie Provider for Terraform CDK (cdktf)
269 lines (268 loc) • 14 kB
TypeScript
import { Construct } from 'constructs';
import * as cdktf from 'cdktf';
export interface DataOpsgenieEscalationConfig extends cdktf.TerraformMetaArguments {
/**
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/opsgenie/opsgenie/0.6.33/docs/data-sources/escalation#description DataOpsgenieEscalation#description}
*/
readonly description?: string;
/**
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/opsgenie/opsgenie/0.6.33/docs/data-sources/escalation#id DataOpsgenieEscalation#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.
*/
readonly id?: string;
/**
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/opsgenie/opsgenie/0.6.33/docs/data-sources/escalation#name DataOpsgenieEscalation#name}
*/
readonly name: string;
/**
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/opsgenie/opsgenie/0.6.33/docs/data-sources/escalation#owner_team_id DataOpsgenieEscalation#owner_team_id}
*/
readonly ownerTeamId?: string;
/**
* repeat block
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/opsgenie/opsgenie/0.6.33/docs/data-sources/escalation#repeat DataOpsgenieEscalation#repeat}
*/
readonly repeat?: DataOpsgenieEscalationRepeat[] | cdktf.IResolvable;
/**
* rules block
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/opsgenie/opsgenie/0.6.33/docs/data-sources/escalation#rules DataOpsgenieEscalation#rules}
*/
readonly rules?: DataOpsgenieEscalationRules[] | cdktf.IResolvable;
}
export interface DataOpsgenieEscalationRepeat {
/**
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/opsgenie/opsgenie/0.6.33/docs/data-sources/escalation#close_alert_after_all DataOpsgenieEscalation#close_alert_after_all}
*/
readonly closeAlertAfterAll?: boolean | cdktf.IResolvable;
/**
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/opsgenie/opsgenie/0.6.33/docs/data-sources/escalation#count DataOpsgenieEscalation#count}
*/
readonly count?: number;
/**
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/opsgenie/opsgenie/0.6.33/docs/data-sources/escalation#reset_recipient_states DataOpsgenieEscalation#reset_recipient_states}
*/
readonly resetRecipientStates?: boolean | cdktf.IResolvable;
/**
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/opsgenie/opsgenie/0.6.33/docs/data-sources/escalation#wait_interval DataOpsgenieEscalation#wait_interval}
*/
readonly waitInterval?: number;
}
export declare function dataOpsgenieEscalationRepeatToTerraform(struct?: DataOpsgenieEscalationRepeat | cdktf.IResolvable): any;
export declare class DataOpsgenieEscalationRepeatOutputReference extends cdktf.ComplexObject {
private isEmptyObject;
private resolvableValue?;
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
* @param complexObjectIndex the index of this item in the list
* @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
*/
constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string, complexObjectIndex: number, complexObjectIsFromSet: boolean);
get internalValue(): DataOpsgenieEscalationRepeat | cdktf.IResolvable | undefined;
set internalValue(value: DataOpsgenieEscalationRepeat | cdktf.IResolvable | undefined);
private _closeAlertAfterAll?;
get closeAlertAfterAll(): boolean | cdktf.IResolvable;
set closeAlertAfterAll(value: boolean | cdktf.IResolvable);
resetCloseAlertAfterAll(): void;
get closeAlertAfterAllInput(): boolean | cdktf.IResolvable | undefined;
private _count?;
get count(): number;
set count(value: number);
resetCount(): void;
get countInput(): number | undefined;
private _resetRecipientStates?;
get resetRecipientStates(): boolean | cdktf.IResolvable;
set resetRecipientStates(value: boolean | cdktf.IResolvable);
resetResetRecipientStates(): void;
get resetRecipientStatesInput(): boolean | cdktf.IResolvable | undefined;
private _waitInterval?;
get waitInterval(): number;
set waitInterval(value: number);
resetWaitInterval(): void;
get waitIntervalInput(): number | undefined;
}
export declare class DataOpsgenieEscalationRepeatList extends cdktf.ComplexList {
protected terraformResource: cdktf.IInterpolatingParent;
protected terraformAttribute: string;
protected wrapsSet: boolean;
internalValue?: DataOpsgenieEscalationRepeat[] | cdktf.IResolvable;
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
* @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
*/
constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string, wrapsSet: boolean);
/**
* @param index the index of the item to return
*/
get(index: number): DataOpsgenieEscalationRepeatOutputReference;
}
export interface DataOpsgenieEscalationRulesRecipient {
/**
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/opsgenie/opsgenie/0.6.33/docs/data-sources/escalation#id DataOpsgenieEscalation#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.
*/
readonly id?: string;
/**
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/opsgenie/opsgenie/0.6.33/docs/data-sources/escalation#type DataOpsgenieEscalation#type}
*/
readonly type?: string;
}
export declare function dataOpsgenieEscalationRulesRecipientToTerraform(struct?: DataOpsgenieEscalationRulesRecipient | cdktf.IResolvable): any;
export declare class DataOpsgenieEscalationRulesRecipientOutputReference extends cdktf.ComplexObject {
private isEmptyObject;
private resolvableValue?;
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
* @param complexObjectIndex the index of this item in the list
* @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
*/
constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string, complexObjectIndex: number, complexObjectIsFromSet: boolean);
get internalValue(): DataOpsgenieEscalationRulesRecipient | cdktf.IResolvable | undefined;
set internalValue(value: DataOpsgenieEscalationRulesRecipient | cdktf.IResolvable | undefined);
private _id?;
get id(): string;
set id(value: string);
resetId(): void;
get idInput(): string | undefined;
private _type?;
get type(): string;
set type(value: string);
resetType(): void;
get typeInput(): string | undefined;
}
export declare class DataOpsgenieEscalationRulesRecipientList extends cdktf.ComplexList {
protected terraformResource: cdktf.IInterpolatingParent;
protected terraformAttribute: string;
protected wrapsSet: boolean;
internalValue?: DataOpsgenieEscalationRulesRecipient[] | cdktf.IResolvable;
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
* @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
*/
constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string, wrapsSet: boolean);
/**
* @param index the index of the item to return
*/
get(index: number): DataOpsgenieEscalationRulesRecipientOutputReference;
}
export interface DataOpsgenieEscalationRules {
/**
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/opsgenie/opsgenie/0.6.33/docs/data-sources/escalation#condition DataOpsgenieEscalation#condition}
*/
readonly condition: string;
/**
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/opsgenie/opsgenie/0.6.33/docs/data-sources/escalation#delay DataOpsgenieEscalation#delay}
*/
readonly delay: number;
/**
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/opsgenie/opsgenie/0.6.33/docs/data-sources/escalation#notify_type DataOpsgenieEscalation#notify_type}
*/
readonly notifyType: string;
/**
* recipient block
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/opsgenie/opsgenie/0.6.33/docs/data-sources/escalation#recipient DataOpsgenieEscalation#recipient}
*/
readonly recipient: DataOpsgenieEscalationRulesRecipient[] | cdktf.IResolvable;
}
export declare function dataOpsgenieEscalationRulesToTerraform(struct?: DataOpsgenieEscalationRules | cdktf.IResolvable): any;
export declare class DataOpsgenieEscalationRulesOutputReference extends cdktf.ComplexObject {
private isEmptyObject;
private resolvableValue?;
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
* @param complexObjectIndex the index of this item in the list
* @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
*/
constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string, complexObjectIndex: number, complexObjectIsFromSet: boolean);
get internalValue(): DataOpsgenieEscalationRules | cdktf.IResolvable | undefined;
set internalValue(value: DataOpsgenieEscalationRules | cdktf.IResolvable | undefined);
private _condition?;
get condition(): string;
set condition(value: string);
get conditionInput(): string | undefined;
private _delay?;
get delay(): number;
set delay(value: number);
get delayInput(): number | undefined;
private _notifyType?;
get notifyType(): string;
set notifyType(value: string);
get notifyTypeInput(): string | undefined;
private _recipient;
get recipient(): DataOpsgenieEscalationRulesRecipientList;
putRecipient(value: DataOpsgenieEscalationRulesRecipient[] | cdktf.IResolvable): void;
get recipientInput(): cdktf.IResolvable | DataOpsgenieEscalationRulesRecipient[] | undefined;
}
export declare class DataOpsgenieEscalationRulesList extends cdktf.ComplexList {
protected terraformResource: cdktf.IInterpolatingParent;
protected terraformAttribute: string;
protected wrapsSet: boolean;
internalValue?: DataOpsgenieEscalationRules[] | cdktf.IResolvable;
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
* @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
*/
constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string, wrapsSet: boolean);
/**
* @param index the index of the item to return
*/
get(index: number): DataOpsgenieEscalationRulesOutputReference;
}
/**
* Represents a {@link https://registry.terraform.io/providers/opsgenie/opsgenie/0.6.33/docs/data-sources/escalation opsgenie_escalation}
*/
export declare class DataOpsgenieEscalation extends cdktf.TerraformDataSource {
static readonly tfResourceType = "opsgenie_escalation";
/**
* Create a new {@link https://registry.terraform.io/providers/opsgenie/opsgenie/0.6.33/docs/data-sources/escalation opsgenie_escalation} Data Source
*
* @param scope The scope in which to define this construct
* @param id The scoped construct ID. Must be unique amongst siblings in the same scope
* @param options DataOpsgenieEscalationConfig
*/
constructor(scope: Construct, id: string, config: DataOpsgenieEscalationConfig);
private _description?;
get description(): string;
set description(value: string);
resetDescription(): void;
get descriptionInput(): string | undefined;
private _id?;
get id(): string;
set id(value: string);
resetId(): void;
get idInput(): string | undefined;
private _name?;
get name(): string;
set name(value: string);
get nameInput(): string | undefined;
private _ownerTeamId?;
get ownerTeamId(): string;
set ownerTeamId(value: string);
resetOwnerTeamId(): void;
get ownerTeamIdInput(): string | undefined;
private _repeat;
get repeat(): DataOpsgenieEscalationRepeatList;
putRepeat(value: DataOpsgenieEscalationRepeat[] | cdktf.IResolvable): void;
resetRepeat(): void;
get repeatInput(): cdktf.IResolvable | DataOpsgenieEscalationRepeat[] | undefined;
private _rules;
get rules(): DataOpsgenieEscalationRulesList;
putRules(value: DataOpsgenieEscalationRules[] | cdktf.IResolvable): void;
resetRules(): void;
get rulesInput(): cdktf.IResolvable | DataOpsgenieEscalationRules[] | undefined;
protected synthesizeAttributes(): {
[name: string]: any;
};
}