Share via


IConstruct Interface

Definition

Interface for a construct.

public interface IConstruct
type IConstruct = interface
Public Interface IConstruct
Derived

Properties

Configuration

Gets the configuration for the construct.

ConstructScope

Gets the ConstructScope scope.

EnvironmentName

Gets the environment name of the construct.

Name

Gets the name of the construct.

ResourceGroup

Gets the ResourceGroup for the construct.

Root

Gets the Tenant for the construct."/>.

Scope

Gets the parent of the construct.

Subscription

Gets the Subscription for the construct.

Methods

AddConstruct(IConstruct)

Adds a child construct to the construct.

AddOutput(Output)

Adds an output to the construct.

AddParameter(Parameter)

Adds a parameter to the construct.

AddResource(Resource)

Adds a resource to the construct.

GetConstructs(Boolean)

Gets all child constructs in the construct.

GetOutputs(Boolean)

Gets all outputs in the construct.

GetParameters(Boolean)

Gets all parameters in the construct.

GetResources(Boolean)

Gets all resources in the construct.

Extension Methods

AddAppConfigurationStore(IConstruct, String)

Adds a AppConfigurationStore to the construct.

AddKeyVault(IConstruct, ResourceGroup, String)

Adds a KeyVault to the construct.

GetSecrets(IConstruct)

Gets all of the KeyVaultSecret in the construct.

GetSingleResource<T>(IConstruct)

Gets the single resource of type T in the construct or its ancestors.

GetSingleResourceInScope<T>(IConstruct)

Gets the single resource of type T in the construct or its childresources.

AddResourceGroup(IConstruct)

Adds a resource group to the construct.

GetOrAddResourceGroup(IConstruct)

Gets or adds the resource group of the construct.

GetOrCreateSubscription(IConstruct, Nullable<Guid>)

Gets or adds a subscription to the construct.

AddBlobService(IConstruct)

Adds a BlobService to the construct.

AddStorageAccount(IConstruct, StorageKind, StorageSkuName, ResourceGroup, String)

Adds a StorageAccount to the construct.

Applies to