Skip to content

Commit

Permalink
Merge branch 'feat/v0.0.134' into 'main'
Browse files Browse the repository at this point in the history
Generate from terraform provider v0.0.134
  • Loading branch information
dougsong committed Jan 3, 2024
2 parents b4603b3 + e664771 commit 76cdf5c
Show file tree
Hide file tree
Showing 44 changed files with 2,176 additions and 417 deletions.
154 changes: 140 additions & 14 deletions provider/cmd/pulumi-resource-volcengine/schema.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion provider/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ require (
github.com/hashicorp/terraform-plugin-sdk v1.9.1
github.com/pulumi/pulumi-terraform-bridge/v3 v3.57.0
github.com/pulumi/pulumi/sdk/v3 v3.76.1
github.com/volcengine/terraform-provider-volcengine v0.0.133
github.com/volcengine/terraform-provider-volcengine v0.0.134
)

require (
Expand Down
4 changes: 2 additions & 2 deletions provider/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -1732,8 +1732,8 @@ github.com/vmihailenco/msgpack/v5 v5.3.5/go.mod h1:7xyJ9e+0+9SaZT0Wt1RGleJXzli6Q
github.com/vmihailenco/tagparser v0.1.1/go.mod h1:OeAg3pn3UbLjkWt+rN9oFYB6u/cQgqMEUPoW2WPyhdI=
github.com/vmihailenco/tagparser/v2 v2.0.0 h1:y09buUbR+b5aycVFQs/g70pqKVZNBmxwAhO7/IwNM9g=
github.com/vmihailenco/tagparser/v2 v2.0.0/go.mod h1:Wri+At7QHww0WTrCBeu4J6bNtoV6mEfg5OIWRZA9qds=
github.com/volcengine/terraform-provider-volcengine v0.0.133 h1:wjPRLVSx54gvlr8ptWpoufqQEn4SCttlwgxICHwe8Nk=
github.com/volcengine/terraform-provider-volcengine v0.0.133/go.mod h1:nHE+W7UPw526nvKfFuuUbxRPhzFOmz2Gt37FhaYXYnI=
github.com/volcengine/terraform-provider-volcengine v0.0.134 h1:Umwmkifms9UFIOR6/xnLLxh50rRZbM4GAAdzSsEd2Ys=
github.com/volcengine/terraform-provider-volcengine v0.0.134/go.mod h1:nHE+W7UPw526nvKfFuuUbxRPhzFOmz2Gt37FhaYXYnI=
github.com/volcengine/volc-sdk-golang v1.0.23 h1:anOslb2Qp6ywnsbyq9jqR0ljuO63kg9PY+4OehIk5R8=
github.com/volcengine/volc-sdk-golang v1.0.23/go.mod h1:AfG/PZRUkHJ9inETvbjNifTDgut25Wbkm2QoYBTbvyU=
github.com/volcengine/volcengine-go-sdk v1.0.75 h1:FLNABNe7D5adaul3hLs4Co3oFC4xqIK5+QpKAdW/49Y=
Expand Down
644 changes: 322 additions & 322 deletions provider/resources.go

Large diffs are not rendered by default.

93 changes: 93 additions & 0 deletions sdk/dotnet/Volcengine/Ecs/IamRoleAttachment.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,99 @@ namespace Volcengine.Pulumi.Volcengine.Ecs
{
/// <summary>
/// Provides a resource to manage iam role attachment
/// ## Example Usage
///
/// ```csharp
/// using System.Collections.Generic;
/// using System.Linq;
/// using Pulumi;
/// using Volcengine = Pulumi.Volcengine;
/// using Volcengine = Volcengine.Pulumi.Volcengine;
///
/// return await Deployment.RunAsync(() =&gt;
/// {
/// var fooZones = Volcengine.Ecs.Zones.Invoke();
///
/// var fooVpc = new Volcengine.Vpc.Vpc("fooVpc", new()
/// {
/// VpcName = "acc-test-vpc",
/// CidrBlock = "172.16.0.0/16",
/// });
///
/// var fooSubnet = new Volcengine.Vpc.Subnet("fooSubnet", new()
/// {
/// SubnetName = "acc-test-subnet",
/// CidrBlock = "172.16.0.0/24",
/// ZoneId = fooZones.Apply(zonesResult =&gt; zonesResult.Zones[0]?.Id),
/// VpcId = fooVpc.Id,
/// });
///
/// var fooSecurityGroup = new Volcengine.Vpc.SecurityGroup("fooSecurityGroup", new()
/// {
/// SecurityGroupName = "acc-test-security-group",
/// VpcId = fooVpc.Id,
/// });
///
/// var fooImages = Volcengine.Ecs.Images.Invoke(new()
/// {
/// OsType = "Linux",
/// Visibility = "public",
/// InstanceTypeId = "ecs.g1ie.large",
/// });
///
/// var fooInstance = new Volcengine.Ecs.Instance("fooInstance", new()
/// {
/// InstanceName = "acc-test-ecs",
/// Description = "acc-test",
/// HostName = "tf-acc-test",
/// ImageId = fooImages.Apply(imagesResult =&gt; imagesResult.Images[0]?.ImageId),
/// InstanceType = "ecs.g1ie.large",
/// Password = "93f0cb0614Aab12",
/// InstanceChargeType = "PostPaid",
/// SystemVolumeType = "ESSD_PL0",
/// SystemVolumeSize = 40,
/// DataVolumes = new[]
/// {
/// new Volcengine.Ecs.Inputs.InstanceDataVolumeArgs
/// {
/// VolumeType = "ESSD_PL0",
/// Size = 50,
/// DeleteWithInstance = true,
/// },
/// },
/// SubnetId = fooSubnet.Id,
/// SecurityGroupIds = new[]
/// {
/// fooSecurityGroup.Id,
/// },
/// ProjectName = "default",
/// Tags = new[]
/// {
/// new Volcengine.Ecs.Inputs.InstanceTagArgs
/// {
/// Key = "k1",
/// Value = "v1",
/// },
/// },
/// });
///
/// var fooRole = new Volcengine.Iam.Role("fooRole", new()
/// {
/// RoleName = "acc-test-role",
/// DisplayName = "acc-test",
/// Description = "acc-test",
/// TrustPolicyDocument = "{\"Statement\":[{\"Effect\":\"Allow\",\"Action\":[\"sts:AssumeRole\"],\"Principal\":{\"Service\":[\"ecs\"]}}]}",
/// MaxSessionDuration = 36000,
/// });
///
/// var fooIamRoleAttachment = new Volcengine.Ecs.IamRoleAttachment("fooIamRoleAttachment", new()
/// {
/// IamRoleName = fooRole.Id,
/// InstanceId = fooInstance.Id,
/// });
///
/// });
/// ```
///
/// ## Import
///
Expand Down
12 changes: 9 additions & 3 deletions sdk/dotnet/Volcengine/Ecs/Inputs/InstanceCpuOptionsArgs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,16 @@ namespace Volcengine.Pulumi.Volcengine.Ecs.Inputs
public sealed class InstanceCpuOptionsArgs : global::Pulumi.ResourceArgs
{
/// <summary>
/// The per core of threads,only support for ebm.
/// The number of subnuma in socket, only support for ebm. `1` indicates disabling SNC/NPS function. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
/// </summary>
[Input("threadsPerCore", required: true)]
public Input<int> ThreadsPerCore { get; set; } = null!;
[Input("numaPerSocket")]
public Input<int>? NumaPerSocket { get; set; }

/// <summary>
/// The per core of threads, only support for ebm. `1` indicates disabling hyper threading function.
/// </summary>
[Input("threadsPerCore")]
public Input<int>? ThreadsPerCore { get; set; }

public InstanceCpuOptionsArgs()
{
Expand Down
12 changes: 9 additions & 3 deletions sdk/dotnet/Volcengine/Ecs/Inputs/InstanceCpuOptionsGetArgs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,16 @@ namespace Volcengine.Pulumi.Volcengine.Ecs.Inputs
public sealed class InstanceCpuOptionsGetArgs : global::Pulumi.ResourceArgs
{
/// <summary>
/// The per core of threads,only support for ebm.
/// The number of subnuma in socket, only support for ebm. `1` indicates disabling SNC/NPS function. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
/// </summary>
[Input("threadsPerCore", required: true)]
public Input<int> ThreadsPerCore { get; set; } = null!;
[Input("numaPerSocket")]
public Input<int>? NumaPerSocket { get; set; }

/// <summary>
/// The per core of threads, only support for ebm. `1` indicates disabling hyper threading function.
/// </summary>
[Input("threadsPerCore")]
public Input<int>? ThreadsPerCore { get; set; }

public InstanceCpuOptionsGetArgs()
{
Expand Down
14 changes: 11 additions & 3 deletions sdk/dotnet/Volcengine/Ecs/Outputs/InstanceCpuOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,21 @@ namespace Volcengine.Pulumi.Volcengine.Ecs.Outputs
public sealed class InstanceCpuOptions
{
/// <summary>
/// The per core of threads,only support for ebm.
/// The number of subnuma in socket, only support for ebm. `1` indicates disabling SNC/NPS function. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
/// </summary>
public readonly int ThreadsPerCore;
public readonly int? NumaPerSocket;
/// <summary>
/// The per core of threads, only support for ebm. `1` indicates disabling hyper threading function.
/// </summary>
public readonly int? ThreadsPerCore;

[OutputConstructor]
private InstanceCpuOptions(int threadsPerCore)
private InstanceCpuOptions(
int? numaPerSocket,

int? threadsPerCore)
{
NumaPerSocket = numaPerSocket;
ThreadsPerCore = threadsPerCore;
}
}
Expand Down
8 changes: 5 additions & 3 deletions sdk/dotnet/Volcengine/Privatelink/VpcEndpointService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ namespace Volcengine.Pulumi.Volcengine.Privatelink
/// ```sh
/// $ pulumi import volcengine:privatelink/vpcEndpointService:VpcEndpointService default epsvc-2fe630gurkl37k5gfuy33****
/// ```
///
/// It is recommended to bind resources using the resources' field in this resource instead of using vpc_endpoint_service_resource. For operations that jointly use this resource and vpc_endpoint_service_resource, use lifecycle ignore_changes to suppress changes to the resources field.
/// </summary>
[VolcengineResourceType("volcengine:privatelink/vpcEndpointService:VpcEndpointService")]
public partial class VpcEndpointService : global::Pulumi.CustomResource
Expand All @@ -69,7 +71,7 @@ public partial class VpcEndpointService : global::Pulumi.CustomResource
public Output<string?> Description { get; private set; } = null!;

/// <summary>
/// The resources info. When create vpc endpoint service, the resource must exist.
/// The resources info. When create vpc endpoint service, the resource must exist. It is recommended to bind resources using the resources' field in this resource instead of using vpc_endpoint_service_resource. For operations that jointly use this resource and vpc_endpoint_service_resource, use lifecycle ignore_changes to suppress changes to the resources field.
/// </summary>
[Output("resources")]
public Output<ImmutableArray<Outputs.VpcEndpointServiceResource>> Resources { get; private set; } = null!;
Expand Down Expand Up @@ -185,7 +187,7 @@ public sealed class VpcEndpointServiceArgs : global::Pulumi.ResourceArgs
private InputList<Inputs.VpcEndpointServiceResourceArgs>? _resources;

/// <summary>
/// The resources info. When create vpc endpoint service, the resource must exist.
/// The resources info. When create vpc endpoint service, the resource must exist. It is recommended to bind resources using the resources' field in this resource instead of using vpc_endpoint_service_resource. For operations that jointly use this resource and vpc_endpoint_service_resource, use lifecycle ignore_changes to suppress changes to the resources field.
/// </summary>
public InputList<Inputs.VpcEndpointServiceResourceArgs> Resources
{
Expand Down Expand Up @@ -223,7 +225,7 @@ public sealed class VpcEndpointServiceState : global::Pulumi.ResourceArgs
private InputList<Inputs.VpcEndpointServiceResourceGetArgs>? _resources;

/// <summary>
/// The resources info. When create vpc endpoint service, the resource must exist.
/// The resources info. When create vpc endpoint service, the resource must exist. It is recommended to bind resources using the resources' field in this resource instead of using vpc_endpoint_service_resource. For operations that jointly use this resource and vpc_endpoint_service_resource, use lifecycle ignore_changes to suppress changes to the resources field.
/// </summary>
public InputList<Inputs.VpcEndpointServiceResourceGetArgs> Resources
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,14 @@ namespace Volcengine.Pulumi.Volcengine.Privatelink
/// ```sh
/// $ pulumi import volcengine:privatelink/vpcEndpointServiceResource:VpcEndpointServiceResource default epsvc-2fe630gurkl37k5gfuy33****:clb-bp1o94dp5i6ea****
/// ```
///
/// It is not recommended to use this resource for binding resources, it is recommended to use the resources field of vpc_endpoint_service for binding. If using this resource and vpc_endpoint_service jointly for operations, use lifecycle ignore_changes to suppress changes to the resources field in vpc_endpoint_service.
/// </summary>
[VolcengineResourceType("volcengine:privatelink/vpcEndpointServiceResource:VpcEndpointServiceResource")]
public partial class VpcEndpointServiceResource : global::Pulumi.CustomResource
{
/// <summary>
/// The id of resource.
/// The id of resource. It is not recommended to use this resource for binding resources, it is recommended to use the resources field of vpc_endpoint_service for binding. If using this resource and vpc_endpoint_service jointly for operations, use lifecycle ignore_changes to suppress changes to the resources field in vpc_endpoint_service.
/// </summary>
[Output("resourceId")]
public Output<string> ResourceId { get; private set; } = null!;
Expand Down Expand Up @@ -114,7 +116,7 @@ public static VpcEndpointServiceResource Get(string name, Input<string> id, VpcE
public sealed class VpcEndpointServiceResourceArgs : global::Pulumi.ResourceArgs
{
/// <summary>
/// The id of resource.
/// The id of resource. It is not recommended to use this resource for binding resources, it is recommended to use the resources field of vpc_endpoint_service for binding. If using this resource and vpc_endpoint_service jointly for operations, use lifecycle ignore_changes to suppress changes to the resources field in vpc_endpoint_service.
/// </summary>
[Input("resourceId", required: true)]
public Input<string> ResourceId { get; set; } = null!;
Expand All @@ -134,7 +136,7 @@ public VpcEndpointServiceResourceArgs()
public sealed class VpcEndpointServiceResourceState : global::Pulumi.ResourceArgs
{
/// <summary>
/// The id of resource.
/// The id of resource. It is not recommended to use this resource for binding resources, it is recommended to use the resources field of vpc_endpoint_service for binding. If using this resource and vpc_endpoint_service jointly for operations, use lifecycle ignore_changes to suppress changes to the resources field in vpc_endpoint_service.
/// </summary>
[Input("resourceId")]
public Input<string>? ResourceId { get; set; }
Expand Down
33 changes: 33 additions & 0 deletions sdk/dotnet/Volcengine/Rds_mysql/Inputs/InstanceTagArgs.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Threading.Tasks;
using Pulumi.Serialization;
using Pulumi;

namespace Volcengine.Pulumi.Volcengine.Rds_mysql.Inputs
{

public sealed class InstanceTagArgs : global::Pulumi.ResourceArgs
{
/// <summary>
/// The Key of Tags.
/// </summary>
[Input("key", required: true)]
public Input<string> Key { get; set; } = null!;

/// <summary>
/// The Value of Tags.
/// </summary>
[Input("value", required: true)]
public Input<string> Value { get; set; } = null!;

public InstanceTagArgs()
{
}
public static new InstanceTagArgs Empty => new InstanceTagArgs();
}
}
33 changes: 33 additions & 0 deletions sdk/dotnet/Volcengine/Rds_mysql/Inputs/InstanceTagGetArgs.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Threading.Tasks;
using Pulumi.Serialization;
using Pulumi;

namespace Volcengine.Pulumi.Volcengine.Rds_mysql.Inputs
{

public sealed class InstanceTagGetArgs : global::Pulumi.ResourceArgs
{
/// <summary>
/// The Key of Tags.
/// </summary>
[Input("key", required: true)]
public Input<string> Key { get; set; } = null!;

/// <summary>
/// The Value of Tags.
/// </summary>
[Input("value", required: true)]
public Input<string> Value { get; set; } = null!;

public InstanceTagGetArgs()
{
}
public static new InstanceTagGetArgs Empty => new InstanceTagGetArgs();
}
}
33 changes: 33 additions & 0 deletions sdk/dotnet/Volcengine/Rds_mysql/Inputs/InstancesTag.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Threading.Tasks;
using Pulumi.Serialization;
using Pulumi;

namespace Volcengine.Pulumi.Volcengine.Rds_mysql.Inputs
{

public sealed class InstancesTagArgs : global::Pulumi.InvokeArgs
{
/// <summary>
/// The Key of Tags.
/// </summary>
[Input("key", required: true)]
public string Key { get; set; } = null!;

/// <summary>
/// The Value of Tags.
/// </summary>
[Input("value", required: true)]
public string Value { get; set; } = null!;

public InstancesTagArgs()
{
}
public static new InstancesTagArgs Empty => new InstancesTagArgs();
}
}
33 changes: 33 additions & 0 deletions sdk/dotnet/Volcengine/Rds_mysql/Inputs/InstancesTagArgs.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Threading.Tasks;
using Pulumi.Serialization;
using Pulumi;

namespace Volcengine.Pulumi.Volcengine.Rds_mysql.Inputs
{

public sealed class InstancesTagInputArgs : global::Pulumi.ResourceArgs
{
/// <summary>
/// The Key of Tags.
/// </summary>
[Input("key", required: true)]
public Input<string> Key { get; set; } = null!;

/// <summary>
/// The Value of Tags.
/// </summary>
[Input("value", required: true)]
public Input<string> Value { get; set; } = null!;

public InstancesTagInputArgs()
{
}
public static new InstancesTagInputArgs Empty => new InstancesTagInputArgs();
}
}

0 comments on commit 76cdf5c

Please sign in to comment.