diff --git a/provider/cmd/pulumi-resource-spotinst/schema.json b/provider/cmd/pulumi-resource-spotinst/schema.json
index 4026308b..60bd5747 100644
--- a/provider/cmd/pulumi-resource-spotinst/schema.json
+++ b/provider/cmd/pulumi-resource-spotinst/schema.json
@@ -64,6 +64,10 @@
"type": "string",
"description": "Spotinst Account ID\n"
},
+ "enabled": {
+ "type": "boolean",
+ "description": "Enable or disable the Spotinst provider\n"
+ },
"featureFlags": {
"type": "string",
"description": "Spotinst SDK Feature Flags\n"
@@ -2146,9 +2150,18 @@
"deleteOnTermination": {
"type": "boolean"
},
+ "encrypted": {
+ "type": "boolean"
+ },
"iops": {
"type": "integer"
},
+ "kmsKeyId": {
+ "type": "string"
+ },
+ "snapshotId": {
+ "type": "string"
+ },
"throughput": {
"type": "integer"
},
@@ -9187,6 +9200,10 @@
"type": "string",
"description": "Spotinst Account ID\n"
},
+ "enabled": {
+ "type": "boolean",
+ "description": "Enable or disable the Spotinst provider\n"
+ },
"featureFlags": {
"type": "string",
"description": "Spotinst SDK Feature Flags\n"
@@ -9201,6 +9218,10 @@
"type": "string",
"description": "Spotinst Account ID\n"
},
+ "enabled": {
+ "type": "boolean",
+ "description": "Enable or disable the Spotinst provider\n"
+ },
"featureFlags": {
"type": "string",
"description": "Spotinst SDK Feature Flags\n"
@@ -9441,10 +9462,11 @@
}
},
"spotinst:aws/credentials:Credentials": {
- "description": "Provides a Spotinst credential AWS resource.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as spotinst from \"@pulumi/spotinst\";\n\n// set credential AWS\nconst credential = new spotinst.aws.Credentials(\"credential\", {\n accountid: \"act-123456\",\n iamrole: \"arn:aws:iam::1234567890:role/Spot_Iam_Role\",\n});\n```\n```python\nimport pulumi\nimport pulumi_spotinst as spotinst\n\n# set credential AWS\ncredential = spotinst.aws.Credentials(\"credential\",\n accountid=\"act-123456\",\n iamrole=\"arn:aws:iam::1234567890:role/Spot_Iam_Role\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing SpotInst = Pulumi.SpotInst;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n // set credential AWS\n var credential = new SpotInst.Aws.Credentials(\"credential\", new()\n {\n Accountid = \"act-123456\",\n Iamrole = \"arn:aws:iam::1234567890:role/Spot_Iam_Role\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-spotinst/sdk/v3/go/spotinst/aws\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t// set credential AWS\n\t\t_, err := aws.NewCredentials(ctx, \"credential\", \u0026aws.CredentialsArgs{\n\t\t\tAccountid: pulumi.String(\"act-123456\"),\n\t\t\tIamrole: pulumi.String(\"arn:aws:iam::1234567890:role/Spot_Iam_Role\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.spotinst.aws.Credentials;\nimport com.pulumi.spotinst.aws.CredentialsArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var credential = new Credentials(\"credential\", CredentialsArgs.builder() \n .accountid(\"act-123456\")\n .iamrole(\"arn:aws:iam::1234567890:role/Spot_Iam_Role\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n # set credential AWS\n credential:\n type: spotinst:aws:Credentials\n properties:\n accountid: act-123456\n iamrole: arn:aws:iam::1234567890:role/Spot_Iam_Role\n```\n\u003c!--End PulumiCodeChooser --\u003e\n",
+ "description": "Provides a Spotinst credential AWS resource.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as spotinst from \"@pulumi/spotinst\";\n\n// set credential AWS\nconst credential = new spotinst.aws.Credentials(\"credential\", {\n accountId: \"act-123456\",\n iamrole: \"arn:aws:iam::1234567890:role/Spot_Iam_Role\",\n});\n```\n```python\nimport pulumi\nimport pulumi_spotinst as spotinst\n\n# set credential AWS\ncredential = spotinst.aws.Credentials(\"credential\",\n account_id=\"act-123456\",\n iamrole=\"arn:aws:iam::1234567890:role/Spot_Iam_Role\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing SpotInst = Pulumi.SpotInst;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n // set credential AWS\n var credential = new SpotInst.Aws.Credentials(\"credential\", new()\n {\n AccountId = \"act-123456\",\n Iamrole = \"arn:aws:iam::1234567890:role/Spot_Iam_Role\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-spotinst/sdk/v3/go/spotinst/aws\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t// set credential AWS\n\t\t_, err := aws.NewCredentials(ctx, \"credential\", \u0026aws.CredentialsArgs{\n\t\t\tAccountId: pulumi.String(\"act-123456\"),\n\t\t\tIamrole: pulumi.String(\"arn:aws:iam::1234567890:role/Spot_Iam_Role\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.spotinst.aws.Credentials;\nimport com.pulumi.spotinst.aws.CredentialsArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var credential = new Credentials(\"credential\", CredentialsArgs.builder() \n .accountId(\"act-123456\")\n .iamrole(\"arn:aws:iam::1234567890:role/Spot_Iam_Role\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n # set credential AWS\n credential:\n type: spotinst:aws:Credentials\n properties:\n accountId: act-123456\n iamrole: arn:aws:iam::1234567890:role/Spot_Iam_Role\n```\n\u003c!--End PulumiCodeChooser --\u003e\n",
"properties": {
"accountId": {
- "type": "string"
+ "type": "string",
+ "description": "The ID of the account associated with your token.\n"
},
"iamrole": {
"type": "string",
@@ -9458,6 +9480,7 @@
"inputProperties": {
"accountId": {
"type": "string",
+ "description": "The ID of the account associated with your token.\n",
"willReplaceOnChanges": true
},
"iamrole": {
@@ -9475,6 +9498,7 @@
"properties": {
"accountId": {
"type": "string",
+ "description": "The ID of the account associated with your token.\n",
"willReplaceOnChanges": true
},
"iamrole": {
diff --git a/provider/go.mod b/provider/go.mod
index 6a16e785..2b8c96dd 100644
--- a/provider/go.mod
+++ b/provider/go.mod
@@ -205,8 +205,8 @@ require (
github.com/spf13/cast v1.5.0 // indirect
github.com/spf13/cobra v1.7.0 // indirect
github.com/spf13/pflag v1.0.5 // indirect
- github.com/spotinst/spotinst-sdk-go v1.194.0 // indirect
- github.com/stretchr/testify v1.8.4 // indirect
+ github.com/spotinst/spotinst-sdk-go v1.336.0 // indirect
+ github.com/stretchr/testify v1.9.0 // indirect
github.com/texttheater/golang-levenshtein v1.0.1 // indirect
github.com/tweekmonster/luser v0.0.0-20161003172636-3fa38070dbd7 // indirect
github.com/uber/jaeger-client-go v2.30.0+incompatible // indirect
diff --git a/provider/go.sum b/provider/go.sum
index f41b6241..3675ea3a 100644
--- a/provider/go.sum
+++ b/provider/go.sum
@@ -2964,8 +2964,8 @@ github.com/spf13/pflag v1.0.5 h1:iy+VFUOCP1a+8yFto/drg2CJ5u0yRoB7fZw3DKv/JXA=
github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg=
github.com/spf13/viper v1.4.0/go.mod h1:PTJ7Z/lr49W6bUbkmS1V3by4uWynFiR9p7+dSq/yZzE=
github.com/spf13/viper v1.7.0/go.mod h1:8WkrPz2fc9jxqZNCJI/76HCieCp4Q8HaLFoCha5qpdg=
-github.com/spotinst/spotinst-sdk-go v1.194.0 h1:bq76aWyqd6LPA+P2zMv17CEv8xAuLhKY3FSrxLgbP3A=
-github.com/spotinst/spotinst-sdk-go v1.194.0/go.mod h1:DP/y998hi551EWIR6t4mbohMMMKjp1IE0K+eJztaFGc=
+github.com/spotinst/spotinst-sdk-go v1.336.0 h1:TvgKWDznce2WIAKNktmRgLqfFLlK92SHaTWQd/EGvLk=
+github.com/spotinst/spotinst-sdk-go v1.336.0/go.mod h1:cPpdCFZ4K3PWCbZdQB2wxNfEUVuz+KecJCSbqqesoMM=
github.com/stefanberger/go-pkcs11uri v0.0.0-20201008174630-78d3cae3a980/go.mod h1:AO3tvPzVZ/ayst6UlUKUv6rcPQInYe3IknH3jYhAKu8=
github.com/stoewer/go-strcase v1.2.0/go.mod h1:IBiWB2sKIp3wVVQ3Y035++gc+knqhUQag1KpM8ahLw8=
github.com/streadway/amqp v0.0.0-20190404075320-75d898a42a94/go.mod h1:AZpEONHx3DKn8O/DFsRAY58/XVQiIPMTMB1SddzLXVw=
@@ -2976,8 +2976,9 @@ github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+
github.com/stretchr/objx v0.1.1/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
github.com/stretchr/objx v0.2.0/go.mod h1:qt09Ya8vawLte6SNmTgCsAVtYtaKzEcn8ATUoHMkEqE=
github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw=
-github.com/stretchr/objx v0.5.0 h1:1zr/of2m5FGMsad5YfcqgdqdWrIhu+EBEJRhR1U7z/c=
github.com/stretchr/objx v0.5.0/go.mod h1:Yh+to48EsGEfYuaHDzXPcE3xhTkx73EhmCGUpEOglKo=
+github.com/stretchr/objx v0.5.2 h1:xuMeJ0Sdp5ZMRXx/aWO6RZxdr3beISkG5/G/aIRr3pY=
+github.com/stretchr/objx v0.5.2/go.mod h1:FRsXN1f5AsAjCGJKqEizvkpNtU+EGNCLh3NxZ/8L+MA=
github.com/stretchr/testify v0.0.0-20180303142811-b89eecf5ca5d/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs=
github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs=
github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI=
@@ -2992,8 +2993,9 @@ github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO
github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4=
github.com/stretchr/testify v1.8.2/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4=
github.com/stretchr/testify v1.8.3/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo=
-github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk=
github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo=
+github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg=
+github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY=
github.com/subosito/gotenv v1.2.0/go.mod h1:N0PQaV/YGNqwC0u51sEeR/aUtSLEXKX9iv69rRypqCw=
github.com/syndtr/gocapability v0.0.0-20170704070218-db04d3cc01c8/go.mod h1:hkRG7XYTFWNJGYcbNJQlaLq0fg1yr4J4t/NcTQtrfww=
github.com/syndtr/gocapability v0.0.0-20180916011248-d98352740cb2/go.mod h1:hkRG7XYTFWNJGYcbNJQlaLq0fg1yr4J4t/NcTQtrfww=
diff --git a/sdk/dotnet/Aws/Credentials.cs b/sdk/dotnet/Aws/Credentials.cs
index 21b3a4bf..c8536088 100644
--- a/sdk/dotnet/Aws/Credentials.cs
+++ b/sdk/dotnet/Aws/Credentials.cs
@@ -26,7 +26,7 @@ namespace Pulumi.SpotInst.Aws
/// // set credential AWS
/// var credential = new SpotInst.Aws.Credentials("credential", new()
/// {
- /// Accountid = "act-123456",
+ /// AccountId = "act-123456",
/// Iamrole = "arn:aws:iam::1234567890:role/Spot_Iam_Role",
/// });
///
@@ -37,6 +37,9 @@ namespace Pulumi.SpotInst.Aws
[SpotInstResourceType("spotinst:aws/credentials:Credentials")]
public partial class Credentials : global::Pulumi.CustomResource
{
+ ///
+ /// The ID of the account associated with your token.
+ ///
[Output("accountId")]
public Output AccountId { get; private set; } = null!;
@@ -92,6 +95,9 @@ public static Credentials Get(string name, Input id, CredentialsState? s
public sealed class CredentialsArgs : global::Pulumi.ResourceArgs
{
+ ///
+ /// The ID of the account associated with your token.
+ ///
[Input("accountId", required: true)]
public Input AccountId { get; set; } = null!;
@@ -109,6 +115,9 @@ public CredentialsArgs()
public sealed class CredentialsState : global::Pulumi.ResourceArgs
{
+ ///
+ /// The ID of the account associated with your token.
+ ///
[Input("accountId")]
public Input? AccountId { get; set; }
diff --git a/sdk/dotnet/Aws/Inputs/ManagedInstanceBlockDeviceMappingEbsArgs.cs b/sdk/dotnet/Aws/Inputs/ManagedInstanceBlockDeviceMappingEbsArgs.cs
index 6a655438..586c0820 100644
--- a/sdk/dotnet/Aws/Inputs/ManagedInstanceBlockDeviceMappingEbsArgs.cs
+++ b/sdk/dotnet/Aws/Inputs/ManagedInstanceBlockDeviceMappingEbsArgs.cs
@@ -15,9 +15,18 @@ public sealed class ManagedInstanceBlockDeviceMappingEbsArgs : global::Pulumi.Re
[Input("deleteOnTermination")]
public Input? DeleteOnTermination { get; set; }
+ [Input("encrypted")]
+ public Input? Encrypted { get; set; }
+
[Input("iops")]
public Input? Iops { get; set; }
+ [Input("kmsKeyId")]
+ public Input? KmsKeyId { get; set; }
+
+ [Input("snapshotId")]
+ public Input? SnapshotId { get; set; }
+
[Input("throughput")]
public Input? Throughput { get; set; }
diff --git a/sdk/dotnet/Aws/Inputs/ManagedInstanceBlockDeviceMappingEbsGetArgs.cs b/sdk/dotnet/Aws/Inputs/ManagedInstanceBlockDeviceMappingEbsGetArgs.cs
index a75662dd..b0deeb49 100644
--- a/sdk/dotnet/Aws/Inputs/ManagedInstanceBlockDeviceMappingEbsGetArgs.cs
+++ b/sdk/dotnet/Aws/Inputs/ManagedInstanceBlockDeviceMappingEbsGetArgs.cs
@@ -15,9 +15,18 @@ public sealed class ManagedInstanceBlockDeviceMappingEbsGetArgs : global::Pulumi
[Input("deleteOnTermination")]
public Input? DeleteOnTermination { get; set; }
+ [Input("encrypted")]
+ public Input? Encrypted { get; set; }
+
[Input("iops")]
public Input? Iops { get; set; }
+ [Input("kmsKeyId")]
+ public Input? KmsKeyId { get; set; }
+
+ [Input("snapshotId")]
+ public Input? SnapshotId { get; set; }
+
[Input("throughput")]
public Input? Throughput { get; set; }
diff --git a/sdk/dotnet/Aws/Outputs/ManagedInstanceBlockDeviceMappingEbs.cs b/sdk/dotnet/Aws/Outputs/ManagedInstanceBlockDeviceMappingEbs.cs
index b75bdcac..ed216593 100644
--- a/sdk/dotnet/Aws/Outputs/ManagedInstanceBlockDeviceMappingEbs.cs
+++ b/sdk/dotnet/Aws/Outputs/ManagedInstanceBlockDeviceMappingEbs.cs
@@ -14,7 +14,10 @@ namespace Pulumi.SpotInst.Aws.Outputs
public sealed class ManagedInstanceBlockDeviceMappingEbs
{
public readonly bool? DeleteOnTermination;
+ public readonly bool? Encrypted;
public readonly int? Iops;
+ public readonly string? KmsKeyId;
+ public readonly string? SnapshotId;
public readonly int? Throughput;
public readonly int? VolumeSize;
public readonly string? VolumeType;
@@ -23,8 +26,14 @@ public sealed class ManagedInstanceBlockDeviceMappingEbs
private ManagedInstanceBlockDeviceMappingEbs(
bool? deleteOnTermination,
+ bool? encrypted,
+
int? iops,
+ string? kmsKeyId,
+
+ string? snapshotId,
+
int? throughput,
int? volumeSize,
@@ -32,7 +41,10 @@ private ManagedInstanceBlockDeviceMappingEbs(
string? volumeType)
{
DeleteOnTermination = deleteOnTermination;
+ Encrypted = encrypted;
Iops = iops;
+ KmsKeyId = kmsKeyId;
+ SnapshotId = snapshotId;
Throughput = throughput;
VolumeSize = volumeSize;
VolumeType = volumeType;
diff --git a/sdk/dotnet/Config/Config.cs b/sdk/dotnet/Config/Config.cs
index 2b85d898..dcd40ddc 100644
--- a/sdk/dotnet/Config/Config.cs
+++ b/sdk/dotnet/Config/Config.cs
@@ -42,6 +42,16 @@ public static string? Account
set => _account.Set(value);
}
+ private static readonly __Value _enabled = new __Value(() => __config.GetBoolean("enabled"));
+ ///
+ /// Enable or disable the Spotinst provider
+ ///
+ public static bool? Enabled
+ {
+ get => _enabled.Get();
+ set => _enabled.Set(value);
+ }
+
private static readonly __Value _featureFlags = new __Value(() => __config.Get("featureFlags"));
///
/// Spotinst SDK Feature Flags
diff --git a/sdk/dotnet/Provider.cs b/sdk/dotnet/Provider.cs
index 9e1f1604..a05a0a1f 100644
--- a/sdk/dotnet/Provider.cs
+++ b/sdk/dotnet/Provider.cs
@@ -70,6 +70,12 @@ public sealed class ProviderArgs : global::Pulumi.ResourceArgs
[Input("account")]
public Input? Account { get; set; }
+ ///
+ /// Enable or disable the Spotinst provider
+ ///
+ [Input("enabled", json: true)]
+ public Input? Enabled { get; set; }
+
///
/// Spotinst SDK Feature Flags
///
diff --git a/sdk/go/spotinst/aws/credentials.go b/sdk/go/spotinst/aws/credentials.go
index f2609cbc..e8c39c41 100644
--- a/sdk/go/spotinst/aws/credentials.go
+++ b/sdk/go/spotinst/aws/credentials.go
@@ -31,7 +31,7 @@ import (
// pulumi.Run(func(ctx *pulumi.Context) error {
// // set credential AWS
// _, err := aws.NewCredentials(ctx, "credential", &aws.CredentialsArgs{
-// Accountid: pulumi.String("act-123456"),
+// AccountId: pulumi.String("act-123456"),
// Iamrole: pulumi.String("arn:aws:iam::1234567890:role/Spot_Iam_Role"),
// })
// if err != nil {
@@ -46,6 +46,7 @@ import (
type Credentials struct {
pulumi.CustomResourceState
+ // The ID of the account associated with your token.
AccountId pulumi.StringOutput `pulumi:"accountId"`
// Provide the IAM Role ARN connected to another AWS account 922761411349 and with the latest Spot Policy - https://docs.spot.io/administration/api/spot-policy-in-aws
Iamrole pulumi.StringOutput `pulumi:"iamrole"`
@@ -87,12 +88,14 @@ func GetCredentials(ctx *pulumi.Context,
// Input properties used for looking up and filtering Credentials resources.
type credentialsState struct {
+ // The ID of the account associated with your token.
AccountId *string `pulumi:"accountId"`
// Provide the IAM Role ARN connected to another AWS account 922761411349 and with the latest Spot Policy - https://docs.spot.io/administration/api/spot-policy-in-aws
Iamrole *string `pulumi:"iamrole"`
}
type CredentialsState struct {
+ // The ID of the account associated with your token.
AccountId pulumi.StringPtrInput
// Provide the IAM Role ARN connected to another AWS account 922761411349 and with the latest Spot Policy - https://docs.spot.io/administration/api/spot-policy-in-aws
Iamrole pulumi.StringPtrInput
@@ -103,6 +106,7 @@ func (CredentialsState) ElementType() reflect.Type {
}
type credentialsArgs struct {
+ // The ID of the account associated with your token.
AccountId string `pulumi:"accountId"`
// Provide the IAM Role ARN connected to another AWS account 922761411349 and with the latest Spot Policy - https://docs.spot.io/administration/api/spot-policy-in-aws
Iamrole string `pulumi:"iamrole"`
@@ -110,6 +114,7 @@ type credentialsArgs struct {
// The set of arguments for constructing a Credentials resource.
type CredentialsArgs struct {
+ // The ID of the account associated with your token.
AccountId pulumi.StringInput
// Provide the IAM Role ARN connected to another AWS account 922761411349 and with the latest Spot Policy - https://docs.spot.io/administration/api/spot-policy-in-aws
Iamrole pulumi.StringInput
@@ -202,6 +207,7 @@ func (o CredentialsOutput) ToCredentialsOutputWithContext(ctx context.Context) C
return o
}
+// The ID of the account associated with your token.
func (o CredentialsOutput) AccountId() pulumi.StringOutput {
return o.ApplyT(func(v *Credentials) pulumi.StringOutput { return v.AccountId }).(pulumi.StringOutput)
}
diff --git a/sdk/go/spotinst/aws/pulumiTypes.go b/sdk/go/spotinst/aws/pulumiTypes.go
index b195830a..132da9ce 100644
--- a/sdk/go/spotinst/aws/pulumiTypes.go
+++ b/sdk/go/spotinst/aws/pulumiTypes.go
@@ -14254,7 +14254,10 @@ func (o ManagedInstanceBlockDeviceMappingArrayOutput) Index(i pulumi.IntInput) M
type ManagedInstanceBlockDeviceMappingEbs struct {
DeleteOnTermination *bool `pulumi:"deleteOnTermination"`
+ Encrypted *bool `pulumi:"encrypted"`
Iops *int `pulumi:"iops"`
+ KmsKeyId *string `pulumi:"kmsKeyId"`
+ SnapshotId *string `pulumi:"snapshotId"`
Throughput *int `pulumi:"throughput"`
VolumeSize *int `pulumi:"volumeSize"`
VolumeType *string `pulumi:"volumeType"`
@@ -14273,7 +14276,10 @@ type ManagedInstanceBlockDeviceMappingEbsInput interface {
type ManagedInstanceBlockDeviceMappingEbsArgs struct {
DeleteOnTermination pulumi.BoolPtrInput `pulumi:"deleteOnTermination"`
+ Encrypted pulumi.BoolPtrInput `pulumi:"encrypted"`
Iops pulumi.IntPtrInput `pulumi:"iops"`
+ KmsKeyId pulumi.StringPtrInput `pulumi:"kmsKeyId"`
+ SnapshotId pulumi.StringPtrInput `pulumi:"snapshotId"`
Throughput pulumi.IntPtrInput `pulumi:"throughput"`
VolumeSize pulumi.IntPtrInput `pulumi:"volumeSize"`
VolumeType pulumi.StringPtrInput `pulumi:"volumeType"`
@@ -14360,10 +14366,22 @@ func (o ManagedInstanceBlockDeviceMappingEbsOutput) DeleteOnTermination() pulumi
return o.ApplyT(func(v ManagedInstanceBlockDeviceMappingEbs) *bool { return v.DeleteOnTermination }).(pulumi.BoolPtrOutput)
}
+func (o ManagedInstanceBlockDeviceMappingEbsOutput) Encrypted() pulumi.BoolPtrOutput {
+ return o.ApplyT(func(v ManagedInstanceBlockDeviceMappingEbs) *bool { return v.Encrypted }).(pulumi.BoolPtrOutput)
+}
+
func (o ManagedInstanceBlockDeviceMappingEbsOutput) Iops() pulumi.IntPtrOutput {
return o.ApplyT(func(v ManagedInstanceBlockDeviceMappingEbs) *int { return v.Iops }).(pulumi.IntPtrOutput)
}
+func (o ManagedInstanceBlockDeviceMappingEbsOutput) KmsKeyId() pulumi.StringPtrOutput {
+ return o.ApplyT(func(v ManagedInstanceBlockDeviceMappingEbs) *string { return v.KmsKeyId }).(pulumi.StringPtrOutput)
+}
+
+func (o ManagedInstanceBlockDeviceMappingEbsOutput) SnapshotId() pulumi.StringPtrOutput {
+ return o.ApplyT(func(v ManagedInstanceBlockDeviceMappingEbs) *string { return v.SnapshotId }).(pulumi.StringPtrOutput)
+}
+
func (o ManagedInstanceBlockDeviceMappingEbsOutput) Throughput() pulumi.IntPtrOutput {
return o.ApplyT(func(v ManagedInstanceBlockDeviceMappingEbs) *int { return v.Throughput }).(pulumi.IntPtrOutput)
}
@@ -14409,6 +14427,15 @@ func (o ManagedInstanceBlockDeviceMappingEbsPtrOutput) DeleteOnTermination() pul
}).(pulumi.BoolPtrOutput)
}
+func (o ManagedInstanceBlockDeviceMappingEbsPtrOutput) Encrypted() pulumi.BoolPtrOutput {
+ return o.ApplyT(func(v *ManagedInstanceBlockDeviceMappingEbs) *bool {
+ if v == nil {
+ return nil
+ }
+ return v.Encrypted
+ }).(pulumi.BoolPtrOutput)
+}
+
func (o ManagedInstanceBlockDeviceMappingEbsPtrOutput) Iops() pulumi.IntPtrOutput {
return o.ApplyT(func(v *ManagedInstanceBlockDeviceMappingEbs) *int {
if v == nil {
@@ -14418,6 +14445,24 @@ func (o ManagedInstanceBlockDeviceMappingEbsPtrOutput) Iops() pulumi.IntPtrOutpu
}).(pulumi.IntPtrOutput)
}
+func (o ManagedInstanceBlockDeviceMappingEbsPtrOutput) KmsKeyId() pulumi.StringPtrOutput {
+ return o.ApplyT(func(v *ManagedInstanceBlockDeviceMappingEbs) *string {
+ if v == nil {
+ return nil
+ }
+ return v.KmsKeyId
+ }).(pulumi.StringPtrOutput)
+}
+
+func (o ManagedInstanceBlockDeviceMappingEbsPtrOutput) SnapshotId() pulumi.StringPtrOutput {
+ return o.ApplyT(func(v *ManagedInstanceBlockDeviceMappingEbs) *string {
+ if v == nil {
+ return nil
+ }
+ return v.SnapshotId
+ }).(pulumi.StringPtrOutput)
+}
+
func (o ManagedInstanceBlockDeviceMappingEbsPtrOutput) Throughput() pulumi.IntPtrOutput {
return o.ApplyT(func(v *ManagedInstanceBlockDeviceMappingEbs) *int {
if v == nil {
diff --git a/sdk/go/spotinst/config/config.go b/sdk/go/spotinst/config/config.go
index 3f53525a..f1459797 100644
--- a/sdk/go/spotinst/config/config.go
+++ b/sdk/go/spotinst/config/config.go
@@ -16,6 +16,11 @@ func GetAccount(ctx *pulumi.Context) string {
return config.Get(ctx, "spotinst:account")
}
+// Enable or disable the Spotinst provider
+func GetEnabled(ctx *pulumi.Context) bool {
+ return config.GetBool(ctx, "spotinst:enabled")
+}
+
// Spotinst SDK Feature Flags
func GetFeatureFlags(ctx *pulumi.Context) string {
return config.Get(ctx, "spotinst:featureFlags")
diff --git a/sdk/go/spotinst/provider.go b/sdk/go/spotinst/provider.go
index 6a87c0b6..bdf1a852 100644
--- a/sdk/go/spotinst/provider.go
+++ b/sdk/go/spotinst/provider.go
@@ -45,6 +45,8 @@ func NewProvider(ctx *pulumi.Context,
type providerArgs struct {
// Spotinst Account ID
Account *string `pulumi:"account"`
+ // Enable or disable the Spotinst provider
+ Enabled *bool `pulumi:"enabled"`
// Spotinst SDK Feature Flags
FeatureFlags *string `pulumi:"featureFlags"`
// Spotinst Personal API Access Token
@@ -55,6 +57,8 @@ type providerArgs struct {
type ProviderArgs struct {
// Spotinst Account ID
Account pulumi.StringPtrInput
+ // Enable or disable the Spotinst provider
+ Enabled pulumi.BoolPtrInput
// Spotinst SDK Feature Flags
FeatureFlags pulumi.StringPtrInput
// Spotinst Personal API Access Token
diff --git a/sdk/java/src/main/java/com/pulumi/spotinst/Config.java b/sdk/java/src/main/java/com/pulumi/spotinst/Config.java
index 7c9e4dc8..fa98ff14 100644
--- a/sdk/java/src/main/java/com/pulumi/spotinst/Config.java
+++ b/sdk/java/src/main/java/com/pulumi/spotinst/Config.java
@@ -4,6 +4,7 @@
package com.pulumi.spotinst;
import com.pulumi.core.internal.Codegen;
+import java.lang.Boolean;
import java.lang.String;
import java.util.Optional;
@@ -17,6 +18,13 @@ public final class Config {
public Optional account() {
return Codegen.stringProp("account").config(config).get();
}
+/**
+ * Enable or disable the Spotinst provider
+ *
+ */
+ public Optional enabled() {
+ return Codegen.booleanProp("enabled").config(config).get();
+ }
/**
* Spotinst SDK Feature Flags
*
diff --git a/sdk/java/src/main/java/com/pulumi/spotinst/ProviderArgs.java b/sdk/java/src/main/java/com/pulumi/spotinst/ProviderArgs.java
index d2e3318d..add97410 100644
--- a/sdk/java/src/main/java/com/pulumi/spotinst/ProviderArgs.java
+++ b/sdk/java/src/main/java/com/pulumi/spotinst/ProviderArgs.java
@@ -5,6 +5,7 @@
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
+import java.lang.Boolean;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
@@ -30,6 +31,21 @@ public Optional