@cdktf/provider-azurerm
Version:
Prebuilt azurerm Provider for Terraform CDK (cdktf)
310 lines (309 loc) • 16.6 kB
TypeScript
/**
* Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: MPL-2.0
*/
import { Construct } from 'constructs';
import * as cdktf from 'cdktf';
export interface TrafficManagerAzureEndpointConfig extends cdktf.TerraformMetaArguments {
/**
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/azurerm/3.116.0/docs/resources/traffic_manager_azure_endpoint#always_serve_enabled TrafficManagerAzureEndpoint#always_serve_enabled}
*/
readonly alwaysServeEnabled?: boolean | cdktf.IResolvable;
/**
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/azurerm/3.116.0/docs/resources/traffic_manager_azure_endpoint#enabled TrafficManagerAzureEndpoint#enabled}
*/
readonly enabled?: boolean | cdktf.IResolvable;
/**
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/azurerm/3.116.0/docs/resources/traffic_manager_azure_endpoint#geo_mappings TrafficManagerAzureEndpoint#geo_mappings}
*/
readonly geoMappings?: string[];
/**
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/azurerm/3.116.0/docs/resources/traffic_manager_azure_endpoint#id TrafficManagerAzureEndpoint#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/hashicorp/azurerm/3.116.0/docs/resources/traffic_manager_azure_endpoint#name TrafficManagerAzureEndpoint#name}
*/
readonly name: string;
/**
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/azurerm/3.116.0/docs/resources/traffic_manager_azure_endpoint#priority TrafficManagerAzureEndpoint#priority}
*/
readonly priority?: number;
/**
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/azurerm/3.116.0/docs/resources/traffic_manager_azure_endpoint#profile_id TrafficManagerAzureEndpoint#profile_id}
*/
readonly profileId: string;
/**
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/azurerm/3.116.0/docs/resources/traffic_manager_azure_endpoint#target_resource_id TrafficManagerAzureEndpoint#target_resource_id}
*/
readonly targetResourceId: string;
/**
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/azurerm/3.116.0/docs/resources/traffic_manager_azure_endpoint#weight TrafficManagerAzureEndpoint#weight}
*/
readonly weight?: number;
/**
* custom_header block
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/azurerm/3.116.0/docs/resources/traffic_manager_azure_endpoint#custom_header TrafficManagerAzureEndpoint#custom_header}
*/
readonly customHeader?: TrafficManagerAzureEndpointCustomHeader[] | cdktf.IResolvable;
/**
* subnet block
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/azurerm/3.116.0/docs/resources/traffic_manager_azure_endpoint#subnet TrafficManagerAzureEndpoint#subnet}
*/
readonly subnet?: TrafficManagerAzureEndpointSubnet[] | cdktf.IResolvable;
/**
* timeouts block
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/azurerm/3.116.0/docs/resources/traffic_manager_azure_endpoint#timeouts TrafficManagerAzureEndpoint#timeouts}
*/
readonly timeouts?: TrafficManagerAzureEndpointTimeouts;
}
export interface TrafficManagerAzureEndpointCustomHeader {
/**
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/azurerm/3.116.0/docs/resources/traffic_manager_azure_endpoint#name TrafficManagerAzureEndpoint#name}
*/
readonly name: string;
/**
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/azurerm/3.116.0/docs/resources/traffic_manager_azure_endpoint#value TrafficManagerAzureEndpoint#value}
*/
readonly value: string;
}
export declare function trafficManagerAzureEndpointCustomHeaderToTerraform(struct?: TrafficManagerAzureEndpointCustomHeader | cdktf.IResolvable): any;
export declare function trafficManagerAzureEndpointCustomHeaderToHclTerraform(struct?: TrafficManagerAzureEndpointCustomHeader | cdktf.IResolvable): any;
export declare class TrafficManagerAzureEndpointCustomHeaderOutputReference 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(): TrafficManagerAzureEndpointCustomHeader | cdktf.IResolvable | undefined;
set internalValue(value: TrafficManagerAzureEndpointCustomHeader | cdktf.IResolvable | undefined);
private _name?;
get name(): string;
set name(value: string);
get nameInput(): string | undefined;
private _value?;
get value(): string;
set value(value: string);
get valueInput(): string | undefined;
}
export declare class TrafficManagerAzureEndpointCustomHeaderList extends cdktf.ComplexList {
protected terraformResource: cdktf.IInterpolatingParent;
protected terraformAttribute: string;
protected wrapsSet: boolean;
internalValue?: TrafficManagerAzureEndpointCustomHeader[] | 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): TrafficManagerAzureEndpointCustomHeaderOutputReference;
}
export interface TrafficManagerAzureEndpointSubnet {
/**
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/azurerm/3.116.0/docs/resources/traffic_manager_azure_endpoint#first TrafficManagerAzureEndpoint#first}
*/
readonly first: string;
/**
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/azurerm/3.116.0/docs/resources/traffic_manager_azure_endpoint#last TrafficManagerAzureEndpoint#last}
*/
readonly last?: string;
/**
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/azurerm/3.116.0/docs/resources/traffic_manager_azure_endpoint#scope TrafficManagerAzureEndpoint#scope}
*/
readonly scope?: number;
}
export declare function trafficManagerAzureEndpointSubnetToTerraform(struct?: TrafficManagerAzureEndpointSubnet | cdktf.IResolvable): any;
export declare function trafficManagerAzureEndpointSubnetToHclTerraform(struct?: TrafficManagerAzureEndpointSubnet | cdktf.IResolvable): any;
export declare class TrafficManagerAzureEndpointSubnetOutputReference 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(): TrafficManagerAzureEndpointSubnet | cdktf.IResolvable | undefined;
set internalValue(value: TrafficManagerAzureEndpointSubnet | cdktf.IResolvable | undefined);
private _first?;
get first(): string;
set first(value: string);
get firstInput(): string | undefined;
private _last?;
get last(): string;
set last(value: string);
resetLast(): void;
get lastInput(): string | undefined;
private _scope?;
get scope(): number;
set scope(value: number);
resetScope(): void;
get scopeInput(): number | undefined;
}
export declare class TrafficManagerAzureEndpointSubnetList extends cdktf.ComplexList {
protected terraformResource: cdktf.IInterpolatingParent;
protected terraformAttribute: string;
protected wrapsSet: boolean;
internalValue?: TrafficManagerAzureEndpointSubnet[] | 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): TrafficManagerAzureEndpointSubnetOutputReference;
}
export interface TrafficManagerAzureEndpointTimeouts {
/**
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/azurerm/3.116.0/docs/resources/traffic_manager_azure_endpoint#create TrafficManagerAzureEndpoint#create}
*/
readonly create?: string;
/**
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/azurerm/3.116.0/docs/resources/traffic_manager_azure_endpoint#delete TrafficManagerAzureEndpoint#delete}
*/
readonly delete?: string;
/**
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/azurerm/3.116.0/docs/resources/traffic_manager_azure_endpoint#read TrafficManagerAzureEndpoint#read}
*/
readonly read?: string;
/**
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/azurerm/3.116.0/docs/resources/traffic_manager_azure_endpoint#update TrafficManagerAzureEndpoint#update}
*/
readonly update?: string;
}
export declare function trafficManagerAzureEndpointTimeoutsToTerraform(struct?: TrafficManagerAzureEndpointTimeouts | cdktf.IResolvable): any;
export declare function trafficManagerAzureEndpointTimeoutsToHclTerraform(struct?: TrafficManagerAzureEndpointTimeouts | cdktf.IResolvable): any;
export declare class TrafficManagerAzureEndpointTimeoutsOutputReference extends cdktf.ComplexObject {
private isEmptyObject;
private resolvableValue?;
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
*/
constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string);
get internalValue(): TrafficManagerAzureEndpointTimeouts | cdktf.IResolvable | undefined;
set internalValue(value: TrafficManagerAzureEndpointTimeouts | cdktf.IResolvable | undefined);
private _create?;
get create(): string;
set create(value: string);
resetCreate(): void;
get createInput(): string | undefined;
private _delete?;
get delete(): string;
set delete(value: string);
resetDelete(): void;
get deleteInput(): string | undefined;
private _read?;
get read(): string;
set read(value: string);
resetRead(): void;
get readInput(): string | undefined;
private _update?;
get update(): string;
set update(value: string);
resetUpdate(): void;
get updateInput(): string | undefined;
}
/**
* Represents a {@link https://registry.terraform.io/providers/hashicorp/azurerm/3.116.0/docs/resources/traffic_manager_azure_endpoint azurerm_traffic_manager_azure_endpoint}
*/
export declare class TrafficManagerAzureEndpoint extends cdktf.TerraformResource {
static readonly tfResourceType = "azurerm_traffic_manager_azure_endpoint";
/**
* Generates CDKTF code for importing a TrafficManagerAzureEndpoint resource upon running "cdktf plan <stack-name>"
* @param scope The scope in which to define this construct
* @param importToId The construct id used in the generated config for the TrafficManagerAzureEndpoint to import
* @param importFromId The id of the existing TrafficManagerAzureEndpoint that should be imported. Refer to the {@link https://registry.terraform.io/providers/hashicorp/azurerm/3.116.0/docs/resources/traffic_manager_azure_endpoint#import import section} in the documentation of this resource for the id to use
* @param provider? Optional instance of the provider where the TrafficManagerAzureEndpoint to import is found
*/
static generateConfigForImport(scope: Construct, importToId: string, importFromId: string, provider?: cdktf.TerraformProvider): cdktf.ImportableResource;
/**
* Create a new {@link https://registry.terraform.io/providers/hashicorp/azurerm/3.116.0/docs/resources/traffic_manager_azure_endpoint azurerm_traffic_manager_azure_endpoint} 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 TrafficManagerAzureEndpointConfig
*/
constructor(scope: Construct, id: string, config: TrafficManagerAzureEndpointConfig);
private _alwaysServeEnabled?;
get alwaysServeEnabled(): boolean | cdktf.IResolvable;
set alwaysServeEnabled(value: boolean | cdktf.IResolvable);
resetAlwaysServeEnabled(): void;
get alwaysServeEnabledInput(): boolean | cdktf.IResolvable | undefined;
private _enabled?;
get enabled(): boolean | cdktf.IResolvable;
set enabled(value: boolean | cdktf.IResolvable);
resetEnabled(): void;
get enabledInput(): boolean | cdktf.IResolvable | undefined;
private _geoMappings?;
get geoMappings(): string[];
set geoMappings(value: string[]);
resetGeoMappings(): void;
get geoMappingsInput(): 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 _priority?;
get priority(): number;
set priority(value: number);
resetPriority(): void;
get priorityInput(): number | undefined;
private _profileId?;
get profileId(): string;
set profileId(value: string);
get profileIdInput(): string | undefined;
private _targetResourceId?;
get targetResourceId(): string;
set targetResourceId(value: string);
get targetResourceIdInput(): string | undefined;
private _weight?;
get weight(): number;
set weight(value: number);
resetWeight(): void;
get weightInput(): number | undefined;
private _customHeader;
get customHeader(): TrafficManagerAzureEndpointCustomHeaderList;
putCustomHeader(value: TrafficManagerAzureEndpointCustomHeader[] | cdktf.IResolvable): void;
resetCustomHeader(): void;
get customHeaderInput(): cdktf.IResolvable | TrafficManagerAzureEndpointCustomHeader[] | undefined;
private _subnet;
get subnet(): TrafficManagerAzureEndpointSubnetList;
putSubnet(value: TrafficManagerAzureEndpointSubnet[] | cdktf.IResolvable): void;
resetSubnet(): void;
get subnetInput(): cdktf.IResolvable | TrafficManagerAzureEndpointSubnet[] | undefined;
private _timeouts;
get timeouts(): TrafficManagerAzureEndpointTimeoutsOutputReference;
putTimeouts(value: TrafficManagerAzureEndpointTimeouts): void;
resetTimeouts(): void;
get timeoutsInput(): cdktf.IResolvable | TrafficManagerAzureEndpointTimeouts | undefined;
protected synthesizeAttributes(): {
[name: string]: any;
};
protected synthesizeHclAttributes(): {
[name: string]: any;
};
}