microsoft-cdktfconstructs 0.0.3.dev11__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (27) hide show
  1. microsoft_cdktfconstructs/__init__.py +217 -0
  2. microsoft_cdktfconstructs/_jsii/__init__.py +31 -0
  3. microsoft_cdktfconstructs/_jsii/terraform-cdk-constructs@0.0.3-pre.11.jsii.tgz +0 -0
  4. microsoft_cdktfconstructs/azure_applicationgateway/__init__.py +823 -0
  5. microsoft_cdktfconstructs/azure_applicationinsights/__init__.py +397 -0
  6. microsoft_cdktfconstructs/azure_containerregistry/__init__.py +320 -0
  7. microsoft_cdktfconstructs/azure_eventhub/__init__.py +2213 -0
  8. microsoft_cdktfconstructs/azure_functionapp/__init__.py +908 -0
  9. microsoft_cdktfconstructs/azure_keyvault/__init__.py +1982 -0
  10. microsoft_cdktfconstructs/azure_kubernetes/__init__.py +400 -0
  11. microsoft_cdktfconstructs/azure_kusto/__init__.py +2485 -0
  12. microsoft_cdktfconstructs/azure_loganalytics/__init__.py +652 -0
  13. microsoft_cdktfconstructs/azure_metricalert/__init__.py +1260 -0
  14. microsoft_cdktfconstructs/azure_networksecuritygroup/__init__.py +1742 -0
  15. microsoft_cdktfconstructs/azure_queryrulealert/__init__.py +1189 -0
  16. microsoft_cdktfconstructs/azure_resourcegroup/__init__.py +320 -0
  17. microsoft_cdktfconstructs/azure_storageaccount/__init__.py +1910 -0
  18. microsoft_cdktfconstructs/azure_virtualmachine/__init__.py +1460 -0
  19. microsoft_cdktfconstructs/azure_virtualmachinescaleset/__init__.py +1185 -0
  20. microsoft_cdktfconstructs/azure_virtualnetwork/__init__.py +707 -0
  21. microsoft_cdktfconstructs/core_azure/__init__.py +931 -0
  22. microsoft_cdktfconstructs/py.typed +1 -0
  23. microsoft_cdktfconstructs-0.0.3.dev11.dist-info/LICENSE +19 -0
  24. microsoft_cdktfconstructs-0.0.3.dev11.dist-info/METADATA +188 -0
  25. microsoft_cdktfconstructs-0.0.3.dev11.dist-info/RECORD +27 -0
  26. microsoft_cdktfconstructs-0.0.3.dev11.dist-info/WHEEL +5 -0
  27. microsoft_cdktfconstructs-0.0.3.dev11.dist-info/top_level.txt +1 -0
@@ -0,0 +1 @@
1
+
@@ -0,0 +1,19 @@
1
+ Copyright (c) 2024 Microsoft
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining a copy
4
+ of this software and associated documentation files (the "Software"), to deal
5
+ in the Software without restriction, including without limitation the rights
6
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7
+ copies of the Software, and to permit persons to whom the Software is
8
+ furnished to do so, subject to the following conditions:
9
+
10
+ The above copyright notice and this permission notice shall be included in all
11
+ copies or substantial portions of the Software.
12
+
13
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
19
+ SOFTWARE.
@@ -0,0 +1,188 @@
1
+ Metadata-Version: 2.1
2
+ Name: microsoft-cdktfconstructs
3
+ Version: 0.0.3.dev11
4
+ Summary: A collection of CDK modules for provisioning and managing Terraform resources efficiently.
5
+ Home-page: https://github.com/azure/terraform-cdk-constructs.git
6
+ Author: Microsoft
7
+ License: MIT
8
+ Project-URL: Source, https://github.com/azure/terraform-cdk-constructs.git
9
+ Platform: UNKNOWN
10
+ Classifier: Intended Audience :: Developers
11
+ Classifier: Operating System :: OS Independent
12
+ Classifier: Programming Language :: JavaScript
13
+ Classifier: Programming Language :: Python :: 3 :: Only
14
+ Classifier: Programming Language :: Python :: 3.8
15
+ Classifier: Programming Language :: Python :: 3.9
16
+ Classifier: Programming Language :: Python :: 3.10
17
+ Classifier: Programming Language :: Python :: 3.11
18
+ Classifier: Typing :: Typed
19
+ Classifier: Development Status :: 5 - Production/Stable
20
+ Classifier: License :: OSI Approved
21
+ Requires-Python: ~=3.8
22
+ Description-Content-Type: text/markdown
23
+ License-File: LICENSE
24
+ Requires-Dist: cdktf-cdktf-provider-azurerm (==9.0.8)
25
+ Requires-Dist: cdktf (==0.17.3)
26
+ Requires-Dist: constructs (<11.0.0,>=10.1.106)
27
+ Requires-Dist: jsii (<2.0.0,>=1.98.0)
28
+ Requires-Dist: publication (>=0.0.3)
29
+ Requires-Dist: typeguard (~=2.13.3)
30
+
31
+ # Azure Terraform CDK Constructs
32
+
33
+ Welcome to the Azure Terraform CDK Constructs project! This library offers a comprehensive suite of L2 Constructs designed to simplify and enhance the experience of building and managing Azure infrastructure with the Cloud Development Kit for Terraform (CDKTF).
34
+
35
+ ## Benefits of Using L2 Constructs
36
+
37
+ With L2 Constructs, you get the following benefits:
38
+
39
+ * **Abstraction**: Higher-level abstractions over Azure resources make your infrastructure code more declarative and easier to understand.
40
+ * **Reusability**: Encapsulate common patterns and best practices in your infrastructure code, promoting reusability across different projects and teams.
41
+ * **Rapid Development**: Accelerate your cloud development process with pre-built constructs that have been tested for common use cases, allowing you to focus on your unique application logic.
42
+ * **Direct IDE Integration**: Access detailed documentation directly within your Integrated Development Environment (IDE), streamlining your development workflow: ![alt text](./docs/images/ide-documentation.png)
43
+
44
+ ## Quick Example
45
+
46
+ This is a quick example that showcases the simplicity and power of L2 Constructs. We'll create a storage account, add a container to it, and then upload a blob—all with a few lines of intuitive, object-oriented code:
47
+
48
+ ```python
49
+
50
+ // Create a new instance of a storage account as an object
51
+ const sa = new azcdk.azure_storageaccount.Account(stack, "storageaccount", {
52
+ name: "testStorageAccount",
53
+ location: "eastus",
54
+ });
55
+
56
+ // Add a container to the storage account by calling a method on the storage account object
57
+ const container = sa.addContainer("testcontainer");
58
+
59
+ // Add a blob to the container by calling a method on the container object
60
+ // The path "../../../test.txt" points to the source file to be uploaded as a blob
61
+ container.addBlob("testblob.txt", "../../../test.txt");
62
+ ```
63
+
64
+ ## Getting Started
65
+
66
+ This guide will walk you through the process of using the Azure L2 Constructs to define and provision infrastructure on Azure.
67
+
68
+ ### Prerequisites
69
+
70
+ Make sure you have Node.js and npm installed on your machine. These will be used to install the CDK for Terraform and Azure provider packages.
71
+
72
+ ### Installation
73
+
74
+ First, install the CDK for Terraform CLI globally using npm:
75
+
76
+ ```sh
77
+ npm install -g cdktf-cli
78
+ ```
79
+
80
+ Next, initialize a new CDK for Terraform project with TypeScript template:
81
+
82
+ ```sh
83
+ cdktf init --template="TypeScript" --local
84
+ ```
85
+
86
+ Install the AzureRM provider for CDKTF:
87
+
88
+ ```sh
89
+ npm install @cdktf/provider-azurerm
90
+ ```
91
+
92
+ Then, add the Microsoft Terraform CDK constructs for Azure:
93
+
94
+ ```sh
95
+ npm install @micrsoft/terraform-cdk-constructs
96
+
97
+ ```
98
+
99
+ ### Example 1: Creating a Storage Account
100
+
101
+ Now let's create a simple Azure storage account. The following TypeScript snippet defines a storage account resource using the CDKTF:
102
+
103
+ ```python
104
+ // Import necessary modules and classes
105
+ import * as azcdk from "@microsoft/terraform-cdk-constructs";
106
+ import { Construct } from 'constructs';
107
+ import { App, TerraformStack } from 'cdktf';
108
+ import { AzurermProvider } from "@cdktf/provider-azurerm/lib/provider";
109
+
110
+ // Define a new Terraform stack
111
+ class AzureAppInfra extends TerraformStack {
112
+ constructor(scope: Construct, name: string) {
113
+ super(scope, name);
114
+
115
+ // Initialize Azure provider
116
+ new AzurermProvider(this, "azureFeature", { features: {} });
117
+
118
+ // Create a new Azure storage account with the specified name and location
119
+ new azcdk.azure_storageaccount.Account(this, "storageaccount", {
120
+ name: "test42348808",
121
+ location: "eastus",
122
+ });
123
+ }
124
+ }
125
+
126
+ // Initialize the CDK app and synthesize Terraform configurations
127
+ const app = new App();
128
+ new AzureAppInfra(app, 'cdk');
129
+ app.synth();
130
+ ```
131
+
132
+ After defining your infrastructure, generate the Terraform configuration files:
133
+
134
+ ```sh
135
+ cdktf synth
136
+ ```
137
+
138
+ Finally, deploy your infrastructure to Azure:
139
+
140
+ ```sh
141
+ cdktf deploy
142
+ ```
143
+
144
+ ## Supported Languages
145
+
146
+ Currently, our CDK L2 constructs are available in the following languages:
147
+
148
+ | Language | Status |
149
+ |------------|--------------|
150
+ | TypeScript | Available |
151
+ | Python | Coming soon |
152
+ | Java | Coming soon |
153
+ | Go | Coming soon |
154
+ | C# | Coming soon |
155
+
156
+ Stay tuned for updates as we work to expand support to other popular programming languages!
157
+
158
+ ## Contributing
159
+
160
+ This project welcomes contributions and suggestions. Most contributions require you to agree to a
161
+ Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us
162
+ the rights to use your contribution. For details, visit https://cla.opensource.microsoft.com.
163
+
164
+ When you submit a pull request, a CLA bot will automatically determine whether you need to provide
165
+ a CLA and decorate the PR appropriately (e.g., status check, comment). Simply follow the instructions
166
+ provided by the bot. You will only need to do this once across all repos using our CLA.
167
+
168
+ This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).
169
+ For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or
170
+ contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.
171
+
172
+ We welcome contributions to this project! See our documentation on [how to get started contributing](./docs/CONTRIBUTING.md).
173
+
174
+ ## Code Spaces
175
+
176
+ To open this repository in a Code Space, click the button below:
177
+
178
+ [![Open in Code Spaces](https://img.shields.io/badge/Open%20in%20Code%20Spaces-Terraform%20Azure%20CDK%20Modules%20Project-blue?logo=github)](https://github.com/microsoft/terraform-azure-cdk-modules/codespaces)
179
+
180
+ ## Trademarks
181
+
182
+ This project may contain trademarks or logos for projects, products, or services. Authorized use of Microsoft
183
+ trademarks or logos is subject to and must follow
184
+ [Microsoft's Trademark & Brand Guidelines](https://www.microsoft.com/en-us/legal/intellectualproperty/trademarks/usage/general).
185
+ Use of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship.
186
+ Any use of third-party trademarks or logos are subject to those third-party's policies.
187
+
188
+
@@ -0,0 +1,27 @@
1
+ microsoft_cdktfconstructs/__init__.py,sha256=DIgpZvTpL4MJ2H32xvD_rnzhZpys-DnrxwuxmE5l1Ek,7644
2
+ microsoft_cdktfconstructs/py.typed,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
3
+ microsoft_cdktfconstructs/_jsii/__init__.py,sha256=8Ffffcr9sBB16dW3fz5N_fRFv6Fja0eJkhKi7Ikmej4,569
4
+ microsoft_cdktfconstructs/_jsii/terraform-cdk-constructs@0.0.3-pre.11.jsii.tgz,sha256=yswQq25vLl74AhS3EDKzQKzcvwuzlR695ttnQDOCkjw,1483348
5
+ microsoft_cdktfconstructs/azure_applicationgateway/__init__.py,sha256=pNEg2XE17w89EXFN3bZklIwGC2Xk6GHDB-dMP9ggRIw,39836
6
+ microsoft_cdktfconstructs/azure_applicationinsights/__init__.py,sha256=CVIcR-8LJcmpU2vrT6ymN5Wyl5gDrgI8tFvx7DyUT8U,19382
7
+ microsoft_cdktfconstructs/azure_containerregistry/__init__.py,sha256=oWArMbj8NmZwQKppIutj0iH0oE8CgF5kw0OCu3gNkN8,14161
8
+ microsoft_cdktfconstructs/azure_eventhub/__init__.py,sha256=w1KoasnkvEw8euLXGf285f-E4rgTBlhBtY4hTHzEqxU,109794
9
+ microsoft_cdktfconstructs/azure_functionapp/__init__.py,sha256=LuDCwCkDQ1KWydmtqtsnXB1bVBeoc7TDZku_YwQ989o,54572
10
+ microsoft_cdktfconstructs/azure_keyvault/__init__.py,sha256=2rTQYJvSG17vQCgDlStlB9aSsm4nqd8xq__mu7OhvFU,100195
11
+ microsoft_cdktfconstructs/azure_kubernetes/__init__.py,sha256=LdKsCBNBL1JHKFpUaa-x7JTghbXj37ODHNXqxdYXKOg,26433
12
+ microsoft_cdktfconstructs/azure_kusto/__init__.py,sha256=0nkfpqUhRGIn25Y6agnr66HNxVX7mthicdYe1ndCXEY,116010
13
+ microsoft_cdktfconstructs/azure_loganalytics/__init__.py,sha256=39YEFOvj-fYbUxXg7EyfCGrXY8EbQr9M1ZvDrFau4lA,28312
14
+ microsoft_cdktfconstructs/azure_metricalert/__init__.py,sha256=wL1mo2FiySXEmpl_7QY9AueHwydPRjr1MFEPF3ui9KE,56371
15
+ microsoft_cdktfconstructs/azure_networksecuritygroup/__init__.py,sha256=TtOaiargiBxkkKEayj2badyEUGhrxh_45PvMDXUz1U4,82054
16
+ microsoft_cdktfconstructs/azure_queryrulealert/__init__.py,sha256=aHsCdQGhCsKOXXix_rXlY-8EK-oL2RpQ_NydM94HD8w,71126
17
+ microsoft_cdktfconstructs/azure_resourcegroup/__init__.py,sha256=S5dJzdOziX9UEmLmre5XrUikpt1Z1RfV1oBDUGB9f1s,13144
18
+ microsoft_cdktfconstructs/azure_storageaccount/__init__.py,sha256=RqcM4THjXrDrPf7t2y_dOSu9u7fAtm_NuUDT63as_HM,117454
19
+ microsoft_cdktfconstructs/azure_virtualmachine/__init__.py,sha256=7lDjbBErYrBrdHi8s7-7hlXa0bdV-m7-SeoCPXuRX8s,81293
20
+ microsoft_cdktfconstructs/azure_virtualmachinescaleset/__init__.py,sha256=HO7FvB54yg9u1XTFr4fO9C5h4zJwaGJV1enw2Z9z_1I,66935
21
+ microsoft_cdktfconstructs/azure_virtualnetwork/__init__.py,sha256=ghqf5x0gjypkj7H2jJ__0zgEcyd8VUJNyL7_YuEvAB8,34646
22
+ microsoft_cdktfconstructs/core_azure/__init__.py,sha256=6He0B5tATsVqH3WxU3aqXr_nx2CA6maKxoOSTvRoVc4,53383
23
+ microsoft_cdktfconstructs-0.0.3.dev11.dist-info/LICENSE,sha256=0SLuVJtedENwKSGxesd4P9eapoEy3Cm5pMpA2bVyymA,1053
24
+ microsoft_cdktfconstructs-0.0.3.dev11.dist-info/METADATA,sha256=nKCxEbxMj78t-28t4eHIkQ2ZwOG-fkpC-qbKtJROyCA,7368
25
+ microsoft_cdktfconstructs-0.0.3.dev11.dist-info/WHEEL,sha256=G16H4A3IeoQmnOrYV4ueZGKSjhipXx8zc8nu9FGlvMA,92
26
+ microsoft_cdktfconstructs-0.0.3.dev11.dist-info/top_level.txt,sha256=gAK6HcfnNRo2BkEI9sS8XzLnSbZ_H1Hx7szqQSi-nkg,26
27
+ microsoft_cdktfconstructs-0.0.3.dev11.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: bdist_wheel (0.37.1)
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
5
+
@@ -0,0 +1 @@
1
+ microsoft_cdktfconstructs