@cdktf/provider-azurerm
Version:
Prebuilt azurerm Provider for Terraform CDK (cdktf)
309 lines (308 loc) • 14.6 kB
TypeScript
/**
* Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: MPL-2.0
*/
import { Construct } from 'constructs';
import * as cdktf from 'cdktf';
export interface SqlServerConfig extends cdktf.TerraformMetaArguments {
/**
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/azurerm/3.116.0/docs/resources/sql_server#administrator_login SqlServer#administrator_login}
*/
readonly administratorLogin: string;
/**
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/azurerm/3.116.0/docs/resources/sql_server#administrator_login_password SqlServer#administrator_login_password}
*/
readonly administratorLoginPassword: string;
/**
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/azurerm/3.116.0/docs/resources/sql_server#connection_policy SqlServer#connection_policy}
*/
readonly connectionPolicy?: string;
/**
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/azurerm/3.116.0/docs/resources/sql_server#id SqlServer#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/sql_server#location SqlServer#location}
*/
readonly location: string;
/**
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/azurerm/3.116.0/docs/resources/sql_server#name SqlServer#name}
*/
readonly name: string;
/**
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/azurerm/3.116.0/docs/resources/sql_server#resource_group_name SqlServer#resource_group_name}
*/
readonly resourceGroupName: string;
/**
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/azurerm/3.116.0/docs/resources/sql_server#tags SqlServer#tags}
*/
readonly tags?: {
[key: string]: string;
};
/**
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/azurerm/3.116.0/docs/resources/sql_server#version SqlServer#version}
*/
readonly version: string;
/**
* identity block
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/azurerm/3.116.0/docs/resources/sql_server#identity SqlServer#identity}
*/
readonly identity?: SqlServerIdentity;
/**
* threat_detection_policy block
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/azurerm/3.116.0/docs/resources/sql_server#threat_detection_policy SqlServer#threat_detection_policy}
*/
readonly threatDetectionPolicy?: SqlServerThreatDetectionPolicy;
/**
* timeouts block
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/azurerm/3.116.0/docs/resources/sql_server#timeouts SqlServer#timeouts}
*/
readonly timeouts?: SqlServerTimeouts;
}
export interface SqlServerIdentity {
/**
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/azurerm/3.116.0/docs/resources/sql_server#type SqlServer#type}
*/
readonly type: string;
}
export declare function sqlServerIdentityToTerraform(struct?: SqlServerIdentityOutputReference | SqlServerIdentity): any;
export declare function sqlServerIdentityToHclTerraform(struct?: SqlServerIdentityOutputReference | SqlServerIdentity): any;
export declare class SqlServerIdentityOutputReference extends cdktf.ComplexObject {
private isEmptyObject;
/**
* @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(): SqlServerIdentity | undefined;
set internalValue(value: SqlServerIdentity | undefined);
get principalId(): string;
get tenantId(): string;
private _type?;
get type(): string;
set type(value: string);
get typeInput(): string | undefined;
}
export interface SqlServerThreatDetectionPolicy {
/**
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/azurerm/3.116.0/docs/resources/sql_server#disabled_alerts SqlServer#disabled_alerts}
*/
readonly disabledAlerts?: string[];
/**
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/azurerm/3.116.0/docs/resources/sql_server#email_account_admins SqlServer#email_account_admins}
*/
readonly emailAccountAdmins?: boolean | cdktf.IResolvable;
/**
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/azurerm/3.116.0/docs/resources/sql_server#email_addresses SqlServer#email_addresses}
*/
readonly emailAddresses?: string[];
/**
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/azurerm/3.116.0/docs/resources/sql_server#retention_days SqlServer#retention_days}
*/
readonly retentionDays?: number;
/**
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/azurerm/3.116.0/docs/resources/sql_server#state SqlServer#state}
*/
readonly state?: string;
/**
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/azurerm/3.116.0/docs/resources/sql_server#storage_account_access_key SqlServer#storage_account_access_key}
*/
readonly storageAccountAccessKey?: string;
/**
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/azurerm/3.116.0/docs/resources/sql_server#storage_endpoint SqlServer#storage_endpoint}
*/
readonly storageEndpoint?: string;
}
export declare function sqlServerThreatDetectionPolicyToTerraform(struct?: SqlServerThreatDetectionPolicyOutputReference | SqlServerThreatDetectionPolicy): any;
export declare function sqlServerThreatDetectionPolicyToHclTerraform(struct?: SqlServerThreatDetectionPolicyOutputReference | SqlServerThreatDetectionPolicy): any;
export declare class SqlServerThreatDetectionPolicyOutputReference extends cdktf.ComplexObject {
private isEmptyObject;
/**
* @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(): SqlServerThreatDetectionPolicy | undefined;
set internalValue(value: SqlServerThreatDetectionPolicy | undefined);
private _disabledAlerts?;
get disabledAlerts(): string[];
set disabledAlerts(value: string[]);
resetDisabledAlerts(): void;
get disabledAlertsInput(): string[] | undefined;
private _emailAccountAdmins?;
get emailAccountAdmins(): boolean | cdktf.IResolvable;
set emailAccountAdmins(value: boolean | cdktf.IResolvable);
resetEmailAccountAdmins(): void;
get emailAccountAdminsInput(): boolean | cdktf.IResolvable | undefined;
private _emailAddresses?;
get emailAddresses(): string[];
set emailAddresses(value: string[]);
resetEmailAddresses(): void;
get emailAddressesInput(): string[] | undefined;
private _retentionDays?;
get retentionDays(): number;
set retentionDays(value: number);
resetRetentionDays(): void;
get retentionDaysInput(): number | undefined;
private _state?;
get state(): string;
set state(value: string);
resetState(): void;
get stateInput(): string | undefined;
private _storageAccountAccessKey?;
get storageAccountAccessKey(): string;
set storageAccountAccessKey(value: string);
resetStorageAccountAccessKey(): void;
get storageAccountAccessKeyInput(): string | undefined;
private _storageEndpoint?;
get storageEndpoint(): string;
set storageEndpoint(value: string);
resetStorageEndpoint(): void;
get storageEndpointInput(): string | undefined;
}
export interface SqlServerTimeouts {
/**
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/azurerm/3.116.0/docs/resources/sql_server#create SqlServer#create}
*/
readonly create?: string;
/**
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/azurerm/3.116.0/docs/resources/sql_server#delete SqlServer#delete}
*/
readonly delete?: string;
/**
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/azurerm/3.116.0/docs/resources/sql_server#read SqlServer#read}
*/
readonly read?: string;
/**
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/azurerm/3.116.0/docs/resources/sql_server#update SqlServer#update}
*/
readonly update?: string;
}
export declare function sqlServerTimeoutsToTerraform(struct?: SqlServerTimeouts | cdktf.IResolvable): any;
export declare function sqlServerTimeoutsToHclTerraform(struct?: SqlServerTimeouts | cdktf.IResolvable): any;
export declare class SqlServerTimeoutsOutputReference 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(): SqlServerTimeouts | cdktf.IResolvable | undefined;
set internalValue(value: SqlServerTimeouts | 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/sql_server azurerm_sql_server}
*/
export declare class SqlServer extends cdktf.TerraformResource {
static readonly tfResourceType = "azurerm_sql_server";
/**
* Generates CDKTF code for importing a SqlServer 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 SqlServer to import
* @param importFromId The id of the existing SqlServer that should be imported. Refer to the {@link https://registry.terraform.io/providers/hashicorp/azurerm/3.116.0/docs/resources/sql_server#import import section} in the documentation of this resource for the id to use
* @param provider? Optional instance of the provider where the SqlServer 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/sql_server azurerm_sql_server} 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 SqlServerConfig
*/
constructor(scope: Construct, id: string, config: SqlServerConfig);
private _administratorLogin?;
get administratorLogin(): string;
set administratorLogin(value: string);
get administratorLoginInput(): string | undefined;
private _administratorLoginPassword?;
get administratorLoginPassword(): string;
set administratorLoginPassword(value: string);
get administratorLoginPasswordInput(): string | undefined;
private _connectionPolicy?;
get connectionPolicy(): string;
set connectionPolicy(value: string);
resetConnectionPolicy(): void;
get connectionPolicyInput(): string | undefined;
get fullyQualifiedDomainName(): string;
private _id?;
get id(): string;
set id(value: string);
resetId(): void;
get idInput(): string | undefined;
private _location?;
get location(): string;
set location(value: string);
get locationInput(): string | undefined;
private _name?;
get name(): string;
set name(value: string);
get nameInput(): string | undefined;
private _resourceGroupName?;
get resourceGroupName(): string;
set resourceGroupName(value: string);
get resourceGroupNameInput(): string | undefined;
private _tags?;
get tags(): {
[key: string]: string;
};
set tags(value: {
[key: string]: string;
});
resetTags(): void;
get tagsInput(): {
[key: string]: string;
} | undefined;
private _version?;
get version(): string;
set version(value: string);
get versionInput(): string | undefined;
private _identity;
get identity(): SqlServerIdentityOutputReference;
putIdentity(value: SqlServerIdentity): void;
resetIdentity(): void;
get identityInput(): SqlServerIdentity | undefined;
private _threatDetectionPolicy;
get threatDetectionPolicy(): SqlServerThreatDetectionPolicyOutputReference;
putThreatDetectionPolicy(value: SqlServerThreatDetectionPolicy): void;
resetThreatDetectionPolicy(): void;
get threatDetectionPolicyInput(): SqlServerThreatDetectionPolicy | undefined;
private _timeouts;
get timeouts(): SqlServerTimeoutsOutputReference;
putTimeouts(value: SqlServerTimeouts): void;
resetTimeouts(): void;
get timeoutsInput(): cdktf.IResolvable | SqlServerTimeouts | undefined;
protected synthesizeAttributes(): {
[name: string]: any;
};
protected synthesizeHclAttributes(): {
[name: string]: any;
};
}