Skip to content

Commit

Permalink
Regenerate SDKs
Browse files Browse the repository at this point in the history
  • Loading branch information
AaronFriel committed Jun 30, 2023
1 parent a2c1b7e commit 2ee426e
Show file tree
Hide file tree
Showing 783 changed files with 11,130 additions and 6,502 deletions.
550 changes: 276 additions & 274 deletions provider/cmd/pulumi-resource-aws/schema.json

Large diffs are not rendered by default.

38 changes: 38 additions & 0 deletions sdk/dotnet/Acm/Certificate.cs
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,44 @@ namespace Pulumi.Aws.Acm
///
/// });
/// ```
/// ### Referencing domain_validation_options With for_each Based Resources
///
/// See the `aws.acm.CertificateValidation` resource for a full example of performing DNS validation.
///
/// ```csharp
/// using System.Collections.Generic;
/// using System.Linq;
/// using Pulumi;
/// using Aws = Pulumi.Aws;
///
/// return await Deployment.RunAsync(() =>
/// {
/// var example = new List<Aws.Route53.Record>();
/// foreach (var range in .Select(dvo =>
/// {
/// return new Dictionary<string, object?>
/// {
/// { "name", dvo.ResourceRecordName },
/// { "record", dvo.ResourceRecordValue },
/// { "type", dvo.ResourceRecordType },
/// };
/// }).Select(pair => new { pair.Key, pair.Value }))
/// {
/// example.Add(new Aws.Route53.Record($"example-{range.Key}", new()
/// {
/// AllowOverwrite = true,
/// Name = range.Value.Name,
/// Records = new[]
/// {
/// range.Value.Record,
/// },
/// Ttl = 60,
/// Type = System.Enum.Parse<Aws.Route53/RecordType.RecordType>(range.Value.Type),
/// ZoneId = aws_route53_zone.Example.Zone_id,
/// }));
/// }
/// });
/// ```
///
/// ## Import
///
Expand Down
64 changes: 64 additions & 0 deletions sdk/dotnet/Alb/LoadBalancer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,70 @@ namespace Pulumi.Aws.Alb
/// > **Note:** `aws.alb.LoadBalancer` is known as `aws.lb.LoadBalancer`. The functionality is identical.
///
/// ## Example Usage
/// ### Application Load Balancer
///
/// ```csharp
/// using System.Collections.Generic;
/// using System.Linq;
/// using Pulumi;
/// using Aws = Pulumi.Aws;
///
/// return await Deployment.RunAsync(() =>
/// {
/// var test = new Aws.LB.LoadBalancer("test", new()
/// {
/// Internal = false,
/// LoadBalancerType = "application",
/// SecurityGroups = new[]
/// {
/// aws_security_group.Lb_sg.Id,
/// },
/// Subnets = .Select(subnet =>
/// {
/// return subnet.Id;
/// }),
/// EnableDeletionProtection = true,
/// AccessLogs = new Aws.LB.Inputs.LoadBalancerAccessLogsArgs
/// {
/// Bucket = aws_s3_bucket.Lb_logs.Id,
/// Prefix = "test-lb",
/// Enabled = true,
/// },
/// Tags =
/// {
/// { "Environment", "production" },
/// },
/// });
///
/// });
/// ```
/// ### Network Load Balancer
///
/// ```csharp
/// using System.Collections.Generic;
/// using System.Linq;
/// using Pulumi;
/// using Aws = Pulumi.Aws;
///
/// return await Deployment.RunAsync(() =>
/// {
/// var test = new Aws.LB.LoadBalancer("test", new()
/// {
/// Internal = false,
/// LoadBalancerType = "network",
/// Subnets = .Select(subnet =>
/// {
/// return subnet.Id;
/// }),
/// EnableDeletionProtection = true,
/// Tags =
/// {
/// { "Environment", "production" },
/// },
/// });
///
/// });
/// ```
/// ### Specifying Elastic IPs
///
/// ```csharp
Expand Down
56 changes: 56 additions & 0 deletions sdk/dotnet/AppConfig/GetConfigurationProfiles.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,34 @@ public static class GetConfigurationProfiles
///
/// {{% examples %}}
/// ## Example Usage
/// {{% example %}}
/// ### Basic Usage
///
/// ```csharp
/// using System.Collections.Generic;
/// using System.Linq;
/// using Pulumi;
/// using Aws = Pulumi.Aws;
///
/// return await Deployment.RunAsync(() =>
/// {
/// var exampleConfigurationProfiles = Aws.AppConfig.GetConfigurationProfiles.Invoke(new()
/// {
/// ApplicationId = "a1d3rpe",
/// });
///
/// var exampleConfigurationProfile = .Select(__value =>
/// {
/// return Aws.AppConfig.GetConfigurationProfile.Invoke(new()
/// {
/// ConfigurationProfileId = __value,
/// ApplicationId = aws_appconfig_application.Example.Id,
/// });
/// });
///
/// });
/// ```
/// {{% /example %}}
/// {{% /examples %}}
/// </summary>
public static Task<GetConfigurationProfilesResult> InvokeAsync(GetConfigurationProfilesArgs args, InvokeOptions? options = null)
Expand All @@ -28,6 +56,34 @@ public static Task<GetConfigurationProfilesResult> InvokeAsync(GetConfigurationP
///
/// {{% examples %}}
/// ## Example Usage
/// {{% example %}}
/// ### Basic Usage
///
/// ```csharp
/// using System.Collections.Generic;
/// using System.Linq;
/// using Pulumi;
/// using Aws = Pulumi.Aws;
///
/// return await Deployment.RunAsync(() =&gt;
/// {
/// var exampleConfigurationProfiles = Aws.AppConfig.GetConfigurationProfiles.Invoke(new()
/// {
/// ApplicationId = "a1d3rpe",
/// });
///
/// var exampleConfigurationProfile = .Select(__value =&gt;
/// {
/// return Aws.AppConfig.GetConfigurationProfile.Invoke(new()
/// {
/// ConfigurationProfileId = __value,
/// ApplicationId = aws_appconfig_application.Example.Id,
/// });
/// });
///
/// });
/// ```
/// {{% /example %}}
/// {{% /examples %}}
/// </summary>
public static Output<GetConfigurationProfilesResult> Invoke(GetConfigurationProfilesInvokeArgs args, InvokeOptions? options = null)
Expand Down
64 changes: 64 additions & 0 deletions sdk/dotnet/ApplicationLoadBalancing/LoadBalancer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,70 @@ namespace Pulumi.Aws.ApplicationLoadBalancing
/// &gt; **Note:** `aws.alb.LoadBalancer` is known as `aws.lb.LoadBalancer`. The functionality is identical.
///
/// ## Example Usage
/// ### Application Load Balancer
///
/// ```csharp
/// using System.Collections.Generic;
/// using System.Linq;
/// using Pulumi;
/// using Aws = Pulumi.Aws;
///
/// return await Deployment.RunAsync(() =&gt;
/// {
/// var test = new Aws.LB.LoadBalancer("test", new()
/// {
/// Internal = false,
/// LoadBalancerType = "application",
/// SecurityGroups = new[]
/// {
/// aws_security_group.Lb_sg.Id,
/// },
/// Subnets = .Select(subnet =&gt;
/// {
/// return subnet.Id;
/// }),
/// EnableDeletionProtection = true,
/// AccessLogs = new Aws.LB.Inputs.LoadBalancerAccessLogsArgs
/// {
/// Bucket = aws_s3_bucket.Lb_logs.Id,
/// Prefix = "test-lb",
/// Enabled = true,
/// },
/// Tags =
/// {
/// { "Environment", "production" },
/// },
/// });
///
/// });
/// ```
/// ### Network Load Balancer
///
/// ```csharp
/// using System.Collections.Generic;
/// using System.Linq;
/// using Pulumi;
/// using Aws = Pulumi.Aws;
///
/// return await Deployment.RunAsync(() =&gt;
/// {
/// var test = new Aws.LB.LoadBalancer("test", new()
/// {
/// Internal = false,
/// LoadBalancerType = "network",
/// Subnets = .Select(subnet =&gt;
/// {
/// return subnet.Id;
/// }),
/// EnableDeletionProtection = true,
/// Tags =
/// {
/// { "Environment", "production" },
/// },
/// });
///
/// });
/// ```
/// ### Specifying Elastic IPs
///
/// ```csharp
Expand Down
31 changes: 31 additions & 0 deletions sdk/dotnet/ControlTower/ControlTowerControl.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,37 @@ namespace Pulumi.Aws.ControlTower
/// Allows the application of pre-defined controls to organizational units. For more information on usage, please see the
/// [AWS Control Tower User Guide](https://docs.aws.amazon.com/controltower/latest/userguide/enable-guardrails.html).
///
/// ## Example Usage
///
/// ```csharp
/// using System.Collections.Generic;
/// using System.Linq;
/// using Pulumi;
/// using Aws = Pulumi.Aws;
///
/// return await Deployment.RunAsync(() =&gt;
/// {
/// var current = Aws.GetRegion.Invoke();
///
/// var exampleOrganization = Aws.Organizations.GetOrganization.Invoke();
///
/// var exampleOrganizationalUnits = Aws.Organizations.GetOrganizationalUnits.Invoke(new()
/// {
/// ParentId = exampleOrganization.Apply(getOrganizationResult =&gt; getOrganizationResult.Roots[0]?.Id),
/// });
///
/// var exampleControlTowerControl = new Aws.ControlTower.ControlTowerControl("exampleControlTowerControl", new()
/// {
/// ControlIdentifier = $"arn:aws:controltower:{current.Apply(getRegionResult =&gt; getRegionResult.Name)}::control/AWS-GR_EC2_VOLUME_INUSE_CHECK",
/// TargetIdentifier = .Where(x =&gt; x.Name == "Infrastructure").Select(x =&gt;
/// {
/// return x.Arn;
/// })[0],
/// });
///
/// });
/// ```
///
/// ## Import
///
/// Control Tower Controls can be imported using their `organizational_unit_arn/control_identifier`, e.g.,
Expand Down
64 changes: 64 additions & 0 deletions sdk/dotnet/ControlTower/GetControls.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,76 @@ public static class GetControls
{
/// <summary>
/// List of Control Tower controls applied to an OU.
///
/// {{% examples %}}
/// ## Example Usage
/// {{% example %}}
///
/// ```csharp
/// using System.Collections.Generic;
/// using System.Linq;
/// using Pulumi;
/// using Aws = Pulumi.Aws;
///
/// return await Deployment.RunAsync(() =&gt;
/// {
/// var thisOrganization = Aws.Organizations.GetOrganization.Invoke();
///
/// var thisOrganizationalUnits = Aws.Organizations.GetOrganizationalUnits.Invoke(new()
/// {
/// ParentId = thisOrganization.Apply(getOrganizationResult =&gt; getOrganizationResult.Roots[0]?.Id),
/// });
///
/// var thisControls = Aws.ControlTower.GetControls.Invoke(new()
/// {
/// TargetIdentifier = .Where(x =&gt; x.Name == "Security").Select(x =&gt;
/// {
/// return x.Arn;
/// })[0],
/// });
///
/// });
/// ```
/// {{% /example %}}
/// {{% /examples %}}
/// </summary>
public static Task<GetControlsResult> InvokeAsync(GetControlsArgs args, InvokeOptions? options = null)
=> global::Pulumi.Deployment.Instance.InvokeAsync<GetControlsResult>("aws:controltower/getControls:getControls", args ?? new GetControlsArgs(), options.WithDefaults());

/// <summary>
/// List of Control Tower controls applied to an OU.
///
/// {{% examples %}}
/// ## Example Usage
/// {{% example %}}
///
/// ```csharp
/// using System.Collections.Generic;
/// using System.Linq;
/// using Pulumi;
/// using Aws = Pulumi.Aws;
///
/// return await Deployment.RunAsync(() =&gt;
/// {
/// var thisOrganization = Aws.Organizations.GetOrganization.Invoke();
///
/// var thisOrganizationalUnits = Aws.Organizations.GetOrganizationalUnits.Invoke(new()
/// {
/// ParentId = thisOrganization.Apply(getOrganizationResult =&gt; getOrganizationResult.Roots[0]?.Id),
/// });
///
/// var thisControls = Aws.ControlTower.GetControls.Invoke(new()
/// {
/// TargetIdentifier = .Where(x =&gt; x.Name == "Security").Select(x =&gt;
/// {
/// return x.Arn;
/// })[0],
/// });
///
/// });
/// ```
/// {{% /example %}}
/// {{% /examples %}}
/// </summary>
public static Output<GetControlsResult> Invoke(GetControlsInvokeArgs args, InvokeOptions? options = null)
=> global::Pulumi.Deployment.Instance.Invoke<GetControlsResult>("aws:controltower/getControls:getControls", args ?? new GetControlsInvokeArgs(), options.WithDefaults());
Expand Down
Loading

0 comments on commit 2ee426e

Please sign in to comment.