diff --git a/provider/cmd/pulumi-resource-fastly/schema.json b/provider/cmd/pulumi-resource-fastly/schema.json index 0575d709..0ab82da7 100644 --- a/provider/cmd/pulumi-resource-fastly/schema.json +++ b/provider/cmd/pulumi-resource-fastly/schema.json @@ -7455,6 +7455,10 @@ "type": "boolean", "description": "Services that are active cannot be destroyed. In order to destroy the Service, set `force_destroy` to `true`. Default `false`\n" }, + "imported": { + "type": "boolean", + "description": "Used internally by the provider to temporarily indicate if the service is being imported, and is reset to false once the import is finished\n" + }, "loggingBigqueries": { "type": "array", "items": { @@ -7632,6 +7636,7 @@ "activeVersion", "clonedVersion", "domains", + "imported", "name", "package" ], @@ -7886,6 +7891,10 @@ "type": "boolean", "description": "Services that are active cannot be destroyed. In order to destroy the Service, set `force_destroy` to `true`. Default `false`\n" }, + "imported": { + "type": "boolean", + "description": "Used internally by the provider to temporarily indicate if the service is being imported, and is reset to false once the import is finished\n" + }, "loggingBigqueries": { "type": "array", "items": { @@ -8309,6 +8318,10 @@ "$ref": "#/types/fastly:index/ServiceVclHealthcheck:ServiceVclHealthcheck" } }, + "imported": { + "type": "boolean", + "description": "Used internally by the provider to temporarily indicate if the service is being imported, and is reset to false once the import is finished\n" + }, "loggingBigqueries": { "type": "array", "items": { @@ -8517,6 +8530,7 @@ "activeVersion", "clonedVersion", "domains", + "imported", "name" ], "inputProperties": { @@ -8912,6 +8926,10 @@ "$ref": "#/types/fastly:index/ServiceVclHealthcheck:ServiceVclHealthcheck" } }, + "imported": { + "type": "boolean", + "description": "Used internally by the provider to temporarily indicate if the service is being imported, and is reset to false once the import is finished\n" + }, "loggingBigqueries": { "type": "array", "items": { diff --git a/provider/go.mod b/provider/go.mod index 00cd03d9..6230b3c7 100644 --- a/provider/go.mod +++ b/provider/go.mod @@ -195,7 +195,7 @@ require ( ) replace ( - github.com/fastly/terraform-provider-fastly => github.com/pulumi/terraform-provider-fastly v0.16.1-0.20220927172125-16c367b030ff + github.com/fastly/terraform-provider-fastly => github.com/pulumi/terraform-provider-fastly v0.16.1-0.20221004051910-3db3b6867fa8 github.com/hashicorp/go-getter v1.5.0 => github.com/hashicorp/go-getter v1.4.0 github.com/hashicorp/terraform-plugin-sdk/v2 => github.com/pulumi/terraform-plugin-sdk/v2 v2.0.0-20211230170131-3a7c83bfab87 ) diff --git a/provider/go.sum b/provider/go.sum index 766ae6ef..e4dd6224 100644 --- a/provider/go.sum +++ b/provider/go.sum @@ -729,8 +729,8 @@ github.com/pulumi/terraform-diff-reader v0.0.0-20201211191010-ad4715e9285e h1:Di github.com/pulumi/terraform-diff-reader v0.0.0-20201211191010-ad4715e9285e/go.mod h1:sZ9FUzGO+yM41hsQHs/yIcj/Y993qMdBxBU5mpDmAfQ= github.com/pulumi/terraform-plugin-sdk/v2 v2.0.0-20211230170131-3a7c83bfab87 h1:Reqyb/CbcDwThvBRzA62H7cvuCqgTJuGNt+F6mnmXJ4= github.com/pulumi/terraform-plugin-sdk/v2 v2.0.0-20211230170131-3a7c83bfab87/go.mod h1:FjM9DXWfP0w/AeOtJoSKHBZ01LqmaO6uP4bXhv3fekw= -github.com/pulumi/terraform-provider-fastly v0.16.1-0.20220927172125-16c367b030ff h1:VGbn8Nz9qOoT6xpT0vU2rpV3qsSjzz5aFIDm5nBkxik= -github.com/pulumi/terraform-provider-fastly v0.16.1-0.20220927172125-16c367b030ff/go.mod h1:V75Ab8l7JY8iGTqqH6zOXf2AeNq3mDnjKHNCCr3gxb0= +github.com/pulumi/terraform-provider-fastly v0.16.1-0.20221004051910-3db3b6867fa8 h1:a/C+mCdwXjzoUIsOnNh6EPKNlk7uZ0zX9brqFS7UfVY= +github.com/pulumi/terraform-provider-fastly v0.16.1-0.20221004051910-3db3b6867fa8/go.mod h1:V75Ab8l7JY8iGTqqH6zOXf2AeNq3mDnjKHNCCr3gxb0= github.com/rivo/uniseg v0.2.0 h1:S1pD9weZBuJdFmowNwbpi7BJ8TNftyUImj/0WQi72jY= github.com/rivo/uniseg v0.2.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc= github.com/rjeczalik/notify v0.9.2 h1:MiTWrPj55mNDHEiIX5YUSKefw/+lCQVoAFmD6oQm5w8= diff --git a/sdk/dotnet/ServiceCompute.cs b/sdk/dotnet/ServiceCompute.cs index 2f297ab5..5a5cb395 100644 --- a/sdk/dotnet/ServiceCompute.cs +++ b/sdk/dotnet/ServiceCompute.cs @@ -69,6 +69,12 @@ public partial class ServiceCompute : Pulumi.CustomResource [Output("forceDestroy")] public Output ForceDestroy { get; private set; } = null!; + /// + /// Used internally by the provider to temporarily indicate if the service is being imported, and is reset to false once the import is finished + /// + [Output("imported")] + public Output Imported { get; private set; } = null!; + [Output("loggingBigqueries")] public Output> LoggingBigqueries { get; private set; } = null!; @@ -564,6 +570,12 @@ public InputList Domains [Input("forceDestroy")] public Input? ForceDestroy { get; set; } + /// + /// Used internally by the provider to temporarily indicate if the service is being imported, and is reset to false once the import is finished + /// + [Input("imported")] + public Input? Imported { get; set; } + [Input("loggingBigqueries")] private InputList? _loggingBigqueries; public InputList LoggingBigqueries diff --git a/sdk/dotnet/ServiceVcl.cs b/sdk/dotnet/ServiceVcl.cs index b3066269..8e088303 100644 --- a/sdk/dotnet/ServiceVcl.cs +++ b/sdk/dotnet/ServiceVcl.cs @@ -113,6 +113,12 @@ public partial class ServiceVcl : Pulumi.CustomResource [Output("healthchecks")] public Output> Healthchecks { get; private set; } = null!; + /// + /// Used internally by the provider to temporarily indicate if the service is being imported, and is reset to false once the import is finished + /// + [Output("imported")] + public Output Imported { get; private set; } = null!; + [Output("loggingBigqueries")] public Output> LoggingBigqueries { get; private set; } = null!; @@ -822,6 +828,12 @@ public InputList Healthchecks set => _healthchecks = value; } + /// + /// Used internally by the provider to temporarily indicate if the service is being imported, and is reset to false once the import is finished + /// + [Input("imported")] + public Input? Imported { get; set; } + [Input("loggingBigqueries")] private InputList? _loggingBigqueries; public InputList LoggingBigqueries diff --git a/sdk/go/fastly/serviceCompute.go b/sdk/go/fastly/serviceCompute.go index 5b3b951d..938942ae 100644 --- a/sdk/go/fastly/serviceCompute.go +++ b/sdk/go/fastly/serviceCompute.go @@ -44,7 +44,9 @@ type ServiceCompute struct { // A set of Domain names to serve as entry points for your Service Domains ServiceComputeDomainArrayOutput `pulumi:"domains"` // Services that are active cannot be destroyed. In order to destroy the Service, set `forceDestroy` to `true`. Default `false` - ForceDestroy pulumi.BoolPtrOutput `pulumi:"forceDestroy"` + ForceDestroy pulumi.BoolPtrOutput `pulumi:"forceDestroy"` + // Used internally by the provider to temporarily indicate if the service is being imported, and is reset to false once the import is finished + Imported pulumi.BoolOutput `pulumi:"imported"` LoggingBigqueries ServiceComputeLoggingBigqueryArrayOutput `pulumi:"loggingBigqueries"` LoggingBlobstorages ServiceComputeLoggingBlobstorageArrayOutput `pulumi:"loggingBlobstorages"` LoggingCloudfiles ServiceComputeLoggingCloudfileArrayOutput `pulumi:"loggingCloudfiles"` @@ -131,7 +133,9 @@ type serviceComputeState struct { // A set of Domain names to serve as entry points for your Service Domains []ServiceComputeDomain `pulumi:"domains"` // Services that are active cannot be destroyed. In order to destroy the Service, set `forceDestroy` to `true`. Default `false` - ForceDestroy *bool `pulumi:"forceDestroy"` + ForceDestroy *bool `pulumi:"forceDestroy"` + // Used internally by the provider to temporarily indicate if the service is being imported, and is reset to false once the import is finished + Imported *bool `pulumi:"imported"` LoggingBigqueries []ServiceComputeLoggingBigquery `pulumi:"loggingBigqueries"` LoggingBlobstorages []ServiceComputeLoggingBlobstorage `pulumi:"loggingBlobstorages"` LoggingCloudfiles []ServiceComputeLoggingCloudfile `pulumi:"loggingCloudfiles"` @@ -184,7 +188,9 @@ type ServiceComputeState struct { // A set of Domain names to serve as entry points for your Service Domains ServiceComputeDomainArrayInput // Services that are active cannot be destroyed. In order to destroy the Service, set `forceDestroy` to `true`. Default `false` - ForceDestroy pulumi.BoolPtrInput + ForceDestroy pulumi.BoolPtrInput + // Used internally by the provider to temporarily indicate if the service is being imported, and is reset to false once the import is finished + Imported pulumi.BoolPtrInput LoggingBigqueries ServiceComputeLoggingBigqueryArrayInput LoggingBlobstorages ServiceComputeLoggingBlobstorageArrayInput LoggingCloudfiles ServiceComputeLoggingCloudfileArrayInput diff --git a/sdk/go/fastly/serviceVcl.go b/sdk/go/fastly/serviceVcl.go index 82458b68..c22d8fcc 100644 --- a/sdk/go/fastly/serviceVcl.go +++ b/sdk/go/fastly/serviceVcl.go @@ -61,10 +61,12 @@ type ServiceVcl struct { Domains ServiceVclDomainArrayOutput `pulumi:"domains"` Dynamicsnippets ServiceVclDynamicsnippetArrayOutput `pulumi:"dynamicsnippets"` // Services that are active cannot be destroyed. In order to destroy the Service, set `forceDestroy` to `true`. Default `false` - ForceDestroy pulumi.BoolPtrOutput `pulumi:"forceDestroy"` - Gzips ServiceVclGzipArrayOutput `pulumi:"gzips"` - Headers ServiceVclHeaderArrayOutput `pulumi:"headers"` - Healthchecks ServiceVclHealthcheckArrayOutput `pulumi:"healthchecks"` + ForceDestroy pulumi.BoolPtrOutput `pulumi:"forceDestroy"` + Gzips ServiceVclGzipArrayOutput `pulumi:"gzips"` + Headers ServiceVclHeaderArrayOutput `pulumi:"headers"` + Healthchecks ServiceVclHealthcheckArrayOutput `pulumi:"healthchecks"` + // Used internally by the provider to temporarily indicate if the service is being imported, and is reset to false once the import is finished + Imported pulumi.BoolOutput `pulumi:"imported"` LoggingBigqueries ServiceVclLoggingBigqueryArrayOutput `pulumi:"loggingBigqueries"` LoggingBlobstorages ServiceVclLoggingBlobstorageArrayOutput `pulumi:"loggingBlobstorages"` LoggingCloudfiles ServiceVclLoggingCloudfileArrayOutput `pulumi:"loggingCloudfiles"` @@ -164,10 +166,12 @@ type serviceVclState struct { Domains []ServiceVclDomain `pulumi:"domains"` Dynamicsnippets []ServiceVclDynamicsnippet `pulumi:"dynamicsnippets"` // Services that are active cannot be destroyed. In order to destroy the Service, set `forceDestroy` to `true`. Default `false` - ForceDestroy *bool `pulumi:"forceDestroy"` - Gzips []ServiceVclGzip `pulumi:"gzips"` - Headers []ServiceVclHeader `pulumi:"headers"` - Healthchecks []ServiceVclHealthcheck `pulumi:"healthchecks"` + ForceDestroy *bool `pulumi:"forceDestroy"` + Gzips []ServiceVclGzip `pulumi:"gzips"` + Headers []ServiceVclHeader `pulumi:"headers"` + Healthchecks []ServiceVclHealthcheck `pulumi:"healthchecks"` + // Used internally by the provider to temporarily indicate if the service is being imported, and is reset to false once the import is finished + Imported *bool `pulumi:"imported"` LoggingBigqueries []ServiceVclLoggingBigquery `pulumi:"loggingBigqueries"` LoggingBlobstorages []ServiceVclLoggingBlobstorage `pulumi:"loggingBlobstorages"` LoggingCloudfiles []ServiceVclLoggingCloudfile `pulumi:"loggingCloudfiles"` @@ -236,10 +240,12 @@ type ServiceVclState struct { Domains ServiceVclDomainArrayInput Dynamicsnippets ServiceVclDynamicsnippetArrayInput // Services that are active cannot be destroyed. In order to destroy the Service, set `forceDestroy` to `true`. Default `false` - ForceDestroy pulumi.BoolPtrInput - Gzips ServiceVclGzipArrayInput - Headers ServiceVclHeaderArrayInput - Healthchecks ServiceVclHealthcheckArrayInput + ForceDestroy pulumi.BoolPtrInput + Gzips ServiceVclGzipArrayInput + Headers ServiceVclHeaderArrayInput + Healthchecks ServiceVclHealthcheckArrayInput + // Used internally by the provider to temporarily indicate if the service is being imported, and is reset to false once the import is finished + Imported pulumi.BoolPtrInput LoggingBigqueries ServiceVclLoggingBigqueryArrayInput LoggingBlobstorages ServiceVclLoggingBlobstorageArrayInput LoggingCloudfiles ServiceVclLoggingCloudfileArrayInput diff --git a/sdk/java/src/main/java/com/pulumi/fastly/ServiceCompute.java b/sdk/java/src/main/java/com/pulumi/fastly/ServiceCompute.java index 446dcc4a..71125c9b 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/ServiceCompute.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/ServiceCompute.java @@ -161,6 +161,20 @@ public Output> domains() { public Output> forceDestroy() { return Codegen.optional(this.forceDestroy); } + /** + * Used internally by the provider to temporarily indicate if the service is being imported, and is reset to false once the import is finished + * + */ + @Export(name="imported", type=Boolean.class, parameters={}) + private Output imported; + + /** + * @return Used internally by the provider to temporarily indicate if the service is being imported, and is reset to false once the import is finished + * + */ + public Output imported() { + return this.imported; + } @Export(name="loggingBigqueries", type=List.class, parameters={ServiceComputeLoggingBigquery.class}) private Output> loggingBigqueries; diff --git a/sdk/java/src/main/java/com/pulumi/fastly/ServiceVcl.java b/sdk/java/src/main/java/com/pulumi/fastly/ServiceVcl.java index 8c105cff..8bdd9f71 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/ServiceVcl.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/ServiceVcl.java @@ -259,6 +259,20 @@ public Output>> headers() { public Output>> healthchecks() { return Codegen.optional(this.healthchecks); } + /** + * Used internally by the provider to temporarily indicate if the service is being imported, and is reset to false once the import is finished + * + */ + @Export(name="imported", type=Boolean.class, parameters={}) + private Output imported; + + /** + * @return Used internally by the provider to temporarily indicate if the service is being imported, and is reset to false once the import is finished + * + */ + public Output imported() { + return this.imported; + } @Export(name="loggingBigqueries", type=List.class, parameters={ServiceVclLoggingBigquery.class}) private Output> loggingBigqueries; diff --git a/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceComputeState.java b/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceComputeState.java index 468f78dc..b25f840c 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceComputeState.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceComputeState.java @@ -152,6 +152,21 @@ public Optional> forceDestroy() { return Optional.ofNullable(this.forceDestroy); } + /** + * Used internally by the provider to temporarily indicate if the service is being imported, and is reset to false once the import is finished + * + */ + @Import(name="imported") + private @Nullable Output imported; + + /** + * @return Used internally by the provider to temporarily indicate if the service is being imported, and is reset to false once the import is finished + * + */ + public Optional> imported() { + return Optional.ofNullable(this.imported); + } + @Import(name="loggingBigqueries") private @Nullable Output> loggingBigqueries; @@ -409,6 +424,7 @@ private ServiceComputeState(ServiceComputeState $) { this.dictionaries = $.dictionaries; this.domains = $.domains; this.forceDestroy = $.forceDestroy; + this.imported = $.imported; this.loggingBigqueries = $.loggingBigqueries; this.loggingBlobstorages = $.loggingBlobstorages; this.loggingCloudfiles = $.loggingCloudfiles; @@ -621,6 +637,27 @@ public Builder forceDestroy(Boolean forceDestroy) { return forceDestroy(Output.of(forceDestroy)); } + /** + * @param imported Used internally by the provider to temporarily indicate if the service is being imported, and is reset to false once the import is finished + * + * @return builder + * + */ + public Builder imported(@Nullable Output imported) { + $.imported = imported; + return this; + } + + /** + * @param imported Used internally by the provider to temporarily indicate if the service is being imported, and is reset to false once the import is finished + * + * @return builder + * + */ + public Builder imported(Boolean imported) { + return imported(Output.of(imported)); + } + public Builder loggingBigqueries(@Nullable Output> loggingBigqueries) { $.loggingBigqueries = loggingBigqueries; return this; diff --git a/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceVclState.java b/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceVclState.java index 5bfd7a34..ccd181c1 100644 --- a/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceVclState.java +++ b/sdk/java/src/main/java/com/pulumi/fastly/inputs/ServiceVclState.java @@ -250,6 +250,21 @@ public Optional>> healthchecks() { return Optional.ofNullable(this.healthchecks); } + /** + * Used internally by the provider to temporarily indicate if the service is being imported, and is reset to false once the import is finished + * + */ + @Import(name="imported") + private @Nullable Output imported; + + /** + * @return Used internally by the provider to temporarily indicate if the service is being imported, and is reset to false once the import is finished + * + */ + public Optional> imported() { + return Optional.ofNullable(this.imported); + } + @Import(name="loggingBigqueries") private @Nullable Output> loggingBigqueries; @@ -567,6 +582,7 @@ private ServiceVclState(ServiceVclState $) { this.gzips = $.gzips; this.headers = $.headers; this.healthchecks = $.healthchecks; + this.imported = $.imported; this.loggingBigqueries = $.loggingBigqueries; this.loggingBlobstorages = $.loggingBlobstorages; this.loggingCloudfiles = $.loggingCloudfiles; @@ -931,6 +947,27 @@ public Builder healthchecks(ServiceVclHealthcheckArgs... healthchecks) { return healthchecks(List.of(healthchecks)); } + /** + * @param imported Used internally by the provider to temporarily indicate if the service is being imported, and is reset to false once the import is finished + * + * @return builder + * + */ + public Builder imported(@Nullable Output imported) { + $.imported = imported; + return this; + } + + /** + * @param imported Used internally by the provider to temporarily indicate if the service is being imported, and is reset to false once the import is finished + * + * @return builder + * + */ + public Builder imported(Boolean imported) { + return imported(Output.of(imported)); + } + public Builder loggingBigqueries(@Nullable Output> loggingBigqueries) { $.loggingBigqueries = loggingBigqueries; return this; diff --git a/sdk/nodejs/serviceCompute.ts b/sdk/nodejs/serviceCompute.ts index 92303f34..e28f8306 100644 --- a/sdk/nodejs/serviceCompute.ts +++ b/sdk/nodejs/serviceCompute.ts @@ -74,6 +74,10 @@ export class ServiceCompute extends pulumi.CustomResource { * Services that are active cannot be destroyed. In order to destroy the Service, set `forceDestroy` to `true`. Default `false` */ public readonly forceDestroy!: pulumi.Output; + /** + * Used internally by the provider to temporarily indicate if the service is being imported, and is reset to false once the import is finished + */ + public /*out*/ readonly imported!: pulumi.Output; public readonly loggingBigqueries!: pulumi.Output; public readonly loggingBlobstorages!: pulumi.Output; public readonly loggingCloudfiles!: pulumi.Output; @@ -140,6 +144,7 @@ export class ServiceCompute extends pulumi.CustomResource { resourceInputs["dictionaries"] = state ? state.dictionaries : undefined; resourceInputs["domains"] = state ? state.domains : undefined; resourceInputs["forceDestroy"] = state ? state.forceDestroy : undefined; + resourceInputs["imported"] = state ? state.imported : undefined; resourceInputs["loggingBigqueries"] = state ? state.loggingBigqueries : undefined; resourceInputs["loggingBlobstorages"] = state ? state.loggingBlobstorages : undefined; resourceInputs["loggingCloudfiles"] = state ? state.loggingCloudfiles : undefined; @@ -216,6 +221,7 @@ export class ServiceCompute extends pulumi.CustomResource { resourceInputs["versionComment"] = args ? args.versionComment : undefined; resourceInputs["activeVersion"] = undefined /*out*/; resourceInputs["clonedVersion"] = undefined /*out*/; + resourceInputs["imported"] = undefined /*out*/; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(ServiceCompute.__pulumiType, name, resourceInputs, opts); @@ -252,6 +258,10 @@ export interface ServiceComputeState { * Services that are active cannot be destroyed. In order to destroy the Service, set `forceDestroy` to `true`. Default `false` */ forceDestroy?: pulumi.Input; + /** + * Used internally by the provider to temporarily indicate if the service is being imported, and is reset to false once the import is finished + */ + imported?: pulumi.Input; loggingBigqueries?: pulumi.Input[]>; loggingBlobstorages?: pulumi.Input[]>; loggingCloudfiles?: pulumi.Input[]>; diff --git a/sdk/nodejs/serviceVcl.ts b/sdk/nodejs/serviceVcl.ts index f479fdad..d4e5dc59 100644 --- a/sdk/nodejs/serviceVcl.ts +++ b/sdk/nodejs/serviceVcl.ts @@ -293,6 +293,10 @@ export class ServiceVcl extends pulumi.CustomResource { public readonly gzips!: pulumi.Output; public readonly headers!: pulumi.Output; public readonly healthchecks!: pulumi.Output; + /** + * Used internally by the provider to temporarily indicate if the service is being imported, and is reset to false once the import is finished + */ + public /*out*/ readonly imported!: pulumi.Output; public readonly loggingBigqueries!: pulumi.Output; public readonly loggingBlobstorages!: pulumi.Output; public readonly loggingCloudfiles!: pulumi.Output; @@ -378,6 +382,7 @@ export class ServiceVcl extends pulumi.CustomResource { resourceInputs["gzips"] = state ? state.gzips : undefined; resourceInputs["headers"] = state ? state.headers : undefined; resourceInputs["healthchecks"] = state ? state.healthchecks : undefined; + resourceInputs["imported"] = state ? state.imported : undefined; resourceInputs["loggingBigqueries"] = state ? state.loggingBigqueries : undefined; resourceInputs["loggingBlobstorages"] = state ? state.loggingBlobstorages : undefined; resourceInputs["loggingCloudfiles"] = state ? state.loggingCloudfiles : undefined; @@ -473,6 +478,7 @@ export class ServiceVcl extends pulumi.CustomResource { resourceInputs["waf"] = args ? args.waf : undefined; resourceInputs["activeVersion"] = undefined /*out*/; resourceInputs["clonedVersion"] = undefined /*out*/; + resourceInputs["imported"] = undefined /*out*/; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(ServiceVcl.__pulumiType, name, resourceInputs, opts); @@ -525,6 +531,10 @@ export interface ServiceVclState { gzips?: pulumi.Input[]>; headers?: pulumi.Input[]>; healthchecks?: pulumi.Input[]>; + /** + * Used internally by the provider to temporarily indicate if the service is being imported, and is reset to false once the import is finished + */ + imported?: pulumi.Input; loggingBigqueries?: pulumi.Input[]>; loggingBlobstorages?: pulumi.Input[]>; loggingCloudfiles?: pulumi.Input[]>; diff --git a/sdk/python/pulumi_fastly/service_compute.py b/sdk/python/pulumi_fastly/service_compute.py index 334e9292..550649d4 100644 --- a/sdk/python/pulumi_fastly/service_compute.py +++ b/sdk/python/pulumi_fastly/service_compute.py @@ -497,6 +497,7 @@ def __init__(__self__, *, dictionaries: Optional[pulumi.Input[Sequence[pulumi.Input['ServiceComputeDictionaryArgs']]]] = None, domains: Optional[pulumi.Input[Sequence[pulumi.Input['ServiceComputeDomainArgs']]]] = None, force_destroy: Optional[pulumi.Input[bool]] = None, + imported: Optional[pulumi.Input[bool]] = None, logging_bigqueries: Optional[pulumi.Input[Sequence[pulumi.Input['ServiceComputeLoggingBigqueryArgs']]]] = None, logging_blobstorages: Optional[pulumi.Input[Sequence[pulumi.Input['ServiceComputeLoggingBlobstorageArgs']]]] = None, logging_cloudfiles: Optional[pulumi.Input[Sequence[pulumi.Input['ServiceComputeLoggingCloudfileArgs']]]] = None, @@ -535,6 +536,7 @@ def __init__(__self__, *, :param pulumi.Input[str] comment: Description field for the service. Default `Managed by Terraform` :param pulumi.Input[Sequence[pulumi.Input['ServiceComputeDomainArgs']]] domains: A set of Domain names to serve as entry points for your Service :param pulumi.Input[bool] force_destroy: Services that are active cannot be destroyed. In order to destroy the Service, set `force_destroy` to `true`. Default `false` + :param pulumi.Input[bool] imported: Used internally by the provider to temporarily indicate if the service is being imported, and is reset to false once the import is finished :param pulumi.Input[str] name: The unique name for the Service to create :param pulumi.Input['ServiceComputePackageArgs'] package: The `package` block supports uploading or modifying Wasm packages for use in a Fastly Compute@Edge service. See Fastly's documentation on [Compute@Edge](https://developer.fastly.com/learning/compute/) :param pulumi.Input[bool] reuse: Services that are active cannot be destroyed. If set to `true` a service Terraform intends to destroy will instead be @@ -558,6 +560,8 @@ def __init__(__self__, *, pulumi.set(__self__, "domains", domains) if force_destroy is not None: pulumi.set(__self__, "force_destroy", force_destroy) + if imported is not None: + pulumi.set(__self__, "imported", imported) if logging_bigqueries is not None: pulumi.set(__self__, "logging_bigqueries", logging_bigqueries) if logging_blobstorages is not None: @@ -709,6 +713,18 @@ def force_destroy(self) -> Optional[pulumi.Input[bool]]: def force_destroy(self, value: Optional[pulumi.Input[bool]]): pulumi.set(self, "force_destroy", value) + @property + @pulumi.getter + def imported(self) -> Optional[pulumi.Input[bool]]: + """ + Used internally by the provider to temporarily indicate if the service is being imported, and is reset to false once the import is finished + """ + return pulumi.get(self, "imported") + + @imported.setter + def imported(self, value: Optional[pulumi.Input[bool]]): + pulumi.set(self, "imported", value) + @property @pulumi.getter(name="loggingBigqueries") def logging_bigqueries(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['ServiceComputeLoggingBigqueryArgs']]]]: @@ -1190,6 +1206,7 @@ def _internal_init(__self__, __props__.__dict__["version_comment"] = version_comment __props__.__dict__["active_version"] = None __props__.__dict__["cloned_version"] = None + __props__.__dict__["imported"] = None super(ServiceCompute, __self__).__init__( 'fastly:index/serviceCompute:ServiceCompute', resource_name, @@ -1208,6 +1225,7 @@ def get(resource_name: str, dictionaries: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ServiceComputeDictionaryArgs']]]]] = None, domains: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ServiceComputeDomainArgs']]]]] = None, force_destroy: Optional[pulumi.Input[bool]] = None, + imported: Optional[pulumi.Input[bool]] = None, logging_bigqueries: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ServiceComputeLoggingBigqueryArgs']]]]] = None, logging_blobstorages: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ServiceComputeLoggingBlobstorageArgs']]]]] = None, logging_cloudfiles: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ServiceComputeLoggingCloudfileArgs']]]]] = None, @@ -1251,6 +1269,7 @@ def get(resource_name: str, :param pulumi.Input[str] comment: Description field for the service. Default `Managed by Terraform` :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ServiceComputeDomainArgs']]]] domains: A set of Domain names to serve as entry points for your Service :param pulumi.Input[bool] force_destroy: Services that are active cannot be destroyed. In order to destroy the Service, set `force_destroy` to `true`. Default `false` + :param pulumi.Input[bool] imported: Used internally by the provider to temporarily indicate if the service is being imported, and is reset to false once the import is finished :param pulumi.Input[str] name: The unique name for the Service to create :param pulumi.Input[pulumi.InputType['ServiceComputePackageArgs']] package: The `package` block supports uploading or modifying Wasm packages for use in a Fastly Compute@Edge service. See Fastly's documentation on [Compute@Edge](https://developer.fastly.com/learning/compute/) :param pulumi.Input[bool] reuse: Services that are active cannot be destroyed. If set to `true` a service Terraform intends to destroy will instead be @@ -1270,6 +1289,7 @@ def get(resource_name: str, __props__.__dict__["dictionaries"] = dictionaries __props__.__dict__["domains"] = domains __props__.__dict__["force_destroy"] = force_destroy + __props__.__dict__["imported"] = imported __props__.__dict__["logging_bigqueries"] = logging_bigqueries __props__.__dict__["logging_blobstorages"] = logging_blobstorages __props__.__dict__["logging_cloudfiles"] = logging_cloudfiles @@ -1360,6 +1380,14 @@ def force_destroy(self) -> pulumi.Output[Optional[bool]]: """ return pulumi.get(self, "force_destroy") + @property + @pulumi.getter + def imported(self) -> pulumi.Output[bool]: + """ + Used internally by the provider to temporarily indicate if the service is being imported, and is reset to false once the import is finished + """ + return pulumi.get(self, "imported") + @property @pulumi.getter(name="loggingBigqueries") def logging_bigqueries(self) -> pulumi.Output[Optional[Sequence['outputs.ServiceComputeLoggingBigquery']]]: diff --git a/sdk/python/pulumi_fastly/service_vcl.py b/sdk/python/pulumi_fastly/service_vcl.py index ccd3621f..3cedf297 100644 --- a/sdk/python/pulumi_fastly/service_vcl.py +++ b/sdk/python/pulumi_fastly/service_vcl.py @@ -712,6 +712,7 @@ def __init__(__self__, *, gzips: Optional[pulumi.Input[Sequence[pulumi.Input['ServiceVclGzipArgs']]]] = None, headers: Optional[pulumi.Input[Sequence[pulumi.Input['ServiceVclHeaderArgs']]]] = None, healthchecks: Optional[pulumi.Input[Sequence[pulumi.Input['ServiceVclHealthcheckArgs']]]] = None, + imported: Optional[pulumi.Input[bool]] = None, logging_bigqueries: Optional[pulumi.Input[Sequence[pulumi.Input['ServiceVclLoggingBigqueryArgs']]]] = None, logging_blobstorages: Optional[pulumi.Input[Sequence[pulumi.Input['ServiceVclLoggingBlobstorageArgs']]]] = None, logging_cloudfiles: Optional[pulumi.Input[Sequence[pulumi.Input['ServiceVclLoggingCloudfileArgs']]]] = None, @@ -758,6 +759,7 @@ def __init__(__self__, *, :param pulumi.Input[int] default_ttl: The default Time-to-live (TTL) for requests :param pulumi.Input[Sequence[pulumi.Input['ServiceVclDomainArgs']]] domains: A set of Domain names to serve as entry points for your Service :param pulumi.Input[bool] force_destroy: Services that are active cannot be destroyed. In order to destroy the Service, set `force_destroy` to `true`. Default `false` + :param pulumi.Input[bool] imported: Used internally by the provider to temporarily indicate if the service is being imported, and is reset to false once the import is finished :param pulumi.Input[str] name: The unique name for the Service to create :param pulumi.Input[bool] reuse: Services that are active cannot be destroyed. If set to `true` a service Terraform intends to destroy will instead be deactivated (allowing it to be reused by importing it into another Terraform project). If `false`, attempting to destroy @@ -802,6 +804,8 @@ def __init__(__self__, *, pulumi.set(__self__, "headers", headers) if healthchecks is not None: pulumi.set(__self__, "healthchecks", healthchecks) + if imported is not None: + pulumi.set(__self__, "imported", imported) if logging_bigqueries is not None: pulumi.set(__self__, "logging_bigqueries", logging_bigqueries) if logging_blobstorages is not None: @@ -1061,6 +1065,18 @@ def healthchecks(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['ServiceVc def healthchecks(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['ServiceVclHealthcheckArgs']]]]): pulumi.set(self, "healthchecks", value) + @property + @pulumi.getter + def imported(self) -> Optional[pulumi.Input[bool]]: + """ + Used internally by the provider to temporarily indicate if the service is being imported, and is reset to false once the import is finished + """ + return pulumi.get(self, "imported") + + @imported.setter + def imported(self, value: Optional[pulumi.Input[bool]]): + pulumi.set(self, "imported", value) + @property @pulumi.getter(name="loggingBigqueries") def logging_bigqueries(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['ServiceVclLoggingBigqueryArgs']]]]: @@ -1664,6 +1680,7 @@ def _internal_init(__self__, __props__.__dict__["waf"] = waf __props__.__dict__["active_version"] = None __props__.__dict__["cloned_version"] = None + __props__.__dict__["imported"] = None super(ServiceVcl, __self__).__init__( 'fastly:index/serviceVcl:ServiceVcl', resource_name, @@ -1692,6 +1709,7 @@ def get(resource_name: str, gzips: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ServiceVclGzipArgs']]]]] = None, headers: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ServiceVclHeaderArgs']]]]] = None, healthchecks: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ServiceVclHealthcheckArgs']]]]] = None, + imported: Optional[pulumi.Input[bool]] = None, logging_bigqueries: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ServiceVclLoggingBigqueryArgs']]]]] = None, logging_blobstorages: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ServiceVclLoggingBlobstorageArgs']]]]] = None, logging_cloudfiles: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ServiceVclLoggingCloudfileArgs']]]]] = None, @@ -1743,6 +1761,7 @@ def get(resource_name: str, :param pulumi.Input[int] default_ttl: The default Time-to-live (TTL) for requests :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ServiceVclDomainArgs']]]] domains: A set of Domain names to serve as entry points for your Service :param pulumi.Input[bool] force_destroy: Services that are active cannot be destroyed. In order to destroy the Service, set `force_destroy` to `true`. Default `false` + :param pulumi.Input[bool] imported: Used internally by the provider to temporarily indicate if the service is being imported, and is reset to false once the import is finished :param pulumi.Input[str] name: The unique name for the Service to create :param pulumi.Input[bool] reuse: Services that are active cannot be destroyed. If set to `true` a service Terraform intends to destroy will instead be deactivated (allowing it to be reused by importing it into another Terraform project). If `false`, attempting to destroy @@ -1773,6 +1792,7 @@ def get(resource_name: str, __props__.__dict__["gzips"] = gzips __props__.__dict__["headers"] = headers __props__.__dict__["healthchecks"] = healthchecks + __props__.__dict__["imported"] = imported __props__.__dict__["logging_bigqueries"] = logging_bigqueries __props__.__dict__["logging_blobstorages"] = logging_blobstorages __props__.__dict__["logging_cloudfiles"] = logging_cloudfiles @@ -1925,6 +1945,14 @@ def headers(self) -> pulumi.Output[Optional[Sequence['outputs.ServiceVclHeader'] def healthchecks(self) -> pulumi.Output[Optional[Sequence['outputs.ServiceVclHealthcheck']]]: return pulumi.get(self, "healthchecks") + @property + @pulumi.getter + def imported(self) -> pulumi.Output[bool]: + """ + Used internally by the provider to temporarily indicate if the service is being imported, and is reset to false once the import is finished + """ + return pulumi.get(self, "imported") + @property @pulumi.getter(name="loggingBigqueries") def logging_bigqueries(self) -> pulumi.Output[Optional[Sequence['outputs.ServiceVclLoggingBigquery']]]: