diff --git a/sdk/dotnet/Inputs/AppSpecAlertArgs.cs b/sdk/dotnet/Inputs/AppSpecAlertArgs.cs index 025b63c9..c236cc94 100644 --- a/sdk/dotnet/Inputs/AppSpecAlertArgs.cs +++ b/sdk/dotnet/Inputs/AppSpecAlertArgs.cs @@ -19,7 +19,7 @@ public sealed class AppSpecAlertArgs : global::Pulumi.ResourceArgs public Input? Disabled { get; set; } /// - /// The type of the alert to configure. Component app alert policies can be: `CPU_UTILIZATION`, `MEM_UTILIZATION`, or `RESTART_COUNT`. + /// The type of the alert to configure. Top-level app alert policies can be: `DEPLOYMENT_FAILED`, `DEPLOYMENT_LIVE`, `DOMAIN_FAILED`, or `DOMAIN_LIVE`. /// [Input("rule", required: true)] public Input Rule { get; set; } = null!; diff --git a/sdk/dotnet/Inputs/AppSpecAlertGetArgs.cs b/sdk/dotnet/Inputs/AppSpecAlertGetArgs.cs index f839dd8d..fe1b7567 100644 --- a/sdk/dotnet/Inputs/AppSpecAlertGetArgs.cs +++ b/sdk/dotnet/Inputs/AppSpecAlertGetArgs.cs @@ -19,7 +19,7 @@ public sealed class AppSpecAlertGetArgs : global::Pulumi.ResourceArgs public Input? Disabled { get; set; } /// - /// The type of the alert to configure. Component app alert policies can be: `CPU_UTILIZATION`, `MEM_UTILIZATION`, or `RESTART_COUNT`. + /// The type of the alert to configure. Top-level app alert policies can be: `DEPLOYMENT_FAILED`, `DEPLOYMENT_LIVE`, `DOMAIN_FAILED`, or `DOMAIN_LIVE`. /// [Input("rule", required: true)] public Input Rule { get; set; } = null!; diff --git a/sdk/dotnet/Inputs/AppSpecArgs.cs b/sdk/dotnet/Inputs/AppSpecArgs.cs index 43cf800e..e10f7531 100644 --- a/sdk/dotnet/Inputs/AppSpecArgs.cs +++ b/sdk/dotnet/Inputs/AppSpecArgs.cs @@ -16,7 +16,7 @@ public sealed class AppSpecArgs : global::Pulumi.ResourceArgs private InputList? _alerts; /// - /// Describes an alert policy for the component. + /// Describes an alert policy for the app. /// public InputList Alerts { @@ -57,7 +57,7 @@ public InputList Domains private InputList? _envs; /// - /// Describes an environment variable made available to an app competent. + /// Describes an app-wide environment variable made available to all components. /// public InputList Envs { @@ -100,7 +100,7 @@ public InputList Jobs } /// - /// The name of the component. + /// The name of the app. Must be unique across all apps in the same account. /// [Input("name", required: true)] public Input Name { get; set; } = null!; diff --git a/sdk/dotnet/Inputs/AppSpecDomainNameArgs.cs b/sdk/dotnet/Inputs/AppSpecDomainNameArgs.cs index c61bea54..e036b05c 100644 --- a/sdk/dotnet/Inputs/AppSpecDomainNameArgs.cs +++ b/sdk/dotnet/Inputs/AppSpecDomainNameArgs.cs @@ -20,6 +20,9 @@ public sealed class AppSpecDomainNameArgs : global::Pulumi.ResourceArgs /// /// The domain type, which can be one of the following: + /// - `DEFAULT`: The default .ondigitalocean.app domain assigned to this app. + /// - `PRIMARY`: The primary domain for this app that is displayed as the default in the control panel, used in bindable environment variables, and any other places that reference an app's live URL. Only one domain may be set as primary. + /// - `ALIAS`: A non-primary domain. /// [Input("type")] public Input? Type { get; set; } diff --git a/sdk/dotnet/Inputs/AppSpecDomainNameGetArgs.cs b/sdk/dotnet/Inputs/AppSpecDomainNameGetArgs.cs index cf1fca59..cc3005db 100644 --- a/sdk/dotnet/Inputs/AppSpecDomainNameGetArgs.cs +++ b/sdk/dotnet/Inputs/AppSpecDomainNameGetArgs.cs @@ -20,6 +20,9 @@ public sealed class AppSpecDomainNameGetArgs : global::Pulumi.ResourceArgs /// /// The domain type, which can be one of the following: + /// - `DEFAULT`: The default .ondigitalocean.app domain assigned to this app. + /// - `PRIMARY`: The primary domain for this app that is displayed as the default in the control panel, used in bindable environment variables, and any other places that reference an app's live URL. Only one domain may be set as primary. + /// - `ALIAS`: A non-primary domain. /// [Input("type")] public Input? Type { get; set; } diff --git a/sdk/dotnet/Inputs/AppSpecFunctionLogDestinationLogtailArgs.cs b/sdk/dotnet/Inputs/AppSpecFunctionLogDestinationLogtailArgs.cs index 1dd18958..0dbbf777 100644 --- a/sdk/dotnet/Inputs/AppSpecFunctionLogDestinationLogtailArgs.cs +++ b/sdk/dotnet/Inputs/AppSpecFunctionLogDestinationLogtailArgs.cs @@ -14,6 +14,8 @@ public sealed class AppSpecFunctionLogDestinationLogtailArgs : global::Pulumi.Re { /// /// Logtail token. + /// + /// A `database` can contain: /// [Input("token", required: true)] public Input Token { get; set; } = null!; diff --git a/sdk/dotnet/Inputs/AppSpecFunctionLogDestinationLogtailGetArgs.cs b/sdk/dotnet/Inputs/AppSpecFunctionLogDestinationLogtailGetArgs.cs index dd0386ae..e597d9a6 100644 --- a/sdk/dotnet/Inputs/AppSpecFunctionLogDestinationLogtailGetArgs.cs +++ b/sdk/dotnet/Inputs/AppSpecFunctionLogDestinationLogtailGetArgs.cs @@ -14,6 +14,8 @@ public sealed class AppSpecFunctionLogDestinationLogtailGetArgs : global::Pulumi { /// /// Logtail token. + /// + /// A `database` can contain: /// [Input("token", required: true)] public Input Token { get; set; } = null!; diff --git a/sdk/dotnet/Inputs/AppSpecGetArgs.cs b/sdk/dotnet/Inputs/AppSpecGetArgs.cs index 6a244752..00c8681b 100644 --- a/sdk/dotnet/Inputs/AppSpecGetArgs.cs +++ b/sdk/dotnet/Inputs/AppSpecGetArgs.cs @@ -16,7 +16,7 @@ public sealed class AppSpecGetArgs : global::Pulumi.ResourceArgs private InputList? _alerts; /// - /// Describes an alert policy for the component. + /// Describes an alert policy for the app. /// public InputList Alerts { @@ -57,7 +57,7 @@ public InputList Domains private InputList? _envs; /// - /// Describes an environment variable made available to an app competent. + /// Describes an app-wide environment variable made available to all components. /// public InputList Envs { @@ -100,7 +100,7 @@ public InputList Jobs } /// - /// The name of the component. + /// The name of the app. Must be unique across all apps in the same account. /// [Input("name", required: true)] public Input Name { get; set; } = null!; diff --git a/sdk/dotnet/Inputs/AppSpecIngressRuleArgs.cs b/sdk/dotnet/Inputs/AppSpecIngressRuleArgs.cs index 8573404c..cd52d4a5 100644 --- a/sdk/dotnet/Inputs/AppSpecIngressRuleArgs.cs +++ b/sdk/dotnet/Inputs/AppSpecIngressRuleArgs.cs @@ -12,6 +12,9 @@ namespace Pulumi.DigitalOcean.Inputs public sealed class AppSpecIngressRuleArgs : global::Pulumi.ResourceArgs { + /// + /// The component to route to. Only one of `component` or `redirect` may be set. + /// [Input("component")] public Input? Component { get; set; } @@ -21,9 +24,15 @@ public sealed class AppSpecIngressRuleArgs : global::Pulumi.ResourceArgs [Input("cors")] public Input? Cors { get; set; } + /// + /// The match configuration for the rule + /// [Input("match")] public Input? Match { get; set; } + /// + /// The redirect configuration for the rule. Only one of `component` or `redirect` may be set. + /// [Input("redirect")] public Input? Redirect { get; set; } diff --git a/sdk/dotnet/Inputs/AppSpecIngressRuleComponentArgs.cs b/sdk/dotnet/Inputs/AppSpecIngressRuleComponentArgs.cs index 0c8255e8..3b6b89d2 100644 --- a/sdk/dotnet/Inputs/AppSpecIngressRuleComponentArgs.cs +++ b/sdk/dotnet/Inputs/AppSpecIngressRuleComponentArgs.cs @@ -13,14 +13,20 @@ namespace Pulumi.DigitalOcean.Inputs public sealed class AppSpecIngressRuleComponentArgs : global::Pulumi.ResourceArgs { /// - /// The name of the component. + /// The name of the component to route to. /// [Input("name")] public Input? Name { get; set; } + /// + /// An optional boolean flag to preserve the path that is forwarded to the backend service. By default, the HTTP request path will be trimmed from the left when forwarded to the component. + /// [Input("preservePathPrefix")] public Input? PreservePathPrefix { get; set; } + /// + /// An optional field that will rewrite the path of the component to be what is specified here. This is mutually exclusive with `preserve_path_prefix`. + /// [Input("rewrite")] public Input? Rewrite { get; set; } diff --git a/sdk/dotnet/Inputs/AppSpecIngressRuleComponentGetArgs.cs b/sdk/dotnet/Inputs/AppSpecIngressRuleComponentGetArgs.cs index 17d7e563..16fbe3ea 100644 --- a/sdk/dotnet/Inputs/AppSpecIngressRuleComponentGetArgs.cs +++ b/sdk/dotnet/Inputs/AppSpecIngressRuleComponentGetArgs.cs @@ -13,14 +13,20 @@ namespace Pulumi.DigitalOcean.Inputs public sealed class AppSpecIngressRuleComponentGetArgs : global::Pulumi.ResourceArgs { /// - /// The name of the component. + /// The name of the component to route to. /// [Input("name")] public Input? Name { get; set; } + /// + /// An optional boolean flag to preserve the path that is forwarded to the backend service. By default, the HTTP request path will be trimmed from the left when forwarded to the component. + /// [Input("preservePathPrefix")] public Input? PreservePathPrefix { get; set; } + /// + /// An optional field that will rewrite the path of the component to be what is specified here. This is mutually exclusive with `preserve_path_prefix`. + /// [Input("rewrite")] public Input? Rewrite { get; set; } diff --git a/sdk/dotnet/Inputs/AppSpecIngressRuleCorsAllowOriginsArgs.cs b/sdk/dotnet/Inputs/AppSpecIngressRuleCorsAllowOriginsArgs.cs index 98f9bc3b..21d34f2f 100644 --- a/sdk/dotnet/Inputs/AppSpecIngressRuleCorsAllowOriginsArgs.cs +++ b/sdk/dotnet/Inputs/AppSpecIngressRuleCorsAllowOriginsArgs.cs @@ -13,19 +13,19 @@ namespace Pulumi.DigitalOcean.Inputs public sealed class AppSpecIngressRuleCorsAllowOriginsArgs : global::Pulumi.ResourceArgs { /// - /// Exact string match. + /// The `Access-Control-Allow-Origin` header will be set to the client's origin only if the client's origin exactly matches the value you provide. /// [Input("exact")] public Input? Exact { get; set; } /// - /// Prefix-based match. + /// The `Access-Control-Allow-Origin` header will be set to the client's origin if the beginning of the client's origin matches the value you provide. /// [Input("prefix")] public Input? Prefix { get; set; } /// - /// RE2 style regex-based match. + /// The `Access-Control-Allow-Origin` header will be set to the client's origin if the client’s origin matches the regex you provide, in [RE2 style syntax](https://github.com/google/re2/wiki/Syntax). /// [Input("regex")] public Input? Regex { get; set; } diff --git a/sdk/dotnet/Inputs/AppSpecIngressRuleCorsAllowOriginsGetArgs.cs b/sdk/dotnet/Inputs/AppSpecIngressRuleCorsAllowOriginsGetArgs.cs index 73288243..9b05650a 100644 --- a/sdk/dotnet/Inputs/AppSpecIngressRuleCorsAllowOriginsGetArgs.cs +++ b/sdk/dotnet/Inputs/AppSpecIngressRuleCorsAllowOriginsGetArgs.cs @@ -13,19 +13,19 @@ namespace Pulumi.DigitalOcean.Inputs public sealed class AppSpecIngressRuleCorsAllowOriginsGetArgs : global::Pulumi.ResourceArgs { /// - /// Exact string match. + /// The `Access-Control-Allow-Origin` header will be set to the client's origin only if the client's origin exactly matches the value you provide. /// [Input("exact")] public Input? Exact { get; set; } /// - /// Prefix-based match. + /// The `Access-Control-Allow-Origin` header will be set to the client's origin if the beginning of the client's origin matches the value you provide. /// [Input("prefix")] public Input? Prefix { get; set; } /// - /// RE2 style regex-based match. + /// The `Access-Control-Allow-Origin` header will be set to the client's origin if the client’s origin matches the regex you provide, in [RE2 style syntax](https://github.com/google/re2/wiki/Syntax). /// [Input("regex")] public Input? Regex { get; set; } diff --git a/sdk/dotnet/Inputs/AppSpecIngressRuleCorsArgs.cs b/sdk/dotnet/Inputs/AppSpecIngressRuleCorsArgs.cs index c406ec0b..0d45f7d6 100644 --- a/sdk/dotnet/Inputs/AppSpecIngressRuleCorsArgs.cs +++ b/sdk/dotnet/Inputs/AppSpecIngressRuleCorsArgs.cs @@ -43,7 +43,7 @@ public InputList AllowMethods } /// - /// The set of allowed CORS origins. This configures the Access-Control-Allow-Origin header. + /// The `Access-Control-Allow-Origin` can be /// [Input("allowOrigins")] public Input? AllowOrigins { get; set; } diff --git a/sdk/dotnet/Inputs/AppSpecIngressRuleCorsGetArgs.cs b/sdk/dotnet/Inputs/AppSpecIngressRuleCorsGetArgs.cs index 402ab881..61e4683a 100644 --- a/sdk/dotnet/Inputs/AppSpecIngressRuleCorsGetArgs.cs +++ b/sdk/dotnet/Inputs/AppSpecIngressRuleCorsGetArgs.cs @@ -43,7 +43,7 @@ public InputList AllowMethods } /// - /// The set of allowed CORS origins. This configures the Access-Control-Allow-Origin header. + /// The `Access-Control-Allow-Origin` can be /// [Input("allowOrigins")] public Input? AllowOrigins { get; set; } diff --git a/sdk/dotnet/Inputs/AppSpecIngressRuleGetArgs.cs b/sdk/dotnet/Inputs/AppSpecIngressRuleGetArgs.cs index 5301006c..cfc6387d 100644 --- a/sdk/dotnet/Inputs/AppSpecIngressRuleGetArgs.cs +++ b/sdk/dotnet/Inputs/AppSpecIngressRuleGetArgs.cs @@ -12,6 +12,9 @@ namespace Pulumi.DigitalOcean.Inputs public sealed class AppSpecIngressRuleGetArgs : global::Pulumi.ResourceArgs { + /// + /// The component to route to. Only one of `component` or `redirect` may be set. + /// [Input("component")] public Input? Component { get; set; } @@ -21,9 +24,15 @@ public sealed class AppSpecIngressRuleGetArgs : global::Pulumi.ResourceArgs [Input("cors")] public Input? Cors { get; set; } + /// + /// The match configuration for the rule + /// [Input("match")] public Input? Match { get; set; } + /// + /// The redirect configuration for the rule. Only one of `component` or `redirect` may be set. + /// [Input("redirect")] public Input? Redirect { get; set; } diff --git a/sdk/dotnet/Inputs/AppSpecIngressRuleMatchArgs.cs b/sdk/dotnet/Inputs/AppSpecIngressRuleMatchArgs.cs index 847d71ad..4abfe5e1 100644 --- a/sdk/dotnet/Inputs/AppSpecIngressRuleMatchArgs.cs +++ b/sdk/dotnet/Inputs/AppSpecIngressRuleMatchArgs.cs @@ -12,6 +12,9 @@ namespace Pulumi.DigitalOcean.Inputs public sealed class AppSpecIngressRuleMatchArgs : global::Pulumi.ResourceArgs { + /// + /// The path to match on. + /// [Input("path")] public Input? Path { get; set; } diff --git a/sdk/dotnet/Inputs/AppSpecIngressRuleMatchGetArgs.cs b/sdk/dotnet/Inputs/AppSpecIngressRuleMatchGetArgs.cs index 88e6524c..9111d465 100644 --- a/sdk/dotnet/Inputs/AppSpecIngressRuleMatchGetArgs.cs +++ b/sdk/dotnet/Inputs/AppSpecIngressRuleMatchGetArgs.cs @@ -12,6 +12,9 @@ namespace Pulumi.DigitalOcean.Inputs public sealed class AppSpecIngressRuleMatchGetArgs : global::Pulumi.ResourceArgs { + /// + /// The path to match on. + /// [Input("path")] public Input? Path { get; set; } diff --git a/sdk/dotnet/Inputs/AppSpecIngressRuleMatchPathArgs.cs b/sdk/dotnet/Inputs/AppSpecIngressRuleMatchPathArgs.cs index 1f365d24..b5b707b7 100644 --- a/sdk/dotnet/Inputs/AppSpecIngressRuleMatchPathArgs.cs +++ b/sdk/dotnet/Inputs/AppSpecIngressRuleMatchPathArgs.cs @@ -12,6 +12,9 @@ namespace Pulumi.DigitalOcean.Inputs public sealed class AppSpecIngressRuleMatchPathArgs : global::Pulumi.ResourceArgs { + /// + /// Prefix-based match. + /// [Input("prefix")] public Input? Prefix { get; set; } diff --git a/sdk/dotnet/Inputs/AppSpecIngressRuleMatchPathGetArgs.cs b/sdk/dotnet/Inputs/AppSpecIngressRuleMatchPathGetArgs.cs index 631c49d3..f3f5648a 100644 --- a/sdk/dotnet/Inputs/AppSpecIngressRuleMatchPathGetArgs.cs +++ b/sdk/dotnet/Inputs/AppSpecIngressRuleMatchPathGetArgs.cs @@ -12,6 +12,9 @@ namespace Pulumi.DigitalOcean.Inputs public sealed class AppSpecIngressRuleMatchPathGetArgs : global::Pulumi.ResourceArgs { + /// + /// Prefix-based match. + /// [Input("prefix")] public Input? Prefix { get; set; } diff --git a/sdk/dotnet/Inputs/AppSpecIngressRuleRedirectArgs.cs b/sdk/dotnet/Inputs/AppSpecIngressRuleRedirectArgs.cs index 903a2954..3e39ee13 100644 --- a/sdk/dotnet/Inputs/AppSpecIngressRuleRedirectArgs.cs +++ b/sdk/dotnet/Inputs/AppSpecIngressRuleRedirectArgs.cs @@ -12,18 +12,33 @@ namespace Pulumi.DigitalOcean.Inputs public sealed class AppSpecIngressRuleRedirectArgs : global::Pulumi.ResourceArgs { + /// + /// The authority/host to redirect to. This can be a hostname or IP address. + /// [Input("authority")] public Input? Authority { get; set; } + /// + /// The port to redirect to. + /// [Input("port")] public Input? Port { get; set; } + /// + /// The redirect code to use. Supported values are `300`, `301`, `302`, `303`, `304`, `307`, `308`. + /// [Input("redirectCode")] public Input? RedirectCode { get; set; } + /// + /// The scheme to redirect to. Supported values are `http` or `https` + /// [Input("scheme")] public Input? Scheme { get; set; } + /// + /// An optional URI path to redirect to. + /// [Input("uri")] public Input? Uri { get; set; } diff --git a/sdk/dotnet/Inputs/AppSpecIngressRuleRedirectGetArgs.cs b/sdk/dotnet/Inputs/AppSpecIngressRuleRedirectGetArgs.cs index 7b6b118c..5f0f7a09 100644 --- a/sdk/dotnet/Inputs/AppSpecIngressRuleRedirectGetArgs.cs +++ b/sdk/dotnet/Inputs/AppSpecIngressRuleRedirectGetArgs.cs @@ -12,18 +12,33 @@ namespace Pulumi.DigitalOcean.Inputs public sealed class AppSpecIngressRuleRedirectGetArgs : global::Pulumi.ResourceArgs { + /// + /// The authority/host to redirect to. This can be a hostname or IP address. + /// [Input("authority")] public Input? Authority { get; set; } + /// + /// The port to redirect to. + /// [Input("port")] public Input? Port { get; set; } + /// + /// The redirect code to use. Supported values are `300`, `301`, `302`, `303`, `304`, `307`, `308`. + /// [Input("redirectCode")] public Input? RedirectCode { get; set; } + /// + /// The scheme to redirect to. Supported values are `http` or `https` + /// [Input("scheme")] public Input? Scheme { get; set; } + /// + /// An optional URI path to redirect to. + /// [Input("uri")] public Input? Uri { get; set; } diff --git a/sdk/dotnet/Inputs/AppSpecJobArgs.cs b/sdk/dotnet/Inputs/AppSpecJobArgs.cs index 1e0f7088..4ec79f6f 100644 --- a/sdk/dotnet/Inputs/AppSpecJobArgs.cs +++ b/sdk/dotnet/Inputs/AppSpecJobArgs.cs @@ -92,6 +92,10 @@ public InputList Envs /// /// The type of job and when it will be run during the deployment process. It may be one of: + /// - `UNSPECIFIED`: Default job type, will auto-complete to POST_DEPLOY kind. + /// - `PRE_DEPLOY`: Indicates a job that runs before an app deployment. + /// - `POST_DEPLOY`: Indicates a job that runs after an app deployment. + /// - `FAILED_DEPLOY`: Indicates a job that runs after a component fails to deploy. /// [Input("kind")] public Input? Kind { get; set; } diff --git a/sdk/dotnet/Inputs/AppSpecJobGetArgs.cs b/sdk/dotnet/Inputs/AppSpecJobGetArgs.cs index 2ed7a4b1..d38f86ae 100644 --- a/sdk/dotnet/Inputs/AppSpecJobGetArgs.cs +++ b/sdk/dotnet/Inputs/AppSpecJobGetArgs.cs @@ -92,6 +92,10 @@ public InputList Envs /// /// The type of job and when it will be run during the deployment process. It may be one of: + /// - `UNSPECIFIED`: Default job type, will auto-complete to POST_DEPLOY kind. + /// - `PRE_DEPLOY`: Indicates a job that runs before an app deployment. + /// - `POST_DEPLOY`: Indicates a job that runs after an app deployment. + /// - `FAILED_DEPLOY`: Indicates a job that runs after a component fails to deploy. /// [Input("kind")] public Input? Kind { get; set; } diff --git a/sdk/dotnet/Inputs/AppSpecJobLogDestinationLogtailArgs.cs b/sdk/dotnet/Inputs/AppSpecJobLogDestinationLogtailArgs.cs index b1ed62c3..55dfc808 100644 --- a/sdk/dotnet/Inputs/AppSpecJobLogDestinationLogtailArgs.cs +++ b/sdk/dotnet/Inputs/AppSpecJobLogDestinationLogtailArgs.cs @@ -14,6 +14,8 @@ public sealed class AppSpecJobLogDestinationLogtailArgs : global::Pulumi.Resourc { /// /// Logtail token. + /// + /// A `database` can contain: /// [Input("token", required: true)] public Input Token { get; set; } = null!; diff --git a/sdk/dotnet/Inputs/AppSpecJobLogDestinationLogtailGetArgs.cs b/sdk/dotnet/Inputs/AppSpecJobLogDestinationLogtailGetArgs.cs index d26b35b1..d5317e94 100644 --- a/sdk/dotnet/Inputs/AppSpecJobLogDestinationLogtailGetArgs.cs +++ b/sdk/dotnet/Inputs/AppSpecJobLogDestinationLogtailGetArgs.cs @@ -14,6 +14,8 @@ public sealed class AppSpecJobLogDestinationLogtailGetArgs : global::Pulumi.Reso { /// /// Logtail token. + /// + /// A `database` can contain: /// [Input("token", required: true)] public Input Token { get; set; } = null!; diff --git a/sdk/dotnet/Inputs/AppSpecServiceLogDestinationLogtailArgs.cs b/sdk/dotnet/Inputs/AppSpecServiceLogDestinationLogtailArgs.cs index c67b2fae..d102a701 100644 --- a/sdk/dotnet/Inputs/AppSpecServiceLogDestinationLogtailArgs.cs +++ b/sdk/dotnet/Inputs/AppSpecServiceLogDestinationLogtailArgs.cs @@ -14,6 +14,8 @@ public sealed class AppSpecServiceLogDestinationLogtailArgs : global::Pulumi.Res { /// /// Logtail token. + /// + /// A `database` can contain: /// [Input("token", required: true)] public Input Token { get; set; } = null!; diff --git a/sdk/dotnet/Inputs/AppSpecServiceLogDestinationLogtailGetArgs.cs b/sdk/dotnet/Inputs/AppSpecServiceLogDestinationLogtailGetArgs.cs index 1397a8fb..f95145cb 100644 --- a/sdk/dotnet/Inputs/AppSpecServiceLogDestinationLogtailGetArgs.cs +++ b/sdk/dotnet/Inputs/AppSpecServiceLogDestinationLogtailGetArgs.cs @@ -14,6 +14,8 @@ public sealed class AppSpecServiceLogDestinationLogtailGetArgs : global::Pulumi. { /// /// Logtail token. + /// + /// A `database` can contain: /// [Input("token", required: true)] public Input Token { get; set; } = null!; diff --git a/sdk/dotnet/Inputs/AppSpecWorkerLogDestinationLogtailArgs.cs b/sdk/dotnet/Inputs/AppSpecWorkerLogDestinationLogtailArgs.cs index 1c749b06..3bb236dc 100644 --- a/sdk/dotnet/Inputs/AppSpecWorkerLogDestinationLogtailArgs.cs +++ b/sdk/dotnet/Inputs/AppSpecWorkerLogDestinationLogtailArgs.cs @@ -14,6 +14,8 @@ public sealed class AppSpecWorkerLogDestinationLogtailArgs : global::Pulumi.Reso { /// /// Logtail token. + /// + /// A `database` can contain: /// [Input("token", required: true)] public Input Token { get; set; } = null!; diff --git a/sdk/dotnet/Inputs/AppSpecWorkerLogDestinationLogtailGetArgs.cs b/sdk/dotnet/Inputs/AppSpecWorkerLogDestinationLogtailGetArgs.cs index 8f6eb2f2..76444f3e 100644 --- a/sdk/dotnet/Inputs/AppSpecWorkerLogDestinationLogtailGetArgs.cs +++ b/sdk/dotnet/Inputs/AppSpecWorkerLogDestinationLogtailGetArgs.cs @@ -14,6 +14,8 @@ public sealed class AppSpecWorkerLogDestinationLogtailGetArgs : global::Pulumi.R { /// /// Logtail token. + /// + /// A `database` can contain: /// [Input("token", required: true)] public Input Token { get; set; } = null!; diff --git a/sdk/dotnet/Outputs/AppSpec.cs b/sdk/dotnet/Outputs/AppSpec.cs index de9e3548..15493bd4 100644 --- a/sdk/dotnet/Outputs/AppSpec.cs +++ b/sdk/dotnet/Outputs/AppSpec.cs @@ -14,7 +14,7 @@ namespace Pulumi.DigitalOcean.Outputs public sealed class AppSpec { /// - /// Describes an alert policy for the component. + /// Describes an alert policy for the app. /// public readonly ImmutableArray Alerts; public readonly ImmutableArray Databases; @@ -24,7 +24,7 @@ public sealed class AppSpec public readonly ImmutableArray DomainNames; public readonly ImmutableArray Domains; /// - /// Describes an environment variable made available to an app competent. + /// Describes an app-wide environment variable made available to all components. /// public readonly ImmutableArray Envs; /// @@ -38,7 +38,7 @@ public sealed class AppSpec public readonly Outputs.AppSpecIngress? Ingress; public readonly ImmutableArray Jobs; /// - /// The name of the component. + /// The name of the app. Must be unique across all apps in the same account. /// public readonly string Name; /// diff --git a/sdk/dotnet/Outputs/AppSpecAlert.cs b/sdk/dotnet/Outputs/AppSpecAlert.cs index 98dfd895..6cffbe11 100644 --- a/sdk/dotnet/Outputs/AppSpecAlert.cs +++ b/sdk/dotnet/Outputs/AppSpecAlert.cs @@ -18,7 +18,7 @@ public sealed class AppSpecAlert /// public readonly bool? Disabled; /// - /// The type of the alert to configure. Component app alert policies can be: `CPU_UTILIZATION`, `MEM_UTILIZATION`, or `RESTART_COUNT`. + /// The type of the alert to configure. Top-level app alert policies can be: `DEPLOYMENT_FAILED`, `DEPLOYMENT_LIVE`, `DOMAIN_FAILED`, or `DOMAIN_LIVE`. /// public readonly string Rule; diff --git a/sdk/dotnet/Outputs/AppSpecDomainName.cs b/sdk/dotnet/Outputs/AppSpecDomainName.cs index c53a59b7..4216e71a 100644 --- a/sdk/dotnet/Outputs/AppSpecDomainName.cs +++ b/sdk/dotnet/Outputs/AppSpecDomainName.cs @@ -19,6 +19,9 @@ public sealed class AppSpecDomainName public readonly string Name; /// /// The domain type, which can be one of the following: + /// - `DEFAULT`: The default .ondigitalocean.app domain assigned to this app. + /// - `PRIMARY`: The primary domain for this app that is displayed as the default in the control panel, used in bindable environment variables, and any other places that reference an app's live URL. Only one domain may be set as primary. + /// - `ALIAS`: A non-primary domain. /// public readonly string? Type; /// diff --git a/sdk/dotnet/Outputs/AppSpecFunctionLogDestinationLogtail.cs b/sdk/dotnet/Outputs/AppSpecFunctionLogDestinationLogtail.cs index f0f697da..acb25f8c 100644 --- a/sdk/dotnet/Outputs/AppSpecFunctionLogDestinationLogtail.cs +++ b/sdk/dotnet/Outputs/AppSpecFunctionLogDestinationLogtail.cs @@ -15,6 +15,8 @@ public sealed class AppSpecFunctionLogDestinationLogtail { /// /// Logtail token. + /// + /// A `database` can contain: /// public readonly string Token; diff --git a/sdk/dotnet/Outputs/AppSpecIngressRule.cs b/sdk/dotnet/Outputs/AppSpecIngressRule.cs index f1312c37..16427070 100644 --- a/sdk/dotnet/Outputs/AppSpecIngressRule.cs +++ b/sdk/dotnet/Outputs/AppSpecIngressRule.cs @@ -13,12 +13,21 @@ namespace Pulumi.DigitalOcean.Outputs [OutputType] public sealed class AppSpecIngressRule { + /// + /// The component to route to. Only one of `component` or `redirect` may be set. + /// public readonly Outputs.AppSpecIngressRuleComponent? Component; /// /// The [CORS](https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS) policies of the app. /// public readonly Outputs.AppSpecIngressRuleCors? Cors; + /// + /// The match configuration for the rule + /// public readonly Outputs.AppSpecIngressRuleMatch? Match; + /// + /// The redirect configuration for the rule. Only one of `component` or `redirect` may be set. + /// public readonly Outputs.AppSpecIngressRuleRedirect? Redirect; [OutputConstructor] diff --git a/sdk/dotnet/Outputs/AppSpecIngressRuleComponent.cs b/sdk/dotnet/Outputs/AppSpecIngressRuleComponent.cs index 83df8fc3..9f752862 100644 --- a/sdk/dotnet/Outputs/AppSpecIngressRuleComponent.cs +++ b/sdk/dotnet/Outputs/AppSpecIngressRuleComponent.cs @@ -14,10 +14,16 @@ namespace Pulumi.DigitalOcean.Outputs public sealed class AppSpecIngressRuleComponent { /// - /// The name of the component. + /// The name of the component to route to. /// public readonly string? Name; + /// + /// An optional boolean flag to preserve the path that is forwarded to the backend service. By default, the HTTP request path will be trimmed from the left when forwarded to the component. + /// public readonly bool? PreservePathPrefix; + /// + /// An optional field that will rewrite the path of the component to be what is specified here. This is mutually exclusive with `preserve_path_prefix`. + /// public readonly string? Rewrite; [OutputConstructor] diff --git a/sdk/dotnet/Outputs/AppSpecIngressRuleCors.cs b/sdk/dotnet/Outputs/AppSpecIngressRuleCors.cs index 62878f1f..150f82b0 100644 --- a/sdk/dotnet/Outputs/AppSpecIngressRuleCors.cs +++ b/sdk/dotnet/Outputs/AppSpecIngressRuleCors.cs @@ -26,7 +26,7 @@ public sealed class AppSpecIngressRuleCors /// public readonly ImmutableArray AllowMethods; /// - /// The set of allowed CORS origins. This configures the Access-Control-Allow-Origin header. + /// The `Access-Control-Allow-Origin` can be /// public readonly Outputs.AppSpecIngressRuleCorsAllowOrigins? AllowOrigins; /// diff --git a/sdk/dotnet/Outputs/AppSpecIngressRuleCorsAllowOrigins.cs b/sdk/dotnet/Outputs/AppSpecIngressRuleCorsAllowOrigins.cs index dc056f49..a7d6b794 100644 --- a/sdk/dotnet/Outputs/AppSpecIngressRuleCorsAllowOrigins.cs +++ b/sdk/dotnet/Outputs/AppSpecIngressRuleCorsAllowOrigins.cs @@ -14,15 +14,15 @@ namespace Pulumi.DigitalOcean.Outputs public sealed class AppSpecIngressRuleCorsAllowOrigins { /// - /// Exact string match. + /// The `Access-Control-Allow-Origin` header will be set to the client's origin only if the client's origin exactly matches the value you provide. /// public readonly string? Exact; /// - /// Prefix-based match. + /// The `Access-Control-Allow-Origin` header will be set to the client's origin if the beginning of the client's origin matches the value you provide. /// public readonly string? Prefix; /// - /// RE2 style regex-based match. + /// The `Access-Control-Allow-Origin` header will be set to the client's origin if the client’s origin matches the regex you provide, in [RE2 style syntax](https://github.com/google/re2/wiki/Syntax). /// public readonly string? Regex; diff --git a/sdk/dotnet/Outputs/AppSpecIngressRuleMatch.cs b/sdk/dotnet/Outputs/AppSpecIngressRuleMatch.cs index dfbdf589..936686f7 100644 --- a/sdk/dotnet/Outputs/AppSpecIngressRuleMatch.cs +++ b/sdk/dotnet/Outputs/AppSpecIngressRuleMatch.cs @@ -13,6 +13,9 @@ namespace Pulumi.DigitalOcean.Outputs [OutputType] public sealed class AppSpecIngressRuleMatch { + /// + /// The path to match on. + /// public readonly Outputs.AppSpecIngressRuleMatchPath? Path; [OutputConstructor] diff --git a/sdk/dotnet/Outputs/AppSpecIngressRuleMatchPath.cs b/sdk/dotnet/Outputs/AppSpecIngressRuleMatchPath.cs index 9124b307..8824998f 100644 --- a/sdk/dotnet/Outputs/AppSpecIngressRuleMatchPath.cs +++ b/sdk/dotnet/Outputs/AppSpecIngressRuleMatchPath.cs @@ -13,6 +13,9 @@ namespace Pulumi.DigitalOcean.Outputs [OutputType] public sealed class AppSpecIngressRuleMatchPath { + /// + /// Prefix-based match. + /// public readonly string? Prefix; [OutputConstructor] diff --git a/sdk/dotnet/Outputs/AppSpecIngressRuleRedirect.cs b/sdk/dotnet/Outputs/AppSpecIngressRuleRedirect.cs index 8552d2e3..8c4928b9 100644 --- a/sdk/dotnet/Outputs/AppSpecIngressRuleRedirect.cs +++ b/sdk/dotnet/Outputs/AppSpecIngressRuleRedirect.cs @@ -13,10 +13,25 @@ namespace Pulumi.DigitalOcean.Outputs [OutputType] public sealed class AppSpecIngressRuleRedirect { + /// + /// The authority/host to redirect to. This can be a hostname or IP address. + /// public readonly string? Authority; + /// + /// The port to redirect to. + /// public readonly int? Port; + /// + /// The redirect code to use. Supported values are `300`, `301`, `302`, `303`, `304`, `307`, `308`. + /// public readonly int? RedirectCode; + /// + /// The scheme to redirect to. Supported values are `http` or `https` + /// public readonly string? Scheme; + /// + /// An optional URI path to redirect to. + /// public readonly string? Uri; [OutputConstructor] diff --git a/sdk/dotnet/Outputs/AppSpecJob.cs b/sdk/dotnet/Outputs/AppSpecJob.cs index 7edf22b0..6a605e55 100644 --- a/sdk/dotnet/Outputs/AppSpecJob.cs +++ b/sdk/dotnet/Outputs/AppSpecJob.cs @@ -59,6 +59,10 @@ public sealed class AppSpecJob public readonly string? InstanceSizeSlug; /// /// The type of job and when it will be run during the deployment process. It may be one of: + /// - `UNSPECIFIED`: Default job type, will auto-complete to POST_DEPLOY kind. + /// - `PRE_DEPLOY`: Indicates a job that runs before an app deployment. + /// - `POST_DEPLOY`: Indicates a job that runs after an app deployment. + /// - `FAILED_DEPLOY`: Indicates a job that runs after a component fails to deploy. /// public readonly string? Kind; /// diff --git a/sdk/dotnet/Outputs/AppSpecJobLogDestinationLogtail.cs b/sdk/dotnet/Outputs/AppSpecJobLogDestinationLogtail.cs index 125ff004..377cb5b7 100644 --- a/sdk/dotnet/Outputs/AppSpecJobLogDestinationLogtail.cs +++ b/sdk/dotnet/Outputs/AppSpecJobLogDestinationLogtail.cs @@ -15,6 +15,8 @@ public sealed class AppSpecJobLogDestinationLogtail { /// /// Logtail token. + /// + /// A `database` can contain: /// public readonly string Token; diff --git a/sdk/dotnet/Outputs/AppSpecServiceLogDestinationLogtail.cs b/sdk/dotnet/Outputs/AppSpecServiceLogDestinationLogtail.cs index 8a1c23ab..11456158 100644 --- a/sdk/dotnet/Outputs/AppSpecServiceLogDestinationLogtail.cs +++ b/sdk/dotnet/Outputs/AppSpecServiceLogDestinationLogtail.cs @@ -15,6 +15,8 @@ public sealed class AppSpecServiceLogDestinationLogtail { /// /// Logtail token. + /// + /// A `database` can contain: /// public readonly string Token; diff --git a/sdk/dotnet/Outputs/AppSpecWorkerLogDestinationLogtail.cs b/sdk/dotnet/Outputs/AppSpecWorkerLogDestinationLogtail.cs index bd24539d..813269f1 100644 --- a/sdk/dotnet/Outputs/AppSpecWorkerLogDestinationLogtail.cs +++ b/sdk/dotnet/Outputs/AppSpecWorkerLogDestinationLogtail.cs @@ -15,6 +15,8 @@ public sealed class AppSpecWorkerLogDestinationLogtail { /// /// Logtail token. + /// + /// A `database` can contain: /// public readonly string Token; diff --git a/sdk/dotnet/Outputs/GetAppSpecJobResult.cs b/sdk/dotnet/Outputs/GetAppSpecJobResult.cs index 12d7c9ed..7ae44989 100644 --- a/sdk/dotnet/Outputs/GetAppSpecJobResult.cs +++ b/sdk/dotnet/Outputs/GetAppSpecJobResult.cs @@ -59,6 +59,10 @@ public sealed class GetAppSpecJobResult public readonly string? InstanceSizeSlug; /// /// The type of job and when it will be run during the deployment process. It may be one of: + /// - `UNSPECIFIED`: Default job type, will auto-complete to POST_DEPLOY kind. + /// - `PRE_DEPLOY`: Indicates a job that runs before an app deployment. + /// - `POST_DEPLOY`: Indicates a job that runs after an app deployment. + /// - `FAILED_DEPLOY`: Indicates a job that runs after a component fails to deploy. /// public readonly string? Kind; /// diff --git a/sdk/go/digitalocean/pulumiTypes.go b/sdk/go/digitalocean/pulumiTypes.go index 32c8689c..c0eb2ffe 100644 --- a/sdk/go/digitalocean/pulumiTypes.go +++ b/sdk/go/digitalocean/pulumiTypes.go @@ -14,14 +14,14 @@ import ( var _ = internal.GetEnvOrDefault type AppSpec struct { - // Describes an alert policy for the component. + // Describes an alert policy for the app. Alerts []AppSpecAlert `pulumi:"alerts"` Databases []AppSpecDatabase `pulumi:"databases"` // Describes a domain where the application will be made available. DomainNames []AppSpecDomainName `pulumi:"domainNames"` // Deprecated: This attribute has been replaced by `domain` which supports additional functionality. Domains []string `pulumi:"domains"` - // Describes an environment variable made available to an app competent. + // Describes an app-wide environment variable made available to all components. Envs []AppSpecEnv `pulumi:"envs"` // A list of the features applied to the app. The default buildpack can be overridden here. List of available buildpacks can be found using the [doctl CLI](https://docs.digitalocean.com/reference/doctl/reference/apps/list-buildpacks/) Features []string `pulumi:"features"` @@ -29,7 +29,7 @@ type AppSpec struct { // Specification for component routing, rewrites, and redirects. Ingress *AppSpecIngress `pulumi:"ingress"` Jobs []AppSpecJob `pulumi:"jobs"` - // The name of the component. + // The name of the app. Must be unique across all apps in the same account. Name string `pulumi:"name"` // The slug for the DigitalOcean data center region hosting the app. Region *string `pulumi:"region"` @@ -50,14 +50,14 @@ type AppSpecInput interface { } type AppSpecArgs struct { - // Describes an alert policy for the component. + // Describes an alert policy for the app. Alerts AppSpecAlertArrayInput `pulumi:"alerts"` Databases AppSpecDatabaseArrayInput `pulumi:"databases"` // Describes a domain where the application will be made available. DomainNames AppSpecDomainNameArrayInput `pulumi:"domainNames"` // Deprecated: This attribute has been replaced by `domain` which supports additional functionality. Domains pulumi.StringArrayInput `pulumi:"domains"` - // Describes an environment variable made available to an app competent. + // Describes an app-wide environment variable made available to all components. Envs AppSpecEnvArrayInput `pulumi:"envs"` // A list of the features applied to the app. The default buildpack can be overridden here. List of available buildpacks can be found using the [doctl CLI](https://docs.digitalocean.com/reference/doctl/reference/apps/list-buildpacks/) Features pulumi.StringArrayInput `pulumi:"features"` @@ -65,7 +65,7 @@ type AppSpecArgs struct { // Specification for component routing, rewrites, and redirects. Ingress AppSpecIngressPtrInput `pulumi:"ingress"` Jobs AppSpecJobArrayInput `pulumi:"jobs"` - // The name of the component. + // The name of the app. Must be unique across all apps in the same account. Name pulumi.StringInput `pulumi:"name"` // The slug for the DigitalOcean data center region hosting the app. Region pulumi.StringPtrInput `pulumi:"region"` @@ -151,7 +151,7 @@ func (o AppSpecOutput) ToAppSpecPtrOutputWithContext(ctx context.Context) AppSpe }).(AppSpecPtrOutput) } -// Describes an alert policy for the component. +// Describes an alert policy for the app. func (o AppSpecOutput) Alerts() AppSpecAlertArrayOutput { return o.ApplyT(func(v AppSpec) []AppSpecAlert { return v.Alerts }).(AppSpecAlertArrayOutput) } @@ -170,7 +170,7 @@ func (o AppSpecOutput) Domains() pulumi.StringArrayOutput { return o.ApplyT(func(v AppSpec) []string { return v.Domains }).(pulumi.StringArrayOutput) } -// Describes an environment variable made available to an app competent. +// Describes an app-wide environment variable made available to all components. func (o AppSpecOutput) Envs() AppSpecEnvArrayOutput { return o.ApplyT(func(v AppSpec) []AppSpecEnv { return v.Envs }).(AppSpecEnvArrayOutput) } @@ -193,7 +193,7 @@ func (o AppSpecOutput) Jobs() AppSpecJobArrayOutput { return o.ApplyT(func(v AppSpec) []AppSpecJob { return v.Jobs }).(AppSpecJobArrayOutput) } -// The name of the component. +// The name of the app. Must be unique across all apps in the same account. func (o AppSpecOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v AppSpec) string { return v.Name }).(pulumi.StringOutput) } @@ -239,7 +239,7 @@ func (o AppSpecPtrOutput) Elem() AppSpecOutput { }).(AppSpecOutput) } -// Describes an alert policy for the component. +// Describes an alert policy for the app. func (o AppSpecPtrOutput) Alerts() AppSpecAlertArrayOutput { return o.ApplyT(func(v *AppSpec) []AppSpecAlert { if v == nil { @@ -278,7 +278,7 @@ func (o AppSpecPtrOutput) Domains() pulumi.StringArrayOutput { }).(pulumi.StringArrayOutput) } -// Describes an environment variable made available to an app competent. +// Describes an app-wide environment variable made available to all components. func (o AppSpecPtrOutput) Envs() AppSpecEnvArrayOutput { return o.ApplyT(func(v *AppSpec) []AppSpecEnv { if v == nil { @@ -326,7 +326,7 @@ func (o AppSpecPtrOutput) Jobs() AppSpecJobArrayOutput { }).(AppSpecJobArrayOutput) } -// The name of the component. +// The name of the app. Must be unique across all apps in the same account. func (o AppSpecPtrOutput) Name() pulumi.StringPtrOutput { return o.ApplyT(func(v *AppSpec) *string { if v == nil { @@ -376,7 +376,7 @@ func (o AppSpecPtrOutput) Workers() AppSpecWorkerArrayOutput { type AppSpecAlert struct { // Determines whether or not the alert is disabled (default: `false`). Disabled *bool `pulumi:"disabled"` - // The type of the alert to configure. Component app alert policies can be: `CPU_UTILIZATION`, `MEM_UTILIZATION`, or `RESTART_COUNT`. + // The type of the alert to configure. Top-level app alert policies can be: `DEPLOYMENT_FAILED`, `DEPLOYMENT_LIVE`, `DOMAIN_FAILED`, or `DOMAIN_LIVE`. Rule string `pulumi:"rule"` } @@ -394,7 +394,7 @@ type AppSpecAlertInput interface { type AppSpecAlertArgs struct { // Determines whether or not the alert is disabled (default: `false`). Disabled pulumi.BoolPtrInput `pulumi:"disabled"` - // The type of the alert to configure. Component app alert policies can be: `CPU_UTILIZATION`, `MEM_UTILIZATION`, or `RESTART_COUNT`. + // The type of the alert to configure. Top-level app alert policies can be: `DEPLOYMENT_FAILED`, `DEPLOYMENT_LIVE`, `DOMAIN_FAILED`, or `DOMAIN_LIVE`. Rule pulumi.StringInput `pulumi:"rule"` } @@ -454,7 +454,7 @@ func (o AppSpecAlertOutput) Disabled() pulumi.BoolPtrOutput { return o.ApplyT(func(v AppSpecAlert) *bool { return v.Disabled }).(pulumi.BoolPtrOutput) } -// The type of the alert to configure. Component app alert policies can be: `CPU_UTILIZATION`, `MEM_UTILIZATION`, or `RESTART_COUNT`. +// The type of the alert to configure. Top-level app alert policies can be: `DEPLOYMENT_FAILED`, `DEPLOYMENT_LIVE`, `DOMAIN_FAILED`, or `DOMAIN_LIVE`. func (o AppSpecAlertOutput) Rule() pulumi.StringOutput { return o.ApplyT(func(v AppSpecAlert) string { return v.Rule }).(pulumi.StringOutput) } @@ -640,6 +640,9 @@ type AppSpecDomainName struct { // The hostname for the domain. Name string `pulumi:"name"` // The domain type, which can be one of the following: + // - `DEFAULT`: The default .ondigitalocean.app domain assigned to this app. + // - `PRIMARY`: The primary domain for this app that is displayed as the default in the control panel, used in bindable environment variables, and any other places that reference an app's live URL. Only one domain may be set as primary. + // - `ALIAS`: A non-primary domain. Type *string `pulumi:"type"` // A boolean indicating whether the domain includes all sub-domains, in addition to the given domain. Wildcard *bool `pulumi:"wildcard"` @@ -662,6 +665,9 @@ type AppSpecDomainNameArgs struct { // The hostname for the domain. Name pulumi.StringInput `pulumi:"name"` // The domain type, which can be one of the following: + // - `DEFAULT`: The default .ondigitalocean.app domain assigned to this app. + // - `PRIMARY`: The primary domain for this app that is displayed as the default in the control panel, used in bindable environment variables, and any other places that reference an app's live URL. Only one domain may be set as primary. + // - `ALIAS`: A non-primary domain. Type pulumi.StringPtrInput `pulumi:"type"` // A boolean indicating whether the domain includes all sub-domains, in addition to the given domain. Wildcard pulumi.BoolPtrInput `pulumi:"wildcard"` @@ -726,6 +732,9 @@ func (o AppSpecDomainNameOutput) Name() pulumi.StringOutput { } // The domain type, which can be one of the following: +// - `DEFAULT`: The default .ondigitalocean.app domain assigned to this app. +// - `PRIMARY`: The primary domain for this app that is displayed as the default in the control panel, used in bindable environment variables, and any other places that reference an app's live URL. Only one domain may be set as primary. +// - `ALIAS`: A non-primary domain. func (o AppSpecDomainNameOutput) Type() pulumi.StringPtrOutput { return o.ApplyT(func(v AppSpecDomainName) *string { return v.Type }).(pulumi.StringPtrOutput) } @@ -2526,6 +2535,8 @@ func (o AppSpecFunctionLogDestinationDatadogPtrOutput) Endpoint() pulumi.StringP type AppSpecFunctionLogDestinationLogtail struct { // Logtail token. + // + // A `database` can contain: Token string `pulumi:"token"` } @@ -2542,6 +2553,8 @@ type AppSpecFunctionLogDestinationLogtailInput interface { type AppSpecFunctionLogDestinationLogtailArgs struct { // Logtail token. + // + // A `database` can contain: Token pulumi.StringInput `pulumi:"token"` } @@ -2623,6 +2636,8 @@ func (o AppSpecFunctionLogDestinationLogtailOutput) ToAppSpecFunctionLogDestinat } // Logtail token. +// +// A `database` can contain: func (o AppSpecFunctionLogDestinationLogtailOutput) Token() pulumi.StringOutput { return o.ApplyT(func(v AppSpecFunctionLogDestinationLogtail) string { return v.Token }).(pulumi.StringOutput) } @@ -2652,6 +2667,8 @@ func (o AppSpecFunctionLogDestinationLogtailPtrOutput) Elem() AppSpecFunctionLog } // Logtail token. +// +// A `database` can contain: func (o AppSpecFunctionLogDestinationLogtailPtrOutput) Token() pulumi.StringPtrOutput { return o.ApplyT(func(v *AppSpecFunctionLogDestinationLogtail) *string { if v == nil { @@ -3042,10 +3059,13 @@ func (o AppSpecIngressPtrOutput) Rules() AppSpecIngressRuleArrayOutput { } type AppSpecIngressRule struct { + // The component to route to. Only one of `component` or `redirect` may be set. Component *AppSpecIngressRuleComponent `pulumi:"component"` // The [CORS](https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS) policies of the app. - Cors *AppSpecIngressRuleCors `pulumi:"cors"` - Match *AppSpecIngressRuleMatch `pulumi:"match"` + Cors *AppSpecIngressRuleCors `pulumi:"cors"` + // The match configuration for the rule + Match *AppSpecIngressRuleMatch `pulumi:"match"` + // The redirect configuration for the rule. Only one of `component` or `redirect` may be set. Redirect *AppSpecIngressRuleRedirect `pulumi:"redirect"` } @@ -3061,10 +3081,13 @@ type AppSpecIngressRuleInput interface { } type AppSpecIngressRuleArgs struct { + // The component to route to. Only one of `component` or `redirect` may be set. Component AppSpecIngressRuleComponentPtrInput `pulumi:"component"` // The [CORS](https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS) policies of the app. - Cors AppSpecIngressRuleCorsPtrInput `pulumi:"cors"` - Match AppSpecIngressRuleMatchPtrInput `pulumi:"match"` + Cors AppSpecIngressRuleCorsPtrInput `pulumi:"cors"` + // The match configuration for the rule + Match AppSpecIngressRuleMatchPtrInput `pulumi:"match"` + // The redirect configuration for the rule. Only one of `component` or `redirect` may be set. Redirect AppSpecIngressRuleRedirectPtrInput `pulumi:"redirect"` } @@ -3119,6 +3142,7 @@ func (o AppSpecIngressRuleOutput) ToAppSpecIngressRuleOutputWithContext(ctx cont return o } +// The component to route to. Only one of `component` or `redirect` may be set. func (o AppSpecIngressRuleOutput) Component() AppSpecIngressRuleComponentPtrOutput { return o.ApplyT(func(v AppSpecIngressRule) *AppSpecIngressRuleComponent { return v.Component }).(AppSpecIngressRuleComponentPtrOutput) } @@ -3128,10 +3152,12 @@ func (o AppSpecIngressRuleOutput) Cors() AppSpecIngressRuleCorsPtrOutput { return o.ApplyT(func(v AppSpecIngressRule) *AppSpecIngressRuleCors { return v.Cors }).(AppSpecIngressRuleCorsPtrOutput) } +// The match configuration for the rule func (o AppSpecIngressRuleOutput) Match() AppSpecIngressRuleMatchPtrOutput { return o.ApplyT(func(v AppSpecIngressRule) *AppSpecIngressRuleMatch { return v.Match }).(AppSpecIngressRuleMatchPtrOutput) } +// The redirect configuration for the rule. Only one of `component` or `redirect` may be set. func (o AppSpecIngressRuleOutput) Redirect() AppSpecIngressRuleRedirectPtrOutput { return o.ApplyT(func(v AppSpecIngressRule) *AppSpecIngressRuleRedirect { return v.Redirect }).(AppSpecIngressRuleRedirectPtrOutput) } @@ -3157,10 +3183,12 @@ func (o AppSpecIngressRuleArrayOutput) Index(i pulumi.IntInput) AppSpecIngressRu } type AppSpecIngressRuleComponent struct { - // The name of the component. - Name *string `pulumi:"name"` - PreservePathPrefix *bool `pulumi:"preservePathPrefix"` - Rewrite *string `pulumi:"rewrite"` + // The name of the component to route to. + Name *string `pulumi:"name"` + // An optional boolean flag to preserve the path that is forwarded to the backend service. By default, the HTTP request path will be trimmed from the left when forwarded to the component. + PreservePathPrefix *bool `pulumi:"preservePathPrefix"` + // An optional field that will rewrite the path of the component to be what is specified here. This is mutually exclusive with `preservePathPrefix`. + Rewrite *string `pulumi:"rewrite"` } // AppSpecIngressRuleComponentInput is an input type that accepts AppSpecIngressRuleComponentArgs and AppSpecIngressRuleComponentOutput values. @@ -3175,10 +3203,12 @@ type AppSpecIngressRuleComponentInput interface { } type AppSpecIngressRuleComponentArgs struct { - // The name of the component. - Name pulumi.StringPtrInput `pulumi:"name"` - PreservePathPrefix pulumi.BoolPtrInput `pulumi:"preservePathPrefix"` - Rewrite pulumi.StringPtrInput `pulumi:"rewrite"` + // The name of the component to route to. + Name pulumi.StringPtrInput `pulumi:"name"` + // An optional boolean flag to preserve the path that is forwarded to the backend service. By default, the HTTP request path will be trimmed from the left when forwarded to the component. + PreservePathPrefix pulumi.BoolPtrInput `pulumi:"preservePathPrefix"` + // An optional field that will rewrite the path of the component to be what is specified here. This is mutually exclusive with `preservePathPrefix`. + Rewrite pulumi.StringPtrInput `pulumi:"rewrite"` } func (AppSpecIngressRuleComponentArgs) ElementType() reflect.Type { @@ -3258,15 +3288,17 @@ func (o AppSpecIngressRuleComponentOutput) ToAppSpecIngressRuleComponentPtrOutpu }).(AppSpecIngressRuleComponentPtrOutput) } -// The name of the component. +// The name of the component to route to. func (o AppSpecIngressRuleComponentOutput) Name() pulumi.StringPtrOutput { return o.ApplyT(func(v AppSpecIngressRuleComponent) *string { return v.Name }).(pulumi.StringPtrOutput) } +// An optional boolean flag to preserve the path that is forwarded to the backend service. By default, the HTTP request path will be trimmed from the left when forwarded to the component. func (o AppSpecIngressRuleComponentOutput) PreservePathPrefix() pulumi.BoolPtrOutput { return o.ApplyT(func(v AppSpecIngressRuleComponent) *bool { return v.PreservePathPrefix }).(pulumi.BoolPtrOutput) } +// An optional field that will rewrite the path of the component to be what is specified here. This is mutually exclusive with `preservePathPrefix`. func (o AppSpecIngressRuleComponentOutput) Rewrite() pulumi.StringPtrOutput { return o.ApplyT(func(v AppSpecIngressRuleComponent) *string { return v.Rewrite }).(pulumi.StringPtrOutput) } @@ -3295,7 +3327,7 @@ func (o AppSpecIngressRuleComponentPtrOutput) Elem() AppSpecIngressRuleComponent }).(AppSpecIngressRuleComponentOutput) } -// The name of the component. +// The name of the component to route to. func (o AppSpecIngressRuleComponentPtrOutput) Name() pulumi.StringPtrOutput { return o.ApplyT(func(v *AppSpecIngressRuleComponent) *string { if v == nil { @@ -3305,6 +3337,7 @@ func (o AppSpecIngressRuleComponentPtrOutput) Name() pulumi.StringPtrOutput { }).(pulumi.StringPtrOutput) } +// An optional boolean flag to preserve the path that is forwarded to the backend service. By default, the HTTP request path will be trimmed from the left when forwarded to the component. func (o AppSpecIngressRuleComponentPtrOutput) PreservePathPrefix() pulumi.BoolPtrOutput { return o.ApplyT(func(v *AppSpecIngressRuleComponent) *bool { if v == nil { @@ -3314,6 +3347,7 @@ func (o AppSpecIngressRuleComponentPtrOutput) PreservePathPrefix() pulumi.BoolPt }).(pulumi.BoolPtrOutput) } +// An optional field that will rewrite the path of the component to be what is specified here. This is mutually exclusive with `preservePathPrefix`. func (o AppSpecIngressRuleComponentPtrOutput) Rewrite() pulumi.StringPtrOutput { return o.ApplyT(func(v *AppSpecIngressRuleComponent) *string { if v == nil { @@ -3330,7 +3364,7 @@ type AppSpecIngressRuleCors struct { AllowHeaders []string `pulumi:"allowHeaders"` // The set of allowed HTTP methods. This configures the Access-Control-Allow-Methods header. AllowMethods []string `pulumi:"allowMethods"` - // The set of allowed CORS origins. This configures the Access-Control-Allow-Origin header. + // The `Access-Control-Allow-Origin` can be AllowOrigins *AppSpecIngressRuleCorsAllowOrigins `pulumi:"allowOrigins"` // The set of HTTP response headers that browsers are allowed to access. This configures the Access-Control-Expose-Headers header. ExposeHeaders []string `pulumi:"exposeHeaders"` @@ -3356,7 +3390,7 @@ type AppSpecIngressRuleCorsArgs struct { AllowHeaders pulumi.StringArrayInput `pulumi:"allowHeaders"` // The set of allowed HTTP methods. This configures the Access-Control-Allow-Methods header. AllowMethods pulumi.StringArrayInput `pulumi:"allowMethods"` - // The set of allowed CORS origins. This configures the Access-Control-Allow-Origin header. + // The `Access-Control-Allow-Origin` can be AllowOrigins AppSpecIngressRuleCorsAllowOriginsPtrInput `pulumi:"allowOrigins"` // The set of HTTP response headers that browsers are allowed to access. This configures the Access-Control-Expose-Headers header. ExposeHeaders pulumi.StringArrayInput `pulumi:"exposeHeaders"` @@ -3456,7 +3490,7 @@ func (o AppSpecIngressRuleCorsOutput) AllowMethods() pulumi.StringArrayOutput { return o.ApplyT(func(v AppSpecIngressRuleCors) []string { return v.AllowMethods }).(pulumi.StringArrayOutput) } -// The set of allowed CORS origins. This configures the Access-Control-Allow-Origin header. +// The `Access-Control-Allow-Origin` can be func (o AppSpecIngressRuleCorsOutput) AllowOrigins() AppSpecIngressRuleCorsAllowOriginsPtrOutput { return o.ApplyT(func(v AppSpecIngressRuleCors) *AppSpecIngressRuleCorsAllowOrigins { return v.AllowOrigins }).(AppSpecIngressRuleCorsAllowOriginsPtrOutput) } @@ -3525,7 +3559,7 @@ func (o AppSpecIngressRuleCorsPtrOutput) AllowMethods() pulumi.StringArrayOutput }).(pulumi.StringArrayOutput) } -// The set of allowed CORS origins. This configures the Access-Control-Allow-Origin header. +// The `Access-Control-Allow-Origin` can be func (o AppSpecIngressRuleCorsPtrOutput) AllowOrigins() AppSpecIngressRuleCorsAllowOriginsPtrOutput { return o.ApplyT(func(v *AppSpecIngressRuleCors) *AppSpecIngressRuleCorsAllowOrigins { if v == nil { @@ -3556,11 +3590,11 @@ func (o AppSpecIngressRuleCorsPtrOutput) MaxAge() pulumi.StringPtrOutput { } type AppSpecIngressRuleCorsAllowOrigins struct { - // Exact string match. + // The `Access-Control-Allow-Origin` header will be set to the client's origin only if the client's origin exactly matches the value you provide. Exact *string `pulumi:"exact"` - // Prefix-based match. + // The `Access-Control-Allow-Origin` header will be set to the client's origin if the beginning of the client's origin matches the value you provide. Prefix *string `pulumi:"prefix"` - // RE2 style regex-based match. + // The `Access-Control-Allow-Origin` header will be set to the client's origin if the client’s origin matches the regex you provide, in [RE2 style syntax](https://github.com/google/re2/wiki/Syntax). Regex *string `pulumi:"regex"` } @@ -3576,11 +3610,11 @@ type AppSpecIngressRuleCorsAllowOriginsInput interface { } type AppSpecIngressRuleCorsAllowOriginsArgs struct { - // Exact string match. + // The `Access-Control-Allow-Origin` header will be set to the client's origin only if the client's origin exactly matches the value you provide. Exact pulumi.StringPtrInput `pulumi:"exact"` - // Prefix-based match. + // The `Access-Control-Allow-Origin` header will be set to the client's origin if the beginning of the client's origin matches the value you provide. Prefix pulumi.StringPtrInput `pulumi:"prefix"` - // RE2 style regex-based match. + // The `Access-Control-Allow-Origin` header will be set to the client's origin if the client’s origin matches the regex you provide, in [RE2 style syntax](https://github.com/google/re2/wiki/Syntax). Regex pulumi.StringPtrInput `pulumi:"regex"` } @@ -3661,17 +3695,17 @@ func (o AppSpecIngressRuleCorsAllowOriginsOutput) ToAppSpecIngressRuleCorsAllowO }).(AppSpecIngressRuleCorsAllowOriginsPtrOutput) } -// Exact string match. +// The `Access-Control-Allow-Origin` header will be set to the client's origin only if the client's origin exactly matches the value you provide. func (o AppSpecIngressRuleCorsAllowOriginsOutput) Exact() pulumi.StringPtrOutput { return o.ApplyT(func(v AppSpecIngressRuleCorsAllowOrigins) *string { return v.Exact }).(pulumi.StringPtrOutput) } -// Prefix-based match. +// The `Access-Control-Allow-Origin` header will be set to the client's origin if the beginning of the client's origin matches the value you provide. func (o AppSpecIngressRuleCorsAllowOriginsOutput) Prefix() pulumi.StringPtrOutput { return o.ApplyT(func(v AppSpecIngressRuleCorsAllowOrigins) *string { return v.Prefix }).(pulumi.StringPtrOutput) } -// RE2 style regex-based match. +// The `Access-Control-Allow-Origin` header will be set to the client's origin if the client’s origin matches the regex you provide, in [RE2 style syntax](https://github.com/google/re2/wiki/Syntax). func (o AppSpecIngressRuleCorsAllowOriginsOutput) Regex() pulumi.StringPtrOutput { return o.ApplyT(func(v AppSpecIngressRuleCorsAllowOrigins) *string { return v.Regex }).(pulumi.StringPtrOutput) } @@ -3700,7 +3734,7 @@ func (o AppSpecIngressRuleCorsAllowOriginsPtrOutput) Elem() AppSpecIngressRuleCo }).(AppSpecIngressRuleCorsAllowOriginsOutput) } -// Exact string match. +// The `Access-Control-Allow-Origin` header will be set to the client's origin only if the client's origin exactly matches the value you provide. func (o AppSpecIngressRuleCorsAllowOriginsPtrOutput) Exact() pulumi.StringPtrOutput { return o.ApplyT(func(v *AppSpecIngressRuleCorsAllowOrigins) *string { if v == nil { @@ -3710,7 +3744,7 @@ func (o AppSpecIngressRuleCorsAllowOriginsPtrOutput) Exact() pulumi.StringPtrOut }).(pulumi.StringPtrOutput) } -// Prefix-based match. +// The `Access-Control-Allow-Origin` header will be set to the client's origin if the beginning of the client's origin matches the value you provide. func (o AppSpecIngressRuleCorsAllowOriginsPtrOutput) Prefix() pulumi.StringPtrOutput { return o.ApplyT(func(v *AppSpecIngressRuleCorsAllowOrigins) *string { if v == nil { @@ -3720,7 +3754,7 @@ func (o AppSpecIngressRuleCorsAllowOriginsPtrOutput) Prefix() pulumi.StringPtrOu }).(pulumi.StringPtrOutput) } -// RE2 style regex-based match. +// The `Access-Control-Allow-Origin` header will be set to the client's origin if the client’s origin matches the regex you provide, in [RE2 style syntax](https://github.com/google/re2/wiki/Syntax). func (o AppSpecIngressRuleCorsAllowOriginsPtrOutput) Regex() pulumi.StringPtrOutput { return o.ApplyT(func(v *AppSpecIngressRuleCorsAllowOrigins) *string { if v == nil { @@ -3731,6 +3765,7 @@ func (o AppSpecIngressRuleCorsAllowOriginsPtrOutput) Regex() pulumi.StringPtrOut } type AppSpecIngressRuleMatch struct { + // The path to match on. Path *AppSpecIngressRuleMatchPath `pulumi:"path"` } @@ -3746,6 +3781,7 @@ type AppSpecIngressRuleMatchInput interface { } type AppSpecIngressRuleMatchArgs struct { + // The path to match on. Path AppSpecIngressRuleMatchPathPtrInput `pulumi:"path"` } @@ -3826,6 +3862,7 @@ func (o AppSpecIngressRuleMatchOutput) ToAppSpecIngressRuleMatchPtrOutputWithCon }).(AppSpecIngressRuleMatchPtrOutput) } +// The path to match on. func (o AppSpecIngressRuleMatchOutput) Path() AppSpecIngressRuleMatchPathPtrOutput { return o.ApplyT(func(v AppSpecIngressRuleMatch) *AppSpecIngressRuleMatchPath { return v.Path }).(AppSpecIngressRuleMatchPathPtrOutput) } @@ -3854,6 +3891,7 @@ func (o AppSpecIngressRuleMatchPtrOutput) Elem() AppSpecIngressRuleMatchOutput { }).(AppSpecIngressRuleMatchOutput) } +// The path to match on. func (o AppSpecIngressRuleMatchPtrOutput) Path() AppSpecIngressRuleMatchPathPtrOutput { return o.ApplyT(func(v *AppSpecIngressRuleMatch) *AppSpecIngressRuleMatchPath { if v == nil { @@ -3864,6 +3902,7 @@ func (o AppSpecIngressRuleMatchPtrOutput) Path() AppSpecIngressRuleMatchPathPtrO } type AppSpecIngressRuleMatchPath struct { + // Prefix-based match. Prefix *string `pulumi:"prefix"` } @@ -3879,6 +3918,7 @@ type AppSpecIngressRuleMatchPathInput interface { } type AppSpecIngressRuleMatchPathArgs struct { + // Prefix-based match. Prefix pulumi.StringPtrInput `pulumi:"prefix"` } @@ -3959,6 +3999,7 @@ func (o AppSpecIngressRuleMatchPathOutput) ToAppSpecIngressRuleMatchPathPtrOutpu }).(AppSpecIngressRuleMatchPathPtrOutput) } +// Prefix-based match. func (o AppSpecIngressRuleMatchPathOutput) Prefix() pulumi.StringPtrOutput { return o.ApplyT(func(v AppSpecIngressRuleMatchPath) *string { return v.Prefix }).(pulumi.StringPtrOutput) } @@ -3987,6 +4028,7 @@ func (o AppSpecIngressRuleMatchPathPtrOutput) Elem() AppSpecIngressRuleMatchPath }).(AppSpecIngressRuleMatchPathOutput) } +// Prefix-based match. func (o AppSpecIngressRuleMatchPathPtrOutput) Prefix() pulumi.StringPtrOutput { return o.ApplyT(func(v *AppSpecIngressRuleMatchPath) *string { if v == nil { @@ -3997,11 +4039,16 @@ func (o AppSpecIngressRuleMatchPathPtrOutput) Prefix() pulumi.StringPtrOutput { } type AppSpecIngressRuleRedirect struct { - Authority *string `pulumi:"authority"` - Port *int `pulumi:"port"` - RedirectCode *int `pulumi:"redirectCode"` - Scheme *string `pulumi:"scheme"` - Uri *string `pulumi:"uri"` + // The authority/host to redirect to. This can be a hostname or IP address. + Authority *string `pulumi:"authority"` + // The port to redirect to. + Port *int `pulumi:"port"` + // The redirect code to use. Supported values are `300`, `301`, `302`, `303`, `304`, `307`, `308`. + RedirectCode *int `pulumi:"redirectCode"` + // The scheme to redirect to. Supported values are `http` or `https` + Scheme *string `pulumi:"scheme"` + // An optional URI path to redirect to. + Uri *string `pulumi:"uri"` } // AppSpecIngressRuleRedirectInput is an input type that accepts AppSpecIngressRuleRedirectArgs and AppSpecIngressRuleRedirectOutput values. @@ -4016,11 +4063,16 @@ type AppSpecIngressRuleRedirectInput interface { } type AppSpecIngressRuleRedirectArgs struct { - Authority pulumi.StringPtrInput `pulumi:"authority"` - Port pulumi.IntPtrInput `pulumi:"port"` - RedirectCode pulumi.IntPtrInput `pulumi:"redirectCode"` - Scheme pulumi.StringPtrInput `pulumi:"scheme"` - Uri pulumi.StringPtrInput `pulumi:"uri"` + // The authority/host to redirect to. This can be a hostname or IP address. + Authority pulumi.StringPtrInput `pulumi:"authority"` + // The port to redirect to. + Port pulumi.IntPtrInput `pulumi:"port"` + // The redirect code to use. Supported values are `300`, `301`, `302`, `303`, `304`, `307`, `308`. + RedirectCode pulumi.IntPtrInput `pulumi:"redirectCode"` + // The scheme to redirect to. Supported values are `http` or `https` + Scheme pulumi.StringPtrInput `pulumi:"scheme"` + // An optional URI path to redirect to. + Uri pulumi.StringPtrInput `pulumi:"uri"` } func (AppSpecIngressRuleRedirectArgs) ElementType() reflect.Type { @@ -4100,22 +4152,27 @@ func (o AppSpecIngressRuleRedirectOutput) ToAppSpecIngressRuleRedirectPtrOutputW }).(AppSpecIngressRuleRedirectPtrOutput) } +// The authority/host to redirect to. This can be a hostname or IP address. func (o AppSpecIngressRuleRedirectOutput) Authority() pulumi.StringPtrOutput { return o.ApplyT(func(v AppSpecIngressRuleRedirect) *string { return v.Authority }).(pulumi.StringPtrOutput) } +// The port to redirect to. func (o AppSpecIngressRuleRedirectOutput) Port() pulumi.IntPtrOutput { return o.ApplyT(func(v AppSpecIngressRuleRedirect) *int { return v.Port }).(pulumi.IntPtrOutput) } +// The redirect code to use. Supported values are `300`, `301`, `302`, `303`, `304`, `307`, `308`. func (o AppSpecIngressRuleRedirectOutput) RedirectCode() pulumi.IntPtrOutput { return o.ApplyT(func(v AppSpecIngressRuleRedirect) *int { return v.RedirectCode }).(pulumi.IntPtrOutput) } +// The scheme to redirect to. Supported values are `http` or `https` func (o AppSpecIngressRuleRedirectOutput) Scheme() pulumi.StringPtrOutput { return o.ApplyT(func(v AppSpecIngressRuleRedirect) *string { return v.Scheme }).(pulumi.StringPtrOutput) } +// An optional URI path to redirect to. func (o AppSpecIngressRuleRedirectOutput) Uri() pulumi.StringPtrOutput { return o.ApplyT(func(v AppSpecIngressRuleRedirect) *string { return v.Uri }).(pulumi.StringPtrOutput) } @@ -4144,6 +4201,7 @@ func (o AppSpecIngressRuleRedirectPtrOutput) Elem() AppSpecIngressRuleRedirectOu }).(AppSpecIngressRuleRedirectOutput) } +// The authority/host to redirect to. This can be a hostname or IP address. func (o AppSpecIngressRuleRedirectPtrOutput) Authority() pulumi.StringPtrOutput { return o.ApplyT(func(v *AppSpecIngressRuleRedirect) *string { if v == nil { @@ -4153,6 +4211,7 @@ func (o AppSpecIngressRuleRedirectPtrOutput) Authority() pulumi.StringPtrOutput }).(pulumi.StringPtrOutput) } +// The port to redirect to. func (o AppSpecIngressRuleRedirectPtrOutput) Port() pulumi.IntPtrOutput { return o.ApplyT(func(v *AppSpecIngressRuleRedirect) *int { if v == nil { @@ -4162,6 +4221,7 @@ func (o AppSpecIngressRuleRedirectPtrOutput) Port() pulumi.IntPtrOutput { }).(pulumi.IntPtrOutput) } +// The redirect code to use. Supported values are `300`, `301`, `302`, `303`, `304`, `307`, `308`. func (o AppSpecIngressRuleRedirectPtrOutput) RedirectCode() pulumi.IntPtrOutput { return o.ApplyT(func(v *AppSpecIngressRuleRedirect) *int { if v == nil { @@ -4171,6 +4231,7 @@ func (o AppSpecIngressRuleRedirectPtrOutput) RedirectCode() pulumi.IntPtrOutput }).(pulumi.IntPtrOutput) } +// The scheme to redirect to. Supported values are `http` or `https` func (o AppSpecIngressRuleRedirectPtrOutput) Scheme() pulumi.StringPtrOutput { return o.ApplyT(func(v *AppSpecIngressRuleRedirect) *string { if v == nil { @@ -4180,6 +4241,7 @@ func (o AppSpecIngressRuleRedirectPtrOutput) Scheme() pulumi.StringPtrOutput { }).(pulumi.StringPtrOutput) } +// An optional URI path to redirect to. func (o AppSpecIngressRuleRedirectPtrOutput) Uri() pulumi.StringPtrOutput { return o.ApplyT(func(v *AppSpecIngressRuleRedirect) *string { if v == nil { @@ -4213,6 +4275,10 @@ type AppSpecJob struct { // The instance size to use for this component. This determines the plan (basic or professional) and the available CPU and memory. The list of available instance sizes can be [found with the API](https://docs.digitalocean.com/reference/api/api-reference/#operation/list_instance_sizes) or using the [doctl CLI](https://docs.digitalocean.com/reference/doctl/) (`doctl apps tier instance-size list`). Default: `basic-xxs` InstanceSizeSlug *string `pulumi:"instanceSizeSlug"` // The type of job and when it will be run during the deployment process. It may be one of: + // - `UNSPECIFIED`: Default job type, will auto-complete to POST_DEPLOY kind. + // - `PRE_DEPLOY`: Indicates a job that runs before an app deployment. + // - `POST_DEPLOY`: Indicates a job that runs after an app deployment. + // - `FAILED_DEPLOY`: Indicates a job that runs after a component fails to deploy. Kind *string `pulumi:"kind"` // Describes a log forwarding destination. LogDestinations []AppSpecJobLogDestination `pulumi:"logDestinations"` @@ -4259,6 +4325,10 @@ type AppSpecJobArgs struct { // The instance size to use for this component. This determines the plan (basic or professional) and the available CPU and memory. The list of available instance sizes can be [found with the API](https://docs.digitalocean.com/reference/api/api-reference/#operation/list_instance_sizes) or using the [doctl CLI](https://docs.digitalocean.com/reference/doctl/) (`doctl apps tier instance-size list`). Default: `basic-xxs` InstanceSizeSlug pulumi.StringPtrInput `pulumi:"instanceSizeSlug"` // The type of job and when it will be run during the deployment process. It may be one of: + // - `UNSPECIFIED`: Default job type, will auto-complete to POST_DEPLOY kind. + // - `PRE_DEPLOY`: Indicates a job that runs before an app deployment. + // - `POST_DEPLOY`: Indicates a job that runs after an app deployment. + // - `FAILED_DEPLOY`: Indicates a job that runs after a component fails to deploy. Kind pulumi.StringPtrInput `pulumi:"kind"` // Describes a log forwarding destination. LogDestinations AppSpecJobLogDestinationArrayInput `pulumi:"logDestinations"` @@ -4377,6 +4447,10 @@ func (o AppSpecJobOutput) InstanceSizeSlug() pulumi.StringPtrOutput { } // The type of job and when it will be run during the deployment process. It may be one of: +// - `UNSPECIFIED`: Default job type, will auto-complete to POST_DEPLOY kind. +// - `PRE_DEPLOY`: Indicates a job that runs before an app deployment. +// - `POST_DEPLOY`: Indicates a job that runs after an app deployment. +// - `FAILED_DEPLOY`: Indicates a job that runs after a component fails to deploy. func (o AppSpecJobOutput) Kind() pulumi.StringPtrOutput { return o.ApplyT(func(v AppSpecJob) *string { return v.Kind }).(pulumi.StringPtrOutput) } @@ -5795,6 +5869,8 @@ func (o AppSpecJobLogDestinationDatadogPtrOutput) Endpoint() pulumi.StringPtrOut type AppSpecJobLogDestinationLogtail struct { // Logtail token. + // + // A `database` can contain: Token string `pulumi:"token"` } @@ -5811,6 +5887,8 @@ type AppSpecJobLogDestinationLogtailInput interface { type AppSpecJobLogDestinationLogtailArgs struct { // Logtail token. + // + // A `database` can contain: Token pulumi.StringInput `pulumi:"token"` } @@ -5892,6 +5970,8 @@ func (o AppSpecJobLogDestinationLogtailOutput) ToAppSpecJobLogDestinationLogtail } // Logtail token. +// +// A `database` can contain: func (o AppSpecJobLogDestinationLogtailOutput) Token() pulumi.StringOutput { return o.ApplyT(func(v AppSpecJobLogDestinationLogtail) string { return v.Token }).(pulumi.StringOutput) } @@ -5921,6 +6001,8 @@ func (o AppSpecJobLogDestinationLogtailPtrOutput) Elem() AppSpecJobLogDestinatio } // Logtail token. +// +// A `database` can contain: func (o AppSpecJobLogDestinationLogtailPtrOutput) Token() pulumi.StringPtrOutput { return o.ApplyT(func(v *AppSpecJobLogDestinationLogtail) *string { if v == nil { @@ -8379,6 +8461,8 @@ func (o AppSpecServiceLogDestinationDatadogPtrOutput) Endpoint() pulumi.StringPt type AppSpecServiceLogDestinationLogtail struct { // Logtail token. + // + // A `database` can contain: Token string `pulumi:"token"` } @@ -8395,6 +8479,8 @@ type AppSpecServiceLogDestinationLogtailInput interface { type AppSpecServiceLogDestinationLogtailArgs struct { // Logtail token. + // + // A `database` can contain: Token pulumi.StringInput `pulumi:"token"` } @@ -8476,6 +8562,8 @@ func (o AppSpecServiceLogDestinationLogtailOutput) ToAppSpecServiceLogDestinatio } // Logtail token. +// +// A `database` can contain: func (o AppSpecServiceLogDestinationLogtailOutput) Token() pulumi.StringOutput { return o.ApplyT(func(v AppSpecServiceLogDestinationLogtail) string { return v.Token }).(pulumi.StringOutput) } @@ -8505,6 +8593,8 @@ func (o AppSpecServiceLogDestinationLogtailPtrOutput) Elem() AppSpecServiceLogDe } // Logtail token. +// +// A `database` can contain: func (o AppSpecServiceLogDestinationLogtailPtrOutput) Token() pulumi.StringPtrOutput { return o.ApplyT(func(v *AppSpecServiceLogDestinationLogtail) *string { if v == nil { @@ -11732,6 +11822,8 @@ func (o AppSpecWorkerLogDestinationDatadogPtrOutput) Endpoint() pulumi.StringPtr type AppSpecWorkerLogDestinationLogtail struct { // Logtail token. + // + // A `database` can contain: Token string `pulumi:"token"` } @@ -11748,6 +11840,8 @@ type AppSpecWorkerLogDestinationLogtailInput interface { type AppSpecWorkerLogDestinationLogtailArgs struct { // Logtail token. + // + // A `database` can contain: Token pulumi.StringInput `pulumi:"token"` } @@ -11829,6 +11923,8 @@ func (o AppSpecWorkerLogDestinationLogtailOutput) ToAppSpecWorkerLogDestinationL } // Logtail token. +// +// A `database` can contain: func (o AppSpecWorkerLogDestinationLogtailOutput) Token() pulumi.StringOutput { return o.ApplyT(func(v AppSpecWorkerLogDestinationLogtail) string { return v.Token }).(pulumi.StringOutput) } @@ -11858,6 +11954,8 @@ func (o AppSpecWorkerLogDestinationLogtailPtrOutput) Elem() AppSpecWorkerLogDest } // Logtail token. +// +// A `database` can contain: func (o AppSpecWorkerLogDestinationLogtailPtrOutput) Token() pulumi.StringPtrOutput { return o.ApplyT(func(v *AppSpecWorkerLogDestinationLogtail) *string { if v == nil { @@ -20886,6 +20984,10 @@ type GetAppSpecJob struct { // The instance size to use for this component. InstanceSizeSlug *string `pulumi:"instanceSizeSlug"` // The type of job and when it will be run during the deployment process. It may be one of: + // - `UNSPECIFIED`: Default job type, will auto-complete to POST_DEPLOY kind. + // - `PRE_DEPLOY`: Indicates a job that runs before an app deployment. + // - `POST_DEPLOY`: Indicates a job that runs after an app deployment. + // - `FAILED_DEPLOY`: Indicates a job that runs after a component fails to deploy. Kind *string `pulumi:"kind"` // Describes a log forwarding destination. LogDestinations []GetAppSpecJobLogDestination `pulumi:"logDestinations"` @@ -20932,6 +21034,10 @@ type GetAppSpecJobArgs struct { // The instance size to use for this component. InstanceSizeSlug pulumi.StringPtrInput `pulumi:"instanceSizeSlug"` // The type of job and when it will be run during the deployment process. It may be one of: + // - `UNSPECIFIED`: Default job type, will auto-complete to POST_DEPLOY kind. + // - `PRE_DEPLOY`: Indicates a job that runs before an app deployment. + // - `POST_DEPLOY`: Indicates a job that runs after an app deployment. + // - `FAILED_DEPLOY`: Indicates a job that runs after a component fails to deploy. Kind pulumi.StringPtrInput `pulumi:"kind"` // Describes a log forwarding destination. LogDestinations GetAppSpecJobLogDestinationArrayInput `pulumi:"logDestinations"` @@ -21050,6 +21156,10 @@ func (o GetAppSpecJobOutput) InstanceSizeSlug() pulumi.StringPtrOutput { } // The type of job and when it will be run during the deployment process. It may be one of: +// - `UNSPECIFIED`: Default job type, will auto-complete to POST_DEPLOY kind. +// - `PRE_DEPLOY`: Indicates a job that runs before an app deployment. +// - `POST_DEPLOY`: Indicates a job that runs after an app deployment. +// - `FAILED_DEPLOY`: Indicates a job that runs after a component fails to deploy. func (o GetAppSpecJobOutput) Kind() pulumi.StringPtrOutput { return o.ApplyT(func(v GetAppSpecJob) *string { return v.Kind }).(pulumi.StringPtrOutput) } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/App.java b/sdk/java/src/main/java/com/pulumi/digitalocean/App.java index a6a544c4..6c25a9dd 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/App.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/App.java @@ -48,7 +48,7 @@ * } * * public static void stack(Context ctx) { - * var golang_sample = new App("golang-sample", AppArgs.builder() + * var golang_sample = new App("golang-sample", AppArgs.builder() * .spec(AppSpecArgs.builder() * .name("golang-sample") * .region("ams") @@ -97,7 +97,7 @@ * } * * public static void stack(Context ctx) { - * var static_site_example = new App("static-site-example", AppArgs.builder() + * var static_site_example = new App("static-site-example", AppArgs.builder() * .spec(AppSpecArgs.builder() * .name("static-site-example") * .region("ams") @@ -146,7 +146,7 @@ * } * * public static void stack(Context ctx) { - * var mono_repo_example = new App("mono-repo-example", AppArgs.builder() + * var mono_repo_example = new App("mono-repo-example", AppArgs.builder() * .spec(AppSpecArgs.builder() * .name("mono-repo-example") * .region("ams") diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/Cdn.java b/sdk/java/src/main/java/com/pulumi/digitalocean/Cdn.java index 2de99041..c0c54e91 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/Cdn.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/Cdn.java @@ -48,14 +48,14 @@ * * public static void stack(Context ctx) { * // Create a new Spaces Bucket - * var mybucket = new SpacesBucket("mybucket", SpacesBucketArgs.builder() + * var mybucket = new SpacesBucket("mybucket", SpacesBucketArgs.builder() * .name("example") * .region("sfo2") * .acl("public-read") * .build()); * * // Add a CDN endpoint to the Spaces Bucket - * var mycdn = new Cdn("mycdn", CdnArgs.builder() + * var mycdn = new Cdn("mycdn", CdnArgs.builder() * .origin(mybucket.bucketDomainName()) * .build()); * @@ -96,21 +96,21 @@ * * public static void stack(Context ctx) { * // Create a new Spaces Bucket - * var mybucket = new SpacesBucket("mybucket", SpacesBucketArgs.builder() + * var mybucket = new SpacesBucket("mybucket", SpacesBucketArgs.builder() * .name("example") * .region("sfo2") * .acl("public-read") * .build()); * * // Create a DigitalOcean managed Let's Encrypt Certificate - * var cert = new Certificate("cert", CertificateArgs.builder() + * var cert = new Certificate("cert", CertificateArgs.builder() * .name("cdn-cert") * .type("lets_encrypt") * .domains("static.example.com") * .build()); * * // Add a CDN endpoint with a custom sub-domain to the Spaces Bucket - * var mycdn = new Cdn("mycdn", CdnArgs.builder() + * var mycdn = new Cdn("mycdn", CdnArgs.builder() * .origin(mybucket.bucketDomainName()) * .customDomain("static.example.com") * .certificateName(cert.name()) diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/Certificate.java b/sdk/java/src/main/java/com/pulumi/digitalocean/Certificate.java index 8caa6778..d4200626 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/Certificate.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/Certificate.java @@ -50,7 +50,7 @@ * } * * public static void stack(Context ctx) { - * var cert = new Certificate("cert", CertificateArgs.builder() + * var cert = new Certificate("cert", CertificateArgs.builder() * .name("custom-example") * .type("custom") * .privateKey(StdFunctions.file(FileArgs.builder() @@ -95,7 +95,7 @@ * } * * public static void stack(Context ctx) { - * var cert = new Certificate("cert", CertificateArgs.builder() + * var cert = new Certificate("cert", CertificateArgs.builder() * .name("le-example") * .type("lets_encrypt") * .domains("example.com") @@ -138,14 +138,14 @@ * } * * public static void stack(Context ctx) { - * var cert = new Certificate("cert", CertificateArgs.builder() + * var cert = new Certificate("cert", CertificateArgs.builder() * .name("le-example") * .type("lets_encrypt") * .domains("example.com") * .build()); * * // Create a new Load Balancer with TLS termination - * var public_ = new LoadBalancer("public", LoadBalancerArgs.builder() + * var public_ = new LoadBalancer("public", LoadBalancerArgs.builder() * .name("secure-loadbalancer-1") * .region("nyc3") * .dropletTag("backend") diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/ContainerRegistry.java b/sdk/java/src/main/java/com/pulumi/digitalocean/ContainerRegistry.java index 581fb780..e8486ba3 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/ContainerRegistry.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/ContainerRegistry.java @@ -44,7 +44,7 @@ * * public static void stack(Context ctx) { * // Create a new container registry - * var foobar = new ContainerRegistry("foobar", ContainerRegistryArgs.builder() + * var foobar = new ContainerRegistry("foobar", ContainerRegistryArgs.builder() * .name("foobar") * .subscriptionTierSlug("starter") * .build()); diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/ContainerRegistryDockerCredentials.java b/sdk/java/src/main/java/com/pulumi/digitalocean/ContainerRegistryDockerCredentials.java index 2e671134..6715fa40 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/ContainerRegistryDockerCredentials.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/ContainerRegistryDockerCredentials.java @@ -51,7 +51,7 @@ * } * * public static void stack(Context ctx) { - * var example = new ContainerRegistryDockerCredentials("example", ContainerRegistryDockerCredentialsArgs.builder() + * var example = new ContainerRegistryDockerCredentials("example", ContainerRegistryDockerCredentialsArgs.builder() * .registryName("example") * .build()); * @@ -94,7 +94,7 @@ * .name("example") * .build()); * - * var exampleContainerRegistryDockerCredentials = new ContainerRegistryDockerCredentials("exampleContainerRegistryDockerCredentials", ContainerRegistryDockerCredentialsArgs.builder() + * var exampleContainerRegistryDockerCredentials = new ContainerRegistryDockerCredentials("exampleContainerRegistryDockerCredentials", ContainerRegistryDockerCredentialsArgs.builder() * .registryName("example") * .build()); * @@ -137,7 +137,7 @@ * } * * public static void stack(Context ctx) { - * var exampleContainerRegistryDockerCredentials = new ContainerRegistryDockerCredentials("exampleContainerRegistryDockerCredentials", ContainerRegistryDockerCredentialsArgs.builder() + * var exampleContainerRegistryDockerCredentials = new ContainerRegistryDockerCredentials("exampleContainerRegistryDockerCredentials", ContainerRegistryDockerCredentialsArgs.builder() * .registryName("example") * .build()); * @@ -145,7 +145,7 @@ * .name("prod-cluster-01") * .build()); * - * var exampleSecret = new Secret("exampleSecret", SecretArgs.builder() + * var exampleSecret = new Secret("exampleSecret", SecretArgs.builder() * .metadata(ObjectMetaArgs.builder() * .name("docker-cfg") * .build()) diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/CustomImage.java b/sdk/java/src/main/java/com/pulumi/digitalocean/CustomImage.java index bfe4d4e0..7b6ba334 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/CustomImage.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/CustomImage.java @@ -58,13 +58,13 @@ * } * * public static void stack(Context ctx) { - * var flatcar = new CustomImage("flatcar", CustomImageArgs.builder() + * var flatcar = new CustomImage("flatcar", CustomImageArgs.builder() * .name("flatcar") * .url("https://stable.release.flatcar-linux.net/amd64-usr/2605.7.0/flatcar_production_digitalocean_image.bin.bz2") * .regions("nyc3") * .build()); * - * var example = new Droplet("example", DropletArgs.builder() + * var example = new Droplet("example", DropletArgs.builder() * .image(flatcar.id()) * .name("example-01") * .region("nyc3") diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/DatabaseCluster.java b/sdk/java/src/main/java/com/pulumi/digitalocean/DatabaseCluster.java index 473cdd4c..9c6f951e 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/DatabaseCluster.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/DatabaseCluster.java @@ -47,7 +47,7 @@ * } * * public static void stack(Context ctx) { - * var postgres_example = new DatabaseCluster("postgres-example", DatabaseClusterArgs.builder() + * var postgres_example = new DatabaseCluster("postgres-example", DatabaseClusterArgs.builder() * .name("example-postgres-cluster") * .engine("pg") * .version("15") @@ -86,7 +86,7 @@ * } * * public static void stack(Context ctx) { - * var mysql_example = new DatabaseCluster("mysql-example", DatabaseClusterArgs.builder() + * var mysql_example = new DatabaseCluster("mysql-example", DatabaseClusterArgs.builder() * .name("example-mysql-cluster") * .engine("mysql") * .version("8") @@ -125,7 +125,7 @@ * } * * public static void stack(Context ctx) { - * var redis_example = new DatabaseCluster("redis-example", DatabaseClusterArgs.builder() + * var redis_example = new DatabaseCluster("redis-example", DatabaseClusterArgs.builder() * .name("example-redis-cluster") * .engine("redis") * .version("7") @@ -164,7 +164,7 @@ * } * * public static void stack(Context ctx) { - * var kafka_example = new DatabaseCluster("kafka-example", DatabaseClusterArgs.builder() + * var kafka_example = new DatabaseCluster("kafka-example", DatabaseClusterArgs.builder() * .name("example-kafka-cluster") * .engine("kafka") * .version("3.5") @@ -203,7 +203,7 @@ * } * * public static void stack(Context ctx) { - * var mongodb_example = new DatabaseCluster("mongodb-example", DatabaseClusterArgs.builder() + * var mongodb_example = new DatabaseCluster("mongodb-example", DatabaseClusterArgs.builder() * .name("example-mongo-cluster") * .engine("mongodb") * .version("6") @@ -245,7 +245,7 @@ * } * * public static void stack(Context ctx) { - * var doby = new DatabaseCluster("doby", DatabaseClusterArgs.builder() + * var doby = new DatabaseCluster("doby", DatabaseClusterArgs.builder() * .name("dobydb") * .engine("pg") * .version("15") @@ -255,7 +255,7 @@ * .tags("production") * .build()); * - * var dobyBackup = new DatabaseCluster("dobyBackup", DatabaseClusterArgs.builder() + * var dobyBackup = new DatabaseCluster("dobyBackup", DatabaseClusterArgs.builder() * .name("dobydupe") * .engine("pg") * .version("15") diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/DatabaseConnectionPool.java b/sdk/java/src/main/java/com/pulumi/digitalocean/DatabaseConnectionPool.java index 2a898a0a..10cb131e 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/DatabaseConnectionPool.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/DatabaseConnectionPool.java @@ -47,7 +47,7 @@ * } * * public static void stack(Context ctx) { - * var postgres_example = new DatabaseCluster("postgres-example", DatabaseClusterArgs.builder() + * var postgres_example = new DatabaseCluster("postgres-example", DatabaseClusterArgs.builder() * .name("example-postgres-cluster") * .engine("pg") * .version("15") @@ -56,7 +56,7 @@ * .nodeCount(1) * .build()); * - * var pool_01 = new DatabaseConnectionPool("pool-01", DatabaseConnectionPoolArgs.builder() + * var pool_01 = new DatabaseConnectionPool("pool-01", DatabaseConnectionPoolArgs.builder() * .clusterId(postgres_example.id()) * .name("pool-01") * .mode("transaction") diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/DatabaseDb.java b/sdk/java/src/main/java/com/pulumi/digitalocean/DatabaseDb.java index 47ad36be..d06a6718 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/DatabaseDb.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/DatabaseDb.java @@ -44,7 +44,7 @@ * } * * public static void stack(Context ctx) { - * var postgres_example = new DatabaseCluster("postgres-example", DatabaseClusterArgs.builder() + * var postgres_example = new DatabaseCluster("postgres-example", DatabaseClusterArgs.builder() * .name("example-postgres-cluster") * .engine("pg") * .version("15") @@ -53,7 +53,7 @@ * .nodeCount(1) * .build()); * - * var database_example = new DatabaseDb("database-example", DatabaseDbArgs.builder() + * var database_example = new DatabaseDb("database-example", DatabaseDbArgs.builder() * .clusterId(postgres_example.id()) * .name("foobar") * .build()); diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/DatabaseFirewall.java b/sdk/java/src/main/java/com/pulumi/digitalocean/DatabaseFirewall.java index c8bfa88d..d235e0c9 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/DatabaseFirewall.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/DatabaseFirewall.java @@ -50,7 +50,7 @@ * } * * public static void stack(Context ctx) { - * var postgres_example = new DatabaseCluster("postgres-example", DatabaseClusterArgs.builder() + * var postgres_example = new DatabaseCluster("postgres-example", DatabaseClusterArgs.builder() * .name("example-postgres-cluster") * .engine("pg") * .version("15") @@ -59,7 +59,7 @@ * .nodeCount(1) * .build()); * - * var example_fw = new DatabaseFirewall("example-fw", DatabaseFirewallArgs.builder() + * var example_fw = new DatabaseFirewall("example-fw", DatabaseFirewallArgs.builder() * .clusterId(postgres_example.id()) * .rules( * DatabaseFirewallRuleArgs.builder() @@ -108,14 +108,14 @@ * } * * public static void stack(Context ctx) { - * var web = new Droplet("web", DropletArgs.builder() + * var web = new Droplet("web", DropletArgs.builder() * .name("web-01") * .size("s-1vcpu-1gb") * .image("ubuntu-22-04-x64") * .region("nyc3") * .build()); * - * var postgres_example = new DatabaseCluster("postgres-example", DatabaseClusterArgs.builder() + * var postgres_example = new DatabaseCluster("postgres-example", DatabaseClusterArgs.builder() * .name("example-postgres-cluster") * .engine("pg") * .version("15") @@ -124,7 +124,7 @@ * .nodeCount(1) * .build()); * - * var example_fw = new DatabaseFirewall("example-fw", DatabaseFirewallArgs.builder() + * var example_fw = new DatabaseFirewall("example-fw", DatabaseFirewallArgs.builder() * .clusterId(postgres_example.id()) * .rules(DatabaseFirewallRuleArgs.builder() * .type("droplet") @@ -168,7 +168,7 @@ * } * * public static void stack(Context ctx) { - * var postgres_example = new DatabaseCluster("postgres-example", DatabaseClusterArgs.builder() + * var postgres_example = new DatabaseCluster("postgres-example", DatabaseClusterArgs.builder() * .name("example-postgres-cluster") * .engine("pg") * .version("15") @@ -177,7 +177,7 @@ * .nodeCount(1) * .build()); * - * var replica_example = new DatabaseReplica("replica-example", DatabaseReplicaArgs.builder() + * var replica_example = new DatabaseReplica("replica-example", DatabaseReplicaArgs.builder() * .clusterId(postgres_example.id()) * .name("replica-example") * .size("db-s-1vcpu-1gb") @@ -185,7 +185,7 @@ * .build()); * * // Create firewall rule for database replica - * var example_fw = new DatabaseFirewall("example-fw", DatabaseFirewallArgs.builder() + * var example_fw = new DatabaseFirewall("example-fw", DatabaseFirewallArgs.builder() * .clusterId(replica_example.uuid()) * .rules(DatabaseFirewallRuleArgs.builder() * .type("ip_addr") diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/DatabaseMysqlConfig.java b/sdk/java/src/main/java/com/pulumi/digitalocean/DatabaseMysqlConfig.java index 6d32a915..e740a09b 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/DatabaseMysqlConfig.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/DatabaseMysqlConfig.java @@ -49,7 +49,7 @@ * } * * public static void stack(Context ctx) { - * var exampleDatabaseCluster = new DatabaseCluster("exampleDatabaseCluster", DatabaseClusterArgs.builder() + * var exampleDatabaseCluster = new DatabaseCluster("exampleDatabaseCluster", DatabaseClusterArgs.builder() * .name("example-mysql-cluster") * .engine("mysql") * .version("8") @@ -58,7 +58,7 @@ * .nodeCount(1) * .build()); * - * var example = new DatabaseMysqlConfig("example", DatabaseMysqlConfigArgs.builder() + * var example = new DatabaseMysqlConfig("example", DatabaseMysqlConfigArgs.builder() * .clusterId(exampleDatabaseCluster.id()) * .connectTimeout(10) * .defaultTimeZone("UTC") diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/DatabasePostgresqlConfig.java b/sdk/java/src/main/java/com/pulumi/digitalocean/DatabasePostgresqlConfig.java index 4312ed23..9ba31b54 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/DatabasePostgresqlConfig.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/DatabasePostgresqlConfig.java @@ -52,7 +52,7 @@ * } * * public static void stack(Context ctx) { - * var exampleDatabaseCluster = new DatabaseCluster("exampleDatabaseCluster", DatabaseClusterArgs.builder() + * var exampleDatabaseCluster = new DatabaseCluster("exampleDatabaseCluster", DatabaseClusterArgs.builder() * .name("example-postgresql-cluster") * .engine("pg") * .version("15") @@ -61,7 +61,7 @@ * .nodeCount(1) * .build()); * - * var example = new DatabasePostgresqlConfig("example", DatabasePostgresqlConfigArgs.builder() + * var example = new DatabasePostgresqlConfig("example", DatabasePostgresqlConfigArgs.builder() * .clusterId(exampleDatabaseCluster.id()) * .timezone("UTC") * .workMem(16) diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/DatabaseRedisConfig.java b/sdk/java/src/main/java/com/pulumi/digitalocean/DatabaseRedisConfig.java index aa450f9a..b4a30ea8 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/DatabaseRedisConfig.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/DatabaseRedisConfig.java @@ -48,7 +48,7 @@ * } * * public static void stack(Context ctx) { - * var exampleDatabaseCluster = new DatabaseCluster("exampleDatabaseCluster", DatabaseClusterArgs.builder() + * var exampleDatabaseCluster = new DatabaseCluster("exampleDatabaseCluster", DatabaseClusterArgs.builder() * .name("example-redis-cluster") * .engine("redis") * .version("7") @@ -57,7 +57,7 @@ * .nodeCount(1) * .build()); * - * var example = new DatabaseRedisConfig("example", DatabaseRedisConfigArgs.builder() + * var example = new DatabaseRedisConfig("example", DatabaseRedisConfigArgs.builder() * .clusterId(exampleDatabaseCluster.id()) * .maxmemoryPolicy("allkeys-lru") * .notifyKeyspaceEvents("KEA") diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/DatabaseReplica.java b/sdk/java/src/main/java/com/pulumi/digitalocean/DatabaseReplica.java index 7f4cf330..7555bd0a 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/DatabaseReplica.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/DatabaseReplica.java @@ -50,7 +50,7 @@ * } * * public static void stack(Context ctx) { - * var postgres_example = new DatabaseCluster("postgres-example", DatabaseClusterArgs.builder() + * var postgres_example = new DatabaseCluster("postgres-example", DatabaseClusterArgs.builder() * .name("example-postgres-cluster") * .engine("pg") * .version("15") @@ -59,7 +59,7 @@ * .nodeCount(1) * .build()); * - * var replica_example = new DatabaseReplica("replica-example", DatabaseReplicaArgs.builder() + * var replica_example = new DatabaseReplica("replica-example", DatabaseReplicaArgs.builder() * .clusterId(postgres_example.id()) * .name("replica-example") * .size("db-s-1vcpu-1gb") @@ -68,7 +68,7 @@ * * ctx.export("UUID", replica_example.uuid()); * // Create firewall rule for database replica - * var example_fw = new DatabaseFirewall("example-fw", DatabaseFirewallArgs.builder() + * var example_fw = new DatabaseFirewall("example-fw", DatabaseFirewallArgs.builder() * .clusterId(replica_example.uuid()) * .rules(DatabaseFirewallRuleArgs.builder() * .type("ip_addr") diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/DatabaseUser.java b/sdk/java/src/main/java/com/pulumi/digitalocean/DatabaseUser.java index af89e63b..06701892 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/DatabaseUser.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/DatabaseUser.java @@ -49,7 +49,7 @@ * } * * public static void stack(Context ctx) { - * var postgres_example = new DatabaseCluster("postgres-example", DatabaseClusterArgs.builder() + * var postgres_example = new DatabaseCluster("postgres-example", DatabaseClusterArgs.builder() * .name("example-postgres-cluster") * .engine("pg") * .version("15") @@ -58,7 +58,7 @@ * .nodeCount(1) * .build()); * - * var user_example = new DatabaseUser("user-example", DatabaseUserArgs.builder() + * var user_example = new DatabaseUser("user-example", DatabaseUserArgs.builder() * .clusterId(postgres_example.id()) * .name("foobar") * .build()); @@ -97,7 +97,7 @@ * } * * public static void stack(Context ctx) { - * var postgres_example = new DatabaseCluster("postgres-example", DatabaseClusterArgs.builder() + * var postgres_example = new DatabaseCluster("postgres-example", DatabaseClusterArgs.builder() * .name("example-postgres-cluster") * .engine("pg") * .version("15") @@ -106,14 +106,14 @@ * .nodeCount(1) * .build()); * - * var replica_example = new DatabaseReplica("replica-example", DatabaseReplicaArgs.builder() + * var replica_example = new DatabaseReplica("replica-example", DatabaseReplicaArgs.builder() * .clusterId(postgres_example.id()) * .name("replica-example") * .size("db-s-1vcpu-1gb") * .region("nyc1") * .build()); * - * var user_example = new DatabaseUser("user-example", DatabaseUserArgs.builder() + * var user_example = new DatabaseUser("user-example", DatabaseUserArgs.builder() * .clusterId(replica_example.uuid()) * .name("foobar") * .build()); @@ -153,7 +153,7 @@ * } * * public static void stack(Context ctx) { - * var kafka_example = new DatabaseCluster("kafka-example", DatabaseClusterArgs.builder() + * var kafka_example = new DatabaseCluster("kafka-example", DatabaseClusterArgs.builder() * .name("example-kafka-cluster") * .engine("kafka") * .version("3.5") @@ -162,12 +162,12 @@ * .nodeCount(3) * .build()); * - * var foobarTopic = new DatabaseKafkaTopic("foobarTopic", DatabaseKafkaTopicArgs.builder() + * var foobarTopic = new DatabaseKafkaTopic("foobarTopic", DatabaseKafkaTopicArgs.builder() * .clusterId(foobar.id()) * .name("topic-1") * .build()); * - * var foobarUser = new DatabaseUser("foobarUser", DatabaseUserArgs.builder() + * var foobarUser = new DatabaseUser("foobarUser", DatabaseUserArgs.builder() * .clusterId(foobar.id()) * .name("example-user") * .settings(DatabaseUserSettingArgs.builder() diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/DigitaloceanFunctions.java b/sdk/java/src/main/java/com/pulumi/digitalocean/DigitaloceanFunctions.java index 238257e2..1bad155a 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/DigitaloceanFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/DigitaloceanFunctions.java @@ -3231,7 +3231,7 @@ public static CompletableFuture getDropletPlain(GetDropletPlai * .mostRecent(true) * .build()); * - * var from_snapshot = new Droplet("from-snapshot", DropletArgs.builder() + * var from_snapshot = new Droplet("from-snapshot", DropletArgs.builder() * .image(web_snapshot.id()) * .name("web-02") * .region("nyc3") @@ -3325,7 +3325,7 @@ public static Output getDropletSnapshot() { * .mostRecent(true) * .build()); * - * var from_snapshot = new Droplet("from-snapshot", DropletArgs.builder() + * var from_snapshot = new Droplet("from-snapshot", DropletArgs.builder() * .image(web_snapshot.id()) * .name("web-02") * .region("nyc3") @@ -3419,7 +3419,7 @@ public static CompletableFuture getDropletSnapshotPlai * .mostRecent(true) * .build()); * - * var from_snapshot = new Droplet("from-snapshot", DropletArgs.builder() + * var from_snapshot = new Droplet("from-snapshot", DropletArgs.builder() * .image(web_snapshot.id()) * .name("web-02") * .region("nyc3") @@ -3513,7 +3513,7 @@ public static Output getDropletSnapshot(GetDropletSnap * .mostRecent(true) * .build()); * - * var from_snapshot = new Droplet("from-snapshot", DropletArgs.builder() + * var from_snapshot = new Droplet("from-snapshot", DropletArgs.builder() * .image(web_snapshot.id()) * .name("web-02") * .region("nyc3") @@ -3607,7 +3607,7 @@ public static CompletableFuture getDropletSnapshotPlai * .mostRecent(true) * .build()); * - * var from_snapshot = new Droplet("from-snapshot", DropletArgs.builder() + * var from_snapshot = new Droplet("from-snapshot", DropletArgs.builder() * .image(web_snapshot.id()) * .name("web-02") * .region("nyc3") @@ -3701,7 +3701,7 @@ public static Output getDropletSnapshot(GetDropletSnap * .mostRecent(true) * .build()); * - * var from_snapshot = new Droplet("from-snapshot", DropletArgs.builder() + * var from_snapshot = new Droplet("from-snapshot", DropletArgs.builder() * .image(web_snapshot.id()) * .name("web-02") * .region("nyc3") @@ -4808,7 +4808,7 @@ public static CompletableFuture getFloatingIpPlain(GetFloat * .name("example-1.0.0") * .build()); * - * var exampleDroplet = new Droplet("exampleDroplet", DropletArgs.builder() + * var exampleDroplet = new Droplet("exampleDroplet", DropletArgs.builder() * .image(example.applyValue(getImageResult -> getImageResult.id())) * .name("example-1") * .region("nyc2") @@ -4936,7 +4936,7 @@ public static Output getImage() { * .name("example-1.0.0") * .build()); * - * var exampleDroplet = new Droplet("exampleDroplet", DropletArgs.builder() + * var exampleDroplet = new Droplet("exampleDroplet", DropletArgs.builder() * .image(example.applyValue(getImageResult -> getImageResult.id())) * .name("example-1") * .region("nyc2") @@ -5064,7 +5064,7 @@ public static CompletableFuture getImagePlain() { * .name("example-1.0.0") * .build()); * - * var exampleDroplet = new Droplet("exampleDroplet", DropletArgs.builder() + * var exampleDroplet = new Droplet("exampleDroplet", DropletArgs.builder() * .image(example.applyValue(getImageResult -> getImageResult.id())) * .name("example-1") * .region("nyc2") @@ -5192,7 +5192,7 @@ public static Output getImage(GetImageArgs args) { * .name("example-1.0.0") * .build()); * - * var exampleDroplet = new Droplet("exampleDroplet", DropletArgs.builder() + * var exampleDroplet = new Droplet("exampleDroplet", DropletArgs.builder() * .image(example.applyValue(getImageResult -> getImageResult.id())) * .name("example-1") * .region("nyc2") @@ -5320,7 +5320,7 @@ public static CompletableFuture getImagePlain(GetImagePlainArgs * .name("example-1.0.0") * .build()); * - * var exampleDroplet = new Droplet("exampleDroplet", DropletArgs.builder() + * var exampleDroplet = new Droplet("exampleDroplet", DropletArgs.builder() * .image(example.applyValue(getImageResult -> getImageResult.id())) * .name("example-1") * .region("nyc2") @@ -5448,7 +5448,7 @@ public static Output getImage(GetImageArgs args, InvokeOptions o * .name("example-1.0.0") * .build()); * - * var exampleDroplet = new Droplet("exampleDroplet", DropletArgs.builder() + * var exampleDroplet = new Droplet("exampleDroplet", DropletArgs.builder() * .image(example.applyValue(getImageResult -> getImageResult.id())) * .name("example-1") * .region("nyc2") @@ -6361,7 +6361,7 @@ public static CompletableFuture getKubernetesCluster * public static void stack(Context ctx) { * final var example = DigitaloceanFunctions.getKubernetesVersions(); * - * var example_cluster = new KubernetesCluster("example-cluster", KubernetesClusterArgs.builder() + * var example_cluster = new KubernetesCluster("example-cluster", KubernetesClusterArgs.builder() * .name("example-cluster") * .region("lon1") * .version(example.applyValue(getKubernetesVersionsResult -> getKubernetesVersionsResult.latestVersion())) @@ -6410,7 +6410,7 @@ public static CompletableFuture getKubernetesCluster * .versionPrefix("1.22.") * .build()); * - * var example_cluster = new KubernetesCluster("example-cluster", KubernetesClusterArgs.builder() + * var example_cluster = new KubernetesCluster("example-cluster", KubernetesClusterArgs.builder() * .name("example-cluster") * .region("lon1") * .version(example.applyValue(getKubernetesVersionsResult -> getKubernetesVersionsResult.latestVersion())) @@ -6500,7 +6500,7 @@ public static Output getKubernetesVersions() { * public static void stack(Context ctx) { * final var example = DigitaloceanFunctions.getKubernetesVersions(); * - * var example_cluster = new KubernetesCluster("example-cluster", KubernetesClusterArgs.builder() + * var example_cluster = new KubernetesCluster("example-cluster", KubernetesClusterArgs.builder() * .name("example-cluster") * .region("lon1") * .version(example.applyValue(getKubernetesVersionsResult -> getKubernetesVersionsResult.latestVersion())) @@ -6549,7 +6549,7 @@ public static Output getKubernetesVersions() { * .versionPrefix("1.22.") * .build()); * - * var example_cluster = new KubernetesCluster("example-cluster", KubernetesClusterArgs.builder() + * var example_cluster = new KubernetesCluster("example-cluster", KubernetesClusterArgs.builder() * .name("example-cluster") * .region("lon1") * .version(example.applyValue(getKubernetesVersionsResult -> getKubernetesVersionsResult.latestVersion())) @@ -6639,7 +6639,7 @@ public static CompletableFuture getKubernetesVersio * public static void stack(Context ctx) { * final var example = DigitaloceanFunctions.getKubernetesVersions(); * - * var example_cluster = new KubernetesCluster("example-cluster", KubernetesClusterArgs.builder() + * var example_cluster = new KubernetesCluster("example-cluster", KubernetesClusterArgs.builder() * .name("example-cluster") * .region("lon1") * .version(example.applyValue(getKubernetesVersionsResult -> getKubernetesVersionsResult.latestVersion())) @@ -6688,7 +6688,7 @@ public static CompletableFuture getKubernetesVersio * .versionPrefix("1.22.") * .build()); * - * var example_cluster = new KubernetesCluster("example-cluster", KubernetesClusterArgs.builder() + * var example_cluster = new KubernetesCluster("example-cluster", KubernetesClusterArgs.builder() * .name("example-cluster") * .region("lon1") * .version(example.applyValue(getKubernetesVersionsResult -> getKubernetesVersionsResult.latestVersion())) @@ -6778,7 +6778,7 @@ public static Output getKubernetesVersions(GetKuber * public static void stack(Context ctx) { * final var example = DigitaloceanFunctions.getKubernetesVersions(); * - * var example_cluster = new KubernetesCluster("example-cluster", KubernetesClusterArgs.builder() + * var example_cluster = new KubernetesCluster("example-cluster", KubernetesClusterArgs.builder() * .name("example-cluster") * .region("lon1") * .version(example.applyValue(getKubernetesVersionsResult -> getKubernetesVersionsResult.latestVersion())) @@ -6827,7 +6827,7 @@ public static Output getKubernetesVersions(GetKuber * .versionPrefix("1.22.") * .build()); * - * var example_cluster = new KubernetesCluster("example-cluster", KubernetesClusterArgs.builder() + * var example_cluster = new KubernetesCluster("example-cluster", KubernetesClusterArgs.builder() * .name("example-cluster") * .region("lon1") * .version(example.applyValue(getKubernetesVersionsResult -> getKubernetesVersionsResult.latestVersion())) @@ -6917,7 +6917,7 @@ public static CompletableFuture getKubernetesVersio * public static void stack(Context ctx) { * final var example = DigitaloceanFunctions.getKubernetesVersions(); * - * var example_cluster = new KubernetesCluster("example-cluster", KubernetesClusterArgs.builder() + * var example_cluster = new KubernetesCluster("example-cluster", KubernetesClusterArgs.builder() * .name("example-cluster") * .region("lon1") * .version(example.applyValue(getKubernetesVersionsResult -> getKubernetesVersionsResult.latestVersion())) @@ -6966,7 +6966,7 @@ public static CompletableFuture getKubernetesVersio * .versionPrefix("1.22.") * .build()); * - * var example_cluster = new KubernetesCluster("example-cluster", KubernetesClusterArgs.builder() + * var example_cluster = new KubernetesCluster("example-cluster", KubernetesClusterArgs.builder() * .name("example-cluster") * .region("lon1") * .version(example.applyValue(getKubernetesVersionsResult -> getKubernetesVersionsResult.latestVersion())) @@ -7056,7 +7056,7 @@ public static Output getKubernetesVersions(GetKuber * public static void stack(Context ctx) { * final var example = DigitaloceanFunctions.getKubernetesVersions(); * - * var example_cluster = new KubernetesCluster("example-cluster", KubernetesClusterArgs.builder() + * var example_cluster = new KubernetesCluster("example-cluster", KubernetesClusterArgs.builder() * .name("example-cluster") * .region("lon1") * .version(example.applyValue(getKubernetesVersionsResult -> getKubernetesVersionsResult.latestVersion())) @@ -7105,7 +7105,7 @@ public static Output getKubernetesVersions(GetKuber * .versionPrefix("1.22.") * .build()); * - * var example_cluster = new KubernetesCluster("example-cluster", KubernetesClusterArgs.builder() + * var example_cluster = new KubernetesCluster("example-cluster", KubernetesClusterArgs.builder() * .name("example-cluster") * .region("lon1") * .version(example.applyValue(getKubernetesVersionsResult -> getKubernetesVersionsResult.latestVersion())) @@ -10180,7 +10180,7 @@ public static CompletableFuture getSpacesBucketPlain(GetS * .key("droplet-bootstrap-script.sh") * .build()); * - * var web = new Droplet("web", DropletArgs.builder() + * var web = new Droplet("web", DropletArgs.builder() * .image("ubuntu-18-04-x64") * .name("web-1") * .region("nyc2") @@ -10242,7 +10242,7 @@ public static Output getSpacesBucketObject(GetSpace * .key("droplet-bootstrap-script.sh") * .build()); * - * var web = new Droplet("web", DropletArgs.builder() + * var web = new Droplet("web", DropletArgs.builder() * .image("ubuntu-18-04-x64") * .name("web-1") * .region("nyc2") @@ -10304,7 +10304,7 @@ public static CompletableFuture getSpacesBucketObje * .key("droplet-bootstrap-script.sh") * .build()); * - * var web = new Droplet("web", DropletArgs.builder() + * var web = new Droplet("web", DropletArgs.builder() * .image("ubuntu-18-04-x64") * .name("web-1") * .region("nyc2") @@ -10366,7 +10366,7 @@ public static Output getSpacesBucketObject(GetSpace * .key("droplet-bootstrap-script.sh") * .build()); * - * var web = new Droplet("web", DropletArgs.builder() + * var web = new Droplet("web", DropletArgs.builder() * .image("ubuntu-18-04-x64") * .name("web-1") * .region("nyc2") @@ -11025,7 +11025,7 @@ public static CompletableFuture getSpacesBucketsPlain(Ge * .name("example") * .build()); * - * var exampleDroplet = new Droplet("exampleDroplet", DropletArgs.builder() + * var exampleDroplet = new Droplet("exampleDroplet", DropletArgs.builder() * .image("ubuntu-18-04-x64") * .name("example-1") * .region("nyc2") @@ -11084,7 +11084,7 @@ public static Output getSshKey(GetSshKeyArgs args) { * .name("example") * .build()); * - * var exampleDroplet = new Droplet("exampleDroplet", DropletArgs.builder() + * var exampleDroplet = new Droplet("exampleDroplet", DropletArgs.builder() * .image("ubuntu-18-04-x64") * .name("example-1") * .region("nyc2") @@ -11143,7 +11143,7 @@ public static CompletableFuture getSshKeyPlain(GetSshKeyPlainAr * .name("example") * .build()); * - * var exampleDroplet = new Droplet("exampleDroplet", DropletArgs.builder() + * var exampleDroplet = new Droplet("exampleDroplet", DropletArgs.builder() * .image("ubuntu-18-04-x64") * .name("example-1") * .region("nyc2") @@ -11202,7 +11202,7 @@ public static Output getSshKey(GetSshKeyArgs args, InvokeOption * .name("example") * .build()); * - * var exampleDroplet = new Droplet("exampleDroplet", DropletArgs.builder() + * var exampleDroplet = new Droplet("exampleDroplet", DropletArgs.builder() * .image("ubuntu-18-04-x64") * .name("example-1") * .region("nyc2") @@ -11818,7 +11818,7 @@ public static CompletableFuture getSshKeysPlain(GetSshKeysPlai * .name("example") * .build()); * - * var exampleDroplet = new Droplet("exampleDroplet", DropletArgs.builder() + * var exampleDroplet = new Droplet("exampleDroplet", DropletArgs.builder() * .image("ubuntu-18-04-x64") * .name("example-1") * .region("nyc2") @@ -11876,7 +11876,7 @@ public static Output getTag(GetTagArgs args) { * .name("example") * .build()); * - * var exampleDroplet = new Droplet("exampleDroplet", DropletArgs.builder() + * var exampleDroplet = new Droplet("exampleDroplet", DropletArgs.builder() * .image("ubuntu-18-04-x64") * .name("example-1") * .region("nyc2") @@ -11934,7 +11934,7 @@ public static CompletableFuture getTagPlain(GetTagPlainArgs args) * .name("example") * .build()); * - * var exampleDroplet = new Droplet("exampleDroplet", DropletArgs.builder() + * var exampleDroplet = new Droplet("exampleDroplet", DropletArgs.builder() * .image("ubuntu-18-04-x64") * .name("example-1") * .region("nyc2") @@ -11992,7 +11992,7 @@ public static Output getTag(GetTagArgs args, InvokeOptions options * .name("example") * .build()); * - * var exampleDroplet = new Droplet("exampleDroplet", DropletArgs.builder() + * var exampleDroplet = new Droplet("exampleDroplet", DropletArgs.builder() * .image("ubuntu-18-04-x64") * .name("example-1") * .region("nyc2") @@ -12378,14 +12378,14 @@ public static CompletableFuture getTagsPlain(GetTagsPlainArgs arg * .region("nyc3") * .build()); * - * var exampleDroplet = new Droplet("exampleDroplet", DropletArgs.builder() + * var exampleDroplet = new Droplet("exampleDroplet", DropletArgs.builder() * .name("foo") * .size("s-1vcpu-1gb") * .image("ubuntu-18-04-x64") * .region("nyc3") * .build()); * - * var foobar = new VolumeAttachment("foobar", VolumeAttachmentArgs.builder() + * var foobar = new VolumeAttachment("foobar", VolumeAttachmentArgs.builder() * .dropletId(exampleDroplet.id()) * .volumeId(example.applyValue(getVolumeResult -> getVolumeResult.id())) * .build()); @@ -12480,14 +12480,14 @@ public static Output getVolume(GetVolumeArgs args) { * .region("nyc3") * .build()); * - * var exampleDroplet = new Droplet("exampleDroplet", DropletArgs.builder() + * var exampleDroplet = new Droplet("exampleDroplet", DropletArgs.builder() * .name("foo") * .size("s-1vcpu-1gb") * .image("ubuntu-18-04-x64") * .region("nyc3") * .build()); * - * var foobar = new VolumeAttachment("foobar", VolumeAttachmentArgs.builder() + * var foobar = new VolumeAttachment("foobar", VolumeAttachmentArgs.builder() * .dropletId(exampleDroplet.id()) * .volumeId(example.applyValue(getVolumeResult -> getVolumeResult.id())) * .build()); @@ -12582,14 +12582,14 @@ public static CompletableFuture getVolumePlain(GetVolumePlainAr * .region("nyc3") * .build()); * - * var exampleDroplet = new Droplet("exampleDroplet", DropletArgs.builder() + * var exampleDroplet = new Droplet("exampleDroplet", DropletArgs.builder() * .name("foo") * .size("s-1vcpu-1gb") * .image("ubuntu-18-04-x64") * .region("nyc3") * .build()); * - * var foobar = new VolumeAttachment("foobar", VolumeAttachmentArgs.builder() + * var foobar = new VolumeAttachment("foobar", VolumeAttachmentArgs.builder() * .dropletId(exampleDroplet.id()) * .volumeId(example.applyValue(getVolumeResult -> getVolumeResult.id())) * .build()); @@ -12684,14 +12684,14 @@ public static Output getVolume(GetVolumeArgs args, InvokeOption * .region("nyc3") * .build()); * - * var exampleDroplet = new Droplet("exampleDroplet", DropletArgs.builder() + * var exampleDroplet = new Droplet("exampleDroplet", DropletArgs.builder() * .name("foo") * .size("s-1vcpu-1gb") * .image("ubuntu-18-04-x64") * .region("nyc3") * .build()); * - * var foobar = new VolumeAttachment("foobar", VolumeAttachmentArgs.builder() + * var foobar = new VolumeAttachment("foobar", VolumeAttachmentArgs.builder() * .dropletId(exampleDroplet.id()) * .volumeId(example.applyValue(getVolumeResult -> getVolumeResult.id())) * .build()); @@ -12783,7 +12783,7 @@ public static CompletableFuture getVolumePlain(GetVolumePlainAr * .mostRecent(true) * .build()); * - * var foobar = new Volume("foobar", VolumeArgs.builder() + * var foobar = new Volume("foobar", VolumeArgs.builder() * .region("nyc3") * .name("baz") * .size(100) @@ -12877,7 +12877,7 @@ public static Output getVolumeSnapshot() { * .mostRecent(true) * .build()); * - * var foobar = new Volume("foobar", VolumeArgs.builder() + * var foobar = new Volume("foobar", VolumeArgs.builder() * .region("nyc3") * .name("baz") * .size(100) @@ -12971,7 +12971,7 @@ public static CompletableFuture getVolumeSnapshotPlain( * .mostRecent(true) * .build()); * - * var foobar = new Volume("foobar", VolumeArgs.builder() + * var foobar = new Volume("foobar", VolumeArgs.builder() * .region("nyc3") * .name("baz") * .size(100) @@ -13065,7 +13065,7 @@ public static Output getVolumeSnapshot(GetVolumeSnapsho * .mostRecent(true) * .build()); * - * var foobar = new Volume("foobar", VolumeArgs.builder() + * var foobar = new Volume("foobar", VolumeArgs.builder() * .region("nyc3") * .name("baz") * .size(100) @@ -13159,7 +13159,7 @@ public static CompletableFuture getVolumeSnapshotPlain( * .mostRecent(true) * .build()); * - * var foobar = new Volume("foobar", VolumeArgs.builder() + * var foobar = new Volume("foobar", VolumeArgs.builder() * .region("nyc3") * .name("baz") * .size(100) @@ -13253,7 +13253,7 @@ public static Output getVolumeSnapshot(GetVolumeSnapsho * .mostRecent(true) * .build()); * - * var foobar = new Volume("foobar", VolumeArgs.builder() + * var foobar = new Volume("foobar", VolumeArgs.builder() * .region("nyc3") * .name("baz") * .size(100) @@ -13348,7 +13348,7 @@ public static CompletableFuture getVolumeSnapshotPlain( * .name("example-network") * .build()); * - * var exampleDroplet = new Droplet("exampleDroplet", DropletArgs.builder() + * var exampleDroplet = new Droplet("exampleDroplet", DropletArgs.builder() * .name("example-01") * .size("s-1vcpu-1gb") * .image("ubuntu-18-04-x64") @@ -13444,7 +13444,7 @@ public static Output getVpc() { * .name("example-network") * .build()); * - * var exampleDroplet = new Droplet("exampleDroplet", DropletArgs.builder() + * var exampleDroplet = new Droplet("exampleDroplet", DropletArgs.builder() * .name("example-01") * .size("s-1vcpu-1gb") * .image("ubuntu-18-04-x64") @@ -13540,7 +13540,7 @@ public static CompletableFuture getVpcPlain() { * .name("example-network") * .build()); * - * var exampleDroplet = new Droplet("exampleDroplet", DropletArgs.builder() + * var exampleDroplet = new Droplet("exampleDroplet", DropletArgs.builder() * .name("example-01") * .size("s-1vcpu-1gb") * .image("ubuntu-18-04-x64") @@ -13636,7 +13636,7 @@ public static Output getVpc(GetVpcArgs args) { * .name("example-network") * .build()); * - * var exampleDroplet = new Droplet("exampleDroplet", DropletArgs.builder() + * var exampleDroplet = new Droplet("exampleDroplet", DropletArgs.builder() * .name("example-01") * .size("s-1vcpu-1gb") * .image("ubuntu-18-04-x64") @@ -13732,7 +13732,7 @@ public static CompletableFuture getVpcPlain(GetVpcPlainArgs args) * .name("example-network") * .build()); * - * var exampleDroplet = new Droplet("exampleDroplet", DropletArgs.builder() + * var exampleDroplet = new Droplet("exampleDroplet", DropletArgs.builder() * .name("example-01") * .size("s-1vcpu-1gb") * .image("ubuntu-18-04-x64") @@ -13828,7 +13828,7 @@ public static Output getVpc(GetVpcArgs args, InvokeOptions options * .name("example-network") * .build()); * - * var exampleDroplet = new Droplet("exampleDroplet", DropletArgs.builder() + * var exampleDroplet = new Droplet("exampleDroplet", DropletArgs.builder() * .name("example-01") * .size("s-1vcpu-1gb") * .image("ubuntu-18-04-x64") diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/DnsRecord.java b/sdk/java/src/main/java/com/pulumi/digitalocean/DnsRecord.java index 8826b9f0..ec7c65ca 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/DnsRecord.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/DnsRecord.java @@ -45,12 +45,12 @@ * } * * public static void stack(Context ctx) { - * var default_ = new Domain("default", DomainArgs.builder() + * var default_ = new Domain("default", DomainArgs.builder() * .name("example.com") * .build()); * * // Add an A record to the domain for www.example.com. - * var www = new DnsRecord("www", DnsRecordArgs.builder() + * var www = new DnsRecord("www", DnsRecordArgs.builder() * .domain(default_.id()) * .type("A") * .name("www") @@ -58,7 +58,7 @@ * .build()); * * // Add a MX record for the example.com domain itself. - * var mx = new DnsRecord("mx", DnsRecordArgs.builder() + * var mx = new DnsRecord("mx", DnsRecordArgs.builder() * .domain(default_.id()) * .type("MX") * .name("{@literal @}") diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/Domain.java b/sdk/java/src/main/java/com/pulumi/digitalocean/Domain.java index 51f42ef3..a5d8ea4f 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/Domain.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/Domain.java @@ -44,7 +44,7 @@ * * public static void stack(Context ctx) { * // Create a new domain - * var default_ = new Domain("default", DomainArgs.builder() + * var default_ = new Domain("default", DomainArgs.builder() * .name("example.com") * .ipAddress(foo.ipv4Address()) * .build()); diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/Droplet.java b/sdk/java/src/main/java/com/pulumi/digitalocean/Droplet.java index 80b3c78f..d68082ca 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/Droplet.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/Droplet.java @@ -48,7 +48,7 @@ * * public static void stack(Context ctx) { * // Create a new Web Droplet in the nyc2 region - * var web = new Droplet("web", DropletArgs.builder() + * var web = new Droplet("web", DropletArgs.builder() * .image("ubuntu-20-04-x64") * .name("web-1") * .region("nyc2") diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/DropletSnapshot.java b/sdk/java/src/main/java/com/pulumi/digitalocean/DropletSnapshot.java index 9ac5a145..46415995 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/DropletSnapshot.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/DropletSnapshot.java @@ -46,19 +46,19 @@ * } * * public static void stack(Context ctx) { - * var web = new Droplet("web", DropletArgs.builder() + * var web = new Droplet("web", DropletArgs.builder() * .name("web-01") * .size("s-1vcpu-1gb") * .image("ubuntu-22-04-x64") * .region("nyc3") * .build()); * - * var web_snapshot = new DropletSnapshot("web-snapshot", DropletSnapshotArgs.builder() + * var web_snapshot = new DropletSnapshot("web-snapshot", DropletSnapshotArgs.builder() * .dropletId(web.id()) * .name("web-snapshot-01") * .build()); * - * var from_snapshot = new Droplet("from-snapshot", DropletArgs.builder() + * var from_snapshot = new Droplet("from-snapshot", DropletArgs.builder() * .image(web_snapshot.id()) * .name("web-02") * .region("nyc3") diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/Firewall.java b/sdk/java/src/main/java/com/pulumi/digitalocean/Firewall.java index d1cd3e93..407950f8 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/Firewall.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/Firewall.java @@ -52,14 +52,14 @@ * } * * public static void stack(Context ctx) { - * var web = new Droplet("web", DropletArgs.builder() + * var web = new Droplet("web", DropletArgs.builder() * .name("web-1") * .size("s-1vcpu-1gb") * .image("ubuntu-18-04-x64") * .region("nyc3") * .build()); * - * var webFirewall = new Firewall("webFirewall", FirewallArgs.builder() + * var webFirewall = new Firewall("webFirewall", FirewallArgs.builder() * .name("only-22-80-and-443") * .dropletIds(web.id()) * .inboundRules( diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/FloatingIp.java b/sdk/java/src/main/java/com/pulumi/digitalocean/FloatingIp.java index d4b14e92..8e09d50e 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/FloatingIp.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/FloatingIp.java @@ -49,7 +49,7 @@ * } * * public static void stack(Context ctx) { - * var foobar = new Droplet("foobar", DropletArgs.builder() + * var foobar = new Droplet("foobar", DropletArgs.builder() * .name("baz") * .size("s-1vcpu-1gb") * .image("ubuntu-18-04-x64") @@ -58,7 +58,7 @@ * .privateNetworking(true) * .build()); * - * var foobarFloatingIp = new FloatingIp("foobarFloatingIp", FloatingIpArgs.builder() + * var foobarFloatingIp = new FloatingIp("foobarFloatingIp", FloatingIpArgs.builder() * .dropletId(foobar.id()) * .region(foobar.region()) * .build()); diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/FloatingIpAssignment.java b/sdk/java/src/main/java/com/pulumi/digitalocean/FloatingIpAssignment.java index fc3f7a27..4c584f99 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/FloatingIpAssignment.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/FloatingIpAssignment.java @@ -50,11 +50,11 @@ * } * * public static void stack(Context ctx) { - * var foobar = new FloatingIp("foobar", FloatingIpArgs.builder() + * var foobar = new FloatingIp("foobar", FloatingIpArgs.builder() * .region("sgp1") * .build()); * - * var foobarDroplet = new Droplet("foobarDroplet", DropletArgs.builder() + * var foobarDroplet = new Droplet("foobarDroplet", DropletArgs.builder() * .name("baz") * .size("s-1vcpu-1gb") * .image("ubuntu-18-04-x64") @@ -63,7 +63,7 @@ * .privateNetworking(true) * .build()); * - * var foobarFloatingIpAssignment = new FloatingIpAssignment("foobarFloatingIpAssignment", FloatingIpAssignmentArgs.builder() + * var foobarFloatingIpAssignment = new FloatingIpAssignment("foobarFloatingIpAssignment", FloatingIpAssignmentArgs.builder() * .ipAddress(foobar.ipAddress()) * .dropletId(foobarDroplet.id()) * .build()); diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/KubernetesNodePool.java b/sdk/java/src/main/java/com/pulumi/digitalocean/KubernetesNodePool.java index e0f69c17..8a783bba 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/KubernetesNodePool.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/KubernetesNodePool.java @@ -54,7 +54,7 @@ * } * * public static void stack(Context ctx) { - * var foo = new KubernetesCluster("foo", KubernetesClusterArgs.builder() + * var foo = new KubernetesCluster("foo", KubernetesClusterArgs.builder() * .name("foo") * .region("nyc1") * .version("1.22.8-do.1") @@ -65,7 +65,7 @@ * .build()) * .build()); * - * var bar = new KubernetesNodePool("bar", KubernetesNodePoolArgs.builder() + * var bar = new KubernetesNodePool("bar", KubernetesNodePoolArgs.builder() * .clusterId(foo.id()) * .name("backend-pool") * .size("c-2") @@ -116,7 +116,7 @@ * } * * public static void stack(Context ctx) { - * var autoscale_pool_01 = new KubernetesNodePool("autoscale-pool-01", KubernetesNodePoolArgs.builder() + * var autoscale_pool_01 = new KubernetesNodePool("autoscale-pool-01", KubernetesNodePoolArgs.builder() * .clusterId(foo.id()) * .name("autoscale-pool-01") * .size("s-1vcpu-2gb") diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/LoadBalancer.java b/sdk/java/src/main/java/com/pulumi/digitalocean/LoadBalancer.java index 33dbebdb..9812a07f 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/LoadBalancer.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/LoadBalancer.java @@ -56,14 +56,14 @@ * } * * public static void stack(Context ctx) { - * var web = new Droplet("web", DropletArgs.builder() + * var web = new Droplet("web", DropletArgs.builder() * .name("web-1") * .size("s-1vcpu-1gb") * .image("ubuntu-18-04-x64") * .region("nyc3") * .build()); * - * var public_ = new LoadBalancer("public", LoadBalancerArgs.builder() + * var public_ = new LoadBalancer("public", LoadBalancerArgs.builder() * .name("loadbalancer-1") * .region("nyc3") * .forwardingRules(LoadBalancerForwardingRuleArgs.builder() diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/Project.java b/sdk/java/src/main/java/com/pulumi/digitalocean/Project.java index fcdb088d..e8ad0c98 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/Project.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/Project.java @@ -65,7 +65,7 @@ * } * * public static void stack(Context ctx) { - * var playground = new Project("playground", ProjectArgs.builder() + * var playground = new Project("playground", ProjectArgs.builder() * .name("playground") * .description("A project to represent development resources.") * .purpose("Web Application") @@ -105,14 +105,14 @@ * } * * public static void stack(Context ctx) { - * var foobar = new Droplet("foobar", DropletArgs.builder() + * var foobar = new Droplet("foobar", DropletArgs.builder() * .name("example") * .size("s-1vcpu-1gb") * .image("ubuntu-22-04-x64") * .region("nyc3") * .build()); * - * var playground = new Project("playground", ProjectArgs.builder() + * var playground = new Project("playground", ProjectArgs.builder() * .name("playground") * .description("A project to represent development resources.") * .purpose("Web Application") diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/ProjectResources.java b/sdk/java/src/main/java/com/pulumi/digitalocean/ProjectResources.java index 27a166bc..5ed20075 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/ProjectResources.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/ProjectResources.java @@ -65,14 +65,14 @@ * .name("playground") * .build()); * - * var foobar = new Droplet("foobar", DropletArgs.builder() + * var foobar = new Droplet("foobar", DropletArgs.builder() * .name("example") * .size("s-1vcpu-1gb") * .image("ubuntu-22-04-x64") * .region("nyc3") * .build()); * - * var barfoo = new ProjectResources("barfoo", ProjectResourcesArgs.builder() + * var barfoo = new ProjectResources("barfoo", ProjectResourcesArgs.builder() * .project(playground.applyValue(getProjectResult -> getProjectResult.id())) * .resources(foobar.dropletUrn()) * .build()); diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/ReservedIp.java b/sdk/java/src/main/java/com/pulumi/digitalocean/ReservedIp.java index 65dca5c4..97c488d5 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/ReservedIp.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/ReservedIp.java @@ -47,7 +47,7 @@ * } * * public static void stack(Context ctx) { - * var example = new Droplet("example", DropletArgs.builder() + * var example = new Droplet("example", DropletArgs.builder() * .name("example") * .size("s-1vcpu-1gb") * .image("ubuntu-22-04-x64") @@ -56,7 +56,7 @@ * .privateNetworking(true) * .build()); * - * var exampleReservedIp = new ReservedIp("exampleReservedIp", ReservedIpArgs.builder() + * var exampleReservedIp = new ReservedIp("exampleReservedIp", ReservedIpArgs.builder() * .dropletId(example.id()) * .region(example.region()) * .build()); diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/ReservedIpAssignment.java b/sdk/java/src/main/java/com/pulumi/digitalocean/ReservedIpAssignment.java index 90f6885a..fcc275e8 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/ReservedIpAssignment.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/ReservedIpAssignment.java @@ -48,11 +48,11 @@ * } * * public static void stack(Context ctx) { - * var example = new ReservedIp("example", ReservedIpArgs.builder() + * var example = new ReservedIp("example", ReservedIpArgs.builder() * .region("nyc3") * .build()); * - * var exampleDroplet = new Droplet("exampleDroplet", DropletArgs.builder() + * var exampleDroplet = new Droplet("exampleDroplet", DropletArgs.builder() * .name("baz") * .size("s-1vcpu-1gb") * .image("ubuntu-22-04-x64") @@ -61,7 +61,7 @@ * .privateNetworking(true) * .build()); * - * var exampleReservedIpAssignment = new ReservedIpAssignment("exampleReservedIpAssignment", ReservedIpAssignmentArgs.builder() + * var exampleReservedIpAssignment = new ReservedIpAssignment("exampleReservedIpAssignment", ReservedIpAssignmentArgs.builder() * .ipAddress(example.ipAddress()) * .dropletId(exampleDroplet.id()) * .build()); diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/SpacesBucket.java b/sdk/java/src/main/java/com/pulumi/digitalocean/SpacesBucket.java index 920ce7e0..3f946e20 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/SpacesBucket.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/SpacesBucket.java @@ -93,7 +93,7 @@ * } * * public static void stack(Context ctx) { - * var foobar = new SpacesBucket("foobar", SpacesBucketArgs.builder() + * var foobar = new SpacesBucket("foobar", SpacesBucketArgs.builder() * .name("foobar") * .region("nyc3") * .build()); @@ -130,7 +130,7 @@ * } * * public static void stack(Context ctx) { - * var foobar = new SpacesBucket("foobar", SpacesBucketArgs.builder() + * var foobar = new SpacesBucket("foobar", SpacesBucketArgs.builder() * .name("foobar") * .region("nyc3") * .corsRules( diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/SpacesBucketCorsConfiguration.java b/sdk/java/src/main/java/com/pulumi/digitalocean/SpacesBucketCorsConfiguration.java index f5eab9ec..d7b79841 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/SpacesBucketCorsConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/SpacesBucketCorsConfiguration.java @@ -46,12 +46,12 @@ * } * * public static void stack(Context ctx) { - * var foobar = new SpacesBucket("foobar", SpacesBucketArgs.builder() + * var foobar = new SpacesBucket("foobar", SpacesBucketArgs.builder() * .name("foobar") * .region("nyc3") * .build()); * - * var test = new SpacesBucketCorsConfiguration("test", SpacesBucketCorsConfigurationArgs.builder() + * var test = new SpacesBucketCorsConfiguration("test", SpacesBucketCorsConfigurationArgs.builder() * .bucket(foobar.id()) * .region("nyc3") * .corsRules(SpacesBucketCorsConfigurationCorsRuleArgs.builder() diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/SpacesBucketObject.java b/sdk/java/src/main/java/com/pulumi/digitalocean/SpacesBucketObject.java index 3385c8f6..5ac98a21 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/SpacesBucketObject.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/SpacesBucketObject.java @@ -94,12 +94,12 @@ * } * * public static void stack(Context ctx) { - * var foobar = new SpacesBucket("foobar", SpacesBucketArgs.builder() + * var foobar = new SpacesBucket("foobar", SpacesBucketArgs.builder() * .name("foobar") * .region("nyc3") * .build()); * - * var index = new SpacesBucketObject("index", SpacesBucketObjectArgs.builder() + * var index = new SpacesBucketObject("index", SpacesBucketObjectArgs.builder() * .region(foobar.region()) * .bucket(foobar.name()) * .key("index.html") diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/SpacesBucketPolicy.java b/sdk/java/src/main/java/com/pulumi/digitalocean/SpacesBucketPolicy.java index 30fb3d43..0ff5ceec 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/SpacesBucketPolicy.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/SpacesBucketPolicy.java @@ -44,12 +44,12 @@ * } * * public static void stack(Context ctx) { - * var foobar = new SpacesBucket("foobar", SpacesBucketArgs.builder() + * var foobar = new SpacesBucket("foobar", SpacesBucketArgs.builder() * .name("foobar") * .region("nyc3") * .build()); * - * var foobarSpacesBucketPolicy = new SpacesBucketPolicy("foobarSpacesBucketPolicy", SpacesBucketPolicyArgs.builder() + * var foobarSpacesBucketPolicy = new SpacesBucketPolicy("foobarSpacesBucketPolicy", SpacesBucketPolicyArgs.builder() * .region(foobar.region()) * .bucket(foobar.name()) * .policy(Output.tuple(foobar.name(), foobar.name()).applyValue(values -> { diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/SshKey.java b/sdk/java/src/main/java/com/pulumi/digitalocean/SshKey.java index a25df886..bd6bb523 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/SshKey.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/SshKey.java @@ -47,7 +47,7 @@ * * public static void stack(Context ctx) { * // Create a new SSH key - * var default_ = new SshKey("default", SshKeyArgs.builder() + * var default_ = new SshKey("default", SshKeyArgs.builder() * .name("Example") * .publicKey(StdFunctions.file(FileArgs.builder() * .input("/Users/myuser/.ssh/id_rsa.pub") @@ -55,7 +55,7 @@ * .build()); * * // Create a new Droplet using the SSH key - * var web = new Droplet("web", DropletArgs.builder() + * var web = new Droplet("web", DropletArgs.builder() * .image("ubuntu-18-04-x64") * .name("web-1") * .region("nyc3") diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/Tag.java b/sdk/java/src/main/java/com/pulumi/digitalocean/Tag.java index 4d280cb6..488062d1 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/Tag.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/Tag.java @@ -48,12 +48,12 @@ * * public static void stack(Context ctx) { * // Create a new tag - * var foobar = new Tag("foobar", TagArgs.builder() + * var foobar = new Tag("foobar", TagArgs.builder() * .name("foobar") * .build()); * * // Create a new Droplet in nyc3 with the foobar tag - * var web = new Droplet("web", DropletArgs.builder() + * var web = new Droplet("web", DropletArgs.builder() * .image("ubuntu-18-04-x64") * .name("web-1") * .region("nyc3") diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/Volume.java b/sdk/java/src/main/java/com/pulumi/digitalocean/Volume.java index 1419ce60..f688b1e6 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/Volume.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/Volume.java @@ -48,7 +48,7 @@ * } * * public static void stack(Context ctx) { - * var foobar = new Volume("foobar", VolumeArgs.builder() + * var foobar = new Volume("foobar", VolumeArgs.builder() * .region("nyc1") * .name("baz") * .size(100) @@ -56,14 +56,14 @@ * .description("an example volume") * .build()); * - * var foobarDroplet = new Droplet("foobarDroplet", DropletArgs.builder() + * var foobarDroplet = new Droplet("foobarDroplet", DropletArgs.builder() * .name("baz") * .size("s-1vcpu-1gb") * .image("ubuntu-18-04-x64") * .region("nyc1") * .build()); * - * var foobarVolumeAttachment = new VolumeAttachment("foobarVolumeAttachment", VolumeAttachmentArgs.builder() + * var foobarVolumeAttachment = new VolumeAttachment("foobarVolumeAttachment", VolumeAttachmentArgs.builder() * .dropletId(foobarDroplet.id()) * .volumeId(foobar.id()) * .build()); @@ -105,7 +105,7 @@ * .name("baz") * .build()); * - * var foobarVolume = new Volume("foobarVolume", VolumeArgs.builder() + * var foobarVolume = new Volume("foobarVolume", VolumeArgs.builder() * .region("lon1") * .name("foo") * .size(foobar.applyValue(getVolumeSnapshotResult -> getVolumeSnapshotResult.minDiskSize())) diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/VolumeAttachment.java b/sdk/java/src/main/java/com/pulumi/digitalocean/VolumeAttachment.java index 471ea876..43f11f95 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/VolumeAttachment.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/VolumeAttachment.java @@ -48,7 +48,7 @@ * } * * public static void stack(Context ctx) { - * var foobar = new Volume("foobar", VolumeArgs.builder() + * var foobar = new Volume("foobar", VolumeArgs.builder() * .region("nyc1") * .name("baz") * .size(100) @@ -56,14 +56,14 @@ * .description("an example volume") * .build()); * - * var foobarDroplet = new Droplet("foobarDroplet", DropletArgs.builder() + * var foobarDroplet = new Droplet("foobarDroplet", DropletArgs.builder() * .name("baz") * .size("s-1vcpu-1gb") * .image("ubuntu-18-04-x64") * .region("nyc1") * .build()); * - * var foobarVolumeAttachment = new VolumeAttachment("foobarVolumeAttachment", VolumeAttachmentArgs.builder() + * var foobarVolumeAttachment = new VolumeAttachment("foobarVolumeAttachment", VolumeAttachmentArgs.builder() * .dropletId(foobarDroplet.id()) * .volumeId(foobar.id()) * .build()); diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/VolumeSnapshot.java b/sdk/java/src/main/java/com/pulumi/digitalocean/VolumeSnapshot.java index 2d1307d2..44b7e374 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/VolumeSnapshot.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/VolumeSnapshot.java @@ -47,14 +47,14 @@ * } * * public static void stack(Context ctx) { - * var foobar = new Volume("foobar", VolumeArgs.builder() + * var foobar = new Volume("foobar", VolumeArgs.builder() * .region("nyc1") * .name("baz") * .size(100) * .description("an example volume") * .build()); * - * var foobarVolumeSnapshot = new VolumeSnapshot("foobarVolumeSnapshot", VolumeSnapshotArgs.builder() + * var foobarVolumeSnapshot = new VolumeSnapshot("foobarVolumeSnapshot", VolumeSnapshotArgs.builder() * .name("foo") * .volumeId(foobar.id()) * .build()); diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/Vpc.java b/sdk/java/src/main/java/com/pulumi/digitalocean/Vpc.java index 582b43d0..7b7e702d 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/Vpc.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/Vpc.java @@ -46,7 +46,7 @@ * } * * public static void stack(Context ctx) { - * var example = new Vpc("example", VpcArgs.builder() + * var example = new Vpc("example", VpcArgs.builder() * .name("example-project-network") * .region("nyc3") * .ipRange("10.10.10.0/24") @@ -89,12 +89,12 @@ * } * * public static void stack(Context ctx) { - * var example = new Vpc("example", VpcArgs.builder() + * var example = new Vpc("example", VpcArgs.builder() * .name("example-project-network") * .region("nyc3") * .build()); * - * var exampleDroplet = new Droplet("exampleDroplet", DropletArgs.builder() + * var exampleDroplet = new Droplet("exampleDroplet", DropletArgs.builder() * .name("example-01") * .size("s-1vcpu-1gb") * .image("ubuntu-18-04-x64") diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/AppSpecAlertArgs.java b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/AppSpecAlertArgs.java index 6d981659..c2647835 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/AppSpecAlertArgs.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/AppSpecAlertArgs.java @@ -33,14 +33,14 @@ public Optional> disabled() { } /** - * The type of the alert to configure. Component app alert policies can be: `CPU_UTILIZATION`, `MEM_UTILIZATION`, or `RESTART_COUNT`. + * The type of the alert to configure. Top-level app alert policies can be: `DEPLOYMENT_FAILED`, `DEPLOYMENT_LIVE`, `DOMAIN_FAILED`, or `DOMAIN_LIVE`. * */ @Import(name="rule", required=true) private Output rule; /** - * @return The type of the alert to configure. Component app alert policies can be: `CPU_UTILIZATION`, `MEM_UTILIZATION`, or `RESTART_COUNT`. + * @return The type of the alert to configure. Top-level app alert policies can be: `DEPLOYMENT_FAILED`, `DEPLOYMENT_LIVE`, `DOMAIN_FAILED`, or `DOMAIN_LIVE`. * */ public Output rule() { @@ -94,7 +94,7 @@ public Builder disabled(Boolean disabled) { } /** - * @param rule The type of the alert to configure. Component app alert policies can be: `CPU_UTILIZATION`, `MEM_UTILIZATION`, or `RESTART_COUNT`. + * @param rule The type of the alert to configure. Top-level app alert policies can be: `DEPLOYMENT_FAILED`, `DEPLOYMENT_LIVE`, `DOMAIN_FAILED`, or `DOMAIN_LIVE`. * * @return builder * @@ -105,7 +105,7 @@ public Builder rule(Output rule) { } /** - * @param rule The type of the alert to configure. Component app alert policies can be: `CPU_UTILIZATION`, `MEM_UTILIZATION`, or `RESTART_COUNT`. + * @param rule The type of the alert to configure. Top-level app alert policies can be: `DEPLOYMENT_FAILED`, `DEPLOYMENT_LIVE`, `DOMAIN_FAILED`, or `DOMAIN_LIVE`. * * @return builder * diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/AppSpecArgs.java b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/AppSpecArgs.java index 435ba90c..bb304c41 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/AppSpecArgs.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/AppSpecArgs.java @@ -28,14 +28,14 @@ public final class AppSpecArgs extends com.pulumi.resources.ResourceArgs { public static final AppSpecArgs Empty = new AppSpecArgs(); /** - * Describes an alert policy for the component. + * Describes an alert policy for the app. * */ @Import(name="alerts") private @Nullable Output> alerts; /** - * @return Describes an alert policy for the component. + * @return Describes an alert policy for the app. * */ public Optional>> alerts() { @@ -84,14 +84,14 @@ public Optional>> domains() { } /** - * Describes an environment variable made available to an app competent. + * Describes an app-wide environment variable made available to all components. * */ @Import(name="envs") private @Nullable Output> envs; /** - * @return Describes an environment variable made available to an app competent. + * @return Describes an app-wide environment variable made available to all components. * */ public Optional>> envs() { @@ -143,14 +143,14 @@ public Optional>> jobs() { } /** - * The name of the component. + * The name of the app. Must be unique across all apps in the same account. * */ @Import(name="name", required=true) private Output name; /** - * @return The name of the component. + * @return The name of the app. Must be unique across all apps in the same account. * */ public Output name() { @@ -231,7 +231,7 @@ public Builder(AppSpecArgs defaults) { } /** - * @param alerts Describes an alert policy for the component. + * @param alerts Describes an alert policy for the app. * * @return builder * @@ -242,7 +242,7 @@ public Builder alerts(@Nullable Output> alerts) { } /** - * @param alerts Describes an alert policy for the component. + * @param alerts Describes an alert policy for the app. * * @return builder * @@ -252,7 +252,7 @@ public Builder alerts(List alerts) { } /** - * @param alerts Describes an alert policy for the component. + * @param alerts Describes an alert policy for the app. * * @return builder * @@ -343,7 +343,7 @@ public Builder domains(String... domains) { } /** - * @param envs Describes an environment variable made available to an app competent. + * @param envs Describes an app-wide environment variable made available to all components. * * @return builder * @@ -354,7 +354,7 @@ public Builder envs(@Nullable Output> envs) { } /** - * @param envs Describes an environment variable made available to an app competent. + * @param envs Describes an app-wide environment variable made available to all components. * * @return builder * @@ -364,7 +364,7 @@ public Builder envs(List envs) { } /** - * @param envs Describes an environment variable made available to an app competent. + * @param envs Describes an app-wide environment variable made available to all components. * * @return builder * @@ -452,7 +452,7 @@ public Builder jobs(AppSpecJobArgs... jobs) { } /** - * @param name The name of the component. + * @param name The name of the app. Must be unique across all apps in the same account. * * @return builder * @@ -463,7 +463,7 @@ public Builder name(Output name) { } /** - * @param name The name of the component. + * @param name The name of the app. Must be unique across all apps in the same account. * * @return builder * diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/AppSpecDomainNameArgs.java b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/AppSpecDomainNameArgs.java index 9a144a3b..be795b73 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/AppSpecDomainNameArgs.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/AppSpecDomainNameArgs.java @@ -34,6 +34,9 @@ public Output name() { /** * The domain type, which can be one of the following: + * - `DEFAULT`: The default .ondigitalocean.app domain assigned to this app. + * - `PRIMARY`: The primary domain for this app that is displayed as the default in the control panel, used in bindable environment variables, and any other places that reference an app's live URL. Only one domain may be set as primary. + * - `ALIAS`: A non-primary domain. * */ @Import(name="type") @@ -41,6 +44,9 @@ public Output name() { /** * @return The domain type, which can be one of the following: + * - `DEFAULT`: The default .ondigitalocean.app domain assigned to this app. + * - `PRIMARY`: The primary domain for this app that is displayed as the default in the control panel, used in bindable environment variables, and any other places that reference an app's live URL. Only one domain may be set as primary. + * - `ALIAS`: A non-primary domain. * */ public Optional> type() { @@ -127,6 +133,9 @@ public Builder name(String name) { /** * @param type The domain type, which can be one of the following: + * - `DEFAULT`: The default .ondigitalocean.app domain assigned to this app. + * - `PRIMARY`: The primary domain for this app that is displayed as the default in the control panel, used in bindable environment variables, and any other places that reference an app's live URL. Only one domain may be set as primary. + * - `ALIAS`: A non-primary domain. * * @return builder * @@ -138,6 +147,9 @@ public Builder type(@Nullable Output type) { /** * @param type The domain type, which can be one of the following: + * - `DEFAULT`: The default .ondigitalocean.app domain assigned to this app. + * - `PRIMARY`: The primary domain for this app that is displayed as the default in the control panel, used in bindable environment variables, and any other places that reference an app's live URL. Only one domain may be set as primary. + * - `ALIAS`: A non-primary domain. * * @return builder * diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/AppSpecFunctionLogDestinationLogtailArgs.java b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/AppSpecFunctionLogDestinationLogtailArgs.java index 3dcd5e93..0779717d 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/AppSpecFunctionLogDestinationLogtailArgs.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/AppSpecFunctionLogDestinationLogtailArgs.java @@ -17,6 +17,8 @@ public final class AppSpecFunctionLogDestinationLogtailArgs extends com.pulumi.r /** * Logtail token. * + * A `database` can contain: + * */ @Import(name="token", required=true) private Output token; @@ -24,6 +26,8 @@ public final class AppSpecFunctionLogDestinationLogtailArgs extends com.pulumi.r /** * @return Logtail token. * + * A `database` can contain: + * */ public Output token() { return this.token; @@ -56,6 +60,8 @@ public Builder(AppSpecFunctionLogDestinationLogtailArgs defaults) { /** * @param token Logtail token. * + * A `database` can contain: + * * @return builder * */ @@ -67,6 +73,8 @@ public Builder token(Output token) { /** * @param token Logtail token. * + * A `database` can contain: + * * @return builder * */ diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/AppSpecIngressRuleArgs.java b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/AppSpecIngressRuleArgs.java index 30d86c22..1d26ba1f 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/AppSpecIngressRuleArgs.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/AppSpecIngressRuleArgs.java @@ -18,9 +18,17 @@ public final class AppSpecIngressRuleArgs extends com.pulumi.resources.ResourceA public static final AppSpecIngressRuleArgs Empty = new AppSpecIngressRuleArgs(); + /** + * The component to route to. Only one of `component` or `redirect` may be set. + * + */ @Import(name="component") private @Nullable Output component; + /** + * @return The component to route to. Only one of `component` or `redirect` may be set. + * + */ public Optional> component() { return Optional.ofNullable(this.component); } @@ -40,16 +48,32 @@ public Optional> cors() { return Optional.ofNullable(this.cors); } + /** + * The match configuration for the rule + * + */ @Import(name="match") private @Nullable Output match; + /** + * @return The match configuration for the rule + * + */ public Optional> match() { return Optional.ofNullable(this.match); } + /** + * The redirect configuration for the rule. Only one of `component` or `redirect` may be set. + * + */ @Import(name="redirect") private @Nullable Output redirect; + /** + * @return The redirect configuration for the rule. Only one of `component` or `redirect` may be set. + * + */ public Optional> redirect() { return Optional.ofNullable(this.redirect); } @@ -81,11 +105,23 @@ public Builder(AppSpecIngressRuleArgs defaults) { $ = new AppSpecIngressRuleArgs(Objects.requireNonNull(defaults)); } + /** + * @param component The component to route to. Only one of `component` or `redirect` may be set. + * + * @return builder + * + */ public Builder component(@Nullable Output component) { $.component = component; return this; } + /** + * @param component The component to route to. Only one of `component` or `redirect` may be set. + * + * @return builder + * + */ public Builder component(AppSpecIngressRuleComponentArgs component) { return component(Output.of(component)); } @@ -111,20 +147,44 @@ public Builder cors(AppSpecIngressRuleCorsArgs cors) { return cors(Output.of(cors)); } + /** + * @param match The match configuration for the rule + * + * @return builder + * + */ public Builder match(@Nullable Output match) { $.match = match; return this; } + /** + * @param match The match configuration for the rule + * + * @return builder + * + */ public Builder match(AppSpecIngressRuleMatchArgs match) { return match(Output.of(match)); } + /** + * @param redirect The redirect configuration for the rule. Only one of `component` or `redirect` may be set. + * + * @return builder + * + */ public Builder redirect(@Nullable Output redirect) { $.redirect = redirect; return this; } + /** + * @param redirect The redirect configuration for the rule. Only one of `component` or `redirect` may be set. + * + * @return builder + * + */ public Builder redirect(AppSpecIngressRuleRedirectArgs redirect) { return redirect(Output.of(redirect)); } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/AppSpecIngressRuleComponentArgs.java b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/AppSpecIngressRuleComponentArgs.java index 8f3c7ad8..c2d6039d 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/AppSpecIngressRuleComponentArgs.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/AppSpecIngressRuleComponentArgs.java @@ -17,30 +17,46 @@ public final class AppSpecIngressRuleComponentArgs extends com.pulumi.resources. public static final AppSpecIngressRuleComponentArgs Empty = new AppSpecIngressRuleComponentArgs(); /** - * The name of the component. + * The name of the component to route to. * */ @Import(name="name") private @Nullable Output name; /** - * @return The name of the component. + * @return The name of the component to route to. * */ public Optional> name() { return Optional.ofNullable(this.name); } + /** + * An optional boolean flag to preserve the path that is forwarded to the backend service. By default, the HTTP request path will be trimmed from the left when forwarded to the component. + * + */ @Import(name="preservePathPrefix") private @Nullable Output preservePathPrefix; + /** + * @return An optional boolean flag to preserve the path that is forwarded to the backend service. By default, the HTTP request path will be trimmed from the left when forwarded to the component. + * + */ public Optional> preservePathPrefix() { return Optional.ofNullable(this.preservePathPrefix); } + /** + * An optional field that will rewrite the path of the component to be what is specified here. This is mutually exclusive with `preserve_path_prefix`. + * + */ @Import(name="rewrite") private @Nullable Output rewrite; + /** + * @return An optional field that will rewrite the path of the component to be what is specified here. This is mutually exclusive with `preserve_path_prefix`. + * + */ public Optional> rewrite() { return Optional.ofNullable(this.rewrite); } @@ -72,7 +88,7 @@ public Builder(AppSpecIngressRuleComponentArgs defaults) { } /** - * @param name The name of the component. + * @param name The name of the component to route to. * * @return builder * @@ -83,7 +99,7 @@ public Builder name(@Nullable Output name) { } /** - * @param name The name of the component. + * @param name The name of the component to route to. * * @return builder * @@ -92,20 +108,44 @@ public Builder name(String name) { return name(Output.of(name)); } + /** + * @param preservePathPrefix An optional boolean flag to preserve the path that is forwarded to the backend service. By default, the HTTP request path will be trimmed from the left when forwarded to the component. + * + * @return builder + * + */ public Builder preservePathPrefix(@Nullable Output preservePathPrefix) { $.preservePathPrefix = preservePathPrefix; return this; } + /** + * @param preservePathPrefix An optional boolean flag to preserve the path that is forwarded to the backend service. By default, the HTTP request path will be trimmed from the left when forwarded to the component. + * + * @return builder + * + */ public Builder preservePathPrefix(Boolean preservePathPrefix) { return preservePathPrefix(Output.of(preservePathPrefix)); } + /** + * @param rewrite An optional field that will rewrite the path of the component to be what is specified here. This is mutually exclusive with `preserve_path_prefix`. + * + * @return builder + * + */ public Builder rewrite(@Nullable Output rewrite) { $.rewrite = rewrite; return this; } + /** + * @param rewrite An optional field that will rewrite the path of the component to be what is specified here. This is mutually exclusive with `preserve_path_prefix`. + * + * @return builder + * + */ public Builder rewrite(String rewrite) { return rewrite(Output.of(rewrite)); } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/AppSpecIngressRuleCorsAllowOriginsArgs.java b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/AppSpecIngressRuleCorsAllowOriginsArgs.java index 0512fbc9..f3573372 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/AppSpecIngressRuleCorsAllowOriginsArgs.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/AppSpecIngressRuleCorsAllowOriginsArgs.java @@ -16,14 +16,14 @@ public final class AppSpecIngressRuleCorsAllowOriginsArgs extends com.pulumi.res public static final AppSpecIngressRuleCorsAllowOriginsArgs Empty = new AppSpecIngressRuleCorsAllowOriginsArgs(); /** - * Exact string match. + * The `Access-Control-Allow-Origin` header will be set to the client's origin only if the client's origin exactly matches the value you provide. * */ @Import(name="exact") private @Nullable Output exact; /** - * @return Exact string match. + * @return The `Access-Control-Allow-Origin` header will be set to the client's origin only if the client's origin exactly matches the value you provide. * */ public Optional> exact() { @@ -31,14 +31,14 @@ public Optional> exact() { } /** - * Prefix-based match. + * The `Access-Control-Allow-Origin` header will be set to the client's origin if the beginning of the client's origin matches the value you provide. * */ @Import(name="prefix") private @Nullable Output prefix; /** - * @return Prefix-based match. + * @return The `Access-Control-Allow-Origin` header will be set to the client's origin if the beginning of the client's origin matches the value you provide. * */ public Optional> prefix() { @@ -46,14 +46,14 @@ public Optional> prefix() { } /** - * RE2 style regex-based match. + * The `Access-Control-Allow-Origin` header will be set to the client's origin if the client’s origin matches the regex you provide, in [RE2 style syntax](https://github.com/google/re2/wiki/Syntax). * */ @Import(name="regex") private @Nullable Output regex; /** - * @return RE2 style regex-based match. + * @return The `Access-Control-Allow-Origin` header will be set to the client's origin if the client’s origin matches the regex you provide, in [RE2 style syntax](https://github.com/google/re2/wiki/Syntax). * */ public Optional> regex() { @@ -87,7 +87,7 @@ public Builder(AppSpecIngressRuleCorsAllowOriginsArgs defaults) { } /** - * @param exact Exact string match. + * @param exact The `Access-Control-Allow-Origin` header will be set to the client's origin only if the client's origin exactly matches the value you provide. * * @return builder * @@ -98,7 +98,7 @@ public Builder exact(@Nullable Output exact) { } /** - * @param exact Exact string match. + * @param exact The `Access-Control-Allow-Origin` header will be set to the client's origin only if the client's origin exactly matches the value you provide. * * @return builder * @@ -108,7 +108,7 @@ public Builder exact(String exact) { } /** - * @param prefix Prefix-based match. + * @param prefix The `Access-Control-Allow-Origin` header will be set to the client's origin if the beginning of the client's origin matches the value you provide. * * @return builder * @@ -119,7 +119,7 @@ public Builder prefix(@Nullable Output prefix) { } /** - * @param prefix Prefix-based match. + * @param prefix The `Access-Control-Allow-Origin` header will be set to the client's origin if the beginning of the client's origin matches the value you provide. * * @return builder * @@ -129,7 +129,7 @@ public Builder prefix(String prefix) { } /** - * @param regex RE2 style regex-based match. + * @param regex The `Access-Control-Allow-Origin` header will be set to the client's origin if the client’s origin matches the regex you provide, in [RE2 style syntax](https://github.com/google/re2/wiki/Syntax). * * @return builder * @@ -140,7 +140,7 @@ public Builder regex(@Nullable Output regex) { } /** - * @param regex RE2 style regex-based match. + * @param regex The `Access-Control-Allow-Origin` header will be set to the client's origin if the client’s origin matches the regex you provide, in [RE2 style syntax](https://github.com/google/re2/wiki/Syntax). * * @return builder * diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/AppSpecIngressRuleCorsArgs.java b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/AppSpecIngressRuleCorsArgs.java index aa93115a..bc536af4 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/AppSpecIngressRuleCorsArgs.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/AppSpecIngressRuleCorsArgs.java @@ -64,14 +64,14 @@ public Optional>> allowMethods() { } /** - * The set of allowed CORS origins. This configures the Access-Control-Allow-Origin header. + * The `Access-Control-Allow-Origin` can be * */ @Import(name="allowOrigins") private @Nullable Output allowOrigins; /** - * @return The set of allowed CORS origins. This configures the Access-Control-Allow-Origin header. + * @return The `Access-Control-Allow-Origin` can be * */ public Optional> allowOrigins() { @@ -221,7 +221,7 @@ public Builder allowMethods(String... allowMethods) { } /** - * @param allowOrigins The set of allowed CORS origins. This configures the Access-Control-Allow-Origin header. + * @param allowOrigins The `Access-Control-Allow-Origin` can be * * @return builder * @@ -232,7 +232,7 @@ public Builder allowOrigins(@Nullable Output path; + /** + * @return The path to match on. + * + */ public Optional> path() { return Optional.ofNullable(this.path); } @@ -46,11 +54,23 @@ public Builder(AppSpecIngressRuleMatchArgs defaults) { $ = new AppSpecIngressRuleMatchArgs(Objects.requireNonNull(defaults)); } + /** + * @param path The path to match on. + * + * @return builder + * + */ public Builder path(@Nullable Output path) { $.path = path; return this; } + /** + * @param path The path to match on. + * + * @return builder + * + */ public Builder path(AppSpecIngressRuleMatchPathArgs path) { return path(Output.of(path)); } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/AppSpecIngressRuleMatchPathArgs.java b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/AppSpecIngressRuleMatchPathArgs.java index 3e36b362..21d40361 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/AppSpecIngressRuleMatchPathArgs.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/AppSpecIngressRuleMatchPathArgs.java @@ -15,9 +15,17 @@ public final class AppSpecIngressRuleMatchPathArgs extends com.pulumi.resources. public static final AppSpecIngressRuleMatchPathArgs Empty = new AppSpecIngressRuleMatchPathArgs(); + /** + * Prefix-based match. + * + */ @Import(name="prefix") private @Nullable Output prefix; + /** + * @return Prefix-based match. + * + */ public Optional> prefix() { return Optional.ofNullable(this.prefix); } @@ -46,11 +54,23 @@ public Builder(AppSpecIngressRuleMatchPathArgs defaults) { $ = new AppSpecIngressRuleMatchPathArgs(Objects.requireNonNull(defaults)); } + /** + * @param prefix Prefix-based match. + * + * @return builder + * + */ public Builder prefix(@Nullable Output prefix) { $.prefix = prefix; return this; } + /** + * @param prefix Prefix-based match. + * + * @return builder + * + */ public Builder prefix(String prefix) { return prefix(Output.of(prefix)); } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/AppSpecIngressRuleRedirectArgs.java b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/AppSpecIngressRuleRedirectArgs.java index 8e86ab5b..0ae01d77 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/AppSpecIngressRuleRedirectArgs.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/AppSpecIngressRuleRedirectArgs.java @@ -16,37 +16,77 @@ public final class AppSpecIngressRuleRedirectArgs extends com.pulumi.resources.R public static final AppSpecIngressRuleRedirectArgs Empty = new AppSpecIngressRuleRedirectArgs(); + /** + * The authority/host to redirect to. This can be a hostname or IP address. + * + */ @Import(name="authority") private @Nullable Output authority; + /** + * @return The authority/host to redirect to. This can be a hostname or IP address. + * + */ public Optional> authority() { return Optional.ofNullable(this.authority); } + /** + * The port to redirect to. + * + */ @Import(name="port") private @Nullable Output port; + /** + * @return The port to redirect to. + * + */ public Optional> port() { return Optional.ofNullable(this.port); } + /** + * The redirect code to use. Supported values are `300`, `301`, `302`, `303`, `304`, `307`, `308`. + * + */ @Import(name="redirectCode") private @Nullable Output redirectCode; + /** + * @return The redirect code to use. Supported values are `300`, `301`, `302`, `303`, `304`, `307`, `308`. + * + */ public Optional> redirectCode() { return Optional.ofNullable(this.redirectCode); } + /** + * The scheme to redirect to. Supported values are `http` or `https` + * + */ @Import(name="scheme") private @Nullable Output scheme; + /** + * @return The scheme to redirect to. Supported values are `http` or `https` + * + */ public Optional> scheme() { return Optional.ofNullable(this.scheme); } + /** + * An optional URI path to redirect to. + * + */ @Import(name="uri") private @Nullable Output uri; + /** + * @return An optional URI path to redirect to. + * + */ public Optional> uri() { return Optional.ofNullable(this.uri); } @@ -79,47 +119,107 @@ public Builder(AppSpecIngressRuleRedirectArgs defaults) { $ = new AppSpecIngressRuleRedirectArgs(Objects.requireNonNull(defaults)); } + /** + * @param authority The authority/host to redirect to. This can be a hostname or IP address. + * + * @return builder + * + */ public Builder authority(@Nullable Output authority) { $.authority = authority; return this; } + /** + * @param authority The authority/host to redirect to. This can be a hostname or IP address. + * + * @return builder + * + */ public Builder authority(String authority) { return authority(Output.of(authority)); } + /** + * @param port The port to redirect to. + * + * @return builder + * + */ public Builder port(@Nullable Output port) { $.port = port; return this; } + /** + * @param port The port to redirect to. + * + * @return builder + * + */ public Builder port(Integer port) { return port(Output.of(port)); } + /** + * @param redirectCode The redirect code to use. Supported values are `300`, `301`, `302`, `303`, `304`, `307`, `308`. + * + * @return builder + * + */ public Builder redirectCode(@Nullable Output redirectCode) { $.redirectCode = redirectCode; return this; } + /** + * @param redirectCode The redirect code to use. Supported values are `300`, `301`, `302`, `303`, `304`, `307`, `308`. + * + * @return builder + * + */ public Builder redirectCode(Integer redirectCode) { return redirectCode(Output.of(redirectCode)); } + /** + * @param scheme The scheme to redirect to. Supported values are `http` or `https` + * + * @return builder + * + */ public Builder scheme(@Nullable Output scheme) { $.scheme = scheme; return this; } + /** + * @param scheme The scheme to redirect to. Supported values are `http` or `https` + * + * @return builder + * + */ public Builder scheme(String scheme) { return scheme(Output.of(scheme)); } + /** + * @param uri An optional URI path to redirect to. + * + * @return builder + * + */ public Builder uri(@Nullable Output uri) { $.uri = uri; return this; } + /** + * @param uri An optional URI path to redirect to. + * + * @return builder + * + */ public Builder uri(String uri) { return uri(Output.of(uri)); } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/AppSpecJobArgs.java b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/AppSpecJobArgs.java index 79f9223d..76a2cb3e 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/AppSpecJobArgs.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/AppSpecJobArgs.java @@ -192,6 +192,10 @@ public Optional> instanceSizeSlug() { /** * The type of job and when it will be run during the deployment process. It may be one of: + * - `UNSPECIFIED`: Default job type, will auto-complete to POST_DEPLOY kind. + * - `PRE_DEPLOY`: Indicates a job that runs before an app deployment. + * - `POST_DEPLOY`: Indicates a job that runs after an app deployment. + * - `FAILED_DEPLOY`: Indicates a job that runs after a component fails to deploy. * */ @Import(name="kind") @@ -199,6 +203,10 @@ public Optional> instanceSizeSlug() { /** * @return The type of job and when it will be run during the deployment process. It may be one of: + * - `UNSPECIFIED`: Default job type, will auto-complete to POST_DEPLOY kind. + * - `PRE_DEPLOY`: Indicates a job that runs before an app deployment. + * - `POST_DEPLOY`: Indicates a job that runs after an app deployment. + * - `FAILED_DEPLOY`: Indicates a job that runs after a component fails to deploy. * */ public Optional> kind() { @@ -557,6 +565,10 @@ public Builder instanceSizeSlug(String instanceSizeSlug) { /** * @param kind The type of job and when it will be run during the deployment process. It may be one of: + * - `UNSPECIFIED`: Default job type, will auto-complete to POST_DEPLOY kind. + * - `PRE_DEPLOY`: Indicates a job that runs before an app deployment. + * - `POST_DEPLOY`: Indicates a job that runs after an app deployment. + * - `FAILED_DEPLOY`: Indicates a job that runs after a component fails to deploy. * * @return builder * @@ -568,6 +580,10 @@ public Builder kind(@Nullable Output kind) { /** * @param kind The type of job and when it will be run during the deployment process. It may be one of: + * - `UNSPECIFIED`: Default job type, will auto-complete to POST_DEPLOY kind. + * - `PRE_DEPLOY`: Indicates a job that runs before an app deployment. + * - `POST_DEPLOY`: Indicates a job that runs after an app deployment. + * - `FAILED_DEPLOY`: Indicates a job that runs after a component fails to deploy. * * @return builder * diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/AppSpecJobLogDestinationLogtailArgs.java b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/AppSpecJobLogDestinationLogtailArgs.java index 394eb608..5148721a 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/AppSpecJobLogDestinationLogtailArgs.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/AppSpecJobLogDestinationLogtailArgs.java @@ -17,6 +17,8 @@ public final class AppSpecJobLogDestinationLogtailArgs extends com.pulumi.resour /** * Logtail token. * + * A `database` can contain: + * */ @Import(name="token", required=true) private Output token; @@ -24,6 +26,8 @@ public final class AppSpecJobLogDestinationLogtailArgs extends com.pulumi.resour /** * @return Logtail token. * + * A `database` can contain: + * */ public Output token() { return this.token; @@ -56,6 +60,8 @@ public Builder(AppSpecJobLogDestinationLogtailArgs defaults) { /** * @param token Logtail token. * + * A `database` can contain: + * * @return builder * */ @@ -67,6 +73,8 @@ public Builder token(Output token) { /** * @param token Logtail token. * + * A `database` can contain: + * * @return builder * */ diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/AppSpecServiceLogDestinationLogtailArgs.java b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/AppSpecServiceLogDestinationLogtailArgs.java index 4015f2ad..b0849e9c 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/AppSpecServiceLogDestinationLogtailArgs.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/AppSpecServiceLogDestinationLogtailArgs.java @@ -17,6 +17,8 @@ public final class AppSpecServiceLogDestinationLogtailArgs extends com.pulumi.re /** * Logtail token. * + * A `database` can contain: + * */ @Import(name="token", required=true) private Output token; @@ -24,6 +26,8 @@ public final class AppSpecServiceLogDestinationLogtailArgs extends com.pulumi.re /** * @return Logtail token. * + * A `database` can contain: + * */ public Output token() { return this.token; @@ -56,6 +60,8 @@ public Builder(AppSpecServiceLogDestinationLogtailArgs defaults) { /** * @param token Logtail token. * + * A `database` can contain: + * * @return builder * */ @@ -67,6 +73,8 @@ public Builder token(Output token) { /** * @param token Logtail token. * + * A `database` can contain: + * * @return builder * */ diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/AppSpecWorkerLogDestinationLogtailArgs.java b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/AppSpecWorkerLogDestinationLogtailArgs.java index 30e3e068..0b10f62a 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/AppSpecWorkerLogDestinationLogtailArgs.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/AppSpecWorkerLogDestinationLogtailArgs.java @@ -17,6 +17,8 @@ public final class AppSpecWorkerLogDestinationLogtailArgs extends com.pulumi.res /** * Logtail token. * + * A `database` can contain: + * */ @Import(name="token", required=true) private Output token; @@ -24,6 +26,8 @@ public final class AppSpecWorkerLogDestinationLogtailArgs extends com.pulumi.res /** * @return Logtail token. * + * A `database` can contain: + * */ public Output token() { return this.token; @@ -56,6 +60,8 @@ public Builder(AppSpecWorkerLogDestinationLogtailArgs defaults) { /** * @param token Logtail token. * + * A `database` can contain: + * * @return builder * */ @@ -67,6 +73,8 @@ public Builder token(Output token) { /** * @param token Logtail token. * + * A `database` can contain: + * * @return builder * */ diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpec.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpec.java index 3e091c09..6a3ea45a 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpec.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpec.java @@ -24,7 +24,7 @@ @CustomType public final class AppSpec { /** - * @return Describes an alert policy for the component. + * @return Describes an alert policy for the app. * */ private @Nullable List alerts; @@ -42,7 +42,7 @@ public final class AppSpec { @Deprecated /* This attribute has been replaced by `domain` which supports additional functionality. */ private @Nullable List domains; /** - * @return Describes an environment variable made available to an app competent. + * @return Describes an app-wide environment variable made available to all components. * */ private @Nullable List envs; @@ -59,7 +59,7 @@ public final class AppSpec { private @Nullable AppSpecIngress ingress; private @Nullable List jobs; /** - * @return The name of the component. + * @return The name of the app. Must be unique across all apps in the same account. * */ private String name; @@ -74,7 +74,7 @@ public final class AppSpec { private AppSpec() {} /** - * @return Describes an alert policy for the component. + * @return Describes an alert policy for the app. * */ public List alerts() { @@ -100,7 +100,7 @@ public List domains() { return this.domains == null ? List.of() : this.domains; } /** - * @return Describes an environment variable made available to an app competent. + * @return Describes an app-wide environment variable made available to all components. * */ public List envs() { @@ -127,7 +127,7 @@ public List jobs() { return this.jobs == null ? List.of() : this.jobs; } /** - * @return The name of the component. + * @return The name of the app. Must be unique across all apps in the same account. * */ public String name() { diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecAlert.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecAlert.java index 25be814f..808c7699 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecAlert.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecAlert.java @@ -19,7 +19,7 @@ public final class AppSpecAlert { */ private @Nullable Boolean disabled; /** - * @return The type of the alert to configure. Component app alert policies can be: `CPU_UTILIZATION`, `MEM_UTILIZATION`, or `RESTART_COUNT`. + * @return The type of the alert to configure. Top-level app alert policies can be: `DEPLOYMENT_FAILED`, `DEPLOYMENT_LIVE`, `DOMAIN_FAILED`, or `DOMAIN_LIVE`. * */ private String rule; @@ -33,7 +33,7 @@ public Optional disabled() { return Optional.ofNullable(this.disabled); } /** - * @return The type of the alert to configure. Component app alert policies can be: `CPU_UTILIZATION`, `MEM_UTILIZATION`, or `RESTART_COUNT`. + * @return The type of the alert to configure. Top-level app alert policies can be: `DEPLOYMENT_FAILED`, `DEPLOYMENT_LIVE`, `DOMAIN_FAILED`, or `DOMAIN_LIVE`. * */ public String rule() { diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecDomainName.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecDomainName.java index eff12495..e154ce9a 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecDomainName.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecDomainName.java @@ -20,6 +20,9 @@ public final class AppSpecDomainName { private String name; /** * @return The domain type, which can be one of the following: + * - `DEFAULT`: The default .ondigitalocean.app domain assigned to this app. + * - `PRIMARY`: The primary domain for this app that is displayed as the default in the control panel, used in bindable environment variables, and any other places that reference an app's live URL. Only one domain may be set as primary. + * - `ALIAS`: A non-primary domain. * */ private @Nullable String type; @@ -44,6 +47,9 @@ public String name() { } /** * @return The domain type, which can be one of the following: + * - `DEFAULT`: The default .ondigitalocean.app domain assigned to this app. + * - `PRIMARY`: The primary domain for this app that is displayed as the default in the control panel, used in bindable environment variables, and any other places that reference an app's live URL. Only one domain may be set as primary. + * - `ALIAS`: A non-primary domain. * */ public Optional type() { diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecFunctionLogDestinationLogtail.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecFunctionLogDestinationLogtail.java index acae53da..afa0e172 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecFunctionLogDestinationLogtail.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecFunctionLogDestinationLogtail.java @@ -13,6 +13,8 @@ public final class AppSpecFunctionLogDestinationLogtail { /** * @return Logtail token. * + * A `database` can contain: + * */ private String token; @@ -20,6 +22,8 @@ private AppSpecFunctionLogDestinationLogtail() {} /** * @return Logtail token. * + * A `database` can contain: + * */ public String token() { return this.token; diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecIngressRule.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecIngressRule.java index 4b808a2c..8a1dfea5 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecIngressRule.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecIngressRule.java @@ -14,16 +14,32 @@ @CustomType public final class AppSpecIngressRule { + /** + * @return The component to route to. Only one of `component` or `redirect` may be set. + * + */ private @Nullable AppSpecIngressRuleComponent component; /** * @return The [CORS](https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS) policies of the app. * */ private @Nullable AppSpecIngressRuleCors cors; + /** + * @return The match configuration for the rule + * + */ private @Nullable AppSpecIngressRuleMatch match; + /** + * @return The redirect configuration for the rule. Only one of `component` or `redirect` may be set. + * + */ private @Nullable AppSpecIngressRuleRedirect redirect; private AppSpecIngressRule() {} + /** + * @return The component to route to. Only one of `component` or `redirect` may be set. + * + */ public Optional component() { return Optional.ofNullable(this.component); } @@ -34,9 +50,17 @@ public Optional component() { public Optional cors() { return Optional.ofNullable(this.cors); } + /** + * @return The match configuration for the rule + * + */ public Optional match() { return Optional.ofNullable(this.match); } + /** + * @return The redirect configuration for the rule. Only one of `component` or `redirect` may be set. + * + */ public Optional redirect() { return Optional.ofNullable(this.redirect); } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecIngressRuleComponent.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecIngressRuleComponent.java index 73ff5b15..7b4a568b 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecIngressRuleComponent.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecIngressRuleComponent.java @@ -13,24 +13,40 @@ @CustomType public final class AppSpecIngressRuleComponent { /** - * @return The name of the component. + * @return The name of the component to route to. * */ private @Nullable String name; + /** + * @return An optional boolean flag to preserve the path that is forwarded to the backend service. By default, the HTTP request path will be trimmed from the left when forwarded to the component. + * + */ private @Nullable Boolean preservePathPrefix; + /** + * @return An optional field that will rewrite the path of the component to be what is specified here. This is mutually exclusive with `preserve_path_prefix`. + * + */ private @Nullable String rewrite; private AppSpecIngressRuleComponent() {} /** - * @return The name of the component. + * @return The name of the component to route to. * */ public Optional name() { return Optional.ofNullable(this.name); } + /** + * @return An optional boolean flag to preserve the path that is forwarded to the backend service. By default, the HTTP request path will be trimmed from the left when forwarded to the component. + * + */ public Optional preservePathPrefix() { return Optional.ofNullable(this.preservePathPrefix); } + /** + * @return An optional field that will rewrite the path of the component to be what is specified here. This is mutually exclusive with `preserve_path_prefix`. + * + */ public Optional rewrite() { return Optional.ofNullable(this.rewrite); } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecIngressRuleCors.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecIngressRuleCors.java index 2f2cf2be..b156169a 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecIngressRuleCors.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecIngressRuleCors.java @@ -30,7 +30,7 @@ public final class AppSpecIngressRuleCors { */ private @Nullable List allowMethods; /** - * @return The set of allowed CORS origins. This configures the Access-Control-Allow-Origin header. + * @return The `Access-Control-Allow-Origin` can be * */ private @Nullable AppSpecIngressRuleCorsAllowOrigins allowOrigins; @@ -68,7 +68,7 @@ public List allowMethods() { return this.allowMethods == null ? List.of() : this.allowMethods; } /** - * @return The set of allowed CORS origins. This configures the Access-Control-Allow-Origin header. + * @return The `Access-Control-Allow-Origin` can be * */ public Optional allowOrigins() { diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecIngressRuleCorsAllowOrigins.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecIngressRuleCorsAllowOrigins.java index 158eb433..f08f85a2 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecIngressRuleCorsAllowOrigins.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecIngressRuleCorsAllowOrigins.java @@ -12,38 +12,38 @@ @CustomType public final class AppSpecIngressRuleCorsAllowOrigins { /** - * @return Exact string match. + * @return The `Access-Control-Allow-Origin` header will be set to the client's origin only if the client's origin exactly matches the value you provide. * */ private @Nullable String exact; /** - * @return Prefix-based match. + * @return The `Access-Control-Allow-Origin` header will be set to the client's origin if the beginning of the client's origin matches the value you provide. * */ private @Nullable String prefix; /** - * @return RE2 style regex-based match. + * @return The `Access-Control-Allow-Origin` header will be set to the client's origin if the client’s origin matches the regex you provide, in [RE2 style syntax](https://github.com/google/re2/wiki/Syntax). * */ private @Nullable String regex; private AppSpecIngressRuleCorsAllowOrigins() {} /** - * @return Exact string match. + * @return The `Access-Control-Allow-Origin` header will be set to the client's origin only if the client's origin exactly matches the value you provide. * */ public Optional exact() { return Optional.ofNullable(this.exact); } /** - * @return Prefix-based match. + * @return The `Access-Control-Allow-Origin` header will be set to the client's origin if the beginning of the client's origin matches the value you provide. * */ public Optional prefix() { return Optional.ofNullable(this.prefix); } /** - * @return RE2 style regex-based match. + * @return The `Access-Control-Allow-Origin` header will be set to the client's origin if the client’s origin matches the regex you provide, in [RE2 style syntax](https://github.com/google/re2/wiki/Syntax). * */ public Optional regex() { diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecIngressRuleMatch.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecIngressRuleMatch.java index 9938cef7..8133cdb8 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecIngressRuleMatch.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecIngressRuleMatch.java @@ -11,9 +11,17 @@ @CustomType public final class AppSpecIngressRuleMatch { + /** + * @return The path to match on. + * + */ private @Nullable AppSpecIngressRuleMatchPath path; private AppSpecIngressRuleMatch() {} + /** + * @return The path to match on. + * + */ public Optional path() { return Optional.ofNullable(this.path); } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecIngressRuleMatchPath.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecIngressRuleMatchPath.java index 4951bbf1..ad26157c 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecIngressRuleMatchPath.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecIngressRuleMatchPath.java @@ -11,9 +11,17 @@ @CustomType public final class AppSpecIngressRuleMatchPath { + /** + * @return Prefix-based match. + * + */ private @Nullable String prefix; private AppSpecIngressRuleMatchPath() {} + /** + * @return Prefix-based match. + * + */ public Optional prefix() { return Optional.ofNullable(this.prefix); } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecIngressRuleRedirect.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecIngressRuleRedirect.java index ed7913d0..18a3189b 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecIngressRuleRedirect.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecIngressRuleRedirect.java @@ -12,25 +12,65 @@ @CustomType public final class AppSpecIngressRuleRedirect { + /** + * @return The authority/host to redirect to. This can be a hostname or IP address. + * + */ private @Nullable String authority; + /** + * @return The port to redirect to. + * + */ private @Nullable Integer port; + /** + * @return The redirect code to use. Supported values are `300`, `301`, `302`, `303`, `304`, `307`, `308`. + * + */ private @Nullable Integer redirectCode; + /** + * @return The scheme to redirect to. Supported values are `http` or `https` + * + */ private @Nullable String scheme; + /** + * @return An optional URI path to redirect to. + * + */ private @Nullable String uri; private AppSpecIngressRuleRedirect() {} + /** + * @return The authority/host to redirect to. This can be a hostname or IP address. + * + */ public Optional authority() { return Optional.ofNullable(this.authority); } + /** + * @return The port to redirect to. + * + */ public Optional port() { return Optional.ofNullable(this.port); } + /** + * @return The redirect code to use. Supported values are `300`, `301`, `302`, `303`, `304`, `307`, `308`. + * + */ public Optional redirectCode() { return Optional.ofNullable(this.redirectCode); } + /** + * @return The scheme to redirect to. Supported values are `http` or `https` + * + */ public Optional scheme() { return Optional.ofNullable(this.scheme); } + /** + * @return An optional URI path to redirect to. + * + */ public Optional uri() { return Optional.ofNullable(this.uri); } diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecJob.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecJob.java index da3abae1..0a63069a 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecJob.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecJob.java @@ -78,6 +78,10 @@ public final class AppSpecJob { private @Nullable String instanceSizeSlug; /** * @return The type of job and when it will be run during the deployment process. It may be one of: + * - `UNSPECIFIED`: Default job type, will auto-complete to POST_DEPLOY kind. + * - `PRE_DEPLOY`: Indicates a job that runs before an app deployment. + * - `POST_DEPLOY`: Indicates a job that runs after an app deployment. + * - `FAILED_DEPLOY`: Indicates a job that runs after a component fails to deploy. * */ private @Nullable String kind; @@ -182,6 +186,10 @@ public Optional instanceSizeSlug() { } /** * @return The type of job and when it will be run during the deployment process. It may be one of: + * - `UNSPECIFIED`: Default job type, will auto-complete to POST_DEPLOY kind. + * - `PRE_DEPLOY`: Indicates a job that runs before an app deployment. + * - `POST_DEPLOY`: Indicates a job that runs after an app deployment. + * - `FAILED_DEPLOY`: Indicates a job that runs after a component fails to deploy. * */ public Optional kind() { diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecJobLogDestinationLogtail.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecJobLogDestinationLogtail.java index f8d684e0..7ecb4e25 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecJobLogDestinationLogtail.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecJobLogDestinationLogtail.java @@ -13,6 +13,8 @@ public final class AppSpecJobLogDestinationLogtail { /** * @return Logtail token. * + * A `database` can contain: + * */ private String token; @@ -20,6 +22,8 @@ private AppSpecJobLogDestinationLogtail() {} /** * @return Logtail token. * + * A `database` can contain: + * */ public String token() { return this.token; diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecServiceLogDestinationLogtail.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecServiceLogDestinationLogtail.java index 86ed6193..03fe7080 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecServiceLogDestinationLogtail.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecServiceLogDestinationLogtail.java @@ -13,6 +13,8 @@ public final class AppSpecServiceLogDestinationLogtail { /** * @return Logtail token. * + * A `database` can contain: + * */ private String token; @@ -20,6 +22,8 @@ private AppSpecServiceLogDestinationLogtail() {} /** * @return Logtail token. * + * A `database` can contain: + * */ public String token() { return this.token; diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecWorkerLogDestinationLogtail.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecWorkerLogDestinationLogtail.java index b969bf05..3f80a0eb 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecWorkerLogDestinationLogtail.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/AppSpecWorkerLogDestinationLogtail.java @@ -13,6 +13,8 @@ public final class AppSpecWorkerLogDestinationLogtail { /** * @return Logtail token. * + * A `database` can contain: + * */ private String token; @@ -20,6 +22,8 @@ private AppSpecWorkerLogDestinationLogtail() {} /** * @return Logtail token. * + * A `database` can contain: + * */ public String token() { return this.token; diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecJob.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecJob.java index de95ee7e..8a9aab35 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecJob.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetAppSpecJob.java @@ -78,6 +78,10 @@ public final class GetAppSpecJob { private @Nullable String instanceSizeSlug; /** * @return The type of job and when it will be run during the deployment process. It may be one of: + * - `UNSPECIFIED`: Default job type, will auto-complete to POST_DEPLOY kind. + * - `PRE_DEPLOY`: Indicates a job that runs before an app deployment. + * - `POST_DEPLOY`: Indicates a job that runs after an app deployment. + * - `FAILED_DEPLOY`: Indicates a job that runs after a component fails to deploy. * */ private @Nullable String kind; @@ -182,6 +186,10 @@ public Optional instanceSizeSlug() { } /** * @return The type of job and when it will be run during the deployment process. It may be one of: + * - `UNSPECIFIED`: Default job type, will auto-complete to POST_DEPLOY kind. + * - `PRE_DEPLOY`: Indicates a job that runs before an app deployment. + * - `POST_DEPLOY`: Indicates a job that runs after an app deployment. + * - `FAILED_DEPLOY`: Indicates a job that runs after a component fails to deploy. * */ public Optional kind() { diff --git a/sdk/nodejs/types/input.ts b/sdk/nodejs/types/input.ts index 57e039f4..374c681e 100644 --- a/sdk/nodejs/types/input.ts +++ b/sdk/nodejs/types/input.ts @@ -8,7 +8,7 @@ import * as enums from "../types/enums"; export interface AppSpec { /** - * Describes an alert policy for the component. + * Describes an alert policy for the app. */ alerts?: pulumi.Input[]>; databases?: pulumi.Input[]>; @@ -21,7 +21,7 @@ export interface AppSpec { */ domains?: pulumi.Input[]>; /** - * Describes an environment variable made available to an app competent. + * Describes an app-wide environment variable made available to all components. */ envs?: pulumi.Input[]>; /** @@ -35,7 +35,7 @@ export interface AppSpec { ingress?: pulumi.Input; jobs?: pulumi.Input[]>; /** - * The name of the component. + * The name of the app. Must be unique across all apps in the same account. */ name: pulumi.Input; /** @@ -53,7 +53,7 @@ export interface AppSpecAlert { */ disabled?: pulumi.Input; /** - * The type of the alert to configure. Component app alert policies can be: `CPU_UTILIZATION`, `MEM_UTILIZATION`, or `RESTART_COUNT`. + * The type of the alert to configure. Top-level app alert policies can be: `DEPLOYMENT_FAILED`, `DEPLOYMENT_LIVE`, `DOMAIN_FAILED`, or `DOMAIN_LIVE`. */ rule: pulumi.Input; } @@ -98,6 +98,9 @@ export interface AppSpecDomainName { name: pulumi.Input; /** * The domain type, which can be one of the following: + * - `DEFAULT`: The default .ondigitalocean.app domain assigned to this app. + * - `PRIMARY`: The primary domain for this app that is displayed as the default in the control panel, used in bindable environment variables, and any other places that reference an app's live URL. Only one domain may be set as primary. + * - `ALIAS`: A non-primary domain. */ type?: pulumi.Input; /** @@ -334,6 +337,8 @@ export interface AppSpecFunctionLogDestinationDatadog { export interface AppSpecFunctionLogDestinationLogtail { /** * Logtail token. + * + * A `database` can contain: */ token: pulumi.Input; } @@ -364,21 +369,36 @@ export interface AppSpecIngress { } export interface AppSpecIngressRule { + /** + * The component to route to. Only one of `component` or `redirect` may be set. + */ component?: pulumi.Input; /** * The [CORS](https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS) policies of the app. */ cors?: pulumi.Input; + /** + * The match configuration for the rule + */ match?: pulumi.Input; + /** + * The redirect configuration for the rule. Only one of `component` or `redirect` may be set. + */ redirect?: pulumi.Input; } export interface AppSpecIngressRuleComponent { /** - * The name of the component. + * The name of the component to route to. */ name?: pulumi.Input; + /** + * An optional boolean flag to preserve the path that is forwarded to the backend service. By default, the HTTP request path will be trimmed from the left when forwarded to the component. + */ preservePathPrefix?: pulumi.Input; + /** + * An optional field that will rewrite the path of the component to be what is specified here. This is mutually exclusive with `preservePathPrefix`. + */ rewrite?: pulumi.Input; } @@ -396,7 +416,7 @@ export interface AppSpecIngressRuleCors { */ allowMethods?: pulumi.Input[]>; /** - * The set of allowed CORS origins. This configures the Access-Control-Allow-Origin header. + * The `Access-Control-Allow-Origin` can be */ allowOrigins?: pulumi.Input; /** @@ -411,32 +431,53 @@ export interface AppSpecIngressRuleCors { export interface AppSpecIngressRuleCorsAllowOrigins { /** - * Exact string match. + * The `Access-Control-Allow-Origin` header will be set to the client's origin only if the client's origin exactly matches the value you provide. */ exact?: pulumi.Input; /** - * Prefix-based match. + * The `Access-Control-Allow-Origin` header will be set to the client's origin if the beginning of the client's origin matches the value you provide. */ prefix?: pulumi.Input; /** - * RE2 style regex-based match. + * The `Access-Control-Allow-Origin` header will be set to the client's origin if the client’s origin matches the regex you provide, in [RE2 style syntax](https://github.com/google/re2/wiki/Syntax). */ regex?: pulumi.Input; } export interface AppSpecIngressRuleMatch { + /** + * The path to match on. + */ path?: pulumi.Input; } export interface AppSpecIngressRuleMatchPath { + /** + * Prefix-based match. + */ prefix?: pulumi.Input; } export interface AppSpecIngressRuleRedirect { + /** + * The authority/host to redirect to. This can be a hostname or IP address. + */ authority?: pulumi.Input; + /** + * The port to redirect to. + */ port?: pulumi.Input; + /** + * The redirect code to use. Supported values are `300`, `301`, `302`, `303`, `304`, `307`, `308`. + */ redirectCode?: pulumi.Input; + /** + * The scheme to redirect to. Supported values are `http` or `https` + */ scheme?: pulumi.Input; + /** + * An optional URI path to redirect to. + */ uri?: pulumi.Input; } @@ -487,6 +528,10 @@ export interface AppSpecJob { instanceSizeSlug?: pulumi.Input; /** * The type of job and when it will be run during the deployment process. It may be one of: + * - `UNSPECIFIED`: Default job type, will auto-complete to POST_DEPLOY kind. + * - `PRE_DEPLOY`: Indicates a job that runs before an app deployment. + * - `POST_DEPLOY`: Indicates a job that runs after an app deployment. + * - `FAILED_DEPLOY`: Indicates a job that runs after a component fails to deploy. */ kind?: pulumi.Input; /** @@ -657,6 +702,8 @@ export interface AppSpecJobLogDestinationDatadog { export interface AppSpecJobLogDestinationLogtail { /** * Logtail token. + * + * A `database` can contain: */ token: pulumi.Input; } @@ -978,6 +1025,8 @@ export interface AppSpecServiceLogDestinationDatadog { export interface AppSpecServiceLogDestinationLogtail { /** * Logtail token. + * + * A `database` can contain: */ token: pulumi.Input; } @@ -1393,6 +1442,8 @@ export interface AppSpecWorkerLogDestinationDatadog { export interface AppSpecWorkerLogDestinationLogtail { /** * Logtail token. + * + * A `database` can contain: */ token: pulumi.Input; } diff --git a/sdk/nodejs/types/output.ts b/sdk/nodejs/types/output.ts index 11b64c25..f8ea01d6 100644 --- a/sdk/nodejs/types/output.ts +++ b/sdk/nodejs/types/output.ts @@ -8,7 +8,7 @@ import * as enums from "../types/enums"; export interface AppSpec { /** - * Describes an alert policy for the component. + * Describes an alert policy for the app. */ alerts?: outputs.AppSpecAlert[]; databases?: outputs.AppSpecDatabase[]; @@ -21,7 +21,7 @@ export interface AppSpec { */ domains: string[]; /** - * Describes an environment variable made available to an app competent. + * Describes an app-wide environment variable made available to all components. */ envs?: outputs.AppSpecEnv[]; /** @@ -35,7 +35,7 @@ export interface AppSpec { ingress: outputs.AppSpecIngress; jobs?: outputs.AppSpecJob[]; /** - * The name of the component. + * The name of the app. Must be unique across all apps in the same account. */ name: string; /** @@ -53,7 +53,7 @@ export interface AppSpecAlert { */ disabled?: boolean; /** - * The type of the alert to configure. Component app alert policies can be: `CPU_UTILIZATION`, `MEM_UTILIZATION`, or `RESTART_COUNT`. + * The type of the alert to configure. Top-level app alert policies can be: `DEPLOYMENT_FAILED`, `DEPLOYMENT_LIVE`, `DOMAIN_FAILED`, or `DOMAIN_LIVE`. */ rule: string; } @@ -98,6 +98,9 @@ export interface AppSpecDomainName { name: string; /** * The domain type, which can be one of the following: + * - `DEFAULT`: The default .ondigitalocean.app domain assigned to this app. + * - `PRIMARY`: The primary domain for this app that is displayed as the default in the control panel, used in bindable environment variables, and any other places that reference an app's live URL. Only one domain may be set as primary. + * - `ALIAS`: A non-primary domain. */ type: string; /** @@ -334,6 +337,8 @@ export interface AppSpecFunctionLogDestinationDatadog { export interface AppSpecFunctionLogDestinationLogtail { /** * Logtail token. + * + * A `database` can contain: */ token: string; } @@ -364,21 +369,36 @@ export interface AppSpecIngress { } export interface AppSpecIngressRule { + /** + * The component to route to. Only one of `component` or `redirect` may be set. + */ component: outputs.AppSpecIngressRuleComponent; /** * The [CORS](https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS) policies of the app. */ cors: outputs.AppSpecIngressRuleCors; + /** + * The match configuration for the rule + */ match: outputs.AppSpecIngressRuleMatch; + /** + * The redirect configuration for the rule. Only one of `component` or `redirect` may be set. + */ redirect?: outputs.AppSpecIngressRuleRedirect; } export interface AppSpecIngressRuleComponent { /** - * The name of the component. + * The name of the component to route to. */ name: string; + /** + * An optional boolean flag to preserve the path that is forwarded to the backend service. By default, the HTTP request path will be trimmed from the left when forwarded to the component. + */ preservePathPrefix: boolean; + /** + * An optional field that will rewrite the path of the component to be what is specified here. This is mutually exclusive with `preservePathPrefix`. + */ rewrite: string; } @@ -396,7 +416,7 @@ export interface AppSpecIngressRuleCors { */ allowMethods?: string[]; /** - * The set of allowed CORS origins. This configures the Access-Control-Allow-Origin header. + * The `Access-Control-Allow-Origin` can be */ allowOrigins?: outputs.AppSpecIngressRuleCorsAllowOrigins; /** @@ -411,32 +431,53 @@ export interface AppSpecIngressRuleCors { export interface AppSpecIngressRuleCorsAllowOrigins { /** - * Exact string match. + * The `Access-Control-Allow-Origin` header will be set to the client's origin only if the client's origin exactly matches the value you provide. */ exact?: string; /** - * Prefix-based match. + * The `Access-Control-Allow-Origin` header will be set to the client's origin if the beginning of the client's origin matches the value you provide. */ prefix?: string; /** - * RE2 style regex-based match. + * The `Access-Control-Allow-Origin` header will be set to the client's origin if the client’s origin matches the regex you provide, in [RE2 style syntax](https://github.com/google/re2/wiki/Syntax). */ regex?: string; } export interface AppSpecIngressRuleMatch { + /** + * The path to match on. + */ path: outputs.AppSpecIngressRuleMatchPath; } export interface AppSpecIngressRuleMatchPath { + /** + * Prefix-based match. + */ prefix: string; } export interface AppSpecIngressRuleRedirect { + /** + * The authority/host to redirect to. This can be a hostname or IP address. + */ authority?: string; + /** + * The port to redirect to. + */ port?: number; + /** + * The redirect code to use. Supported values are `300`, `301`, `302`, `303`, `304`, `307`, `308`. + */ redirectCode?: number; + /** + * The scheme to redirect to. Supported values are `http` or `https` + */ scheme?: string; + /** + * An optional URI path to redirect to. + */ uri?: string; } @@ -487,6 +528,10 @@ export interface AppSpecJob { instanceSizeSlug?: string; /** * The type of job and when it will be run during the deployment process. It may be one of: + * - `UNSPECIFIED`: Default job type, will auto-complete to POST_DEPLOY kind. + * - `PRE_DEPLOY`: Indicates a job that runs before an app deployment. + * - `POST_DEPLOY`: Indicates a job that runs after an app deployment. + * - `FAILED_DEPLOY`: Indicates a job that runs after a component fails to deploy. */ kind?: string; /** @@ -657,6 +702,8 @@ export interface AppSpecJobLogDestinationDatadog { export interface AppSpecJobLogDestinationLogtail { /** * Logtail token. + * + * A `database` can contain: */ token: string; } @@ -978,6 +1025,8 @@ export interface AppSpecServiceLogDestinationDatadog { export interface AppSpecServiceLogDestinationLogtail { /** * Logtail token. + * + * A `database` can contain: */ token: string; } @@ -1393,6 +1442,8 @@ export interface AppSpecWorkerLogDestinationDatadog { export interface AppSpecWorkerLogDestinationLogtail { /** * Logtail token. + * + * A `database` can contain: */ token: string; } @@ -2152,6 +2203,10 @@ export interface GetAppSpecJob { instanceSizeSlug?: string; /** * The type of job and when it will be run during the deployment process. It may be one of: + * - `UNSPECIFIED`: Default job type, will auto-complete to POST_DEPLOY kind. + * - `PRE_DEPLOY`: Indicates a job that runs before an app deployment. + * - `POST_DEPLOY`: Indicates a job that runs after an app deployment. + * - `FAILED_DEPLOY`: Indicates a job that runs after a component fails to deploy. */ kind?: string; /** diff --git a/sdk/python/pulumi_digitalocean/_inputs.py b/sdk/python/pulumi_digitalocean/_inputs.py index 77f31608..f2c8d0a1 100644 --- a/sdk/python/pulumi_digitalocean/_inputs.py +++ b/sdk/python/pulumi_digitalocean/_inputs.py @@ -162,10 +162,10 @@ def __init__(__self__, *, static_sites: Optional[pulumi.Input[Sequence[pulumi.Input['AppSpecStaticSiteArgs']]]] = None, workers: Optional[pulumi.Input[Sequence[pulumi.Input['AppSpecWorkerArgs']]]] = None): """ - :param pulumi.Input[str] name: The name of the component. - :param pulumi.Input[Sequence[pulumi.Input['AppSpecAlertArgs']]] alerts: Describes an alert policy for the component. + :param pulumi.Input[str] name: The name of the app. Must be unique across all apps in the same account. + :param pulumi.Input[Sequence[pulumi.Input['AppSpecAlertArgs']]] alerts: Describes an alert policy for the app. :param pulumi.Input[Sequence[pulumi.Input['AppSpecDomainNameArgs']]] domain_names: Describes a domain where the application will be made available. - :param pulumi.Input[Sequence[pulumi.Input['AppSpecEnvArgs']]] envs: Describes an environment variable made available to an app competent. + :param pulumi.Input[Sequence[pulumi.Input['AppSpecEnvArgs']]] envs: Describes an app-wide environment variable made available to all components. :param pulumi.Input[Sequence[pulumi.Input[str]]] features: A list of the features applied to the app. The default buildpack can be overridden here. List of available buildpacks can be found using the [doctl CLI](https://docs.digitalocean.com/reference/doctl/reference/apps/list-buildpacks/) :param pulumi.Input['AppSpecIngressArgs'] ingress: Specification for component routing, rewrites, and redirects. :param pulumi.Input[str] region: The slug for the DigitalOcean data center region hosting the app. @@ -205,7 +205,7 @@ def __init__(__self__, *, @pulumi.getter def name(self) -> pulumi.Input[str]: """ - The name of the component. + The name of the app. Must be unique across all apps in the same account. """ return pulumi.get(self, "name") @@ -217,7 +217,7 @@ def name(self, value: pulumi.Input[str]): @pulumi.getter def alerts(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['AppSpecAlertArgs']]]]: """ - Describes an alert policy for the component. + Describes an alert policy for the app. """ return pulumi.get(self, "alerts") @@ -262,7 +262,7 @@ def domains(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]): @pulumi.getter def envs(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['AppSpecEnvArgs']]]]: """ - Describes an environment variable made available to an app competent. + Describes an app-wide environment variable made available to all components. """ return pulumi.get(self, "envs") @@ -358,7 +358,7 @@ def __init__(__self__, *, rule: pulumi.Input[str], disabled: Optional[pulumi.Input[bool]] = None): """ - :param pulumi.Input[str] rule: The type of the alert to configure. Component app alert policies can be: `CPU_UTILIZATION`, `MEM_UTILIZATION`, or `RESTART_COUNT`. + :param pulumi.Input[str] rule: The type of the alert to configure. Top-level app alert policies can be: `DEPLOYMENT_FAILED`, `DEPLOYMENT_LIVE`, `DOMAIN_FAILED`, or `DOMAIN_LIVE`. :param pulumi.Input[bool] disabled: Determines whether or not the alert is disabled (default: `false`). """ pulumi.set(__self__, "rule", rule) @@ -369,7 +369,7 @@ def __init__(__self__, *, @pulumi.getter def rule(self) -> pulumi.Input[str]: """ - The type of the alert to configure. Component app alert policies can be: `CPU_UTILIZATION`, `MEM_UTILIZATION`, or `RESTART_COUNT`. + The type of the alert to configure. Top-level app alert policies can be: `DEPLOYMENT_FAILED`, `DEPLOYMENT_LIVE`, `DOMAIN_FAILED`, or `DOMAIN_LIVE`. """ return pulumi.get(self, "rule") @@ -523,6 +523,9 @@ def __init__(__self__, *, """ :param pulumi.Input[str] name: The hostname for the domain. :param pulumi.Input[str] type: The domain type, which can be one of the following: + - `DEFAULT`: The default .ondigitalocean.app domain assigned to this app. + - `PRIMARY`: The primary domain for this app that is displayed as the default in the control panel, used in bindable environment variables, and any other places that reference an app's live URL. Only one domain may be set as primary. + - `ALIAS`: A non-primary domain. :param pulumi.Input[bool] wildcard: A boolean indicating whether the domain includes all sub-domains, in addition to the given domain. :param pulumi.Input[str] zone: If the domain uses DigitalOcean DNS and you would like App Platform to automatically manage it for you, set this to the name of the domain on your account. """ @@ -551,6 +554,9 @@ def name(self, value: pulumi.Input[str]): def type(self) -> Optional[pulumi.Input[str]]: """ The domain type, which can be one of the following: + - `DEFAULT`: The default .ondigitalocean.app domain assigned to this app. + - `PRIMARY`: The primary domain for this app that is displayed as the default in the control panel, used in bindable environment variables, and any other places that reference an app's live URL. Only one domain may be set as primary. + - `ALIAS`: A non-primary domain. """ return pulumi.get(self, "type") @@ -1407,6 +1413,8 @@ def __init__(__self__, *, token: pulumi.Input[str]): """ :param pulumi.Input[str] token: Logtail token. + + A `database` can contain: """ pulumi.set(__self__, "token", token) @@ -1415,6 +1423,8 @@ def __init__(__self__, *, def token(self) -> pulumi.Input[str]: """ Logtail token. + + A `database` can contain: """ return pulumi.get(self, "token") @@ -1515,7 +1525,10 @@ def __init__(__self__, *, match: Optional[pulumi.Input['AppSpecIngressRuleMatchArgs']] = None, redirect: Optional[pulumi.Input['AppSpecIngressRuleRedirectArgs']] = None): """ + :param pulumi.Input['AppSpecIngressRuleComponentArgs'] component: The component to route to. Only one of `component` or `redirect` may be set. :param pulumi.Input['AppSpecIngressRuleCorsArgs'] cors: The [CORS](https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS) policies of the app. + :param pulumi.Input['AppSpecIngressRuleMatchArgs'] match: The match configuration for the rule + :param pulumi.Input['AppSpecIngressRuleRedirectArgs'] redirect: The redirect configuration for the rule. Only one of `component` or `redirect` may be set. """ if component is not None: pulumi.set(__self__, "component", component) @@ -1529,6 +1542,9 @@ def __init__(__self__, *, @property @pulumi.getter def component(self) -> Optional[pulumi.Input['AppSpecIngressRuleComponentArgs']]: + """ + The component to route to. Only one of `component` or `redirect` may be set. + """ return pulumi.get(self, "component") @component.setter @@ -1550,6 +1566,9 @@ def cors(self, value: Optional[pulumi.Input['AppSpecIngressRuleCorsArgs']]): @property @pulumi.getter def match(self) -> Optional[pulumi.Input['AppSpecIngressRuleMatchArgs']]: + """ + The match configuration for the rule + """ return pulumi.get(self, "match") @match.setter @@ -1559,6 +1578,9 @@ def match(self, value: Optional[pulumi.Input['AppSpecIngressRuleMatchArgs']]): @property @pulumi.getter def redirect(self) -> Optional[pulumi.Input['AppSpecIngressRuleRedirectArgs']]: + """ + The redirect configuration for the rule. Only one of `component` or `redirect` may be set. + """ return pulumi.get(self, "redirect") @redirect.setter @@ -1573,7 +1595,9 @@ def __init__(__self__, *, preserve_path_prefix: Optional[pulumi.Input[bool]] = None, rewrite: Optional[pulumi.Input[str]] = None): """ - :param pulumi.Input[str] name: The name of the component. + :param pulumi.Input[str] name: The name of the component to route to. + :param pulumi.Input[bool] preserve_path_prefix: An optional boolean flag to preserve the path that is forwarded to the backend service. By default, the HTTP request path will be trimmed from the left when forwarded to the component. + :param pulumi.Input[str] rewrite: An optional field that will rewrite the path of the component to be what is specified here. This is mutually exclusive with `preserve_path_prefix`. """ if name is not None: pulumi.set(__self__, "name", name) @@ -1586,7 +1610,7 @@ def __init__(__self__, *, @pulumi.getter def name(self) -> Optional[pulumi.Input[str]]: """ - The name of the component. + The name of the component to route to. """ return pulumi.get(self, "name") @@ -1597,6 +1621,9 @@ def name(self, value: Optional[pulumi.Input[str]]): @property @pulumi.getter(name="preservePathPrefix") def preserve_path_prefix(self) -> Optional[pulumi.Input[bool]]: + """ + An optional boolean flag to preserve the path that is forwarded to the backend service. By default, the HTTP request path will be trimmed from the left when forwarded to the component. + """ return pulumi.get(self, "preserve_path_prefix") @preserve_path_prefix.setter @@ -1606,6 +1633,9 @@ def preserve_path_prefix(self, value: Optional[pulumi.Input[bool]]): @property @pulumi.getter def rewrite(self) -> Optional[pulumi.Input[str]]: + """ + An optional field that will rewrite the path of the component to be what is specified here. This is mutually exclusive with `preserve_path_prefix`. + """ return pulumi.get(self, "rewrite") @rewrite.setter @@ -1626,7 +1656,7 @@ def __init__(__self__, *, :param pulumi.Input[bool] allow_credentials: Whether browsers should expose the response to the client-side JavaScript code when the request’s credentials mode is `include`. This configures the Access-Control-Allow-Credentials header. :param pulumi.Input[Sequence[pulumi.Input[str]]] allow_headers: The set of allowed HTTP request headers. This configures the Access-Control-Allow-Headers header. :param pulumi.Input[Sequence[pulumi.Input[str]]] allow_methods: The set of allowed HTTP methods. This configures the Access-Control-Allow-Methods header. - :param pulumi.Input['AppSpecIngressRuleCorsAllowOriginsArgs'] allow_origins: The set of allowed CORS origins. This configures the Access-Control-Allow-Origin header. + :param pulumi.Input['AppSpecIngressRuleCorsAllowOriginsArgs'] allow_origins: The `Access-Control-Allow-Origin` can be :param pulumi.Input[Sequence[pulumi.Input[str]]] expose_headers: The set of HTTP response headers that browsers are allowed to access. This configures the Access-Control-Expose-Headers header. :param pulumi.Input[str] max_age: An optional duration specifying how long browsers can cache the results of a preflight request. This configures the Access-Control-Max-Age header. Example: `5h30m`. """ @@ -1683,7 +1713,7 @@ def allow_methods(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]] @pulumi.getter(name="allowOrigins") def allow_origins(self) -> Optional[pulumi.Input['AppSpecIngressRuleCorsAllowOriginsArgs']]: """ - The set of allowed CORS origins. This configures the Access-Control-Allow-Origin header. + The `Access-Control-Allow-Origin` can be """ return pulumi.get(self, "allow_origins") @@ -1723,9 +1753,9 @@ def __init__(__self__, *, prefix: Optional[pulumi.Input[str]] = None, regex: Optional[pulumi.Input[str]] = None): """ - :param pulumi.Input[str] exact: Exact string match. - :param pulumi.Input[str] prefix: Prefix-based match. - :param pulumi.Input[str] regex: RE2 style regex-based match. + :param pulumi.Input[str] exact: The `Access-Control-Allow-Origin` header will be set to the client's origin only if the client's origin exactly matches the value you provide. + :param pulumi.Input[str] prefix: The `Access-Control-Allow-Origin` header will be set to the client's origin if the beginning of the client's origin matches the value you provide. + :param pulumi.Input[str] regex: The `Access-Control-Allow-Origin` header will be set to the client's origin if the client’s origin matches the regex you provide, in [RE2 style syntax](https://github.com/google/re2/wiki/Syntax). """ if exact is not None: pulumi.set(__self__, "exact", exact) @@ -1738,7 +1768,7 @@ def __init__(__self__, *, @pulumi.getter def exact(self) -> Optional[pulumi.Input[str]]: """ - Exact string match. + The `Access-Control-Allow-Origin` header will be set to the client's origin only if the client's origin exactly matches the value you provide. """ return pulumi.get(self, "exact") @@ -1750,7 +1780,7 @@ def exact(self, value: Optional[pulumi.Input[str]]): @pulumi.getter def prefix(self) -> Optional[pulumi.Input[str]]: """ - Prefix-based match. + The `Access-Control-Allow-Origin` header will be set to the client's origin if the beginning of the client's origin matches the value you provide. """ return pulumi.get(self, "prefix") @@ -1762,7 +1792,7 @@ def prefix(self, value: Optional[pulumi.Input[str]]): @pulumi.getter def regex(self) -> Optional[pulumi.Input[str]]: """ - RE2 style regex-based match. + The `Access-Control-Allow-Origin` header will be set to the client's origin if the client’s origin matches the regex you provide, in [RE2 style syntax](https://github.com/google/re2/wiki/Syntax). """ return pulumi.get(self, "regex") @@ -1775,12 +1805,18 @@ def regex(self, value: Optional[pulumi.Input[str]]): class AppSpecIngressRuleMatchArgs: def __init__(__self__, *, path: Optional[pulumi.Input['AppSpecIngressRuleMatchPathArgs']] = None): + """ + :param pulumi.Input['AppSpecIngressRuleMatchPathArgs'] path: The path to match on. + """ if path is not None: pulumi.set(__self__, "path", path) @property @pulumi.getter def path(self) -> Optional[pulumi.Input['AppSpecIngressRuleMatchPathArgs']]: + """ + The path to match on. + """ return pulumi.get(self, "path") @path.setter @@ -1792,12 +1828,18 @@ def path(self, value: Optional[pulumi.Input['AppSpecIngressRuleMatchPathArgs']]) class AppSpecIngressRuleMatchPathArgs: def __init__(__self__, *, prefix: Optional[pulumi.Input[str]] = None): + """ + :param pulumi.Input[str] prefix: Prefix-based match. + """ if prefix is not None: pulumi.set(__self__, "prefix", prefix) @property @pulumi.getter def prefix(self) -> Optional[pulumi.Input[str]]: + """ + Prefix-based match. + """ return pulumi.get(self, "prefix") @prefix.setter @@ -1813,6 +1855,13 @@ def __init__(__self__, *, redirect_code: Optional[pulumi.Input[int]] = None, scheme: Optional[pulumi.Input[str]] = None, uri: Optional[pulumi.Input[str]] = None): + """ + :param pulumi.Input[str] authority: The authority/host to redirect to. This can be a hostname or IP address. + :param pulumi.Input[int] port: The port to redirect to. + :param pulumi.Input[int] redirect_code: The redirect code to use. Supported values are `300`, `301`, `302`, `303`, `304`, `307`, `308`. + :param pulumi.Input[str] scheme: The scheme to redirect to. Supported values are `http` or `https` + :param pulumi.Input[str] uri: An optional URI path to redirect to. + """ if authority is not None: pulumi.set(__self__, "authority", authority) if port is not None: @@ -1827,6 +1876,9 @@ def __init__(__self__, *, @property @pulumi.getter def authority(self) -> Optional[pulumi.Input[str]]: + """ + The authority/host to redirect to. This can be a hostname or IP address. + """ return pulumi.get(self, "authority") @authority.setter @@ -1836,6 +1888,9 @@ def authority(self, value: Optional[pulumi.Input[str]]): @property @pulumi.getter def port(self) -> Optional[pulumi.Input[int]]: + """ + The port to redirect to. + """ return pulumi.get(self, "port") @port.setter @@ -1845,6 +1900,9 @@ def port(self, value: Optional[pulumi.Input[int]]): @property @pulumi.getter(name="redirectCode") def redirect_code(self) -> Optional[pulumi.Input[int]]: + """ + The redirect code to use. Supported values are `300`, `301`, `302`, `303`, `304`, `307`, `308`. + """ return pulumi.get(self, "redirect_code") @redirect_code.setter @@ -1854,6 +1912,9 @@ def redirect_code(self, value: Optional[pulumi.Input[int]]): @property @pulumi.getter def scheme(self) -> Optional[pulumi.Input[str]]: + """ + The scheme to redirect to. Supported values are `http` or `https` + """ return pulumi.get(self, "scheme") @scheme.setter @@ -1863,6 +1924,9 @@ def scheme(self, value: Optional[pulumi.Input[str]]): @property @pulumi.getter def uri(self) -> Optional[pulumi.Input[str]]: + """ + An optional URI path to redirect to. + """ return pulumi.get(self, "uri") @uri.setter @@ -1903,6 +1967,10 @@ def __init__(__self__, *, :param pulumi.Input[int] instance_count: The amount of instances that this component should be scaled to. :param pulumi.Input[str] instance_size_slug: The instance size to use for this component. This determines the plan (basic or professional) and the available CPU and memory. The list of available instance sizes can be [found with the API](https://docs.digitalocean.com/reference/api/api-reference/#operation/list_instance_sizes) or using the [doctl CLI](https://docs.digitalocean.com/reference/doctl/) (`doctl apps tier instance-size list`). Default: `basic-xxs` :param pulumi.Input[str] kind: The type of job and when it will be run during the deployment process. It may be one of: + - `UNSPECIFIED`: Default job type, will auto-complete to POST_DEPLOY kind. + - `PRE_DEPLOY`: Indicates a job that runs before an app deployment. + - `POST_DEPLOY`: Indicates a job that runs after an app deployment. + - `FAILED_DEPLOY`: Indicates a job that runs after a component fails to deploy. :param pulumi.Input[Sequence[pulumi.Input['AppSpecJobLogDestinationArgs']]] log_destinations: Describes a log forwarding destination. :param pulumi.Input[str] run_command: An optional run command to override the component's default. :param pulumi.Input[str] source_dir: An optional path to the working directory to use for the build. @@ -2088,6 +2156,10 @@ def instance_size_slug(self, value: Optional[pulumi.Input[str]]): def kind(self) -> Optional[pulumi.Input[str]]: """ The type of job and when it will be run during the deployment process. It may be one of: + - `UNSPECIFIED`: Default job type, will auto-complete to POST_DEPLOY kind. + - `PRE_DEPLOY`: Indicates a job that runs before an app deployment. + - `POST_DEPLOY`: Indicates a job that runs after an app deployment. + - `FAILED_DEPLOY`: Indicates a job that runs after a component fails to deploy. """ return pulumi.get(self, "kind") @@ -2673,6 +2745,8 @@ def __init__(__self__, *, token: pulumi.Input[str]): """ :param pulumi.Input[str] token: Logtail token. + + A `database` can contain: """ pulumi.set(__self__, "token", token) @@ -2681,6 +2755,8 @@ def __init__(__self__, *, def token(self) -> pulumi.Input[str]: """ Logtail token. + + A `database` can contain: """ return pulumi.get(self, "token") @@ -3867,6 +3943,8 @@ def __init__(__self__, *, token: pulumi.Input[str]): """ :param pulumi.Input[str] token: Logtail token. + + A `database` can contain: """ pulumi.set(__self__, "token", token) @@ -3875,6 +3953,8 @@ def __init__(__self__, *, def token(self) -> pulumi.Input[str]: """ Logtail token. + + A `database` can contain: """ return pulumi.get(self, "token") @@ -5406,6 +5486,8 @@ def __init__(__self__, *, token: pulumi.Input[str]): """ :param pulumi.Input[str] token: Logtail token. + + A `database` can contain: """ pulumi.set(__self__, "token", token) @@ -5414,6 +5496,8 @@ def __init__(__self__, *, def token(self) -> pulumi.Input[str]: """ Logtail token. + + A `database` can contain: """ return pulumi.get(self, "token") diff --git a/sdk/python/pulumi_digitalocean/outputs.py b/sdk/python/pulumi_digitalocean/outputs.py index 84572dfc..e4cb53fc 100644 --- a/sdk/python/pulumi_digitalocean/outputs.py +++ b/sdk/python/pulumi_digitalocean/outputs.py @@ -282,10 +282,10 @@ def __init__(__self__, *, static_sites: Optional[Sequence['outputs.AppSpecStaticSite']] = None, workers: Optional[Sequence['outputs.AppSpecWorker']] = None): """ - :param str name: The name of the component. - :param Sequence['AppSpecAlertArgs'] alerts: Describes an alert policy for the component. + :param str name: The name of the app. Must be unique across all apps in the same account. + :param Sequence['AppSpecAlertArgs'] alerts: Describes an alert policy for the app. :param Sequence['AppSpecDomainNameArgs'] domain_names: Describes a domain where the application will be made available. - :param Sequence['AppSpecEnvArgs'] envs: Describes an environment variable made available to an app competent. + :param Sequence['AppSpecEnvArgs'] envs: Describes an app-wide environment variable made available to all components. :param Sequence[str] features: A list of the features applied to the app. The default buildpack can be overridden here. List of available buildpacks can be found using the [doctl CLI](https://docs.digitalocean.com/reference/doctl/reference/apps/list-buildpacks/) :param 'AppSpecIngressArgs' ingress: Specification for component routing, rewrites, and redirects. :param str region: The slug for the DigitalOcean data center region hosting the app. @@ -322,7 +322,7 @@ def __init__(__self__, *, @pulumi.getter def name(self) -> str: """ - The name of the component. + The name of the app. Must be unique across all apps in the same account. """ return pulumi.get(self, "name") @@ -330,7 +330,7 @@ def name(self) -> str: @pulumi.getter def alerts(self) -> Optional[Sequence['outputs.AppSpecAlert']]: """ - Describes an alert policy for the component. + Describes an alert policy for the app. """ return pulumi.get(self, "alerts") @@ -359,7 +359,7 @@ def domains(self) -> Optional[Sequence[str]]: @pulumi.getter def envs(self) -> Optional[Sequence['outputs.AppSpecEnv']]: """ - Describes an environment variable made available to an app competent. + Describes an app-wide environment variable made available to all components. """ return pulumi.get(self, "envs") @@ -419,7 +419,7 @@ def __init__(__self__, *, rule: str, disabled: Optional[bool] = None): """ - :param str rule: The type of the alert to configure. Component app alert policies can be: `CPU_UTILIZATION`, `MEM_UTILIZATION`, or `RESTART_COUNT`. + :param str rule: The type of the alert to configure. Top-level app alert policies can be: `DEPLOYMENT_FAILED`, `DEPLOYMENT_LIVE`, `DOMAIN_FAILED`, or `DOMAIN_LIVE`. :param bool disabled: Determines whether or not the alert is disabled (default: `false`). """ pulumi.set(__self__, "rule", rule) @@ -430,7 +430,7 @@ def __init__(__self__, *, @pulumi.getter def rule(self) -> str: """ - The type of the alert to configure. Component app alert policies can be: `CPU_UTILIZATION`, `MEM_UTILIZATION`, or `RESTART_COUNT`. + The type of the alert to configure. Top-level app alert policies can be: `DEPLOYMENT_FAILED`, `DEPLOYMENT_LIVE`, `DOMAIN_FAILED`, or `DOMAIN_LIVE`. """ return pulumi.get(self, "rule") @@ -569,6 +569,9 @@ def __init__(__self__, *, """ :param str name: The hostname for the domain. :param str type: The domain type, which can be one of the following: + - `DEFAULT`: The default .ondigitalocean.app domain assigned to this app. + - `PRIMARY`: The primary domain for this app that is displayed as the default in the control panel, used in bindable environment variables, and any other places that reference an app's live URL. Only one domain may be set as primary. + - `ALIAS`: A non-primary domain. :param bool wildcard: A boolean indicating whether the domain includes all sub-domains, in addition to the given domain. :param str zone: If the domain uses DigitalOcean DNS and you would like App Platform to automatically manage it for you, set this to the name of the domain on your account. """ @@ -593,6 +596,9 @@ def name(self) -> str: def type(self) -> Optional[str]: """ The domain type, which can be one of the following: + - `DEFAULT`: The default .ondigitalocean.app domain assigned to this app. + - `PRIMARY`: The primary domain for this app that is displayed as the default in the control panel, used in bindable environment variables, and any other places that reference an app's live URL. Only one domain may be set as primary. + - `ALIAS`: A non-primary domain. """ return pulumi.get(self, "type") @@ -1361,6 +1367,8 @@ def __init__(__self__, *, token: str): """ :param str token: Logtail token. + + A `database` can contain: """ pulumi.set(__self__, "token", token) @@ -1369,6 +1377,8 @@ def __init__(__self__, *, def token(self) -> str: """ Logtail token. + + A `database` can contain: """ return pulumi.get(self, "token") @@ -1466,7 +1476,10 @@ def __init__(__self__, *, match: Optional['outputs.AppSpecIngressRuleMatch'] = None, redirect: Optional['outputs.AppSpecIngressRuleRedirect'] = None): """ + :param 'AppSpecIngressRuleComponentArgs' component: The component to route to. Only one of `component` or `redirect` may be set. :param 'AppSpecIngressRuleCorsArgs' cors: The [CORS](https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS) policies of the app. + :param 'AppSpecIngressRuleMatchArgs' match: The match configuration for the rule + :param 'AppSpecIngressRuleRedirectArgs' redirect: The redirect configuration for the rule. Only one of `component` or `redirect` may be set. """ if component is not None: pulumi.set(__self__, "component", component) @@ -1480,6 +1493,9 @@ def __init__(__self__, *, @property @pulumi.getter def component(self) -> Optional['outputs.AppSpecIngressRuleComponent']: + """ + The component to route to. Only one of `component` or `redirect` may be set. + """ return pulumi.get(self, "component") @property @@ -1493,11 +1509,17 @@ def cors(self) -> Optional['outputs.AppSpecIngressRuleCors']: @property @pulumi.getter def match(self) -> Optional['outputs.AppSpecIngressRuleMatch']: + """ + The match configuration for the rule + """ return pulumi.get(self, "match") @property @pulumi.getter def redirect(self) -> Optional['outputs.AppSpecIngressRuleRedirect']: + """ + The redirect configuration for the rule. Only one of `component` or `redirect` may be set. + """ return pulumi.get(self, "redirect") @@ -1525,7 +1547,9 @@ def __init__(__self__, *, preserve_path_prefix: Optional[bool] = None, rewrite: Optional[str] = None): """ - :param str name: The name of the component. + :param str name: The name of the component to route to. + :param bool preserve_path_prefix: An optional boolean flag to preserve the path that is forwarded to the backend service. By default, the HTTP request path will be trimmed from the left when forwarded to the component. + :param str rewrite: An optional field that will rewrite the path of the component to be what is specified here. This is mutually exclusive with `preserve_path_prefix`. """ if name is not None: pulumi.set(__self__, "name", name) @@ -1538,18 +1562,24 @@ def __init__(__self__, *, @pulumi.getter def name(self) -> Optional[str]: """ - The name of the component. + The name of the component to route to. """ return pulumi.get(self, "name") @property @pulumi.getter(name="preservePathPrefix") def preserve_path_prefix(self) -> Optional[bool]: + """ + An optional boolean flag to preserve the path that is forwarded to the backend service. By default, the HTTP request path will be trimmed from the left when forwarded to the component. + """ return pulumi.get(self, "preserve_path_prefix") @property @pulumi.getter def rewrite(self) -> Optional[str]: + """ + An optional field that will rewrite the path of the component to be what is specified here. This is mutually exclusive with `preserve_path_prefix`. + """ return pulumi.get(self, "rewrite") @@ -1593,7 +1623,7 @@ def __init__(__self__, *, :param bool allow_credentials: Whether browsers should expose the response to the client-side JavaScript code when the request’s credentials mode is `include`. This configures the Access-Control-Allow-Credentials header. :param Sequence[str] allow_headers: The set of allowed HTTP request headers. This configures the Access-Control-Allow-Headers header. :param Sequence[str] allow_methods: The set of allowed HTTP methods. This configures the Access-Control-Allow-Methods header. - :param 'AppSpecIngressRuleCorsAllowOriginsArgs' allow_origins: The set of allowed CORS origins. This configures the Access-Control-Allow-Origin header. + :param 'AppSpecIngressRuleCorsAllowOriginsArgs' allow_origins: The `Access-Control-Allow-Origin` can be :param Sequence[str] expose_headers: The set of HTTP response headers that browsers are allowed to access. This configures the Access-Control-Expose-Headers header. :param str max_age: An optional duration specifying how long browsers can cache the results of a preflight request. This configures the Access-Control-Max-Age header. Example: `5h30m`. """ @@ -1638,7 +1668,7 @@ def allow_methods(self) -> Optional[Sequence[str]]: @pulumi.getter(name="allowOrigins") def allow_origins(self) -> Optional['outputs.AppSpecIngressRuleCorsAllowOrigins']: """ - The set of allowed CORS origins. This configures the Access-Control-Allow-Origin header. + The `Access-Control-Allow-Origin` can be """ return pulumi.get(self, "allow_origins") @@ -1666,9 +1696,9 @@ def __init__(__self__, *, prefix: Optional[str] = None, regex: Optional[str] = None): """ - :param str exact: Exact string match. - :param str prefix: Prefix-based match. - :param str regex: RE2 style regex-based match. + :param str exact: The `Access-Control-Allow-Origin` header will be set to the client's origin only if the client's origin exactly matches the value you provide. + :param str prefix: The `Access-Control-Allow-Origin` header will be set to the client's origin if the beginning of the client's origin matches the value you provide. + :param str regex: The `Access-Control-Allow-Origin` header will be set to the client's origin if the client’s origin matches the regex you provide, in [RE2 style syntax](https://github.com/google/re2/wiki/Syntax). """ if exact is not None: pulumi.set(__self__, "exact", exact) @@ -1681,7 +1711,7 @@ def __init__(__self__, *, @pulumi.getter def exact(self) -> Optional[str]: """ - Exact string match. + The `Access-Control-Allow-Origin` header will be set to the client's origin only if the client's origin exactly matches the value you provide. """ return pulumi.get(self, "exact") @@ -1689,7 +1719,7 @@ def exact(self) -> Optional[str]: @pulumi.getter def prefix(self) -> Optional[str]: """ - Prefix-based match. + The `Access-Control-Allow-Origin` header will be set to the client's origin if the beginning of the client's origin matches the value you provide. """ return pulumi.get(self, "prefix") @@ -1697,7 +1727,7 @@ def prefix(self) -> Optional[str]: @pulumi.getter def regex(self) -> Optional[str]: """ - RE2 style regex-based match. + The `Access-Control-Allow-Origin` header will be set to the client's origin if the client’s origin matches the regex you provide, in [RE2 style syntax](https://github.com/google/re2/wiki/Syntax). """ return pulumi.get(self, "regex") @@ -1706,12 +1736,18 @@ def regex(self) -> Optional[str]: class AppSpecIngressRuleMatch(dict): def __init__(__self__, *, path: Optional['outputs.AppSpecIngressRuleMatchPath'] = None): + """ + :param 'AppSpecIngressRuleMatchPathArgs' path: The path to match on. + """ if path is not None: pulumi.set(__self__, "path", path) @property @pulumi.getter def path(self) -> Optional['outputs.AppSpecIngressRuleMatchPath']: + """ + The path to match on. + """ return pulumi.get(self, "path") @@ -1719,12 +1755,18 @@ def path(self) -> Optional['outputs.AppSpecIngressRuleMatchPath']: class AppSpecIngressRuleMatchPath(dict): def __init__(__self__, *, prefix: Optional[str] = None): + """ + :param str prefix: Prefix-based match. + """ if prefix is not None: pulumi.set(__self__, "prefix", prefix) @property @pulumi.getter def prefix(self) -> Optional[str]: + """ + Prefix-based match. + """ return pulumi.get(self, "prefix") @@ -1753,6 +1795,13 @@ def __init__(__self__, *, redirect_code: Optional[int] = None, scheme: Optional[str] = None, uri: Optional[str] = None): + """ + :param str authority: The authority/host to redirect to. This can be a hostname or IP address. + :param int port: The port to redirect to. + :param int redirect_code: The redirect code to use. Supported values are `300`, `301`, `302`, `303`, `304`, `307`, `308`. + :param str scheme: The scheme to redirect to. Supported values are `http` or `https` + :param str uri: An optional URI path to redirect to. + """ if authority is not None: pulumi.set(__self__, "authority", authority) if port is not None: @@ -1767,26 +1816,41 @@ def __init__(__self__, *, @property @pulumi.getter def authority(self) -> Optional[str]: + """ + The authority/host to redirect to. This can be a hostname or IP address. + """ return pulumi.get(self, "authority") @property @pulumi.getter def port(self) -> Optional[int]: + """ + The port to redirect to. + """ return pulumi.get(self, "port") @property @pulumi.getter(name="redirectCode") def redirect_code(self) -> Optional[int]: + """ + The redirect code to use. Supported values are `300`, `301`, `302`, `303`, `304`, `307`, `308`. + """ return pulumi.get(self, "redirect_code") @property @pulumi.getter def scheme(self) -> Optional[str]: + """ + The scheme to redirect to. Supported values are `http` or `https` + """ return pulumi.get(self, "scheme") @property @pulumi.getter def uri(self) -> Optional[str]: + """ + An optional URI path to redirect to. + """ return pulumi.get(self, "uri") @@ -1854,6 +1918,10 @@ def __init__(__self__, *, :param int instance_count: The amount of instances that this component should be scaled to. :param str instance_size_slug: The instance size to use for this component. This determines the plan (basic or professional) and the available CPU and memory. The list of available instance sizes can be [found with the API](https://docs.digitalocean.com/reference/api/api-reference/#operation/list_instance_sizes) or using the [doctl CLI](https://docs.digitalocean.com/reference/doctl/) (`doctl apps tier instance-size list`). Default: `basic-xxs` :param str kind: The type of job and when it will be run during the deployment process. It may be one of: + - `UNSPECIFIED`: Default job type, will auto-complete to POST_DEPLOY kind. + - `PRE_DEPLOY`: Indicates a job that runs before an app deployment. + - `POST_DEPLOY`: Indicates a job that runs after an app deployment. + - `FAILED_DEPLOY`: Indicates a job that runs after a component fails to deploy. :param Sequence['AppSpecJobLogDestinationArgs'] log_destinations: Describes a log forwarding destination. :param str run_command: An optional run command to override the component's default. :param str source_dir: An optional path to the working directory to use for the build. @@ -1991,6 +2059,10 @@ def instance_size_slug(self) -> Optional[str]: def kind(self) -> Optional[str]: """ The type of job and when it will be run during the deployment process. It may be one of: + - `UNSPECIFIED`: Default job type, will auto-complete to POST_DEPLOY kind. + - `PRE_DEPLOY`: Indicates a job that runs before an app deployment. + - `POST_DEPLOY`: Indicates a job that runs after an app deployment. + - `FAILED_DEPLOY`: Indicates a job that runs after a component fails to deploy. """ return pulumi.get(self, "kind") @@ -2529,6 +2601,8 @@ def __init__(__self__, *, token: str): """ :param str token: Logtail token. + + A `database` can contain: """ pulumi.set(__self__, "token", token) @@ -2537,6 +2611,8 @@ def __init__(__self__, *, def token(self) -> str: """ Logtail token. + + A `database` can contain: """ return pulumi.get(self, "token") @@ -3625,6 +3701,8 @@ def __init__(__self__, *, token: str): """ :param str token: Logtail token. + + A `database` can contain: """ pulumi.set(__self__, "token", token) @@ -3633,6 +3711,8 @@ def __init__(__self__, *, def token(self) -> str: """ Logtail token. + + A `database` can contain: """ return pulumi.get(self, "token") @@ -5073,6 +5153,8 @@ def __init__(__self__, *, token: str): """ :param str token: Logtail token. + + A `database` can contain: """ pulumi.set(__self__, "token", token) @@ -5081,6 +5163,8 @@ def __init__(__self__, *, def token(self) -> str: """ Logtail token. + + A `database` can contain: """ return pulumi.get(self, "token") @@ -9081,6 +9165,10 @@ def __init__(__self__, *, :param int instance_count: The amount of instances that this component should be scaled to. :param str instance_size_slug: The instance size to use for this component. :param str kind: The type of job and when it will be run during the deployment process. It may be one of: + - `UNSPECIFIED`: Default job type, will auto-complete to POST_DEPLOY kind. + - `PRE_DEPLOY`: Indicates a job that runs before an app deployment. + - `POST_DEPLOY`: Indicates a job that runs after an app deployment. + - `FAILED_DEPLOY`: Indicates a job that runs after a component fails to deploy. :param Sequence['GetAppSpecJobLogDestinationArgs'] log_destinations: Describes a log forwarding destination. :param str run_command: An optional run command to override the component's default. :param str source_dir: An optional path to the working directory to use for the build. @@ -9218,6 +9306,10 @@ def instance_size_slug(self) -> Optional[str]: def kind(self) -> Optional[str]: """ The type of job and when it will be run during the deployment process. It may be one of: + - `UNSPECIFIED`: Default job type, will auto-complete to POST_DEPLOY kind. + - `PRE_DEPLOY`: Indicates a job that runs before an app deployment. + - `POST_DEPLOY`: Indicates a job that runs after an app deployment. + - `FAILED_DEPLOY`: Indicates a job that runs after a component fails to deploy. """ return pulumi.get(self, "kind")