@cdktf/provider-azurerm
Version:
Prebuilt azurerm Provider for Terraform CDK (cdktf)
181 lines (180 loc) • 8.06 kB
TypeScript
/**
* Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: MPL-2.0
*/
import { Construct } from 'constructs';
import * as cdktf from 'cdktf';
export interface SubscriptionConfig extends cdktf.TerraformMetaArguments {
/**
* The Alias Name of the subscription. If omitted a new UUID will be generated for this property.
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/azurerm/3.116.0/docs/resources/subscription#alias Subscription#alias}
*/
readonly alias?: string;
/**
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/azurerm/3.116.0/docs/resources/subscription#billing_scope_id Subscription#billing_scope_id}
*/
readonly billingScopeId?: string;
/**
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/azurerm/3.116.0/docs/resources/subscription#id Subscription#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;
/**
* The GUID of the Subscription.
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/azurerm/3.116.0/docs/resources/subscription#subscription_id Subscription#subscription_id}
*/
readonly subscriptionId?: string;
/**
* The Display Name for the Subscription.
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/azurerm/3.116.0/docs/resources/subscription#subscription_name Subscription#subscription_name}
*/
readonly subscriptionName: string;
/**
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/azurerm/3.116.0/docs/resources/subscription#tags Subscription#tags}
*/
readonly tags?: {
[key: string]: string;
};
/**
* The workload type for the Subscription. Possible values are `Production` (default) and `DevTest`.
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/azurerm/3.116.0/docs/resources/subscription#workload Subscription#workload}
*/
readonly workload?: string;
/**
* timeouts block
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/azurerm/3.116.0/docs/resources/subscription#timeouts Subscription#timeouts}
*/
readonly timeouts?: SubscriptionTimeouts;
}
export interface SubscriptionTimeouts {
/**
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/azurerm/3.116.0/docs/resources/subscription#create Subscription#create}
*/
readonly create?: string;
/**
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/azurerm/3.116.0/docs/resources/subscription#delete Subscription#delete}
*/
readonly delete?: string;
/**
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/azurerm/3.116.0/docs/resources/subscription#read Subscription#read}
*/
readonly read?: string;
/**
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/azurerm/3.116.0/docs/resources/subscription#update Subscription#update}
*/
readonly update?: string;
}
export declare function subscriptionTimeoutsToTerraform(struct?: SubscriptionTimeouts | cdktf.IResolvable): any;
export declare function subscriptionTimeoutsToHclTerraform(struct?: SubscriptionTimeouts | cdktf.IResolvable): any;
export declare class SubscriptionTimeoutsOutputReference 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(): SubscriptionTimeouts | cdktf.IResolvable | undefined;
set internalValue(value: SubscriptionTimeouts | 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/subscription azurerm_subscription}
*/
export declare class Subscription extends cdktf.TerraformResource {
static readonly tfResourceType = "azurerm_subscription";
/**
* Generates CDKTF code for importing a Subscription 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 Subscription to import
* @param importFromId The id of the existing Subscription that should be imported. Refer to the {@link https://registry.terraform.io/providers/hashicorp/azurerm/3.116.0/docs/resources/subscription#import import section} in the documentation of this resource for the id to use
* @param provider? Optional instance of the provider where the Subscription 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/subscription azurerm_subscription} 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 SubscriptionConfig
*/
constructor(scope: Construct, id: string, config: SubscriptionConfig);
private _alias?;
get alias(): string;
set alias(value: string);
resetAlias(): void;
get aliasInput(): string | undefined;
private _billingScopeId?;
get billingScopeId(): string;
set billingScopeId(value: string);
resetBillingScopeId(): void;
get billingScopeIdInput(): string | undefined;
private _id?;
get id(): string;
set id(value: string);
resetId(): void;
get idInput(): string | undefined;
private _subscriptionId?;
get subscriptionId(): string;
set subscriptionId(value: string);
resetSubscriptionId(): void;
get subscriptionIdInput(): string | undefined;
private _subscriptionName?;
get subscriptionName(): string;
set subscriptionName(value: string);
get subscriptionNameInput(): string | undefined;
private _tags?;
get tags(): {
[key: string]: string;
};
set tags(value: {
[key: string]: string;
});
resetTags(): void;
get tagsInput(): {
[key: string]: string;
} | undefined;
get tenantId(): string;
private _workload?;
get workload(): string;
set workload(value: string);
resetWorkload(): void;
get workloadInput(): string | undefined;
private _timeouts;
get timeouts(): SubscriptionTimeoutsOutputReference;
putTimeouts(value: SubscriptionTimeouts): void;
resetTimeouts(): void;
get timeoutsInput(): cdktf.IResolvable | SubscriptionTimeouts | undefined;
protected synthesizeAttributes(): {
[name: string]: any;
};
protected synthesizeHclAttributes(): {
[name: string]: any;
};
}