From 69067af2d512ce117ac844d9a3aba9fd59f769fa Mon Sep 17 00:00:00 2001 From: burakgzt Date: Mon, 13 Feb 2023 12:04:58 +0300 Subject: [PATCH] v0.0.4 --- Taskfile.yml | 3 +- schema.json | 15 +++-- sdk/dotnet/Aws/ContainerFunction.cs | 5 ++ sdk/dotnet/Aws/ServerlessDatabase.cs | 5 ++ sdk/dotnet/pulumi-plugin.json | 3 +- sdk/dotnet/version.txt | 2 +- sdk/go/nuage/aws/containerFunction.go | 21 ++++--- sdk/go/nuage/aws/init.go | 2 + sdk/go/nuage/aws/serverlessDatabase.go | 3 + sdk/go/nuage/pulumi-plugin.json | 3 +- sdk/nodejs/aws/containerFunction.ts | 5 ++ sdk/nodejs/aws/serverlessDatabase.ts | 5 ++ sdk/nodejs/package.json | 5 +- sdk/nodejs/yarn.lock | 28 ++++----- sdk/python/README.md | 28 --------- .../pulumi_nuage/aws/container_function.py | 58 ++++++++++++++++++- .../pulumi_nuage/aws/serverless_database.py | 42 +++++++++++++- sdk/python/pulumi_nuage/pulumi-plugin.json | 3 +- sdk/python/setup.py | 6 +- 19 files changed, 174 insertions(+), 68 deletions(-) diff --git a/Taskfile.yml b/Taskfile.yml index 28c757fa..2c6cb5ea 100644 --- a/Taskfile.yml +++ b/Taskfile.yml @@ -6,7 +6,8 @@ includes: taskfile: ./provider/cmd/tests/TestTasks.yml env: - versionNumber: 0.0.3 + versionNumber: + sh: cat schema.json | jq -r '.version' tasks: sdk: diff --git a/schema.json b/schema.json index 3c90219d..87706747 100644 --- a/schema.json +++ b/schema.json @@ -1,5 +1,6 @@ { "name": "nuage", + "version":"0.0.4", "types": { "nuage:aws:ArchitectureType": { "type":"string", @@ -254,11 +255,13 @@ "Pulumi.Awsx":"1.0.0-beta.*", "Pulumi.Docker":"3.*", "Pulumi.Command":"4.6.0-alpha.*" - } + }, + "respectSchemaVersion": true }, "go": { "generateResourceContainerTypes": true, - "importBasePath": "github.com/pulumi/pulumi-nuage/sdk/go/nuage" + "importBasePath": "github.com/pulumi/pulumi-nuage/sdk/go/nuage", + "respectSchemaVersion": true }, "nodejs": { "dependencies": { @@ -270,7 +273,8 @@ "devDependencies": { "@types/node": "^17.0.21", "typescript": "^3.7.0" - } + }, + "respectSchemaVersion": true }, "python": { "requires": { @@ -279,8 +283,9 @@ "pulumi-awsx": ">=1.0.0b11", "pulumi_docker": ">=3.0.0,<4.0.0", "pulumi-random": ">4.8.0", - "pulumi-command": ">0.7.0" - } + "pulumi-command": ">=0.7.0" + }, + "respectSchemaVersion": true } } } \ No newline at end of file diff --git a/sdk/dotnet/Aws/ContainerFunction.cs b/sdk/dotnet/Aws/ContainerFunction.cs index 4878c6d9..e5be2e58 100644 --- a/sdk/dotnet/Aws/ContainerFunction.cs +++ b/sdk/dotnet/Aws/ContainerFunction.cs @@ -9,6 +9,11 @@ namespace Pulumi.Nuage.Aws { + /// + /// Provides an AWS Lambda Function with additional necesary resources. It bundles several resources such as `Lambda Functions`, `Function URLs`, `CloudWatch keep-warm rules`, `Log Group with a Retention Policy`, `Role to run Lambda and Write Logs`. It also has a feature to manage build and deployment of Docker builds, removal of docker build artifacts (randomly generated image names that pollute your local docker) and automated X-Ray tracing. + /// + /// ## Example Usage + /// [NuageResourceType("nuage:aws:ContainerFunction")] public partial class ContainerFunction : Pulumi.ComponentResource { diff --git a/sdk/dotnet/Aws/ServerlessDatabase.cs b/sdk/dotnet/Aws/ServerlessDatabase.cs index 198f4bd9..901a6ea7 100644 --- a/sdk/dotnet/Aws/ServerlessDatabase.cs +++ b/sdk/dotnet/Aws/ServerlessDatabase.cs @@ -9,6 +9,11 @@ namespace Pulumi.Nuage.Aws { + /// + /// The ServerlessDatabase component is a convenient and efficient solution for creating serverless databases using Amazon RDS Aurora. It automatically creates components such as subnet group, security group, security group rules, and RDS cluster, and securely manages the DB credentials. With support for both MySQL and PostgreSQL, it provides a fully configured serverless database resource for your serverless database needs. + /// + /// ## Example Usage + /// [NuageResourceType("nuage:aws:ServerlessDatabase")] public partial class ServerlessDatabase : Pulumi.ComponentResource { diff --git a/sdk/dotnet/pulumi-plugin.json b/sdk/dotnet/pulumi-plugin.json index f7bd6659..10fa887e 100644 --- a/sdk/dotnet/pulumi-plugin.json +++ b/sdk/dotnet/pulumi-plugin.json @@ -1,4 +1,5 @@ { "resource": true, - "name": "nuage" + "name": "nuage", + "version": "0.0.4" } diff --git a/sdk/dotnet/version.txt b/sdk/dotnet/version.txt index bcab45af..81340c7e 100644 --- a/sdk/dotnet/version.txt +++ b/sdk/dotnet/version.txt @@ -1 +1 @@ -0.0.3 +0.0.4 diff --git a/sdk/go/nuage/aws/containerFunction.go b/sdk/go/nuage/aws/containerFunction.go index a9df144b..f1997b6c 100644 --- a/sdk/go/nuage/aws/containerFunction.go +++ b/sdk/go/nuage/aws/containerFunction.go @@ -7,25 +7,32 @@ import ( "context" "reflect" + "github.com/pkg/errors" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) +// Provides an AWS Lambda Function with additional necesary resources. It bundles several resources such as `Lambda Functions`, `Function URLs`, `CloudWatch keep-warm rules`, `Log Group with a Retention Policy`, `Role to run Lambda and Write Logs`. It also has a feature to manage build and deployment of Docker builds, removal of docker build artifacts (randomly generated image names that pollute your local docker) and automated X-Ray tracing. +// +// ## Example Usage type ContainerFunction struct { pulumi.ResourceState - Arn pulumi.StringOutput `pulumi:"arn"` - Ecr_image_name pulumi.StringOutput `pulumi:"ecr_image_name"` - Function_url pulumi.StringOutput `pulumi:"function_url"` - Name pulumi.StringOutput `pulumi:"name"` + Arn pulumi.StringOutput `pulumi:"arn"` + Function_url pulumi.StringOutput `pulumi:"function_url"` + Image_uri pulumi.StringOutput `pulumi:"image_uri"` + Name pulumi.StringOutput `pulumi:"name"` } // NewContainerFunction registers a new resource with the given unique name, arguments, and options. func NewContainerFunction(ctx *pulumi.Context, name string, args *ContainerFunctionArgs, opts ...pulumi.ResourceOption) (*ContainerFunction, error) { if args == nil { - args = &ContainerFunctionArgs{} + return nil, errors.New("missing one or more required arguments") } + if args.RepositoryUrl == nil { + return nil, errors.New("invalid value for required argument 'RepositoryUrl'") + } var resource ContainerFunction err := ctx.RegisterRemoteComponentResource("nuage:aws:ContainerFunction", name, args, &resource, opts...) if err != nil { @@ -58,7 +65,7 @@ type containerFunctionArgs struct { // Policy Document for lambda. PolicyDocument *string `pulumi:"policyDocument"` // Existing ECR repository name - RepositoryId *string `pulumi:"repositoryId"` + RepositoryUrl string `pulumi:"repositoryUrl"` // Amount of time your Lambda Function has to run in seconds. Defaults to `3` Timeout *float64 `pulumi:"timeout"` // Use Lambda URL. Defaults to `false` @@ -90,7 +97,7 @@ type ContainerFunctionArgs struct { // Policy Document for lambda. PolicyDocument pulumi.StringPtrInput // Existing ECR repository name - RepositoryId pulumi.StringPtrInput + RepositoryUrl pulumi.StringInput // Amount of time your Lambda Function has to run in seconds. Defaults to `3` Timeout pulumi.Float64PtrInput // Use Lambda URL. Defaults to `false` diff --git a/sdk/go/nuage/aws/init.go b/sdk/go/nuage/aws/init.go index a18d911e..b2c4eea7 100644 --- a/sdk/go/nuage/aws/init.go +++ b/sdk/go/nuage/aws/init.go @@ -23,6 +23,8 @@ func (m *module) Construct(ctx *pulumi.Context, name, typ, urn string) (r pulumi switch typ { case "nuage:aws:ContainerFunction": r = &ContainerFunction{} + case "nuage:aws:Repository": + r = &Repository{} case "nuage:aws:ServerlessDatabase": r = &ServerlessDatabase{} case "nuage:aws:bucket_nuage": diff --git a/sdk/go/nuage/aws/serverlessDatabase.go b/sdk/go/nuage/aws/serverlessDatabase.go index a70a24d8..c3005415 100644 --- a/sdk/go/nuage/aws/serverlessDatabase.go +++ b/sdk/go/nuage/aws/serverlessDatabase.go @@ -11,6 +11,9 @@ import ( "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) +// The ServerlessDatabase component is a convenient and efficient solution for creating serverless databases using Amazon RDS Aurora. It automatically creates components such as subnet group, security group, security group rules, and RDS cluster, and securely manages the DB credentials. With support for both MySQL and PostgreSQL, it provides a fully configured serverless database resource for your serverless database needs. +// +// ## Example Usage type ServerlessDatabase struct { pulumi.ResourceState diff --git a/sdk/go/nuage/pulumi-plugin.json b/sdk/go/nuage/pulumi-plugin.json index f7bd6659..10fa887e 100644 --- a/sdk/go/nuage/pulumi-plugin.json +++ b/sdk/go/nuage/pulumi-plugin.json @@ -1,4 +1,5 @@ { "resource": true, - "name": "nuage" + "name": "nuage", + "version": "0.0.4" } diff --git a/sdk/nodejs/aws/containerFunction.ts b/sdk/nodejs/aws/containerFunction.ts index 9c9f350a..dcf02080 100644 --- a/sdk/nodejs/aws/containerFunction.ts +++ b/sdk/nodejs/aws/containerFunction.ts @@ -4,6 +4,11 @@ import * as pulumi from "@pulumi/pulumi"; import * as utilities from "../utilities"; +/** + * Provides an AWS Lambda Function with additional necesary resources. It bundles several resources such as `Lambda Functions`, `Function URLs`, `CloudWatch keep-warm rules`, `Log Group with a Retention Policy`, `Role to run Lambda and Write Logs`. It also has a feature to manage build and deployment of Docker builds, removal of docker build artifacts (randomly generated image names that pollute your local docker) and automated X-Ray tracing. + * + * ## Example Usage + */ export class ContainerFunction extends pulumi.ComponentResource { /** @internal */ public static readonly __pulumiType = 'nuage:aws:ContainerFunction'; diff --git a/sdk/nodejs/aws/serverlessDatabase.ts b/sdk/nodejs/aws/serverlessDatabase.ts index c9bf259f..f7cba0f8 100644 --- a/sdk/nodejs/aws/serverlessDatabase.ts +++ b/sdk/nodejs/aws/serverlessDatabase.ts @@ -4,6 +4,11 @@ import * as pulumi from "@pulumi/pulumi"; import * as utilities from "../utilities"; +/** + * The ServerlessDatabase component is a convenient and efficient solution for creating serverless databases using Amazon RDS Aurora. It automatically creates components such as subnet group, security group, security group rules, and RDS cluster, and securely manages the DB credentials. With support for both MySQL and PostgreSQL, it provides a fully configured serverless database resource for your serverless database needs. + * + * ## Example Usage + */ export class ServerlessDatabase extends pulumi.ComponentResource { /** @internal */ public static readonly __pulumiType = 'nuage:aws:ServerlessDatabase'; diff --git a/sdk/nodejs/package.json b/sdk/nodejs/package.json index 59ca4253..3922d048 100644 --- a/sdk/nodejs/package.json +++ b/sdk/nodejs/package.json @@ -1,9 +1,9 @@ { "name": "@pulumi/nuage", - "version": "${VERSION}", + "version": "0.0.4", "scripts": { "build": "tsc", - "install": "node scripts/install-pulumi-plugin.js resource nuage ${VERSION}" + "install": "node scripts/install-pulumi-plugin.js resource nuage 0.0.4" }, "dependencies": { "@pulumi/aws": "^5.0.0", @@ -19,6 +19,7 @@ "@pulumi/pulumi": "latest" }, "pulumi": { + "version": "0.0.4", "resource": true } } diff --git a/sdk/nodejs/yarn.lock b/sdk/nodejs/yarn.lock index 0811f1b2..1d95d8b3 100644 --- a/sdk/nodejs/yarn.lock +++ b/sdk/nodejs/yarn.lock @@ -239,9 +239,9 @@ available-typed-arrays@^1.0.5: integrity sha512-DMD0KiN46eipeziST1LPP/STfDU0sufISXmjSgvVsoU2tqxctQeASejWcfNtxYKqETM1UxQ8sp2OrSBWpHY6sw== aws-sdk@^2.0.0: - version "2.1311.0" - resolved "https://registry.yarnpkg.com/aws-sdk/-/aws-sdk-2.1311.0.tgz#c9b3ea41cb88fce6104ff70a6b95a5a3ea4c6115" - integrity sha512-X3cFNsfs3HUfz6LKiLqvDTO4EsqO5DnNssh9SOoxhwmoMyJ2et3dEmigO6TaA44BjVNdLW98+sXJVPTGvINY1Q== + version "2.1313.0" + resolved "https://registry.yarnpkg.com/aws-sdk/-/aws-sdk-2.1313.0.tgz#e6dad914670fb3f4d5cd95c58413fca5ea5c6c86" + integrity sha512-8GMdtV2Uch3HL2c6+P3lNZFTcg/fqq9L3EWYRLb6ljCZvWKTssjdkjSJFDyTReNgeiKV224YRPYQbKpOEz4flQ== dependencies: buffer "4.9.2" events "1.1.1" @@ -326,9 +326,9 @@ debuglog@^1.0.1: integrity sha512-syBZ+rnAK3EgMsH2aYEOLUW7mZSY9Gb+0wUMCFsZvcmiz+HigA0LOcq/HoQqVuGG+EKykunc7QG2bzrponfaSw== define-properties@^1.1.3, define-properties@^1.1.4: - version "1.1.4" - resolved "https://registry.yarnpkg.com/define-properties/-/define-properties-1.1.4.tgz#0b14d7bd7fbeb2f3572c3a7eda80ea5d57fb05b1" - integrity sha512-uckOqKcfaVvtBdsVkdPv3XjveQJsNQqmhXgRi8uhvWWuPYZCNlzT8qAyblUgNoXdHdjMTzAqeGjAoli8f+bzPA== + version "1.2.0" + resolved "https://registry.yarnpkg.com/define-properties/-/define-properties-1.2.0.tgz#52988570670c9eacedd8064f4a990f2405849bd5" + integrity sha512-xvqAVKGfT1+UAvPwKTVw/njhdQ8ZhXK4lI0bCIuCMrp2up9nPnaDftrLtmpTazqd1o+UY4zgzU+avtMbDP+ldA== dependencies: has-property-descriptors "^1.0.0" object-keys "^1.1.1" @@ -465,7 +465,7 @@ functions-have-names@^1.2.2: resolved "https://registry.yarnpkg.com/functions-have-names/-/functions-have-names-1.2.3.tgz#0404fe4ee2ba2f607f0e0ec3c80bae994133b834" integrity sha512-xckBUXyTIqT97tq2x2AMb+g163b5JFysYk0x4qxNFwbfQkmNZoiRHb6sPzI9/QV33WeuvVYBUIiD4NzNIyqaRQ== -get-intrinsic@^1.0.2, get-intrinsic@^1.1.1, get-intrinsic@^1.1.3: +get-intrinsic@^1.0.2, get-intrinsic@^1.1.1, get-intrinsic@^1.1.3, get-intrinsic@^1.2.0: version "1.2.0" resolved "https://registry.yarnpkg.com/get-intrinsic/-/get-intrinsic-1.2.0.tgz#7ad1dc0535f3a2904bba075772763e5051f6d05f" integrity sha512-L049y6nFOuom5wGyRc3/gdTLO94dySVKRACj1RmJZBQXlbTMhtNIgkWkUHq+jYmZvKf14EW1EoJnnjbmoHij0Q== @@ -598,11 +598,11 @@ ini@^2.0.0: integrity sha512-7PnF4oN3CvZF23ADhA5wRaYEQpJ8qygSkbtTXWBeXWXmEVRXK+1ITciHWwHhsjv1TmW0MgacIv6hEi5pX5NQdA== internal-slot@^1.0.4: - version "1.0.4" - resolved "https://registry.yarnpkg.com/internal-slot/-/internal-slot-1.0.4.tgz#8551e7baf74a7a6ba5f749cfb16aa60722f0d6f3" - integrity sha512-tA8URYccNzMo94s5MQZgH8NB/XTa6HsOo0MLfXTKKEnHVVdegzaQoFZ7Jp44bdvLvY2waT5dc+j5ICEswhi7UQ== + version "1.0.5" + resolved "https://registry.yarnpkg.com/internal-slot/-/internal-slot-1.0.5.tgz#f2a2ee21f668f8627a4667f309dc0f4fb6674986" + integrity sha512-Y+R5hJrzs52QCG2laLn4udYVnxsfny9CpOhNhUvk/SSSVyF6T27FzRbF0sroPidSu3X8oEAkOn2K804mjpt6UQ== dependencies: - get-intrinsic "^1.1.3" + get-intrinsic "^1.2.0" has "^1.0.3" side-channel "^1.0.4" @@ -791,9 +791,9 @@ minimatch@^3.1.1: brace-expansion "^1.1.7" minimist@^1.2.0, minimist@^1.2.6: - version "1.2.7" - resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.7.tgz#daa1c4d91f507390437c6a8bc01078e7000c4d18" - integrity sha512-bzfL1YUZsP41gmu/qjrEk0Q6i2ix/cVeAhbCbqH9u3zYutS1cLg00qhrD0M2MVdCcx4Sc0UpP2eBWo9rotpq6g== + version "1.2.8" + resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.8.tgz#c1a464e7693302e082a075cee0c057741ac4772c" + integrity sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA== mkdirp@^0.5.1: version "0.5.6" diff --git a/sdk/python/README.md b/sdk/python/README.md index 5131aba5..8f8e2021 100644 --- a/sdk/python/README.md +++ b/sdk/python/README.md @@ -2,34 +2,6 @@ Pulumi components carefully crafted by Nuage -## Install the Pulumi Plugin - -To use this resource, you need to install Pulumi plugin first (independent from the development language). - -1. Download the latest release from -2. Install the .tar.gz package using Pulumi - -```bash -pulumi plugin install resource nuage 0.0.1 --file pulumi-resource-nuage-v0.0.1-darwin-amd64.tar.gz -``` - -You may also automate this process via Taskfile. Here is an example: - -```yaml -version: "3" - -tasks: - pulumi_install: - desc: Downloads binary - vars: - VERSION: 0.0.1 - FILE_NAME: "pulumi-resource-nuage-v0.0.1-darwin-amd64.tar.gz" - cmds: - - curl -L -o {{.FILE_NAME}} https://github.com/nuage-studio/pulumi-nuage/releases/download/{{.VERSION}}/{{.FILE_NAME}} - - pulumi plugin install resource nuage {{.VERSION}} --file {{.FILE_NAME}} - - rm {{.FILE_NAME}} -``` - ## Setup Instructions for Python SDK You can use the following command to add python library via Poetry: diff --git a/sdk/python/pulumi_nuage/aws/container_function.py b/sdk/python/pulumi_nuage/aws/container_function.py index dd05d28b..90e07ed7 100644 --- a/sdk/python/pulumi_nuage/aws/container_function.py +++ b/sdk/python/pulumi_nuage/aws/container_function.py @@ -262,7 +262,34 @@ def __init__(__self__, url: Optional[pulumi.Input[bool]] = None, __props__=None): """ - Create a ContainerFunction resource with the given unique name, props, and options. + Provides an AWS Lambda Function with additional necesary resources. It bundles several resources such as `Lambda Functions`, `Function URLs`, `CloudWatch keep-warm rules`, `Log Group with a Retention Policy`, `Role to run Lambda and Write Logs`. It also has a feature to manage build and deployment of Docker builds, removal of docker build artifacts (randomly generated image names that pollute your local docker) and automated X-Ray tracing. + + ## Example Usage + ### Basic Example + + ```python + import pulumi_nuage as nuage + + repository = nuage.aws.Repository( + "foo", + name="repository", + expire_in_days=30, + ) + + container_function = nuage.aws.ContainerFunction("foo", + name="lambda-function", + description="Nuage AWS ContainerFunction resource.", + repository_url=repository.url, + architecture="x86_64", + memory_size=512, + timeout=30, + environment={"bar":"baz"}, + keep_warm=True, + url=True, + log_retention_in_days=90 + ) + ``` + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :param pulumi.Input[str] architecture: Architecture, either `X86_64` or `ARM64`. Defaults to `x86_64` @@ -287,7 +314,34 @@ def __init__(__self__, args: ContainerFunctionArgs, opts: Optional[pulumi.ResourceOptions] = None): """ - Create a ContainerFunction resource with the given unique name, props, and options. + Provides an AWS Lambda Function with additional necesary resources. It bundles several resources such as `Lambda Functions`, `Function URLs`, `CloudWatch keep-warm rules`, `Log Group with a Retention Policy`, `Role to run Lambda and Write Logs`. It also has a feature to manage build and deployment of Docker builds, removal of docker build artifacts (randomly generated image names that pollute your local docker) and automated X-Ray tracing. + + ## Example Usage + ### Basic Example + + ```python + import pulumi_nuage as nuage + + repository = nuage.aws.Repository( + "foo", + name="repository", + expire_in_days=30, + ) + + container_function = nuage.aws.ContainerFunction("foo", + name="lambda-function", + description="Nuage AWS ContainerFunction resource.", + repository_url=repository.url, + architecture="x86_64", + memory_size=512, + timeout=30, + environment={"bar":"baz"}, + keep_warm=True, + url=True, + log_retention_in_days=90 + ) + ``` + :param str resource_name: The name of the resource. :param ContainerFunctionArgs args: The arguments to use to populate this resource's properties. :param pulumi.ResourceOptions opts: Options for the resource. diff --git a/sdk/python/pulumi_nuage/aws/serverless_database.py b/sdk/python/pulumi_nuage/aws/serverless_database.py index 78d2728c..d63e6400 100644 --- a/sdk/python/pulumi_nuage/aws/serverless_database.py +++ b/sdk/python/pulumi_nuage/aws/serverless_database.py @@ -174,7 +174,26 @@ def __init__(__self__, vpc_subnets: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, __props__=None): """ - Create a ServerlessDatabase resource with the given unique name, props, and options. + The ServerlessDatabase component is a convenient and efficient solution for creating serverless databases using Amazon RDS Aurora. It automatically creates components such as subnet group, security group, security group rules, and RDS cluster, and securely manages the DB credentials. With support for both MySQL and PostgreSQL, it provides a fully configured serverless database resource for your serverless database needs. + + ## Example Usage + ### Basic Example + + ```python + import pulumi_nuage as nuage + + db = nuage.aws.ServerlessDatabase( + "foo", + vpc_id=my_vpc.id, + vpc_subnets=my_vpc.private_subnet_ids, + database_type="mysql", + database_name="bar", + master_username="root", + ip_whitelist=["0.0.0.0/0"], + skip_final_snapshot=True + ) + ``` + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :param pulumi.Input[bool] data_api: Enable data api. Defaults to `false` @@ -194,7 +213,26 @@ def __init__(__self__, args: ServerlessDatabaseArgs, opts: Optional[pulumi.ResourceOptions] = None): """ - Create a ServerlessDatabase resource with the given unique name, props, and options. + The ServerlessDatabase component is a convenient and efficient solution for creating serverless databases using Amazon RDS Aurora. It automatically creates components such as subnet group, security group, security group rules, and RDS cluster, and securely manages the DB credentials. With support for both MySQL and PostgreSQL, it provides a fully configured serverless database resource for your serverless database needs. + + ## Example Usage + ### Basic Example + + ```python + import pulumi_nuage as nuage + + db = nuage.aws.ServerlessDatabase( + "foo", + vpc_id=my_vpc.id, + vpc_subnets=my_vpc.private_subnet_ids, + database_type="mysql", + database_name="bar", + master_username="root", + ip_whitelist=["0.0.0.0/0"], + skip_final_snapshot=True + ) + ``` + :param str resource_name: The name of the resource. :param ServerlessDatabaseArgs args: The arguments to use to populate this resource's properties. :param pulumi.ResourceOptions opts: Options for the resource. diff --git a/sdk/python/pulumi_nuage/pulumi-plugin.json b/sdk/python/pulumi_nuage/pulumi-plugin.json index f7bd6659..10fa887e 100644 --- a/sdk/python/pulumi_nuage/pulumi-plugin.json +++ b/sdk/python/pulumi_nuage/pulumi-plugin.json @@ -1,4 +1,5 @@ { "resource": true, - "name": "nuage" + "name": "nuage", + "version": "0.0.4" } diff --git a/sdk/python/setup.py b/sdk/python/setup.py index 43d09d85..99993b44 100644 --- a/sdk/python/setup.py +++ b/sdk/python/setup.py @@ -8,8 +8,8 @@ from subprocess import check_call -VERSION = "0.0.0" -PLUGIN_VERSION = "0.0.0" +VERSION = "0.0.4" +PLUGIN_VERSION = "0.0.4" class InstallPluginCommand(install): def run(self): @@ -56,7 +56,7 @@ def readme(): 'pulumi>=3.0.0,<4.0.0', 'pulumi-aws>=5.0.0,<6.0.0', 'pulumi-awsx>=1.0.0b11', - 'pulumi-command>0.7.0', + 'pulumi-command>=0.7.0', 'pulumi-random>4.8.0', 'pulumi_docker>=3.0.0,<4.0.0', 'semver>=2.8.1'