rhizo-co-terraform-provider-opsgenie
Version:
Prebuilt opsgenie Provider for Terraform CDK (cdktf)
364 lines (363 loc) • 18.7 kB
TypeScript
import { Construct } from 'constructs';
import * as cdktf from 'cdktf';
export interface ScheduleRotationConfig extends cdktf.TerraformMetaArguments {
/**
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/opsgenie/opsgenie/0.6.33/docs/resources/schedule_rotation#end_date ScheduleRotation#end_date}
*/
readonly endDate?: string;
/**
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/opsgenie/opsgenie/0.6.33/docs/resources/schedule_rotation#id ScheduleRotation#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/resources/schedule_rotation#length ScheduleRotation#length}
*/
readonly length?: number;
/**
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/opsgenie/opsgenie/0.6.33/docs/resources/schedule_rotation#name ScheduleRotation#name}
*/
readonly name?: string;
/**
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/opsgenie/opsgenie/0.6.33/docs/resources/schedule_rotation#schedule_id ScheduleRotation#schedule_id}
*/
readonly scheduleId: string;
/**
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/opsgenie/opsgenie/0.6.33/docs/resources/schedule_rotation#start_date ScheduleRotation#start_date}
*/
readonly startDate: string;
/**
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/opsgenie/opsgenie/0.6.33/docs/resources/schedule_rotation#type ScheduleRotation#type}
*/
readonly type: string;
/**
* participant block
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/opsgenie/opsgenie/0.6.33/docs/resources/schedule_rotation#participant ScheduleRotation#participant}
*/
readonly participant: ScheduleRotationParticipant[] | cdktf.IResolvable;
/**
* time_restriction block
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/opsgenie/opsgenie/0.6.33/docs/resources/schedule_rotation#time_restriction ScheduleRotation#time_restriction}
*/
readonly timeRestriction?: ScheduleRotationTimeRestriction[] | cdktf.IResolvable;
}
export interface ScheduleRotationParticipant {
/**
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/opsgenie/opsgenie/0.6.33/docs/resources/schedule_rotation#id ScheduleRotation#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/resources/schedule_rotation#type ScheduleRotation#type}
*/
readonly type: string;
}
export declare function scheduleRotationParticipantToTerraform(struct?: ScheduleRotationParticipant | cdktf.IResolvable): any;
export declare class ScheduleRotationParticipantOutputReference 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(): ScheduleRotationParticipant | cdktf.IResolvable | undefined;
set internalValue(value: ScheduleRotationParticipant | 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);
get typeInput(): string | undefined;
}
export declare class ScheduleRotationParticipantList extends cdktf.ComplexList {
protected terraformResource: cdktf.IInterpolatingParent;
protected terraformAttribute: string;
protected wrapsSet: boolean;
internalValue?: ScheduleRotationParticipant[] | 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): ScheduleRotationParticipantOutputReference;
}
export interface ScheduleRotationTimeRestrictionRestriction {
/**
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/opsgenie/opsgenie/0.6.33/docs/resources/schedule_rotation#end_hour ScheduleRotation#end_hour}
*/
readonly endHour: number;
/**
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/opsgenie/opsgenie/0.6.33/docs/resources/schedule_rotation#end_min ScheduleRotation#end_min}
*/
readonly endMin: number;
/**
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/opsgenie/opsgenie/0.6.33/docs/resources/schedule_rotation#start_hour ScheduleRotation#start_hour}
*/
readonly startHour: number;
/**
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/opsgenie/opsgenie/0.6.33/docs/resources/schedule_rotation#start_min ScheduleRotation#start_min}
*/
readonly startMin: number;
}
export declare function scheduleRotationTimeRestrictionRestrictionToTerraform(struct?: ScheduleRotationTimeRestrictionRestriction | cdktf.IResolvable): any;
export declare class ScheduleRotationTimeRestrictionRestrictionOutputReference 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(): ScheduleRotationTimeRestrictionRestriction | cdktf.IResolvable | undefined;
set internalValue(value: ScheduleRotationTimeRestrictionRestriction | cdktf.IResolvable | undefined);
private _endHour?;
get endHour(): number;
set endHour(value: number);
get endHourInput(): number | undefined;
private _endMin?;
get endMin(): number;
set endMin(value: number);
get endMinInput(): number | undefined;
private _startHour?;
get startHour(): number;
set startHour(value: number);
get startHourInput(): number | undefined;
private _startMin?;
get startMin(): number;
set startMin(value: number);
get startMinInput(): number | undefined;
}
export declare class ScheduleRotationTimeRestrictionRestrictionList extends cdktf.ComplexList {
protected terraformResource: cdktf.IInterpolatingParent;
protected terraformAttribute: string;
protected wrapsSet: boolean;
internalValue?: ScheduleRotationTimeRestrictionRestriction[] | 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): ScheduleRotationTimeRestrictionRestrictionOutputReference;
}
export interface ScheduleRotationTimeRestrictionRestrictions {
/**
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/opsgenie/opsgenie/0.6.33/docs/resources/schedule_rotation#end_day ScheduleRotation#end_day}
*/
readonly endDay: string;
/**
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/opsgenie/opsgenie/0.6.33/docs/resources/schedule_rotation#end_hour ScheduleRotation#end_hour}
*/
readonly endHour: number;
/**
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/opsgenie/opsgenie/0.6.33/docs/resources/schedule_rotation#end_min ScheduleRotation#end_min}
*/
readonly endMin: number;
/**
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/opsgenie/opsgenie/0.6.33/docs/resources/schedule_rotation#start_day ScheduleRotation#start_day}
*/
readonly startDay: string;
/**
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/opsgenie/opsgenie/0.6.33/docs/resources/schedule_rotation#start_hour ScheduleRotation#start_hour}
*/
readonly startHour: number;
/**
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/opsgenie/opsgenie/0.6.33/docs/resources/schedule_rotation#start_min ScheduleRotation#start_min}
*/
readonly startMin: number;
}
export declare function scheduleRotationTimeRestrictionRestrictionsToTerraform(struct?: ScheduleRotationTimeRestrictionRestrictions | cdktf.IResolvable): any;
export declare class ScheduleRotationTimeRestrictionRestrictionsOutputReference 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(): ScheduleRotationTimeRestrictionRestrictions | cdktf.IResolvable | undefined;
set internalValue(value: ScheduleRotationTimeRestrictionRestrictions | cdktf.IResolvable | undefined);
private _endDay?;
get endDay(): string;
set endDay(value: string);
get endDayInput(): string | undefined;
private _endHour?;
get endHour(): number;
set endHour(value: number);
get endHourInput(): number | undefined;
private _endMin?;
get endMin(): number;
set endMin(value: number);
get endMinInput(): number | undefined;
private _startDay?;
get startDay(): string;
set startDay(value: string);
get startDayInput(): string | undefined;
private _startHour?;
get startHour(): number;
set startHour(value: number);
get startHourInput(): number | undefined;
private _startMin?;
get startMin(): number;
set startMin(value: number);
get startMinInput(): number | undefined;
}
export declare class ScheduleRotationTimeRestrictionRestrictionsList extends cdktf.ComplexList {
protected terraformResource: cdktf.IInterpolatingParent;
protected terraformAttribute: string;
protected wrapsSet: boolean;
internalValue?: ScheduleRotationTimeRestrictionRestrictions[] | 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): ScheduleRotationTimeRestrictionRestrictionsOutputReference;
}
export interface ScheduleRotationTimeRestriction {
/**
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/opsgenie/opsgenie/0.6.33/docs/resources/schedule_rotation#type ScheduleRotation#type}
*/
readonly type: string;
/**
* restriction block
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/opsgenie/opsgenie/0.6.33/docs/resources/schedule_rotation#restriction ScheduleRotation#restriction}
*/
readonly restriction?: ScheduleRotationTimeRestrictionRestriction[] | cdktf.IResolvable;
/**
* restrictions block
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/opsgenie/opsgenie/0.6.33/docs/resources/schedule_rotation#restrictions ScheduleRotation#restrictions}
*/
readonly restrictions?: ScheduleRotationTimeRestrictionRestrictions[] | cdktf.IResolvable;
}
export declare function scheduleRotationTimeRestrictionToTerraform(struct?: ScheduleRotationTimeRestriction | cdktf.IResolvable): any;
export declare class ScheduleRotationTimeRestrictionOutputReference 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(): ScheduleRotationTimeRestriction | cdktf.IResolvable | undefined;
set internalValue(value: ScheduleRotationTimeRestriction | cdktf.IResolvable | undefined);
private _type?;
get type(): string;
set type(value: string);
get typeInput(): string | undefined;
private _restriction;
get restriction(): ScheduleRotationTimeRestrictionRestrictionList;
putRestriction(value: ScheduleRotationTimeRestrictionRestriction[] | cdktf.IResolvable): void;
resetRestriction(): void;
get restrictionInput(): cdktf.IResolvable | ScheduleRotationTimeRestrictionRestriction[] | undefined;
private _restrictions;
get restrictions(): ScheduleRotationTimeRestrictionRestrictionsList;
putRestrictions(value: ScheduleRotationTimeRestrictionRestrictions[] | cdktf.IResolvable): void;
resetRestrictions(): void;
get restrictionsInput(): cdktf.IResolvable | ScheduleRotationTimeRestrictionRestrictions[] | undefined;
}
export declare class ScheduleRotationTimeRestrictionList extends cdktf.ComplexList {
protected terraformResource: cdktf.IInterpolatingParent;
protected terraformAttribute: string;
protected wrapsSet: boolean;
internalValue?: ScheduleRotationTimeRestriction[] | 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): ScheduleRotationTimeRestrictionOutputReference;
}
/**
* Represents a {@link https://registry.terraform.io/providers/opsgenie/opsgenie/0.6.33/docs/resources/schedule_rotation opsgenie_schedule_rotation}
*/
export declare class ScheduleRotation extends cdktf.TerraformResource {
static readonly tfResourceType = "opsgenie_schedule_rotation";
/**
* Create a new {@link https://registry.terraform.io/providers/opsgenie/opsgenie/0.6.33/docs/resources/schedule_rotation opsgenie_schedule_rotation} Resource
*
* @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 ScheduleRotationConfig
*/
constructor(scope: Construct, id: string, config: ScheduleRotationConfig);
private _endDate?;
get endDate(): string;
set endDate(value: string);
resetEndDate(): void;
get endDateInput(): string | undefined;
private _id?;
get id(): string;
set id(value: string);
resetId(): void;
get idInput(): string | undefined;
private _length?;
get length(): number;
set length(value: number);
resetLength(): void;
get lengthInput(): number | undefined;
private _name?;
get name(): string;
set name(value: string);
resetName(): void;
get nameInput(): string | undefined;
private _scheduleId?;
get scheduleId(): string;
set scheduleId(value: string);
get scheduleIdInput(): string | undefined;
private _startDate?;
get startDate(): string;
set startDate(value: string);
get startDateInput(): string | undefined;
private _type?;
get type(): string;
set type(value: string);
get typeInput(): string | undefined;
private _participant;
get participant(): ScheduleRotationParticipantList;
putParticipant(value: ScheduleRotationParticipant[] | cdktf.IResolvable): void;
get participantInput(): cdktf.IResolvable | ScheduleRotationParticipant[] | undefined;
private _timeRestriction;
get timeRestriction(): ScheduleRotationTimeRestrictionList;
putTimeRestriction(value: ScheduleRotationTimeRestriction[] | cdktf.IResolvable): void;
resetTimeRestriction(): void;
get timeRestrictionInput(): cdktf.IResolvable | ScheduleRotationTimeRestriction[] | undefined;
protected synthesizeAttributes(): {
[name: string]: any;
};
}