diff --git a/.pulumi-java-gen.version b/.pulumi-java-gen.version index d33c3a21..0548fb4e 100644 --- a/.pulumi-java-gen.version +++ b/.pulumi-java-gen.version @@ -1 +1 @@ -0.12.0 \ No newline at end of file +0.14.0 \ No newline at end of file diff --git a/examples/go.mod b/examples/go.mod index 376e3d04..3a03309b 100644 --- a/examples/go.mod +++ b/examples/go.mod @@ -2,7 +2,7 @@ module github.com/pulumi/pulumi-signalfx/examples/v5 go 1.21 -require github.com/pulumi/pulumi/pkg/v3 v3.126.0 +require github.com/pulumi/pulumi/pkg/v3 v3.128.0 require ( cloud.google.com/go v0.112.1 // indirect @@ -123,7 +123,7 @@ require ( github.com/pmezard/go-difflib v1.0.0 // indirect github.com/pulumi/appdash v0.0.0-20231130102222-75f619a67231 // indirect github.com/pulumi/esc v0.9.1 // indirect - github.com/pulumi/pulumi/sdk/v3 v3.126.0 // indirect + github.com/pulumi/pulumi/sdk/v3 v3.128.0 // indirect github.com/rivo/uniseg v0.4.4 // indirect github.com/rogpeppe/go-internal v1.12.0 // indirect github.com/ryanuber/go-glob v1.0.0 // indirect diff --git a/examples/go.sum b/examples/go.sum index 8ef90117..01fb8a55 100644 --- a/examples/go.sum +++ b/examples/go.sum @@ -342,10 +342,10 @@ github.com/pulumi/appdash v0.0.0-20231130102222-75f619a67231 h1:vkHw5I/plNdTr435 github.com/pulumi/appdash v0.0.0-20231130102222-75f619a67231/go.mod h1:murToZ2N9hNJzewjHBgfFdXhZKjY3z5cYC1VXk+lbFE= github.com/pulumi/esc v0.9.1 h1:HH5eEv8sgyxSpY5a8yePyqFXzA8cvBvapfH8457+mIs= github.com/pulumi/esc v0.9.1/go.mod h1:oEJ6bOsjYlQUpjf70GiX+CXn3VBmpwFDxUTlmtUN84c= -github.com/pulumi/pulumi/pkg/v3 v3.126.0 h1:XaZU1ehjHN2I5ihkfwxK/UFMDiCDM9FSt2TBnbldAx4= -github.com/pulumi/pulumi/pkg/v3 v3.126.0/go.mod h1:1P4/oK9zceOJUm48QQl/TqjDN68lfsdnTR1FITTFddw= -github.com/pulumi/pulumi/sdk/v3 v3.126.0 h1:6GQVhwG2jgnG7wjRiWgrq0/sU39onctAiBcvTlqb20s= -github.com/pulumi/pulumi/sdk/v3 v3.126.0/go.mod h1:p1U24en3zt51agx+WlNboSOV8eLlPWYAkxMzVEXKbnY= +github.com/pulumi/pulumi/pkg/v3 v3.128.0 h1:K3qtJYjHg4DkA7LxknY/MoQZ+QHdHQDh/k2njjmjHXM= +github.com/pulumi/pulumi/pkg/v3 v3.128.0/go.mod h1:/spoJXy/mqQ8fBLgXBEbUrAnL7pHdfXOviIo5fZROEY= +github.com/pulumi/pulumi/sdk/v3 v3.128.0 h1:5VPFfygxt6rva0bEYVQZXxsGAo2/D1wsb9erGOtXxzk= +github.com/pulumi/pulumi/sdk/v3 v3.128.0/go.mod h1:p1U24en3zt51agx+WlNboSOV8eLlPWYAkxMzVEXKbnY= github.com/rivo/uniseg v0.1.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc= github.com/rivo/uniseg v0.2.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc= github.com/rivo/uniseg v0.4.4 h1:8TfxU8dW6PdqD27gjM8MVNuicgxIjxpm4K7x4jp8sis= diff --git a/provider/go.mod b/provider/go.mod index 68be2092..1feba707 100644 --- a/provider/go.mod +++ b/provider/go.mod @@ -3,8 +3,8 @@ module github.com/pulumi/pulumi-signalfx/provider/v7 go 1.21.12 require ( - github.com/pulumi/pulumi-terraform-bridge/v3 v3.88.0 - github.com/pulumi/pulumi/sdk/v3 v3.126.0 + github.com/pulumi/pulumi-terraform-bridge/v3 v3.88.1-0.20240808181221-46d7e984a474 + github.com/pulumi/pulumi/sdk/v3 v3.128.0 github.com/splunk-terraform/terraform-provider-signalfx v1.9.2-0.20240712065500-8d59365694cd ) @@ -177,7 +177,7 @@ require ( github.com/pulumi/pulumi-java/pkg v0.11.0 // indirect github.com/pulumi/pulumi-terraform-bridge/x/muxer v0.0.8 // indirect github.com/pulumi/pulumi-yaml v1.9.1 // indirect - github.com/pulumi/pulumi/pkg/v3 v3.126.0 // indirect + github.com/pulumi/pulumi/pkg/v3 v3.128.0 // indirect github.com/pulumi/schema-tools v0.1.2 // indirect github.com/pulumi/terraform-diff-reader v0.0.2 // indirect github.com/rivo/uniseg v0.4.4 // indirect @@ -209,6 +209,7 @@ require ( github.com/xeipuuv/gojsonpointer v0.0.0-20180127040702-4e3ac2762d5f // indirect github.com/xeipuuv/gojsonreference v0.0.0-20180127040603-bd5ef7bd5415 // indirect github.com/xeipuuv/gojsonschema v1.2.0 // indirect + github.com/yuin/goldmark v1.7.4 // indirect github.com/zclconf/go-cty v1.14.2 // indirect go.opencensus.io v0.24.0 // indirect go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.49.0 // indirect diff --git a/provider/go.sum b/provider/go.sum index a15d5323..4e193615 100644 --- a/provider/go.sum +++ b/provider/go.sum @@ -1894,16 +1894,16 @@ github.com/pulumi/providertest v0.0.14 h1:5QlAPAAs82jkQraHsJvq1xgVfC7xtW8sFJwv2p github.com/pulumi/providertest v0.0.14/go.mod h1:GcsqEGgSngwaNOD+kICJPIUQlnA911fGBU8HDlJvVL0= github.com/pulumi/pulumi-java/pkg v0.11.0 h1:Jw9gBvyfmfOMq/EkYDm9+zGPxsDAA8jfeMpHmtZ+1oA= github.com/pulumi/pulumi-java/pkg v0.11.0/go.mod h1:sXAk25P47AQVQL6ilAbFmRNgZykC7og/+87ihnqzFTc= -github.com/pulumi/pulumi-terraform-bridge/v3 v3.88.0 h1:0W2Y3Fk7VAWHpjD3FwzVnqWo7g1hD+96C0YDobMnvDU= -github.com/pulumi/pulumi-terraform-bridge/v3 v3.88.0/go.mod h1:QSDiqiCMMbfzrsp3oyRPWgSVE/dkVH5ujxoFappqjdo= +github.com/pulumi/pulumi-terraform-bridge/v3 v3.88.1-0.20240808181221-46d7e984a474 h1:zLS2tKHR4+LyNg3wj+7CclK1yCujCcfqaZsZxVMkTRg= +github.com/pulumi/pulumi-terraform-bridge/v3 v3.88.1-0.20240808181221-46d7e984a474/go.mod h1:EWGqRo+ogMPty23b6rVUajgJXUDSNXU+WqcZTPlzyEI= github.com/pulumi/pulumi-terraform-bridge/x/muxer v0.0.8 h1:mav2tSitA9BPJPLLahKgepHyYsMzwaTm4cvp0dcTMYw= github.com/pulumi/pulumi-terraform-bridge/x/muxer v0.0.8/go.mod h1:qUYk2c9i/yqMGNj9/bQyXpS39BxNDSXYjVN1njnq0zY= github.com/pulumi/pulumi-yaml v1.9.1 h1:JPeI80M23SPactxgnCFS1casZlSr7ZhAXwSx4H55QQ4= github.com/pulumi/pulumi-yaml v1.9.1/go.mod h1:OH0R34yJxA5u6zjYBN4JXcWoEvfkRoOVWi6viu8buoA= -github.com/pulumi/pulumi/pkg/v3 v3.126.0 h1:XaZU1ehjHN2I5ihkfwxK/UFMDiCDM9FSt2TBnbldAx4= -github.com/pulumi/pulumi/pkg/v3 v3.126.0/go.mod h1:1P4/oK9zceOJUm48QQl/TqjDN68lfsdnTR1FITTFddw= -github.com/pulumi/pulumi/sdk/v3 v3.126.0 h1:6GQVhwG2jgnG7wjRiWgrq0/sU39onctAiBcvTlqb20s= -github.com/pulumi/pulumi/sdk/v3 v3.126.0/go.mod h1:p1U24en3zt51agx+WlNboSOV8eLlPWYAkxMzVEXKbnY= +github.com/pulumi/pulumi/pkg/v3 v3.128.0 h1:K3qtJYjHg4DkA7LxknY/MoQZ+QHdHQDh/k2njjmjHXM= +github.com/pulumi/pulumi/pkg/v3 v3.128.0/go.mod h1:/spoJXy/mqQ8fBLgXBEbUrAnL7pHdfXOviIo5fZROEY= +github.com/pulumi/pulumi/sdk/v3 v3.128.0 h1:5VPFfygxt6rva0bEYVQZXxsGAo2/D1wsb9erGOtXxzk= +github.com/pulumi/pulumi/sdk/v3 v3.128.0/go.mod h1:p1U24en3zt51agx+WlNboSOV8eLlPWYAkxMzVEXKbnY= github.com/pulumi/schema-tools v0.1.2 h1:Fd9xvUjgck4NA+7/jSk7InqCUT4Kj940+EcnbQKpfZo= github.com/pulumi/schema-tools v0.1.2/go.mod h1:62lgj52Tzq11eqWTIaKd+EVyYAu5dEcDJxMhTjvMO/k= github.com/pulumi/terraform-diff-reader v0.0.2 h1:kTE4nEXU3/SYXESvAIem+wyHMI3abqkI3OhJ0G04LLI= @@ -2023,6 +2023,8 @@ github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9dec github.com/yuin/goldmark v1.3.5/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k= github.com/yuin/goldmark v1.4.1/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k= github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY= +github.com/yuin/goldmark v1.7.4 h1:BDXOHExt+A7gwPCJgPIIq7ENvceR7we7rOS9TNoLZeg= +github.com/yuin/goldmark v1.7.4/go.mod h1:uzxRWxtg69N339t3louHJ7+O03ezfj6PlliRlaOzY1E= github.com/zclconf/go-cty v1.0.0/go.mod h1:xnAOWiHeOqg2nWS62VtQ7pbOu17FtxJNW8RLEih+O3s= github.com/zclconf/go-cty v1.1.0/go.mod h1:xnAOWiHeOqg2nWS62VtQ7pbOu17FtxJNW8RLEih+O3s= github.com/zclconf/go-cty v1.2.0/go.mod h1:hOPWgoHbaTUnI5k4D2ld+GRpFJSCe6bCM7m1q/N4PQ8= diff --git a/sdk/go.mod b/sdk/go.mod index d367cea0..600368a8 100644 --- a/sdk/go.mod +++ b/sdk/go.mod @@ -4,7 +4,7 @@ go 1.21 require ( github.com/blang/semver v3.5.1+incompatible - github.com/pulumi/pulumi/sdk/v3 v3.126.0 + github.com/pulumi/pulumi/sdk/v3 v3.128.0 ) require ( diff --git a/sdk/go.sum b/sdk/go.sum index c4e7aede..2543199c 100644 --- a/sdk/go.sum +++ b/sdk/go.sum @@ -150,8 +150,8 @@ github.com/pulumi/appdash v0.0.0-20231130102222-75f619a67231 h1:vkHw5I/plNdTr435 github.com/pulumi/appdash v0.0.0-20231130102222-75f619a67231/go.mod h1:murToZ2N9hNJzewjHBgfFdXhZKjY3z5cYC1VXk+lbFE= github.com/pulumi/esc v0.9.1 h1:HH5eEv8sgyxSpY5a8yePyqFXzA8cvBvapfH8457+mIs= github.com/pulumi/esc v0.9.1/go.mod h1:oEJ6bOsjYlQUpjf70GiX+CXn3VBmpwFDxUTlmtUN84c= -github.com/pulumi/pulumi/sdk/v3 v3.126.0 h1:6GQVhwG2jgnG7wjRiWgrq0/sU39onctAiBcvTlqb20s= -github.com/pulumi/pulumi/sdk/v3 v3.126.0/go.mod h1:p1U24en3zt51agx+WlNboSOV8eLlPWYAkxMzVEXKbnY= +github.com/pulumi/pulumi/sdk/v3 v3.128.0 h1:5VPFfygxt6rva0bEYVQZXxsGAo2/D1wsb9erGOtXxzk= +github.com/pulumi/pulumi/sdk/v3 v3.128.0/go.mod h1:p1U24en3zt51agx+WlNboSOV8eLlPWYAkxMzVEXKbnY= github.com/rivo/uniseg v0.1.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc= github.com/rivo/uniseg v0.2.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc= github.com/rivo/uniseg v0.4.4 h1:8TfxU8dW6PdqD27gjM8MVNuicgxIjxpm4K7x4jp8sis= diff --git a/sdk/java/build.gradle b/sdk/java/build.gradle index 4efdc90b..0198f089 100644 --- a/sdk/java/build.gradle +++ b/sdk/java/build.gradle @@ -44,7 +44,7 @@ repositories { dependencies { implementation("com.google.code.findbugs:jsr305:3.0.2") implementation("com.google.code.gson:gson:2.8.9") - implementation("com.pulumi:pulumi:0.12.0") + implementation("com.pulumi:pulumi:0.14.0") } task sourcesJar(type: Jar) { @@ -150,4 +150,4 @@ if (signingKey) { useInMemoryPgpKeys(signingKey, signingPassword) sign publishing.publications.mainPublication } -} \ No newline at end of file +} diff --git a/sdk/java/src/main/java/com/pulumi/signalfx/AlertMutingRule.java b/sdk/java/src/main/java/com/pulumi/signalfx/AlertMutingRule.java index 235c562d..7b123b0f 100644 --- a/sdk/java/src/main/java/com/pulumi/signalfx/AlertMutingRule.java +++ b/sdk/java/src/main/java/com/pulumi/signalfx/AlertMutingRule.java @@ -125,7 +125,7 @@ public Output> stopTime() { * * @param name The _unique_ name of the resulting resource. */ - public AlertMutingRule(String name) { + public AlertMutingRule(java.lang.String name) { this(name, AlertMutingRuleArgs.Empty); } /** @@ -133,7 +133,7 @@ public AlertMutingRule(String name) { * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ - public AlertMutingRule(String name, AlertMutingRuleArgs args) { + public AlertMutingRule(java.lang.String name, AlertMutingRuleArgs args) { this(name, args, null); } /** @@ -142,15 +142,22 @@ public AlertMutingRule(String name, AlertMutingRuleArgs args) { * @param args The arguments to use to populate this resource's properties. * @param options A bag of options that control this resource's behavior. */ - public AlertMutingRule(String name, AlertMutingRuleArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("signalfx:index/alertMutingRule:AlertMutingRule", name, args == null ? AlertMutingRuleArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + public AlertMutingRule(java.lang.String name, AlertMutingRuleArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("signalfx:index/alertMutingRule:AlertMutingRule", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } - private AlertMutingRule(String name, Output id, @Nullable AlertMutingRuleState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("signalfx:index/alertMutingRule:AlertMutingRule", name, state, makeResourceOptions(options, id)); + private AlertMutingRule(java.lang.String name, Output id, @Nullable AlertMutingRuleState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("signalfx:index/alertMutingRule:AlertMutingRule", name, state, makeResourceOptions(options, id), false); } - private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { + private static AlertMutingRuleArgs makeArgs(AlertMutingRuleArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? AlertMutingRuleArgs.Empty : args; + } + + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) .build(); @@ -166,7 +173,7 @@ private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@N * @param state * @param options Optional settings to control the behavior of the CustomResource. */ - public static AlertMutingRule get(String name, Output id, @Nullable AlertMutingRuleState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + public static AlertMutingRule get(java.lang.String name, Output id, @Nullable AlertMutingRuleState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new AlertMutingRule(name, id, state, options); } } diff --git a/sdk/java/src/main/java/com/pulumi/signalfx/Dashboard.java b/sdk/java/src/main/java/com/pulumi/signalfx/Dashboard.java index c6056343..ff60e5ec 100644 --- a/sdk/java/src/main/java/com/pulumi/signalfx/Dashboard.java +++ b/sdk/java/src/main/java/com/pulumi/signalfx/Dashboard.java @@ -317,7 +317,7 @@ public Output>> variables() { * * @param name The _unique_ name of the resulting resource. */ - public Dashboard(String name) { + public Dashboard(java.lang.String name) { this(name, DashboardArgs.Empty); } /** @@ -325,7 +325,7 @@ public Dashboard(String name) { * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ - public Dashboard(String name, DashboardArgs args) { + public Dashboard(java.lang.String name, DashboardArgs args) { this(name, args, null); } /** @@ -334,15 +334,22 @@ public Dashboard(String name, DashboardArgs args) { * @param args The arguments to use to populate this resource's properties. * @param options A bag of options that control this resource's behavior. */ - public Dashboard(String name, DashboardArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("signalfx:index/dashboard:Dashboard", name, args == null ? DashboardArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + public Dashboard(java.lang.String name, DashboardArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("signalfx:index/dashboard:Dashboard", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } - private Dashboard(String name, Output id, @Nullable DashboardState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("signalfx:index/dashboard:Dashboard", name, state, makeResourceOptions(options, id)); + private Dashboard(java.lang.String name, Output id, @Nullable DashboardState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("signalfx:index/dashboard:Dashboard", name, state, makeResourceOptions(options, id), false); } - private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { + private static DashboardArgs makeArgs(DashboardArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? DashboardArgs.Empty : args; + } + + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) .build(); @@ -358,7 +365,7 @@ private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@N * @param state * @param options Optional settings to control the behavior of the CustomResource. */ - public static Dashboard get(String name, Output id, @Nullable DashboardState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + public static Dashboard get(java.lang.String name, Output id, @Nullable DashboardState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new Dashboard(name, id, state, options); } } diff --git a/sdk/java/src/main/java/com/pulumi/signalfx/DashboardGroup.java b/sdk/java/src/main/java/com/pulumi/signalfx/DashboardGroup.java index 04d9e954..651c8aaa 100644 --- a/sdk/java/src/main/java/com/pulumi/signalfx/DashboardGroup.java +++ b/sdk/java/src/main/java/com/pulumi/signalfx/DashboardGroup.java @@ -151,7 +151,7 @@ public Output>> teams() { * * @param name The _unique_ name of the resulting resource. */ - public DashboardGroup(String name) { + public DashboardGroup(java.lang.String name) { this(name, DashboardGroupArgs.Empty); } /** @@ -159,7 +159,7 @@ public DashboardGroup(String name) { * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ - public DashboardGroup(String name, @Nullable DashboardGroupArgs args) { + public DashboardGroup(java.lang.String name, @Nullable DashboardGroupArgs args) { this(name, args, null); } /** @@ -168,15 +168,22 @@ public DashboardGroup(String name, @Nullable DashboardGroupArgs args) { * @param args The arguments to use to populate this resource's properties. * @param options A bag of options that control this resource's behavior. */ - public DashboardGroup(String name, @Nullable DashboardGroupArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("signalfx:index/dashboardGroup:DashboardGroup", name, args == null ? DashboardGroupArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + public DashboardGroup(java.lang.String name, @Nullable DashboardGroupArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("signalfx:index/dashboardGroup:DashboardGroup", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } - private DashboardGroup(String name, Output id, @Nullable DashboardGroupState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("signalfx:index/dashboardGroup:DashboardGroup", name, state, makeResourceOptions(options, id)); + private DashboardGroup(java.lang.String name, Output id, @Nullable DashboardGroupState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("signalfx:index/dashboardGroup:DashboardGroup", name, state, makeResourceOptions(options, id), false); } - private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { + private static DashboardGroupArgs makeArgs(@Nullable DashboardGroupArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? DashboardGroupArgs.Empty : args; + } + + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) .build(); @@ -192,7 +199,7 @@ private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@N * @param state * @param options Optional settings to control the behavior of the CustomResource. */ - public static DashboardGroup get(String name, Output id, @Nullable DashboardGroupState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + public static DashboardGroup get(java.lang.String name, Output id, @Nullable DashboardGroupState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new DashboardGroup(name, id, state, options); } } diff --git a/sdk/java/src/main/java/com/pulumi/signalfx/DataLink.java b/sdk/java/src/main/java/com/pulumi/signalfx/DataLink.java index 6f373e0e..f3d012f4 100644 --- a/sdk/java/src/main/java/com/pulumi/signalfx/DataLink.java +++ b/sdk/java/src/main/java/com/pulumi/signalfx/DataLink.java @@ -115,7 +115,7 @@ public Output>> targetSplunks() { * * @param name The _unique_ name of the resulting resource. */ - public DataLink(String name) { + public DataLink(java.lang.String name) { this(name, DataLinkArgs.Empty); } /** @@ -123,7 +123,7 @@ public DataLink(String name) { * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ - public DataLink(String name, @Nullable DataLinkArgs args) { + public DataLink(java.lang.String name, @Nullable DataLinkArgs args) { this(name, args, null); } /** @@ -132,15 +132,22 @@ public DataLink(String name, @Nullable DataLinkArgs args) { * @param args The arguments to use to populate this resource's properties. * @param options A bag of options that control this resource's behavior. */ - public DataLink(String name, @Nullable DataLinkArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("signalfx:index/dataLink:DataLink", name, args == null ? DataLinkArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + public DataLink(java.lang.String name, @Nullable DataLinkArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("signalfx:index/dataLink:DataLink", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } - private DataLink(String name, Output id, @Nullable DataLinkState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("signalfx:index/dataLink:DataLink", name, state, makeResourceOptions(options, id)); + private DataLink(java.lang.String name, Output id, @Nullable DataLinkState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("signalfx:index/dataLink:DataLink", name, state, makeResourceOptions(options, id), false); } - private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { + private static DataLinkArgs makeArgs(@Nullable DataLinkArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? DataLinkArgs.Empty : args; + } + + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) .build(); @@ -156,7 +163,7 @@ private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@N * @param state * @param options Optional settings to control the behavior of the CustomResource. */ - public static DataLink get(String name, Output id, @Nullable DataLinkState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + public static DataLink get(java.lang.String name, Output id, @Nullable DataLinkState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new DataLink(name, id, state, options); } } diff --git a/sdk/java/src/main/java/com/pulumi/signalfx/Detector.java b/sdk/java/src/main/java/com/pulumi/signalfx/Detector.java index 2c8084da..c044fdef 100644 --- a/sdk/java/src/main/java/com/pulumi/signalfx/Detector.java +++ b/sdk/java/src/main/java/com/pulumi/signalfx/Detector.java @@ -395,7 +395,7 @@ public Output>> vizOptions() { * * @param name The _unique_ name of the resulting resource. */ - public Detector(String name) { + public Detector(java.lang.String name) { this(name, DetectorArgs.Empty); } /** @@ -403,7 +403,7 @@ public Detector(String name) { * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ - public Detector(String name, DetectorArgs args) { + public Detector(java.lang.String name, DetectorArgs args) { this(name, args, null); } /** @@ -412,15 +412,22 @@ public Detector(String name, DetectorArgs args) { * @param args The arguments to use to populate this resource's properties. * @param options A bag of options that control this resource's behavior. */ - public Detector(String name, DetectorArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("signalfx:index/detector:Detector", name, args == null ? DetectorArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + public Detector(java.lang.String name, DetectorArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("signalfx:index/detector:Detector", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } - private Detector(String name, Output id, @Nullable DetectorState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("signalfx:index/detector:Detector", name, state, makeResourceOptions(options, id)); + private Detector(java.lang.String name, Output id, @Nullable DetectorState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("signalfx:index/detector:Detector", name, state, makeResourceOptions(options, id), false); } - private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { + private static DetectorArgs makeArgs(DetectorArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? DetectorArgs.Empty : args; + } + + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) .build(); @@ -436,7 +443,7 @@ private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@N * @param state * @param options Optional settings to control the behavior of the CustomResource. */ - public static Detector get(String name, Output id, @Nullable DetectorState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + public static Detector get(java.lang.String name, Output id, @Nullable DetectorState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new Detector(name, id, state, options); } } diff --git a/sdk/java/src/main/java/com/pulumi/signalfx/EventFeedChart.java b/sdk/java/src/main/java/com/pulumi/signalfx/EventFeedChart.java index c3e74c69..17ca9a83 100644 --- a/sdk/java/src/main/java/com/pulumi/signalfx/EventFeedChart.java +++ b/sdk/java/src/main/java/com/pulumi/signalfx/EventFeedChart.java @@ -126,7 +126,7 @@ public Output url() { * * @param name The _unique_ name of the resulting resource. */ - public EventFeedChart(String name) { + public EventFeedChart(java.lang.String name) { this(name, EventFeedChartArgs.Empty); } /** @@ -134,7 +134,7 @@ public EventFeedChart(String name) { * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ - public EventFeedChart(String name, EventFeedChartArgs args) { + public EventFeedChart(java.lang.String name, EventFeedChartArgs args) { this(name, args, null); } /** @@ -143,15 +143,22 @@ public EventFeedChart(String name, EventFeedChartArgs args) { * @param args The arguments to use to populate this resource's properties. * @param options A bag of options that control this resource's behavior. */ - public EventFeedChart(String name, EventFeedChartArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("signalfx:index/eventFeedChart:EventFeedChart", name, args == null ? EventFeedChartArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + public EventFeedChart(java.lang.String name, EventFeedChartArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("signalfx:index/eventFeedChart:EventFeedChart", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } - private EventFeedChart(String name, Output id, @Nullable EventFeedChartState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("signalfx:index/eventFeedChart:EventFeedChart", name, state, makeResourceOptions(options, id)); + private EventFeedChart(java.lang.String name, Output id, @Nullable EventFeedChartState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("signalfx:index/eventFeedChart:EventFeedChart", name, state, makeResourceOptions(options, id), false); } - private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { + private static EventFeedChartArgs makeArgs(EventFeedChartArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? EventFeedChartArgs.Empty : args; + } + + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) .build(); @@ -167,7 +174,7 @@ private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@N * @param state * @param options Optional settings to control the behavior of the CustomResource. */ - public static EventFeedChart get(String name, Output id, @Nullable EventFeedChartState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + public static EventFeedChart get(java.lang.String name, Output id, @Nullable EventFeedChartState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new EventFeedChart(name, id, state, options); } } diff --git a/sdk/java/src/main/java/com/pulumi/signalfx/HeatmapChart.java b/sdk/java/src/main/java/com/pulumi/signalfx/HeatmapChart.java index 8e2a52c4..49971400 100644 --- a/sdk/java/src/main/java/com/pulumi/signalfx/HeatmapChart.java +++ b/sdk/java/src/main/java/com/pulumi/signalfx/HeatmapChart.java @@ -242,7 +242,7 @@ public Output url() { * * @param name The _unique_ name of the resulting resource. */ - public HeatmapChart(String name) { + public HeatmapChart(java.lang.String name) { this(name, HeatmapChartArgs.Empty); } /** @@ -250,7 +250,7 @@ public HeatmapChart(String name) { * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ - public HeatmapChart(String name, HeatmapChartArgs args) { + public HeatmapChart(java.lang.String name, HeatmapChartArgs args) { this(name, args, null); } /** @@ -259,15 +259,22 @@ public HeatmapChart(String name, HeatmapChartArgs args) { * @param args The arguments to use to populate this resource's properties. * @param options A bag of options that control this resource's behavior. */ - public HeatmapChart(String name, HeatmapChartArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("signalfx:index/heatmapChart:HeatmapChart", name, args == null ? HeatmapChartArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + public HeatmapChart(java.lang.String name, HeatmapChartArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("signalfx:index/heatmapChart:HeatmapChart", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } - private HeatmapChart(String name, Output id, @Nullable HeatmapChartState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("signalfx:index/heatmapChart:HeatmapChart", name, state, makeResourceOptions(options, id)); + private HeatmapChart(java.lang.String name, Output id, @Nullable HeatmapChartState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("signalfx:index/heatmapChart:HeatmapChart", name, state, makeResourceOptions(options, id), false); } - private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { + private static HeatmapChartArgs makeArgs(HeatmapChartArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? HeatmapChartArgs.Empty : args; + } + + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) .build(); @@ -283,7 +290,7 @@ private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@N * @param state * @param options Optional settings to control the behavior of the CustomResource. */ - public static HeatmapChart get(String name, Output id, @Nullable HeatmapChartState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + public static HeatmapChart get(java.lang.String name, Output id, @Nullable HeatmapChartState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new HeatmapChart(name, id, state, options); } } diff --git a/sdk/java/src/main/java/com/pulumi/signalfx/ListChart.java b/sdk/java/src/main/java/com/pulumi/signalfx/ListChart.java index 2bc5492e..47129353 100644 --- a/sdk/java/src/main/java/com/pulumi/signalfx/ListChart.java +++ b/sdk/java/src/main/java/com/pulumi/signalfx/ListChart.java @@ -333,7 +333,7 @@ public Output>> vizOptions() { * * @param name The _unique_ name of the resulting resource. */ - public ListChart(String name) { + public ListChart(java.lang.String name) { this(name, ListChartArgs.Empty); } /** @@ -341,7 +341,7 @@ public ListChart(String name) { * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ - public ListChart(String name, ListChartArgs args) { + public ListChart(java.lang.String name, ListChartArgs args) { this(name, args, null); } /** @@ -350,15 +350,22 @@ public ListChart(String name, ListChartArgs args) { * @param args The arguments to use to populate this resource's properties. * @param options A bag of options that control this resource's behavior. */ - public ListChart(String name, ListChartArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("signalfx:index/listChart:ListChart", name, args == null ? ListChartArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + public ListChart(java.lang.String name, ListChartArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("signalfx:index/listChart:ListChart", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } - private ListChart(String name, Output id, @Nullable ListChartState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("signalfx:index/listChart:ListChart", name, state, makeResourceOptions(options, id)); + private ListChart(java.lang.String name, Output id, @Nullable ListChartState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("signalfx:index/listChart:ListChart", name, state, makeResourceOptions(options, id), false); } - private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { + private static ListChartArgs makeArgs(ListChartArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? ListChartArgs.Empty : args; + } + + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) .build(); @@ -374,7 +381,7 @@ private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@N * @param state * @param options Optional settings to control the behavior of the CustomResource. */ - public static ListChart get(String name, Output id, @Nullable ListChartState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + public static ListChart get(java.lang.String name, Output id, @Nullable ListChartState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new ListChart(name, id, state, options); } } diff --git a/sdk/java/src/main/java/com/pulumi/signalfx/MetricRuleset.java b/sdk/java/src/main/java/com/pulumi/signalfx/MetricRuleset.java index 8346eebd..e292f8d4 100644 --- a/sdk/java/src/main/java/com/pulumi/signalfx/MetricRuleset.java +++ b/sdk/java/src/main/java/com/pulumi/signalfx/MetricRuleset.java @@ -158,7 +158,7 @@ public Output version() { * * @param name The _unique_ name of the resulting resource. */ - public MetricRuleset(String name) { + public MetricRuleset(java.lang.String name) { this(name, MetricRulesetArgs.Empty); } /** @@ -166,7 +166,7 @@ public MetricRuleset(String name) { * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ - public MetricRuleset(String name, MetricRulesetArgs args) { + public MetricRuleset(java.lang.String name, MetricRulesetArgs args) { this(name, args, null); } /** @@ -175,15 +175,22 @@ public MetricRuleset(String name, MetricRulesetArgs args) { * @param args The arguments to use to populate this resource's properties. * @param options A bag of options that control this resource's behavior. */ - public MetricRuleset(String name, MetricRulesetArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("signalfx:index/metricRuleset:MetricRuleset", name, args == null ? MetricRulesetArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + public MetricRuleset(java.lang.String name, MetricRulesetArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("signalfx:index/metricRuleset:MetricRuleset", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } - private MetricRuleset(String name, Output id, @Nullable MetricRulesetState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("signalfx:index/metricRuleset:MetricRuleset", name, state, makeResourceOptions(options, id)); + private MetricRuleset(java.lang.String name, Output id, @Nullable MetricRulesetState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("signalfx:index/metricRuleset:MetricRuleset", name, state, makeResourceOptions(options, id), false); } - private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { + private static MetricRulesetArgs makeArgs(MetricRulesetArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? MetricRulesetArgs.Empty : args; + } + + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) .build(); @@ -199,7 +206,7 @@ private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@N * @param state * @param options Optional settings to control the behavior of the CustomResource. */ - public static MetricRuleset get(String name, Output id, @Nullable MetricRulesetState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + public static MetricRuleset get(java.lang.String name, Output id, @Nullable MetricRulesetState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new MetricRuleset(name, id, state, options); } } diff --git a/sdk/java/src/main/java/com/pulumi/signalfx/OrgToken.java b/sdk/java/src/main/java/com/pulumi/signalfx/OrgToken.java index 1dcbeed0..e54d59ef 100644 --- a/sdk/java/src/main/java/com/pulumi/signalfx/OrgToken.java +++ b/sdk/java/src/main/java/com/pulumi/signalfx/OrgToken.java @@ -145,7 +145,7 @@ public Output secret() { * * @param name The _unique_ name of the resulting resource. */ - public OrgToken(String name) { + public OrgToken(java.lang.String name) { this(name, OrgTokenArgs.Empty); } /** @@ -153,7 +153,7 @@ public OrgToken(String name) { * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ - public OrgToken(String name, @Nullable OrgTokenArgs args) { + public OrgToken(java.lang.String name, @Nullable OrgTokenArgs args) { this(name, args, null); } /** @@ -162,15 +162,22 @@ public OrgToken(String name, @Nullable OrgTokenArgs args) { * @param args The arguments to use to populate this resource's properties. * @param options A bag of options that control this resource's behavior. */ - public OrgToken(String name, @Nullable OrgTokenArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("signalfx:index/orgToken:OrgToken", name, args == null ? OrgTokenArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + public OrgToken(java.lang.String name, @Nullable OrgTokenArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("signalfx:index/orgToken:OrgToken", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } - private OrgToken(String name, Output id, @Nullable OrgTokenState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("signalfx:index/orgToken:OrgToken", name, state, makeResourceOptions(options, id)); + private OrgToken(java.lang.String name, Output id, @Nullable OrgTokenState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("signalfx:index/orgToken:OrgToken", name, state, makeResourceOptions(options, id), false); } - private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { + private static OrgTokenArgs makeArgs(@Nullable OrgTokenArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? OrgTokenArgs.Empty : args; + } + + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) .additionalSecretOutputs(List.of( @@ -189,7 +196,7 @@ private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@N * @param state * @param options Optional settings to control the behavior of the CustomResource. */ - public static OrgToken get(String name, Output id, @Nullable OrgTokenState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + public static OrgToken get(java.lang.String name, Output id, @Nullable OrgTokenState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new OrgToken(name, id, state, options); } } diff --git a/sdk/java/src/main/java/com/pulumi/signalfx/Provider.java b/sdk/java/src/main/java/com/pulumi/signalfx/Provider.java index 8584983a..ee81c1ef 100644 --- a/sdk/java/src/main/java/com/pulumi/signalfx/Provider.java +++ b/sdk/java/src/main/java/com/pulumi/signalfx/Provider.java @@ -69,7 +69,7 @@ public Output> customAppUrl() { * * @param name The _unique_ name of the resulting resource. */ - public Provider(String name) { + public Provider(java.lang.String name) { this(name, ProviderArgs.Empty); } /** @@ -77,7 +77,7 @@ public Provider(String name) { * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ - public Provider(String name, @Nullable ProviderArgs args) { + public Provider(java.lang.String name, @Nullable ProviderArgs args) { this(name, args, null); } /** @@ -86,11 +86,18 @@ public Provider(String name, @Nullable ProviderArgs args) { * @param args The arguments to use to populate this resource's properties. * @param options A bag of options that control this resource's behavior. */ - public Provider(String name, @Nullable ProviderArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("signalfx", name, args == null ? ProviderArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + public Provider(java.lang.String name, @Nullable ProviderArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("signalfx", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } - private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { + private static ProviderArgs makeArgs(@Nullable ProviderArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? ProviderArgs.Empty : args; + } + + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) .build(); diff --git a/sdk/java/src/main/java/com/pulumi/signalfx/SingleValueChart.java b/sdk/java/src/main/java/com/pulumi/signalfx/SingleValueChart.java index 1b4e3612..83adbb18 100644 --- a/sdk/java/src/main/java/com/pulumi/signalfx/SingleValueChart.java +++ b/sdk/java/src/main/java/com/pulumi/signalfx/SingleValueChart.java @@ -244,7 +244,7 @@ public Output>> vizOptions() { * * @param name The _unique_ name of the resulting resource. */ - public SingleValueChart(String name) { + public SingleValueChart(java.lang.String name) { this(name, SingleValueChartArgs.Empty); } /** @@ -252,7 +252,7 @@ public SingleValueChart(String name) { * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ - public SingleValueChart(String name, SingleValueChartArgs args) { + public SingleValueChart(java.lang.String name, SingleValueChartArgs args) { this(name, args, null); } /** @@ -261,15 +261,22 @@ public SingleValueChart(String name, SingleValueChartArgs args) { * @param args The arguments to use to populate this resource's properties. * @param options A bag of options that control this resource's behavior. */ - public SingleValueChart(String name, SingleValueChartArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("signalfx:index/singleValueChart:SingleValueChart", name, args == null ? SingleValueChartArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + public SingleValueChart(java.lang.String name, SingleValueChartArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("signalfx:index/singleValueChart:SingleValueChart", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } - private SingleValueChart(String name, Output id, @Nullable SingleValueChartState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("signalfx:index/singleValueChart:SingleValueChart", name, state, makeResourceOptions(options, id)); + private SingleValueChart(java.lang.String name, Output id, @Nullable SingleValueChartState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("signalfx:index/singleValueChart:SingleValueChart", name, state, makeResourceOptions(options, id), false); } - private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { + private static SingleValueChartArgs makeArgs(SingleValueChartArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? SingleValueChartArgs.Empty : args; + } + + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) .build(); @@ -285,7 +292,7 @@ private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@N * @param state * @param options Optional settings to control the behavior of the CustomResource. */ - public static SingleValueChart get(String name, Output id, @Nullable SingleValueChartState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + public static SingleValueChart get(java.lang.String name, Output id, @Nullable SingleValueChartState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new SingleValueChart(name, id, state, options); } } diff --git a/sdk/java/src/main/java/com/pulumi/signalfx/Slo.java b/sdk/java/src/main/java/com/pulumi/signalfx/Slo.java index dc752d08..0ad1119b 100644 --- a/sdk/java/src/main/java/com/pulumi/signalfx/Slo.java +++ b/sdk/java/src/main/java/com/pulumi/signalfx/Slo.java @@ -143,7 +143,7 @@ public Output type() { * * @param name The _unique_ name of the resulting resource. */ - public Slo(String name) { + public Slo(java.lang.String name) { this(name, SloArgs.Empty); } /** @@ -151,7 +151,7 @@ public Slo(String name) { * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ - public Slo(String name, SloArgs args) { + public Slo(java.lang.String name, SloArgs args) { this(name, args, null); } /** @@ -160,15 +160,22 @@ public Slo(String name, SloArgs args) { * @param args The arguments to use to populate this resource's properties. * @param options A bag of options that control this resource's behavior. */ - public Slo(String name, SloArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("signalfx:index/slo:Slo", name, args == null ? SloArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + public Slo(java.lang.String name, SloArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("signalfx:index/slo:Slo", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } - private Slo(String name, Output id, @Nullable SloState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("signalfx:index/slo:Slo", name, state, makeResourceOptions(options, id)); + private Slo(java.lang.String name, Output id, @Nullable SloState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("signalfx:index/slo:Slo", name, state, makeResourceOptions(options, id), false); } - private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { + private static SloArgs makeArgs(SloArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? SloArgs.Empty : args; + } + + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) .build(); @@ -184,7 +191,7 @@ private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@N * @param state * @param options Optional settings to control the behavior of the CustomResource. */ - public static Slo get(String name, Output id, @Nullable SloState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + public static Slo get(java.lang.String name, Output id, @Nullable SloState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new Slo(name, id, state, options); } } diff --git a/sdk/java/src/main/java/com/pulumi/signalfx/TableChart.java b/sdk/java/src/main/java/com/pulumi/signalfx/TableChart.java index 3374287d..0996bfb6 100644 --- a/sdk/java/src/main/java/com/pulumi/signalfx/TableChart.java +++ b/sdk/java/src/main/java/com/pulumi/signalfx/TableChart.java @@ -213,7 +213,7 @@ public Output>> vizOptions() { * * @param name The _unique_ name of the resulting resource. */ - public TableChart(String name) { + public TableChart(java.lang.String name) { this(name, TableChartArgs.Empty); } /** @@ -221,7 +221,7 @@ public TableChart(String name) { * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ - public TableChart(String name, TableChartArgs args) { + public TableChart(java.lang.String name, TableChartArgs args) { this(name, args, null); } /** @@ -230,15 +230,22 @@ public TableChart(String name, TableChartArgs args) { * @param args The arguments to use to populate this resource's properties. * @param options A bag of options that control this resource's behavior. */ - public TableChart(String name, TableChartArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("signalfx:index/tableChart:TableChart", name, args == null ? TableChartArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + public TableChart(java.lang.String name, TableChartArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("signalfx:index/tableChart:TableChart", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } - private TableChart(String name, Output id, @Nullable TableChartState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("signalfx:index/tableChart:TableChart", name, state, makeResourceOptions(options, id)); + private TableChart(java.lang.String name, Output id, @Nullable TableChartState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("signalfx:index/tableChart:TableChart", name, state, makeResourceOptions(options, id), false); } - private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { + private static TableChartArgs makeArgs(TableChartArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? TableChartArgs.Empty : args; + } + + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) .build(); @@ -254,7 +261,7 @@ private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@N * @param state * @param options Optional settings to control the behavior of the CustomResource. */ - public static TableChart get(String name, Output id, @Nullable TableChartState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + public static TableChart get(java.lang.String name, Output id, @Nullable TableChartState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new TableChart(name, id, state, options); } } diff --git a/sdk/java/src/main/java/com/pulumi/signalfx/Team.java b/sdk/java/src/main/java/com/pulumi/signalfx/Team.java index 423be2bd..507e3285 100644 --- a/sdk/java/src/main/java/com/pulumi/signalfx/Team.java +++ b/sdk/java/src/main/java/com/pulumi/signalfx/Team.java @@ -172,7 +172,7 @@ public Output url() { * * @param name The _unique_ name of the resulting resource. */ - public Team(String name) { + public Team(java.lang.String name) { this(name, TeamArgs.Empty); } /** @@ -180,7 +180,7 @@ public Team(String name) { * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ - public Team(String name, @Nullable TeamArgs args) { + public Team(java.lang.String name, @Nullable TeamArgs args) { this(name, args, null); } /** @@ -189,15 +189,22 @@ public Team(String name, @Nullable TeamArgs args) { * @param args The arguments to use to populate this resource's properties. * @param options A bag of options that control this resource's behavior. */ - public Team(String name, @Nullable TeamArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("signalfx:index/team:Team", name, args == null ? TeamArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + public Team(java.lang.String name, @Nullable TeamArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("signalfx:index/team:Team", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } - private Team(String name, Output id, @Nullable TeamState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("signalfx:index/team:Team", name, state, makeResourceOptions(options, id)); + private Team(java.lang.String name, Output id, @Nullable TeamState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("signalfx:index/team:Team", name, state, makeResourceOptions(options, id), false); } - private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { + private static TeamArgs makeArgs(@Nullable TeamArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? TeamArgs.Empty : args; + } + + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) .build(); @@ -213,7 +220,7 @@ private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@N * @param state * @param options Optional settings to control the behavior of the CustomResource. */ - public static Team get(String name, Output id, @Nullable TeamState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + public static Team get(java.lang.String name, Output id, @Nullable TeamState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new Team(name, id, state, options); } } diff --git a/sdk/java/src/main/java/com/pulumi/signalfx/TextChart.java b/sdk/java/src/main/java/com/pulumi/signalfx/TextChart.java index c855375d..f9ba31bc 100644 --- a/sdk/java/src/main/java/com/pulumi/signalfx/TextChart.java +++ b/sdk/java/src/main/java/com/pulumi/signalfx/TextChart.java @@ -83,7 +83,7 @@ public Output url() { * * @param name The _unique_ name of the resulting resource. */ - public TextChart(String name) { + public TextChart(java.lang.String name) { this(name, TextChartArgs.Empty); } /** @@ -91,7 +91,7 @@ public TextChart(String name) { * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ - public TextChart(String name, TextChartArgs args) { + public TextChart(java.lang.String name, TextChartArgs args) { this(name, args, null); } /** @@ -100,15 +100,22 @@ public TextChart(String name, TextChartArgs args) { * @param args The arguments to use to populate this resource's properties. * @param options A bag of options that control this resource's behavior. */ - public TextChart(String name, TextChartArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("signalfx:index/textChart:TextChart", name, args == null ? TextChartArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + public TextChart(java.lang.String name, TextChartArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("signalfx:index/textChart:TextChart", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } - private TextChart(String name, Output id, @Nullable TextChartState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("signalfx:index/textChart:TextChart", name, state, makeResourceOptions(options, id)); + private TextChart(java.lang.String name, Output id, @Nullable TextChartState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("signalfx:index/textChart:TextChart", name, state, makeResourceOptions(options, id), false); } - private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { + private static TextChartArgs makeArgs(TextChartArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? TextChartArgs.Empty : args; + } + + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) .build(); @@ -124,7 +131,7 @@ private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@N * @param state * @param options Optional settings to control the behavior of the CustomResource. */ - public static TextChart get(String name, Output id, @Nullable TextChartState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + public static TextChart get(java.lang.String name, Output id, @Nullable TextChartState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new TextChart(name, id, state, options); } } diff --git a/sdk/java/src/main/java/com/pulumi/signalfx/TimeChart.java b/sdk/java/src/main/java/com/pulumi/signalfx/TimeChart.java index 866cbd35..476ac6f4 100644 --- a/sdk/java/src/main/java/com/pulumi/signalfx/TimeChart.java +++ b/sdk/java/src/main/java/com/pulumi/signalfx/TimeChart.java @@ -438,7 +438,7 @@ public Output>> vizOptions() { * * @param name The _unique_ name of the resulting resource. */ - public TimeChart(String name) { + public TimeChart(java.lang.String name) { this(name, TimeChartArgs.Empty); } /** @@ -446,7 +446,7 @@ public TimeChart(String name) { * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ - public TimeChart(String name, TimeChartArgs args) { + public TimeChart(java.lang.String name, TimeChartArgs args) { this(name, args, null); } /** @@ -455,15 +455,22 @@ public TimeChart(String name, TimeChartArgs args) { * @param args The arguments to use to populate this resource's properties. * @param options A bag of options that control this resource's behavior. */ - public TimeChart(String name, TimeChartArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("signalfx:index/timeChart:TimeChart", name, args == null ? TimeChartArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + public TimeChart(java.lang.String name, TimeChartArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("signalfx:index/timeChart:TimeChart", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } - private TimeChart(String name, Output id, @Nullable TimeChartState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("signalfx:index/timeChart:TimeChart", name, state, makeResourceOptions(options, id)); + private TimeChart(java.lang.String name, Output id, @Nullable TimeChartState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("signalfx:index/timeChart:TimeChart", name, state, makeResourceOptions(options, id), false); } - private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { + private static TimeChartArgs makeArgs(TimeChartArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? TimeChartArgs.Empty : args; + } + + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) .build(); @@ -479,7 +486,7 @@ private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@N * @param state * @param options Optional settings to control the behavior of the CustomResource. */ - public static TimeChart get(String name, Output id, @Nullable TimeChartState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + public static TimeChart get(java.lang.String name, Output id, @Nullable TimeChartState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new TimeChart(name, id, state, options); } } diff --git a/sdk/java/src/main/java/com/pulumi/signalfx/Utilities.java b/sdk/java/src/main/java/com/pulumi/signalfx/Utilities.java index 8f06304a..9e48b9f5 100644 --- a/sdk/java/src/main/java/com/pulumi/signalfx/Utilities.java +++ b/sdk/java/src/main/java/com/pulumi/signalfx/Utilities.java @@ -17,7 +17,7 @@ public class Utilities { - public static Optional getEnv(String... names) { + public static Optional getEnv(java.lang.String... names) { for (var n : names) { var value = Environment.getEnvironmentVariable(n); if (value.isValue()) { @@ -27,7 +27,7 @@ public static Optional getEnv(String... names) { return Optional.empty(); } - public static Optional getEnvBoolean(String... names) { + public static Optional getEnvBoolean(java.lang.String... names) { for (var n : names) { var value = Environment.getBooleanEnvironmentVariable(n); if (value.isValue()) { @@ -37,7 +37,7 @@ public static Optional getEnvBoolean(String... names) { return Optional.empty(); } - public static Optional getEnvInteger(String... names) { + public static Optional getEnvInteger(java.lang.String... names) { for (var n : names) { var value = Environment.getIntegerEnvironmentVariable(n); if (value.isValue()) { @@ -47,7 +47,7 @@ public static Optional getEnvInteger(String... names) { return Optional.empty(); } - public static Optional getEnvDouble(String... names) { + public static Optional getEnvDouble(java.lang.String... names) { for (var n : names) { var value = Environment.getDoubleEnvironmentVariable(n); if (value.isValue()) { @@ -68,8 +68,8 @@ public static InvokeOptions withVersion(@Nullable InvokeOptions options) { ); } - private static final String version; - public static String getVersion() { + private static final java.lang.String version; + public static java.lang.String getVersion() { return version; } @@ -78,7 +78,7 @@ public static String getVersion() { var versionFile = Utilities.class.getClassLoader().getResourceAsStream(resourceName); if (versionFile == null) { throw new IllegalStateException( - String.format("expected resource '%s' on Classpath, not found", resourceName) + java.lang.String.format("expected resource '%s' on Classpath, not found", resourceName) ); } version = new BufferedReader(new InputStreamReader(versionFile)) diff --git a/sdk/java/src/main/java/com/pulumi/signalfx/WebhookIntegration.java b/sdk/java/src/main/java/com/pulumi/signalfx/WebhookIntegration.java index a86e06f8..b02dd3d6 100644 --- a/sdk/java/src/main/java/com/pulumi/signalfx/WebhookIntegration.java +++ b/sdk/java/src/main/java/com/pulumi/signalfx/WebhookIntegration.java @@ -122,7 +122,7 @@ public Output> url() { * * @param name The _unique_ name of the resulting resource. */ - public WebhookIntegration(String name) { + public WebhookIntegration(java.lang.String name) { this(name, WebhookIntegrationArgs.Empty); } /** @@ -130,7 +130,7 @@ public WebhookIntegration(String name) { * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ - public WebhookIntegration(String name, WebhookIntegrationArgs args) { + public WebhookIntegration(java.lang.String name, WebhookIntegrationArgs args) { this(name, args, null); } /** @@ -139,15 +139,22 @@ public WebhookIntegration(String name, WebhookIntegrationArgs args) { * @param args The arguments to use to populate this resource's properties. * @param options A bag of options that control this resource's behavior. */ - public WebhookIntegration(String name, WebhookIntegrationArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("signalfx:index/webhookIntegration:WebhookIntegration", name, args == null ? WebhookIntegrationArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + public WebhookIntegration(java.lang.String name, WebhookIntegrationArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("signalfx:index/webhookIntegration:WebhookIntegration", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } - private WebhookIntegration(String name, Output id, @Nullable WebhookIntegrationState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("signalfx:index/webhookIntegration:WebhookIntegration", name, state, makeResourceOptions(options, id)); + private WebhookIntegration(java.lang.String name, Output id, @Nullable WebhookIntegrationState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("signalfx:index/webhookIntegration:WebhookIntegration", name, state, makeResourceOptions(options, id), false); } - private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { + private static WebhookIntegrationArgs makeArgs(WebhookIntegrationArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? WebhookIntegrationArgs.Empty : args; + } + + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) .additionalSecretOutputs(List.of( @@ -167,7 +174,7 @@ private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@N * @param state * @param options Optional settings to control the behavior of the CustomResource. */ - public static WebhookIntegration get(String name, Output id, @Nullable WebhookIntegrationState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + public static WebhookIntegration get(java.lang.String name, Output id, @Nullable WebhookIntegrationState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new WebhookIntegration(name, id, state, options); } } diff --git a/sdk/java/src/main/java/com/pulumi/signalfx/aws/ExternalIntegration.java b/sdk/java/src/main/java/com/pulumi/signalfx/aws/ExternalIntegration.java index 4f4879ef..b31a141f 100644 --- a/sdk/java/src/main/java/com/pulumi/signalfx/aws/ExternalIntegration.java +++ b/sdk/java/src/main/java/com/pulumi/signalfx/aws/ExternalIntegration.java @@ -73,7 +73,7 @@ public Output signalfxAwsAccount() { * * @param name The _unique_ name of the resulting resource. */ - public ExternalIntegration(String name) { + public ExternalIntegration(java.lang.String name) { this(name, ExternalIntegrationArgs.Empty); } /** @@ -81,7 +81,7 @@ public ExternalIntegration(String name) { * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ - public ExternalIntegration(String name, @Nullable ExternalIntegrationArgs args) { + public ExternalIntegration(java.lang.String name, @Nullable ExternalIntegrationArgs args) { this(name, args, null); } /** @@ -90,15 +90,22 @@ public ExternalIntegration(String name, @Nullable ExternalIntegrationArgs args) * @param args The arguments to use to populate this resource's properties. * @param options A bag of options that control this resource's behavior. */ - public ExternalIntegration(String name, @Nullable ExternalIntegrationArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("signalfx:aws/externalIntegration:ExternalIntegration", name, args == null ? ExternalIntegrationArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + public ExternalIntegration(java.lang.String name, @Nullable ExternalIntegrationArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("signalfx:aws/externalIntegration:ExternalIntegration", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } - private ExternalIntegration(String name, Output id, @Nullable ExternalIntegrationState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("signalfx:aws/externalIntegration:ExternalIntegration", name, state, makeResourceOptions(options, id)); + private ExternalIntegration(java.lang.String name, Output id, @Nullable ExternalIntegrationState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("signalfx:aws/externalIntegration:ExternalIntegration", name, state, makeResourceOptions(options, id), false); } - private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { + private static ExternalIntegrationArgs makeArgs(@Nullable ExternalIntegrationArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? ExternalIntegrationArgs.Empty : args; + } + + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) .additionalSecretOutputs(List.of( @@ -118,7 +125,7 @@ private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@N * @param state * @param options Optional settings to control the behavior of the CustomResource. */ - public static ExternalIntegration get(String name, Output id, @Nullable ExternalIntegrationState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + public static ExternalIntegration get(java.lang.String name, Output id, @Nullable ExternalIntegrationState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new ExternalIntegration(name, id, state, options); } } diff --git a/sdk/java/src/main/java/com/pulumi/signalfx/aws/Integration.java b/sdk/java/src/main/java/com/pulumi/signalfx/aws/Integration.java index 5d95b830..3899d758 100644 --- a/sdk/java/src/main/java/com/pulumi/signalfx/aws/Integration.java +++ b/sdk/java/src/main/java/com/pulumi/signalfx/aws/Integration.java @@ -351,7 +351,7 @@ public Output useMetricStreamsSync() { * * @param name The _unique_ name of the resulting resource. */ - public Integration(String name) { + public Integration(java.lang.String name) { this(name, IntegrationArgs.Empty); } /** @@ -359,7 +359,7 @@ public Integration(String name) { * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ - public Integration(String name, IntegrationArgs args) { + public Integration(java.lang.String name, IntegrationArgs args) { this(name, args, null); } /** @@ -368,15 +368,22 @@ public Integration(String name, IntegrationArgs args) { * @param args The arguments to use to populate this resource's properties. * @param options A bag of options that control this resource's behavior. */ - public Integration(String name, IntegrationArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("signalfx:aws/integration:Integration", name, args == null ? IntegrationArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + public Integration(java.lang.String name, IntegrationArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("signalfx:aws/integration:Integration", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } - private Integration(String name, Output id, @Nullable IntegrationState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("signalfx:aws/integration:Integration", name, state, makeResourceOptions(options, id)); + private Integration(java.lang.String name, Output id, @Nullable IntegrationState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("signalfx:aws/integration:Integration", name, state, makeResourceOptions(options, id), false); } - private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { + private static IntegrationArgs makeArgs(IntegrationArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? IntegrationArgs.Empty : args; + } + + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) .additionalSecretOutputs(List.of( @@ -396,7 +403,7 @@ private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@N * @param state * @param options Optional settings to control the behavior of the CustomResource. */ - public static Integration get(String name, Output id, @Nullable IntegrationState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + public static Integration get(java.lang.String name, Output id, @Nullable IntegrationState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new Integration(name, id, state, options); } } diff --git a/sdk/java/src/main/java/com/pulumi/signalfx/aws/TokenIntegration.java b/sdk/java/src/main/java/com/pulumi/signalfx/aws/TokenIntegration.java index d4f7d11f..dc261dcd 100644 --- a/sdk/java/src/main/java/com/pulumi/signalfx/aws/TokenIntegration.java +++ b/sdk/java/src/main/java/com/pulumi/signalfx/aws/TokenIntegration.java @@ -73,7 +73,7 @@ public Output tokenId() { * * @param name The _unique_ name of the resulting resource. */ - public TokenIntegration(String name) { + public TokenIntegration(java.lang.String name) { this(name, TokenIntegrationArgs.Empty); } /** @@ -81,7 +81,7 @@ public TokenIntegration(String name) { * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ - public TokenIntegration(String name, @Nullable TokenIntegrationArgs args) { + public TokenIntegration(java.lang.String name, @Nullable TokenIntegrationArgs args) { this(name, args, null); } /** @@ -90,15 +90,22 @@ public TokenIntegration(String name, @Nullable TokenIntegrationArgs args) { * @param args The arguments to use to populate this resource's properties. * @param options A bag of options that control this resource's behavior. */ - public TokenIntegration(String name, @Nullable TokenIntegrationArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("signalfx:aws/tokenIntegration:TokenIntegration", name, args == null ? TokenIntegrationArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + public TokenIntegration(java.lang.String name, @Nullable TokenIntegrationArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("signalfx:aws/tokenIntegration:TokenIntegration", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } - private TokenIntegration(String name, Output id, @Nullable TokenIntegrationState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("signalfx:aws/tokenIntegration:TokenIntegration", name, state, makeResourceOptions(options, id)); + private TokenIntegration(java.lang.String name, Output id, @Nullable TokenIntegrationState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("signalfx:aws/tokenIntegration:TokenIntegration", name, state, makeResourceOptions(options, id), false); } - private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { + private static TokenIntegrationArgs makeArgs(@Nullable TokenIntegrationArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? TokenIntegrationArgs.Empty : args; + } + + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) .additionalSecretOutputs(List.of( @@ -118,7 +125,7 @@ private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@N * @param state * @param options Optional settings to control the behavior of the CustomResource. */ - public static TokenIntegration get(String name, Output id, @Nullable TokenIntegrationState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + public static TokenIntegration get(java.lang.String name, Output id, @Nullable TokenIntegrationState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new TokenIntegration(name, id, state, options); } } diff --git a/sdk/java/src/main/java/com/pulumi/signalfx/azure/Integration.java b/sdk/java/src/main/java/com/pulumi/signalfx/azure/Integration.java index 40dd69fb..66d67ea3 100644 --- a/sdk/java/src/main/java/com/pulumi/signalfx/azure/Integration.java +++ b/sdk/java/src/main/java/com/pulumi/signalfx/azure/Integration.java @@ -244,7 +244,7 @@ public Output tenantId() { * * @param name The _unique_ name of the resulting resource. */ - public Integration(String name) { + public Integration(java.lang.String name) { this(name, IntegrationArgs.Empty); } /** @@ -252,7 +252,7 @@ public Integration(String name) { * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ - public Integration(String name, IntegrationArgs args) { + public Integration(java.lang.String name, IntegrationArgs args) { this(name, args, null); } /** @@ -261,15 +261,22 @@ public Integration(String name, IntegrationArgs args) { * @param args The arguments to use to populate this resource's properties. * @param options A bag of options that control this resource's behavior. */ - public Integration(String name, IntegrationArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("signalfx:azure/integration:Integration", name, args == null ? IntegrationArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + public Integration(java.lang.String name, IntegrationArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("signalfx:azure/integration:Integration", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } - private Integration(String name, Output id, @Nullable IntegrationState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("signalfx:azure/integration:Integration", name, state, makeResourceOptions(options, id)); + private Integration(java.lang.String name, Output id, @Nullable IntegrationState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("signalfx:azure/integration:Integration", name, state, makeResourceOptions(options, id), false); } - private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { + private static IntegrationArgs makeArgs(IntegrationArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? IntegrationArgs.Empty : args; + } + + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) .additionalSecretOutputs(List.of( @@ -290,7 +297,7 @@ private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@N * @param state * @param options Optional settings to control the behavior of the CustomResource. */ - public static Integration get(String name, Output id, @Nullable IntegrationState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + public static Integration get(java.lang.String name, Output id, @Nullable IntegrationState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new Integration(name, id, state, options); } } diff --git a/sdk/java/src/main/java/com/pulumi/signalfx/gcp/Integration.java b/sdk/java/src/main/java/com/pulumi/signalfx/gcp/Integration.java index 06f5a1db..4c9d1e0b 100644 --- a/sdk/java/src/main/java/com/pulumi/signalfx/gcp/Integration.java +++ b/sdk/java/src/main/java/com/pulumi/signalfx/gcp/Integration.java @@ -173,7 +173,7 @@ public Output> useMetricSourceProjectForQuota() { * * @param name The _unique_ name of the resulting resource. */ - public Integration(String name) { + public Integration(java.lang.String name) { this(name, IntegrationArgs.Empty); } /** @@ -181,7 +181,7 @@ public Integration(String name) { * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ - public Integration(String name, IntegrationArgs args) { + public Integration(java.lang.String name, IntegrationArgs args) { this(name, args, null); } /** @@ -190,15 +190,22 @@ public Integration(String name, IntegrationArgs args) { * @param args The arguments to use to populate this resource's properties. * @param options A bag of options that control this resource's behavior. */ - public Integration(String name, IntegrationArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("signalfx:gcp/integration:Integration", name, args == null ? IntegrationArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + public Integration(java.lang.String name, IntegrationArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("signalfx:gcp/integration:Integration", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } - private Integration(String name, Output id, @Nullable IntegrationState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("signalfx:gcp/integration:Integration", name, state, makeResourceOptions(options, id)); + private Integration(java.lang.String name, Output id, @Nullable IntegrationState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("signalfx:gcp/integration:Integration", name, state, makeResourceOptions(options, id), false); } - private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { + private static IntegrationArgs makeArgs(IntegrationArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? IntegrationArgs.Empty : args; + } + + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) .additionalSecretOutputs(List.of( @@ -217,7 +224,7 @@ private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@N * @param state * @param options Optional settings to control the behavior of the CustomResource. */ - public static Integration get(String name, Output id, @Nullable IntegrationState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + public static Integration get(java.lang.String name, Output id, @Nullable IntegrationState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new Integration(name, id, state, options); } } diff --git a/sdk/java/src/main/java/com/pulumi/signalfx/jira/Integration.java b/sdk/java/src/main/java/com/pulumi/signalfx/jira/Integration.java index 7ef7ae9f..5689413e 100644 --- a/sdk/java/src/main/java/com/pulumi/signalfx/jira/Integration.java +++ b/sdk/java/src/main/java/com/pulumi/signalfx/jira/Integration.java @@ -199,7 +199,7 @@ public Output> username() { * * @param name The _unique_ name of the resulting resource. */ - public Integration(String name) { + public Integration(java.lang.String name) { this(name, IntegrationArgs.Empty); } /** @@ -207,7 +207,7 @@ public Integration(String name) { * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ - public Integration(String name, IntegrationArgs args) { + public Integration(java.lang.String name, IntegrationArgs args) { this(name, args, null); } /** @@ -216,15 +216,22 @@ public Integration(String name, IntegrationArgs args) { * @param args The arguments to use to populate this resource's properties. * @param options A bag of options that control this resource's behavior. */ - public Integration(String name, IntegrationArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("signalfx:jira/integration:Integration", name, args == null ? IntegrationArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + public Integration(java.lang.String name, IntegrationArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("signalfx:jira/integration:Integration", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } - private Integration(String name, Output id, @Nullable IntegrationState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("signalfx:jira/integration:Integration", name, state, makeResourceOptions(options, id)); + private Integration(java.lang.String name, Output id, @Nullable IntegrationState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("signalfx:jira/integration:Integration", name, state, makeResourceOptions(options, id), false); } - private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { + private static IntegrationArgs makeArgs(IntegrationArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? IntegrationArgs.Empty : args; + } + + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) .additionalSecretOutputs(List.of( @@ -244,7 +251,7 @@ private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@N * @param state * @param options Optional settings to control the behavior of the CustomResource. */ - public static Integration get(String name, Output id, @Nullable IntegrationState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + public static Integration get(java.lang.String name, Output id, @Nullable IntegrationState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new Integration(name, id, state, options); } } diff --git a/sdk/java/src/main/java/com/pulumi/signalfx/log/Timeline.java b/sdk/java/src/main/java/com/pulumi/signalfx/log/Timeline.java index 902a3346..d3b8459e 100644 --- a/sdk/java/src/main/java/com/pulumi/signalfx/log/Timeline.java +++ b/sdk/java/src/main/java/com/pulumi/signalfx/log/Timeline.java @@ -142,7 +142,7 @@ public Output url() { * * @param name The _unique_ name of the resulting resource. */ - public Timeline(String name) { + public Timeline(java.lang.String name) { this(name, TimelineArgs.Empty); } /** @@ -150,7 +150,7 @@ public Timeline(String name) { * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ - public Timeline(String name, TimelineArgs args) { + public Timeline(java.lang.String name, TimelineArgs args) { this(name, args, null); } /** @@ -159,15 +159,22 @@ public Timeline(String name, TimelineArgs args) { * @param args The arguments to use to populate this resource's properties. * @param options A bag of options that control this resource's behavior. */ - public Timeline(String name, TimelineArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("signalfx:log/timeline:Timeline", name, args == null ? TimelineArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + public Timeline(java.lang.String name, TimelineArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("signalfx:log/timeline:Timeline", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } - private Timeline(String name, Output id, @Nullable TimelineState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("signalfx:log/timeline:Timeline", name, state, makeResourceOptions(options, id)); + private Timeline(java.lang.String name, Output id, @Nullable TimelineState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("signalfx:log/timeline:Timeline", name, state, makeResourceOptions(options, id), false); } - private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { + private static TimelineArgs makeArgs(TimelineArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? TimelineArgs.Empty : args; + } + + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) .build(); @@ -183,7 +190,7 @@ private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@N * @param state * @param options Optional settings to control the behavior of the CustomResource. */ - public static Timeline get(String name, Output id, @Nullable TimelineState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + public static Timeline get(java.lang.String name, Output id, @Nullable TimelineState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new Timeline(name, id, state, options); } } diff --git a/sdk/java/src/main/java/com/pulumi/signalfx/log/View.java b/sdk/java/src/main/java/com/pulumi/signalfx/log/View.java index 76bdde35..5cec5824 100644 --- a/sdk/java/src/main/java/com/pulumi/signalfx/log/View.java +++ b/sdk/java/src/main/java/com/pulumi/signalfx/log/View.java @@ -174,7 +174,7 @@ public Output url() { * * @param name The _unique_ name of the resulting resource. */ - public View(String name) { + public View(java.lang.String name) { this(name, ViewArgs.Empty); } /** @@ -182,7 +182,7 @@ public View(String name) { * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ - public View(String name, ViewArgs args) { + public View(java.lang.String name, ViewArgs args) { this(name, args, null); } /** @@ -191,15 +191,22 @@ public View(String name, ViewArgs args) { * @param args The arguments to use to populate this resource's properties. * @param options A bag of options that control this resource's behavior. */ - public View(String name, ViewArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("signalfx:log/view:View", name, args == null ? ViewArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + public View(java.lang.String name, ViewArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("signalfx:log/view:View", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } - private View(String name, Output id, @Nullable ViewState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("signalfx:log/view:View", name, state, makeResourceOptions(options, id)); + private View(java.lang.String name, Output id, @Nullable ViewState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("signalfx:log/view:View", name, state, makeResourceOptions(options, id), false); } - private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { + private static ViewArgs makeArgs(ViewArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? ViewArgs.Empty : args; + } + + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) .aliases(List.of( @@ -218,7 +225,7 @@ private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@N * @param state * @param options Optional settings to control the behavior of the CustomResource. */ - public static View get(String name, Output id, @Nullable ViewState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + public static View get(java.lang.String name, Output id, @Nullable ViewState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new View(name, id, state, options); } } diff --git a/sdk/java/src/main/java/com/pulumi/signalfx/opsgenie/Integration.java b/sdk/java/src/main/java/com/pulumi/signalfx/opsgenie/Integration.java index 39676f2b..fd81d2a6 100644 --- a/sdk/java/src/main/java/com/pulumi/signalfx/opsgenie/Integration.java +++ b/sdk/java/src/main/java/com/pulumi/signalfx/opsgenie/Integration.java @@ -87,7 +87,7 @@ public Output name() { * * @param name The _unique_ name of the resulting resource. */ - public Integration(String name) { + public Integration(java.lang.String name) { this(name, IntegrationArgs.Empty); } /** @@ -95,7 +95,7 @@ public Integration(String name) { * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ - public Integration(String name, IntegrationArgs args) { + public Integration(java.lang.String name, IntegrationArgs args) { this(name, args, null); } /** @@ -104,15 +104,22 @@ public Integration(String name, IntegrationArgs args) { * @param args The arguments to use to populate this resource's properties. * @param options A bag of options that control this resource's behavior. */ - public Integration(String name, IntegrationArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("signalfx:opsgenie/integration:Integration", name, args == null ? IntegrationArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + public Integration(java.lang.String name, IntegrationArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("signalfx:opsgenie/integration:Integration", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } - private Integration(String name, Output id, @Nullable IntegrationState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("signalfx:opsgenie/integration:Integration", name, state, makeResourceOptions(options, id)); + private Integration(java.lang.String name, Output id, @Nullable IntegrationState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("signalfx:opsgenie/integration:Integration", name, state, makeResourceOptions(options, id), false); } - private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { + private static IntegrationArgs makeArgs(IntegrationArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? IntegrationArgs.Empty : args; + } + + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) .additionalSecretOutputs(List.of( @@ -131,7 +138,7 @@ private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@N * @param state * @param options Optional settings to control the behavior of the CustomResource. */ - public static Integration get(String name, Output id, @Nullable IntegrationState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + public static Integration get(java.lang.String name, Output id, @Nullable IntegrationState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new Integration(name, id, state, options); } } diff --git a/sdk/java/src/main/java/com/pulumi/signalfx/pagerduty/Integration.java b/sdk/java/src/main/java/com/pulumi/signalfx/pagerduty/Integration.java index 428a3028..c436c17a 100644 --- a/sdk/java/src/main/java/com/pulumi/signalfx/pagerduty/Integration.java +++ b/sdk/java/src/main/java/com/pulumi/signalfx/pagerduty/Integration.java @@ -73,7 +73,7 @@ public Output name() { * * @param name The _unique_ name of the resulting resource. */ - public Integration(String name) { + public Integration(java.lang.String name) { this(name, IntegrationArgs.Empty); } /** @@ -81,7 +81,7 @@ public Integration(String name) { * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ - public Integration(String name, IntegrationArgs args) { + public Integration(java.lang.String name, IntegrationArgs args) { this(name, args, null); } /** @@ -90,15 +90,22 @@ public Integration(String name, IntegrationArgs args) { * @param args The arguments to use to populate this resource's properties. * @param options A bag of options that control this resource's behavior. */ - public Integration(String name, IntegrationArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("signalfx:pagerduty/integration:Integration", name, args == null ? IntegrationArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + public Integration(java.lang.String name, IntegrationArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("signalfx:pagerduty/integration:Integration", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } - private Integration(String name, Output id, @Nullable IntegrationState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("signalfx:pagerduty/integration:Integration", name, state, makeResourceOptions(options, id)); + private Integration(java.lang.String name, Output id, @Nullable IntegrationState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("signalfx:pagerduty/integration:Integration", name, state, makeResourceOptions(options, id), false); } - private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { + private static IntegrationArgs makeArgs(IntegrationArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? IntegrationArgs.Empty : args; + } + + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) .additionalSecretOutputs(List.of( @@ -117,7 +124,7 @@ private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@N * @param state * @param options Optional settings to control the behavior of the CustomResource. */ - public static Integration get(String name, Output id, @Nullable IntegrationState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + public static Integration get(java.lang.String name, Output id, @Nullable IntegrationState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new Integration(name, id, state, options); } } diff --git a/sdk/java/src/main/java/com/pulumi/signalfx/servicenow/Integration.java b/sdk/java/src/main/java/com/pulumi/signalfx/servicenow/Integration.java index 5d52fd81..5996189e 100644 --- a/sdk/java/src/main/java/com/pulumi/signalfx/servicenow/Integration.java +++ b/sdk/java/src/main/java/com/pulumi/signalfx/servicenow/Integration.java @@ -143,7 +143,7 @@ public Output username() { * * @param name The _unique_ name of the resulting resource. */ - public Integration(String name) { + public Integration(java.lang.String name) { this(name, IntegrationArgs.Empty); } /** @@ -151,7 +151,7 @@ public Integration(String name) { * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ - public Integration(String name, IntegrationArgs args) { + public Integration(java.lang.String name, IntegrationArgs args) { this(name, args, null); } /** @@ -160,15 +160,22 @@ public Integration(String name, IntegrationArgs args) { * @param args The arguments to use to populate this resource's properties. * @param options A bag of options that control this resource's behavior. */ - public Integration(String name, IntegrationArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("signalfx:servicenow/integration:Integration", name, args == null ? IntegrationArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + public Integration(java.lang.String name, IntegrationArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("signalfx:servicenow/integration:Integration", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } - private Integration(String name, Output id, @Nullable IntegrationState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("signalfx:servicenow/integration:Integration", name, state, makeResourceOptions(options, id)); + private Integration(java.lang.String name, Output id, @Nullable IntegrationState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("signalfx:servicenow/integration:Integration", name, state, makeResourceOptions(options, id), false); } - private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { + private static IntegrationArgs makeArgs(IntegrationArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? IntegrationArgs.Empty : args; + } + + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) .additionalSecretOutputs(List.of( @@ -187,7 +194,7 @@ private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@N * @param state * @param options Optional settings to control the behavior of the CustomResource. */ - public static Integration get(String name, Output id, @Nullable IntegrationState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + public static Integration get(java.lang.String name, Output id, @Nullable IntegrationState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new Integration(name, id, state, options); } } diff --git a/sdk/java/src/main/java/com/pulumi/signalfx/slack/Integration.java b/sdk/java/src/main/java/com/pulumi/signalfx/slack/Integration.java index 61017aca..1a529371 100644 --- a/sdk/java/src/main/java/com/pulumi/signalfx/slack/Integration.java +++ b/sdk/java/src/main/java/com/pulumi/signalfx/slack/Integration.java @@ -72,7 +72,7 @@ public Output webhookUrl() { * * @param name The _unique_ name of the resulting resource. */ - public Integration(String name) { + public Integration(java.lang.String name) { this(name, IntegrationArgs.Empty); } /** @@ -80,7 +80,7 @@ public Integration(String name) { * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ - public Integration(String name, IntegrationArgs args) { + public Integration(java.lang.String name, IntegrationArgs args) { this(name, args, null); } /** @@ -89,15 +89,22 @@ public Integration(String name, IntegrationArgs args) { * @param args The arguments to use to populate this resource's properties. * @param options A bag of options that control this resource's behavior. */ - public Integration(String name, IntegrationArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("signalfx:slack/integration:Integration", name, args == null ? IntegrationArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + public Integration(java.lang.String name, IntegrationArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("signalfx:slack/integration:Integration", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } - private Integration(String name, Output id, @Nullable IntegrationState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("signalfx:slack/integration:Integration", name, state, makeResourceOptions(options, id)); + private Integration(java.lang.String name, Output id, @Nullable IntegrationState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("signalfx:slack/integration:Integration", name, state, makeResourceOptions(options, id), false); } - private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { + private static IntegrationArgs makeArgs(IntegrationArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? IntegrationArgs.Empty : args; + } + + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) .additionalSecretOutputs(List.of( @@ -116,7 +123,7 @@ private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@N * @param state * @param options Optional settings to control the behavior of the CustomResource. */ - public static Integration get(String name, Output id, @Nullable IntegrationState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + public static Integration get(java.lang.String name, Output id, @Nullable IntegrationState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new Integration(name, id, state, options); } } diff --git a/sdk/java/src/main/java/com/pulumi/signalfx/victorops/Integration.java b/sdk/java/src/main/java/com/pulumi/signalfx/victorops/Integration.java index a69629ac..87361b08 100644 --- a/sdk/java/src/main/java/com/pulumi/signalfx/victorops/Integration.java +++ b/sdk/java/src/main/java/com/pulumi/signalfx/victorops/Integration.java @@ -72,7 +72,7 @@ public Output> postUrl() { * * @param name The _unique_ name of the resulting resource. */ - public Integration(String name) { + public Integration(java.lang.String name) { this(name, IntegrationArgs.Empty); } /** @@ -80,7 +80,7 @@ public Integration(String name) { * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ - public Integration(String name, IntegrationArgs args) { + public Integration(java.lang.String name, IntegrationArgs args) { this(name, args, null); } /** @@ -89,15 +89,22 @@ public Integration(String name, IntegrationArgs args) { * @param args The arguments to use to populate this resource's properties. * @param options A bag of options that control this resource's behavior. */ - public Integration(String name, IntegrationArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("signalfx:victorops/integration:Integration", name, args == null ? IntegrationArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + public Integration(java.lang.String name, IntegrationArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("signalfx:victorops/integration:Integration", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } - private Integration(String name, Output id, @Nullable IntegrationState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("signalfx:victorops/integration:Integration", name, state, makeResourceOptions(options, id)); + private Integration(java.lang.String name, Output id, @Nullable IntegrationState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("signalfx:victorops/integration:Integration", name, state, makeResourceOptions(options, id), false); } - private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { + private static IntegrationArgs makeArgs(IntegrationArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? IntegrationArgs.Empty : args; + } + + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) .build(); @@ -113,7 +120,7 @@ private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@N * @param state * @param options Optional settings to control the behavior of the CustomResource. */ - public static Integration get(String name, Output id, @Nullable IntegrationState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + public static Integration get(java.lang.String name, Output id, @Nullable IntegrationState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new Integration(name, id, state, options); } } diff --git a/sdk/python/pulumi_signalfx/alert_muting_rule.py b/sdk/python/pulumi_signalfx/alert_muting_rule.py index 9b062e55..b5d6df17 100644 --- a/sdk/python/pulumi_signalfx/alert_muting_rule.py +++ b/sdk/python/pulumi_signalfx/alert_muting_rule.py @@ -238,8 +238,8 @@ def __init__(__self__, opts: Optional[pulumi.ResourceOptions] = None, description: Optional[pulumi.Input[str]] = None, detectors: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, - filters: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['AlertMutingRuleFilterArgs']]]]] = None, - recurrence: Optional[pulumi.Input[pulumi.InputType['AlertMutingRuleRecurrenceArgs']]] = None, + filters: Optional[pulumi.Input[Sequence[pulumi.Input[Union['AlertMutingRuleFilterArgs', 'AlertMutingRuleFilterArgsDict']]]]] = None, + recurrence: Optional[pulumi.Input[Union['AlertMutingRuleRecurrenceArgs', 'AlertMutingRuleRecurrenceArgsDict']]] = None, start_time: Optional[pulumi.Input[int]] = None, stop_time: Optional[pulumi.Input[int]] = None, __props__=None): @@ -256,8 +256,8 @@ def __init__(__self__, :param pulumi.ResourceOptions opts: Options for the resource. :param pulumi.Input[str] description: The description for this muting rule :param pulumi.Input[Sequence[pulumi.Input[str]]] detectors: A convenience attribute that associated this muting rule with specific detector IDs. Currently, only one ID is supported. - :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['AlertMutingRuleFilterArgs']]]] filters: Filters for this rule. See [Creating muting rules from scratch](https://docs.splunk.com/Observability/alerts-detectors-notifications/mute-notifications.html#rule-from-scratch) for more information. - :param pulumi.Input[pulumi.InputType['AlertMutingRuleRecurrenceArgs']] recurrence: Defines the recurrence of the muting rule. Allows setting a recurring muting rule based on specified days or weeks. + :param pulumi.Input[Sequence[pulumi.Input[Union['AlertMutingRuleFilterArgs', 'AlertMutingRuleFilterArgsDict']]]] filters: Filters for this rule. See [Creating muting rules from scratch](https://docs.splunk.com/Observability/alerts-detectors-notifications/mute-notifications.html#rule-from-scratch) for more information. + :param pulumi.Input[Union['AlertMutingRuleRecurrenceArgs', 'AlertMutingRuleRecurrenceArgsDict']] recurrence: Defines the recurrence of the muting rule. Allows setting a recurring muting rule based on specified days or weeks. :param pulumi.Input[int] start_time: Starting time of an alert muting rule as a Unit time stamp in seconds. :param pulumi.Input[int] stop_time: Stop time of an alert muting rule as a Unix time stamp in seconds. """ @@ -293,8 +293,8 @@ def _internal_init(__self__, opts: Optional[pulumi.ResourceOptions] = None, description: Optional[pulumi.Input[str]] = None, detectors: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, - filters: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['AlertMutingRuleFilterArgs']]]]] = None, - recurrence: Optional[pulumi.Input[pulumi.InputType['AlertMutingRuleRecurrenceArgs']]] = None, + filters: Optional[pulumi.Input[Sequence[pulumi.Input[Union['AlertMutingRuleFilterArgs', 'AlertMutingRuleFilterArgsDict']]]]] = None, + recurrence: Optional[pulumi.Input[Union['AlertMutingRuleRecurrenceArgs', 'AlertMutingRuleRecurrenceArgsDict']]] = None, start_time: Optional[pulumi.Input[int]] = None, stop_time: Optional[pulumi.Input[int]] = None, __props__=None): @@ -330,8 +330,8 @@ def get(resource_name: str, description: Optional[pulumi.Input[str]] = None, detectors: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, effective_start_time: Optional[pulumi.Input[int]] = None, - filters: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['AlertMutingRuleFilterArgs']]]]] = None, - recurrence: Optional[pulumi.Input[pulumi.InputType['AlertMutingRuleRecurrenceArgs']]] = None, + filters: Optional[pulumi.Input[Sequence[pulumi.Input[Union['AlertMutingRuleFilterArgs', 'AlertMutingRuleFilterArgsDict']]]]] = None, + recurrence: Optional[pulumi.Input[Union['AlertMutingRuleRecurrenceArgs', 'AlertMutingRuleRecurrenceArgsDict']]] = None, start_time: Optional[pulumi.Input[int]] = None, stop_time: Optional[pulumi.Input[int]] = None) -> 'AlertMutingRule': """ @@ -343,8 +343,8 @@ def get(resource_name: str, :param pulumi.ResourceOptions opts: Options for the resource. :param pulumi.Input[str] description: The description for this muting rule :param pulumi.Input[Sequence[pulumi.Input[str]]] detectors: A convenience attribute that associated this muting rule with specific detector IDs. Currently, only one ID is supported. - :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['AlertMutingRuleFilterArgs']]]] filters: Filters for this rule. See [Creating muting rules from scratch](https://docs.splunk.com/Observability/alerts-detectors-notifications/mute-notifications.html#rule-from-scratch) for more information. - :param pulumi.Input[pulumi.InputType['AlertMutingRuleRecurrenceArgs']] recurrence: Defines the recurrence of the muting rule. Allows setting a recurring muting rule based on specified days or weeks. + :param pulumi.Input[Sequence[pulumi.Input[Union['AlertMutingRuleFilterArgs', 'AlertMutingRuleFilterArgsDict']]]] filters: Filters for this rule. See [Creating muting rules from scratch](https://docs.splunk.com/Observability/alerts-detectors-notifications/mute-notifications.html#rule-from-scratch) for more information. + :param pulumi.Input[Union['AlertMutingRuleRecurrenceArgs', 'AlertMutingRuleRecurrenceArgsDict']] recurrence: Defines the recurrence of the muting rule. Allows setting a recurring muting rule based on specified days or weeks. :param pulumi.Input[int] start_time: Starting time of an alert muting rule as a Unit time stamp in seconds. :param pulumi.Input[int] stop_time: Stop time of an alert muting rule as a Unix time stamp in seconds. """ diff --git a/sdk/python/pulumi_signalfx/aws/integration.py b/sdk/python/pulumi_signalfx/aws/integration.py index 613cd551..940fe6e2 100644 --- a/sdk/python/pulumi_signalfx/aws/integration.py +++ b/sdk/python/pulumi_signalfx/aws/integration.py @@ -714,7 +714,7 @@ def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, custom_cloudwatch_namespaces: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, - custom_namespace_sync_rules: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['IntegrationCustomNamespaceSyncRuleArgs']]]]] = None, + custom_namespace_sync_rules: Optional[pulumi.Input[Sequence[pulumi.Input[Union['IntegrationCustomNamespaceSyncRuleArgs', 'IntegrationCustomNamespaceSyncRuleArgsDict']]]]] = None, enable_aws_usage: Optional[pulumi.Input[bool]] = None, enable_check_large_volume: Optional[pulumi.Input[bool]] = None, enable_logs_sync: Optional[pulumi.Input[bool]] = None, @@ -723,9 +723,9 @@ def __init__(__self__, import_cloud_watch: Optional[pulumi.Input[bool]] = None, integration_id: Optional[pulumi.Input[str]] = None, key: Optional[pulumi.Input[str]] = None, - metric_stats_to_syncs: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['IntegrationMetricStatsToSyncArgs']]]]] = None, + metric_stats_to_syncs: Optional[pulumi.Input[Sequence[pulumi.Input[Union['IntegrationMetricStatsToSyncArgs', 'IntegrationMetricStatsToSyncArgsDict']]]]] = None, named_token: Optional[pulumi.Input[str]] = None, - namespace_sync_rules: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['IntegrationNamespaceSyncRuleArgs']]]]] = None, + namespace_sync_rules: Optional[pulumi.Input[Sequence[pulumi.Input[Union['IntegrationNamespaceSyncRuleArgs', 'IntegrationNamespaceSyncRuleArgsDict']]]]] = None, poll_rate: Optional[pulumi.Input[int]] = None, regions: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, role_arn: Optional[pulumi.Input[str]] = None, @@ -746,7 +746,7 @@ def __init__(__self__, :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :param pulumi.Input[Sequence[pulumi.Input[str]]] custom_cloudwatch_namespaces: List of custom AWS CloudWatch namespaces to monitor. Custom namespaces contain custom metrics that you define in AWS; Splunk Observability Cloud imports the metrics so you can monitor them. - :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['IntegrationCustomNamespaceSyncRuleArgs']]]] custom_namespace_sync_rules: Each element controls the data collected by Splunk Observability Cloud for the specified namespace. Conflicts with the `custom_cloudwatch_namespaces` property. + :param pulumi.Input[Sequence[pulumi.Input[Union['IntegrationCustomNamespaceSyncRuleArgs', 'IntegrationCustomNamespaceSyncRuleArgsDict']]]] custom_namespace_sync_rules: Each element controls the data collected by Splunk Observability Cloud for the specified namespace. Conflicts with the `custom_cloudwatch_namespaces` property. :param pulumi.Input[bool] enable_aws_usage: Flag that controls how Splunk Observability Cloud imports usage metrics from AWS to use with AWS Cost Optimizer. If `true`, Splunk Observability Cloud imports the metrics. :param pulumi.Input[bool] enable_check_large_volume: Controls how Splunk Observability Cloud checks for large amounts of data for this AWS integration. If `true`, Splunk Observability Cloud monitors the amount of data coming in from the integration. :param pulumi.Input[bool] enable_logs_sync: Enable the AWS logs synchronization. Note that this requires the inclusion of `"logs:DescribeLogGroups"`, `"logs:DeleteSubscriptionFilter"`, `"logs:DescribeSubscriptionFilters"`, `"logs:PutSubscriptionFilter"`, and `"s3:GetBucketLogging"`, `"s3:GetBucketNotification"`, `"s3:PutBucketNotification"` permissions. Additional permissions may be required to capture logs from specific AWS services. @@ -755,9 +755,9 @@ def __init__(__self__, :param pulumi.Input[bool] import_cloud_watch: Flag that controls how Splunk Observability Cloud imports Cloud Watch metrics. If true, Splunk Observability Cloud imports Cloud Watch metrics from AWS. :param pulumi.Input[str] integration_id: The id of one of a `aws.ExternalIntegration` or `aws.TokenIntegration`. :param pulumi.Input[str] key: If you specify `auth_method = \\"SecurityToken\\"` in your request to create an AWS integration object, use this property to specify the key (this is typically equivalent to the `AWS_SECRET_ACCESS_KEY` environment variable). - :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['IntegrationMetricStatsToSyncArgs']]]] metric_stats_to_syncs: Each element in the array is an object that contains an AWS namespace name, AWS metric name and a list of statistics that Splunk Observability Cloud collects for this metric. If you specify this property, Splunk Observability Cloud retrieves only specified AWS statistics when AWS metric streams are not used. When AWS metric streams are used this property specifies additional extended statistics to collect (please note that AWS metric streams API supports percentile stats only; other stats are ignored). If you don't specify this property, Splunk Observability Cloud retrieves the AWS standard set of statistics. + :param pulumi.Input[Sequence[pulumi.Input[Union['IntegrationMetricStatsToSyncArgs', 'IntegrationMetricStatsToSyncArgsDict']]]] metric_stats_to_syncs: Each element in the array is an object that contains an AWS namespace name, AWS metric name and a list of statistics that Splunk Observability Cloud collects for this metric. If you specify this property, Splunk Observability Cloud retrieves only specified AWS statistics when AWS metric streams are not used. When AWS metric streams are used this property specifies additional extended statistics to collect (please note that AWS metric streams API supports percentile stats only; other stats are ignored). If you don't specify this property, Splunk Observability Cloud retrieves the AWS standard set of statistics. :param pulumi.Input[str] named_token: Name of the org token to be used for data ingestion. If not specified then default access token is used. - :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['IntegrationNamespaceSyncRuleArgs']]]] namespace_sync_rules: Each element in the array is an object that contains an AWS namespace name and a filter that controls the data that Splunk Observability Cloud collects for the namespace. Conflicts with the `services` property. If you don't specify either property, Splunk Observability Cloud syncs all data in all AWS namespaces. + :param pulumi.Input[Sequence[pulumi.Input[Union['IntegrationNamespaceSyncRuleArgs', 'IntegrationNamespaceSyncRuleArgsDict']]]] namespace_sync_rules: Each element in the array is an object that contains an AWS namespace name and a filter that controls the data that Splunk Observability Cloud collects for the namespace. Conflicts with the `services` property. If you don't specify either property, Splunk Observability Cloud syncs all data in all AWS namespaces. :param pulumi.Input[int] poll_rate: AWS poll rate (in seconds). Value between `60` and `600`. Default: `300`. :param pulumi.Input[Sequence[pulumi.Input[str]]] regions: List of AWS regions that Splunk Observability Cloud should monitor. It cannot be empty. :param pulumi.Input[str] role_arn: Role ARN that you add to an existing AWS integration object. **Note**: Ensure you use the `arn` property of your role, not the id! @@ -799,7 +799,7 @@ def _internal_init(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, custom_cloudwatch_namespaces: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, - custom_namespace_sync_rules: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['IntegrationCustomNamespaceSyncRuleArgs']]]]] = None, + custom_namespace_sync_rules: Optional[pulumi.Input[Sequence[pulumi.Input[Union['IntegrationCustomNamespaceSyncRuleArgs', 'IntegrationCustomNamespaceSyncRuleArgsDict']]]]] = None, enable_aws_usage: Optional[pulumi.Input[bool]] = None, enable_check_large_volume: Optional[pulumi.Input[bool]] = None, enable_logs_sync: Optional[pulumi.Input[bool]] = None, @@ -808,9 +808,9 @@ def _internal_init(__self__, import_cloud_watch: Optional[pulumi.Input[bool]] = None, integration_id: Optional[pulumi.Input[str]] = None, key: Optional[pulumi.Input[str]] = None, - metric_stats_to_syncs: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['IntegrationMetricStatsToSyncArgs']]]]] = None, + metric_stats_to_syncs: Optional[pulumi.Input[Sequence[pulumi.Input[Union['IntegrationMetricStatsToSyncArgs', 'IntegrationMetricStatsToSyncArgsDict']]]]] = None, named_token: Optional[pulumi.Input[str]] = None, - namespace_sync_rules: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['IntegrationNamespaceSyncRuleArgs']]]]] = None, + namespace_sync_rules: Optional[pulumi.Input[Sequence[pulumi.Input[Union['IntegrationNamespaceSyncRuleArgs', 'IntegrationNamespaceSyncRuleArgsDict']]]]] = None, poll_rate: Optional[pulumi.Input[int]] = None, regions: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, role_arn: Optional[pulumi.Input[str]] = None, @@ -869,7 +869,7 @@ def get(resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, auth_method: Optional[pulumi.Input[str]] = None, custom_cloudwatch_namespaces: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, - custom_namespace_sync_rules: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['IntegrationCustomNamespaceSyncRuleArgs']]]]] = None, + custom_namespace_sync_rules: Optional[pulumi.Input[Sequence[pulumi.Input[Union['IntegrationCustomNamespaceSyncRuleArgs', 'IntegrationCustomNamespaceSyncRuleArgsDict']]]]] = None, enable_aws_usage: Optional[pulumi.Input[bool]] = None, enable_check_large_volume: Optional[pulumi.Input[bool]] = None, enable_logs_sync: Optional[pulumi.Input[bool]] = None, @@ -878,10 +878,10 @@ def get(resource_name: str, import_cloud_watch: Optional[pulumi.Input[bool]] = None, integration_id: Optional[pulumi.Input[str]] = None, key: Optional[pulumi.Input[str]] = None, - metric_stats_to_syncs: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['IntegrationMetricStatsToSyncArgs']]]]] = None, + metric_stats_to_syncs: Optional[pulumi.Input[Sequence[pulumi.Input[Union['IntegrationMetricStatsToSyncArgs', 'IntegrationMetricStatsToSyncArgsDict']]]]] = None, name: Optional[pulumi.Input[str]] = None, named_token: Optional[pulumi.Input[str]] = None, - namespace_sync_rules: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['IntegrationNamespaceSyncRuleArgs']]]]] = None, + namespace_sync_rules: Optional[pulumi.Input[Sequence[pulumi.Input[Union['IntegrationNamespaceSyncRuleArgs', 'IntegrationNamespaceSyncRuleArgsDict']]]]] = None, poll_rate: Optional[pulumi.Input[int]] = None, regions: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, role_arn: Optional[pulumi.Input[str]] = None, @@ -899,7 +899,7 @@ def get(resource_name: str, :param pulumi.Input[str] auth_method: The mechanism used to authenticate with AWS. Use one of `aws.ExternalIntegration` or `aws.TokenIntegration` to define this :param pulumi.Input[Sequence[pulumi.Input[str]]] custom_cloudwatch_namespaces: List of custom AWS CloudWatch namespaces to monitor. Custom namespaces contain custom metrics that you define in AWS; Splunk Observability Cloud imports the metrics so you can monitor them. - :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['IntegrationCustomNamespaceSyncRuleArgs']]]] custom_namespace_sync_rules: Each element controls the data collected by Splunk Observability Cloud for the specified namespace. Conflicts with the `custom_cloudwatch_namespaces` property. + :param pulumi.Input[Sequence[pulumi.Input[Union['IntegrationCustomNamespaceSyncRuleArgs', 'IntegrationCustomNamespaceSyncRuleArgsDict']]]] custom_namespace_sync_rules: Each element controls the data collected by Splunk Observability Cloud for the specified namespace. Conflicts with the `custom_cloudwatch_namespaces` property. :param pulumi.Input[bool] enable_aws_usage: Flag that controls how Splunk Observability Cloud imports usage metrics from AWS to use with AWS Cost Optimizer. If `true`, Splunk Observability Cloud imports the metrics. :param pulumi.Input[bool] enable_check_large_volume: Controls how Splunk Observability Cloud checks for large amounts of data for this AWS integration. If `true`, Splunk Observability Cloud monitors the amount of data coming in from the integration. :param pulumi.Input[bool] enable_logs_sync: Enable the AWS logs synchronization. Note that this requires the inclusion of `"logs:DescribeLogGroups"`, `"logs:DeleteSubscriptionFilter"`, `"logs:DescribeSubscriptionFilters"`, `"logs:PutSubscriptionFilter"`, and `"s3:GetBucketLogging"`, `"s3:GetBucketNotification"`, `"s3:PutBucketNotification"` permissions. Additional permissions may be required to capture logs from specific AWS services. @@ -908,10 +908,10 @@ def get(resource_name: str, :param pulumi.Input[bool] import_cloud_watch: Flag that controls how Splunk Observability Cloud imports Cloud Watch metrics. If true, Splunk Observability Cloud imports Cloud Watch metrics from AWS. :param pulumi.Input[str] integration_id: The id of one of a `aws.ExternalIntegration` or `aws.TokenIntegration`. :param pulumi.Input[str] key: If you specify `auth_method = \\"SecurityToken\\"` in your request to create an AWS integration object, use this property to specify the key (this is typically equivalent to the `AWS_SECRET_ACCESS_KEY` environment variable). - :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['IntegrationMetricStatsToSyncArgs']]]] metric_stats_to_syncs: Each element in the array is an object that contains an AWS namespace name, AWS metric name and a list of statistics that Splunk Observability Cloud collects for this metric. If you specify this property, Splunk Observability Cloud retrieves only specified AWS statistics when AWS metric streams are not used. When AWS metric streams are used this property specifies additional extended statistics to collect (please note that AWS metric streams API supports percentile stats only; other stats are ignored). If you don't specify this property, Splunk Observability Cloud retrieves the AWS standard set of statistics. + :param pulumi.Input[Sequence[pulumi.Input[Union['IntegrationMetricStatsToSyncArgs', 'IntegrationMetricStatsToSyncArgsDict']]]] metric_stats_to_syncs: Each element in the array is an object that contains an AWS namespace name, AWS metric name and a list of statistics that Splunk Observability Cloud collects for this metric. If you specify this property, Splunk Observability Cloud retrieves only specified AWS statistics when AWS metric streams are not used. When AWS metric streams are used this property specifies additional extended statistics to collect (please note that AWS metric streams API supports percentile stats only; other stats are ignored). If you don't specify this property, Splunk Observability Cloud retrieves the AWS standard set of statistics. :param pulumi.Input[str] name: Name of the integration. :param pulumi.Input[str] named_token: Name of the org token to be used for data ingestion. If not specified then default access token is used. - :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['IntegrationNamespaceSyncRuleArgs']]]] namespace_sync_rules: Each element in the array is an object that contains an AWS namespace name and a filter that controls the data that Splunk Observability Cloud collects for the namespace. Conflicts with the `services` property. If you don't specify either property, Splunk Observability Cloud syncs all data in all AWS namespaces. + :param pulumi.Input[Sequence[pulumi.Input[Union['IntegrationNamespaceSyncRuleArgs', 'IntegrationNamespaceSyncRuleArgsDict']]]] namespace_sync_rules: Each element in the array is an object that contains an AWS namespace name and a filter that controls the data that Splunk Observability Cloud collects for the namespace. Conflicts with the `services` property. If you don't specify either property, Splunk Observability Cloud syncs all data in all AWS namespaces. :param pulumi.Input[int] poll_rate: AWS poll rate (in seconds). Value between `60` and `600`. Default: `300`. :param pulumi.Input[Sequence[pulumi.Input[str]]] regions: List of AWS regions that Splunk Observability Cloud should monitor. It cannot be empty. :param pulumi.Input[str] role_arn: Role ARN that you add to an existing AWS integration object. **Note**: Ensure you use the `arn` property of your role, not the id! diff --git a/sdk/python/pulumi_signalfx/azure/integration.py b/sdk/python/pulumi_signalfx/azure/integration.py index 64fb1815..23400067 100644 --- a/sdk/python/pulumi_signalfx/azure/integration.py +++ b/sdk/python/pulumi_signalfx/azure/integration.py @@ -510,14 +510,14 @@ def __init__(__self__, opts: Optional[pulumi.ResourceOptions] = None, additional_services: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, app_id: Optional[pulumi.Input[str]] = None, - custom_namespaces_per_services: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['IntegrationCustomNamespacesPerServiceArgs']]]]] = None, + custom_namespaces_per_services: Optional[pulumi.Input[Sequence[pulumi.Input[Union['IntegrationCustomNamespacesPerServiceArgs', 'IntegrationCustomNamespacesPerServiceArgsDict']]]]] = None, enabled: Optional[pulumi.Input[bool]] = None, environment: Optional[pulumi.Input[str]] = None, import_azure_monitor: Optional[pulumi.Input[bool]] = None, name: Optional[pulumi.Input[str]] = None, named_token: Optional[pulumi.Input[str]] = None, poll_rate: Optional[pulumi.Input[int]] = None, - resource_filter_rules: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['IntegrationResourceFilterRuleArgs']]]]] = None, + resource_filter_rules: Optional[pulumi.Input[Sequence[pulumi.Input[Union['IntegrationResourceFilterRuleArgs', 'IntegrationResourceFilterRuleArgsDict']]]]] = None, secret_key: Optional[pulumi.Input[str]] = None, services: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, subscriptions: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, @@ -535,14 +535,14 @@ def __init__(__self__, :param pulumi.ResourceOptions opts: Options for the resource. :param pulumi.Input[Sequence[pulumi.Input[str]]] additional_services: Additional Azure resource types that you want to sync with Observability Cloud. :param pulumi.Input[str] app_id: Azure application ID for the Splunk Observability Cloud app. To learn how to get this ID, see the topic [Connect to Microsoft Azure](https://docs.splunk.com/observability/en/gdi/get-data-in/connect/azure/azure.html) in the product documentation. - :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['IntegrationCustomNamespacesPerServiceArgs']]]] custom_namespaces_per_services: Allows for more fine-grained control of syncing of custom namespaces, should the boolean convenience parameter `sync_guest_os_namespaces` be not enough. The customer may specify a map of services to custom namespaces. If they do so, for each service which is a key in this map, we will attempt to sync metrics from namespaces in the value list in addition to the default namespaces. + :param pulumi.Input[Sequence[pulumi.Input[Union['IntegrationCustomNamespacesPerServiceArgs', 'IntegrationCustomNamespacesPerServiceArgsDict']]]] custom_namespaces_per_services: Allows for more fine-grained control of syncing of custom namespaces, should the boolean convenience parameter `sync_guest_os_namespaces` be not enough. The customer may specify a map of services to custom namespaces. If they do so, for each service which is a key in this map, we will attempt to sync metrics from namespaces in the value list in addition to the default namespaces. :param pulumi.Input[bool] enabled: Whether the integration is enabled. :param pulumi.Input[str] environment: What type of Azure integration this is. The allowed values are `\\"azure_us_government\\"` and `\\"azure\\"`. Defaults to `\\"azure\\"`. :param pulumi.Input[bool] import_azure_monitor: If enabled, Splunk Observability Cloud will sync also Azure Monitor data. If disabled, Splunk Observability Cloud will import only metadata. Defaults to true. :param pulumi.Input[str] name: Name of the integration. :param pulumi.Input[str] named_token: Name of the org token to be used for data ingestion. If not specified then default access token is used. :param pulumi.Input[int] poll_rate: Azure poll rate (in seconds). Value between `60` and `600`. Default: `300`. - :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['IntegrationResourceFilterRuleArgs']]]] resource_filter_rules: List of rules for filtering Azure resources by their tags. + :param pulumi.Input[Sequence[pulumi.Input[Union['IntegrationResourceFilterRuleArgs', 'IntegrationResourceFilterRuleArgsDict']]]] resource_filter_rules: List of rules for filtering Azure resources by their tags. :param pulumi.Input[str] secret_key: Azure secret key that associates the Splunk Observability Cloud app in Azure with the Azure tenant ID. To learn how to get this ID, see the topic [Connect to Microsoft Azure](https://docs.splunk.com/observability/en/gdi/get-data-in/connect/azure/azure.html) in the product documentation. :param pulumi.Input[Sequence[pulumi.Input[str]]] services: List of Microsoft Azure service names for the Azure services you want Splunk Observability Cloud to monitor. Can be an empty list to import data for all supported services. See [Microsoft Azure services](https://docs.splunk.com/Observability/gdi/get-data-in/integrations.html#azure-integrations) for a list of valid values. :param pulumi.Input[Sequence[pulumi.Input[str]]] subscriptions: List of Azure subscriptions that Splunk Observability Cloud should monitor. @@ -579,14 +579,14 @@ def _internal_init(__self__, opts: Optional[pulumi.ResourceOptions] = None, additional_services: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, app_id: Optional[pulumi.Input[str]] = None, - custom_namespaces_per_services: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['IntegrationCustomNamespacesPerServiceArgs']]]]] = None, + custom_namespaces_per_services: Optional[pulumi.Input[Sequence[pulumi.Input[Union['IntegrationCustomNamespacesPerServiceArgs', 'IntegrationCustomNamespacesPerServiceArgsDict']]]]] = None, enabled: Optional[pulumi.Input[bool]] = None, environment: Optional[pulumi.Input[str]] = None, import_azure_monitor: Optional[pulumi.Input[bool]] = None, name: Optional[pulumi.Input[str]] = None, named_token: Optional[pulumi.Input[str]] = None, poll_rate: Optional[pulumi.Input[int]] = None, - resource_filter_rules: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['IntegrationResourceFilterRuleArgs']]]]] = None, + resource_filter_rules: Optional[pulumi.Input[Sequence[pulumi.Input[Union['IntegrationResourceFilterRuleArgs', 'IntegrationResourceFilterRuleArgsDict']]]]] = None, secret_key: Optional[pulumi.Input[str]] = None, services: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, subscriptions: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, @@ -642,14 +642,14 @@ def get(resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, additional_services: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, app_id: Optional[pulumi.Input[str]] = None, - custom_namespaces_per_services: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['IntegrationCustomNamespacesPerServiceArgs']]]]] = None, + custom_namespaces_per_services: Optional[pulumi.Input[Sequence[pulumi.Input[Union['IntegrationCustomNamespacesPerServiceArgs', 'IntegrationCustomNamespacesPerServiceArgsDict']]]]] = None, enabled: Optional[pulumi.Input[bool]] = None, environment: Optional[pulumi.Input[str]] = None, import_azure_monitor: Optional[pulumi.Input[bool]] = None, name: Optional[pulumi.Input[str]] = None, named_token: Optional[pulumi.Input[str]] = None, poll_rate: Optional[pulumi.Input[int]] = None, - resource_filter_rules: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['IntegrationResourceFilterRuleArgs']]]]] = None, + resource_filter_rules: Optional[pulumi.Input[Sequence[pulumi.Input[Union['IntegrationResourceFilterRuleArgs', 'IntegrationResourceFilterRuleArgsDict']]]]] = None, secret_key: Optional[pulumi.Input[str]] = None, services: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, subscriptions: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, @@ -664,14 +664,14 @@ def get(resource_name: str, :param pulumi.ResourceOptions opts: Options for the resource. :param pulumi.Input[Sequence[pulumi.Input[str]]] additional_services: Additional Azure resource types that you want to sync with Observability Cloud. :param pulumi.Input[str] app_id: Azure application ID for the Splunk Observability Cloud app. To learn how to get this ID, see the topic [Connect to Microsoft Azure](https://docs.splunk.com/observability/en/gdi/get-data-in/connect/azure/azure.html) in the product documentation. - :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['IntegrationCustomNamespacesPerServiceArgs']]]] custom_namespaces_per_services: Allows for more fine-grained control of syncing of custom namespaces, should the boolean convenience parameter `sync_guest_os_namespaces` be not enough. The customer may specify a map of services to custom namespaces. If they do so, for each service which is a key in this map, we will attempt to sync metrics from namespaces in the value list in addition to the default namespaces. + :param pulumi.Input[Sequence[pulumi.Input[Union['IntegrationCustomNamespacesPerServiceArgs', 'IntegrationCustomNamespacesPerServiceArgsDict']]]] custom_namespaces_per_services: Allows for more fine-grained control of syncing of custom namespaces, should the boolean convenience parameter `sync_guest_os_namespaces` be not enough. The customer may specify a map of services to custom namespaces. If they do so, for each service which is a key in this map, we will attempt to sync metrics from namespaces in the value list in addition to the default namespaces. :param pulumi.Input[bool] enabled: Whether the integration is enabled. :param pulumi.Input[str] environment: What type of Azure integration this is. The allowed values are `\\"azure_us_government\\"` and `\\"azure\\"`. Defaults to `\\"azure\\"`. :param pulumi.Input[bool] import_azure_monitor: If enabled, Splunk Observability Cloud will sync also Azure Monitor data. If disabled, Splunk Observability Cloud will import only metadata. Defaults to true. :param pulumi.Input[str] name: Name of the integration. :param pulumi.Input[str] named_token: Name of the org token to be used for data ingestion. If not specified then default access token is used. :param pulumi.Input[int] poll_rate: Azure poll rate (in seconds). Value between `60` and `600`. Default: `300`. - :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['IntegrationResourceFilterRuleArgs']]]] resource_filter_rules: List of rules for filtering Azure resources by their tags. + :param pulumi.Input[Sequence[pulumi.Input[Union['IntegrationResourceFilterRuleArgs', 'IntegrationResourceFilterRuleArgsDict']]]] resource_filter_rules: List of rules for filtering Azure resources by their tags. :param pulumi.Input[str] secret_key: Azure secret key that associates the Splunk Observability Cloud app in Azure with the Azure tenant ID. To learn how to get this ID, see the topic [Connect to Microsoft Azure](https://docs.splunk.com/observability/en/gdi/get-data-in/connect/azure/azure.html) in the product documentation. :param pulumi.Input[Sequence[pulumi.Input[str]]] services: List of Microsoft Azure service names for the Azure services you want Splunk Observability Cloud to monitor. Can be an empty list to import data for all supported services. See [Microsoft Azure services](https://docs.splunk.com/Observability/gdi/get-data-in/integrations.html#azure-integrations) for a list of valid values. :param pulumi.Input[Sequence[pulumi.Input[str]]] subscriptions: List of Azure subscriptions that Splunk Observability Cloud should monitor. diff --git a/sdk/python/pulumi_signalfx/dashboard.py b/sdk/python/pulumi_signalfx/dashboard.py index 77e552ca..e1cc34e8 100644 --- a/sdk/python/pulumi_signalfx/dashboard.py +++ b/sdk/python/pulumi_signalfx/dashboard.py @@ -691,24 +691,24 @@ def __init__(__self__, opts: Optional[pulumi.ResourceOptions] = None, authorized_writer_teams: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, authorized_writer_users: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, - charts: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['DashboardChartArgs']]]]] = None, + charts: Optional[pulumi.Input[Sequence[pulumi.Input[Union['DashboardChartArgs', 'DashboardChartArgsDict']]]]] = None, charts_resolution: Optional[pulumi.Input[str]] = None, - columns: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['DashboardColumnArgs']]]]] = None, + columns: Optional[pulumi.Input[Sequence[pulumi.Input[Union['DashboardColumnArgs', 'DashboardColumnArgsDict']]]]] = None, dashboard_group: Optional[pulumi.Input[str]] = None, description: Optional[pulumi.Input[str]] = None, discovery_options_query: Optional[pulumi.Input[str]] = None, discovery_options_selectors: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, end_time: Optional[pulumi.Input[int]] = None, - event_overlays: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['DashboardEventOverlayArgs']]]]] = None, - filters: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['DashboardFilterArgs']]]]] = None, - grids: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['DashboardGridArgs']]]]] = None, + event_overlays: Optional[pulumi.Input[Sequence[pulumi.Input[Union['DashboardEventOverlayArgs', 'DashboardEventOverlayArgsDict']]]]] = None, + filters: Optional[pulumi.Input[Sequence[pulumi.Input[Union['DashboardFilterArgs', 'DashboardFilterArgsDict']]]]] = None, + grids: Optional[pulumi.Input[Sequence[pulumi.Input[Union['DashboardGridArgs', 'DashboardGridArgsDict']]]]] = None, name: Optional[pulumi.Input[str]] = None, - permissions: Optional[pulumi.Input[pulumi.InputType['DashboardPermissionsArgs']]] = None, - selected_event_overlays: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['DashboardSelectedEventOverlayArgs']]]]] = None, + permissions: Optional[pulumi.Input[Union['DashboardPermissionsArgs', 'DashboardPermissionsArgsDict']]] = None, + selected_event_overlays: Optional[pulumi.Input[Sequence[pulumi.Input[Union['DashboardSelectedEventOverlayArgs', 'DashboardSelectedEventOverlayArgsDict']]]]] = None, start_time: Optional[pulumi.Input[int]] = None, tags: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, time_range: Optional[pulumi.Input[str]] = None, - variables: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['DashboardVariableArgs']]]]] = None, + variables: Optional[pulumi.Input[Sequence[pulumi.Input[Union['DashboardVariableArgs', 'DashboardVariableArgsDict']]]]] = None, __props__=None): """ Create a Dashboard resource with the given unique name, props, and options. @@ -716,22 +716,22 @@ def __init__(__self__, :param pulumi.ResourceOptions opts: Options for the resource. :param pulumi.Input[Sequence[pulumi.Input[str]]] authorized_writer_teams: Team IDs that have write access to this dashboard group. Remember to use an admin's token if using this feature and to include that admin's team (or user id in `authorized_writer_teams`). **Note:** Deprecated use `permissions` instead. :param pulumi.Input[Sequence[pulumi.Input[str]]] authorized_writer_users: User IDs that have write access to this dashboard group. Remember to use an admin's token if using this feature and to include that admin's user id (or team id in `authorized_writer_teams`). **Note:** Deprecated use `permissions` instead. - :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['DashboardChartArgs']]]] charts: Chart ID and layout information for the charts in the dashboard. + :param pulumi.Input[Sequence[pulumi.Input[Union['DashboardChartArgs', 'DashboardChartArgsDict']]]] charts: Chart ID and layout information for the charts in the dashboard. :param pulumi.Input[str] charts_resolution: Specifies the chart data display resolution for charts in this dashboard. Value can be one of `"default"`, `"low"`, `"high"`, or `"highest"`. - :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['DashboardColumnArgs']]]] columns: Column layout. Charts listed will be placed in a single column with the same width and height. + :param pulumi.Input[Sequence[pulumi.Input[Union['DashboardColumnArgs', 'DashboardColumnArgsDict']]]] columns: Column layout. Charts listed will be placed in a single column with the same width and height. :param pulumi.Input[str] dashboard_group: The ID of the dashboard group that contains the dashboard. :param pulumi.Input[str] description: Description of the dashboard. :param pulumi.Input[int] end_time: Seconds since epoch. Used for visualization. - :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['DashboardEventOverlayArgs']]]] event_overlays: Specify a list of event overlays to include in the dashboard. Note: These overlays correspond to the *suggested* event overlays specified in the web UI, and they're not automatically applied as active overlays. To set default active event overlays, use the `selected_event_overlay` property instead. - :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['DashboardFilterArgs']]]] filters: Filter to apply to the charts when displaying the dashboard. - :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['DashboardGridArgs']]]] grids: Grid dashboard layout. Charts listed will be placed in a grid by row with the same width and height. If a chart cannot fit in a row, it will be placed automatically in the next row. + :param pulumi.Input[Sequence[pulumi.Input[Union['DashboardEventOverlayArgs', 'DashboardEventOverlayArgsDict']]]] event_overlays: Specify a list of event overlays to include in the dashboard. Note: These overlays correspond to the *suggested* event overlays specified in the web UI, and they're not automatically applied as active overlays. To set default active event overlays, use the `selected_event_overlay` property instead. + :param pulumi.Input[Sequence[pulumi.Input[Union['DashboardFilterArgs', 'DashboardFilterArgsDict']]]] filters: Filter to apply to the charts when displaying the dashboard. + :param pulumi.Input[Sequence[pulumi.Input[Union['DashboardGridArgs', 'DashboardGridArgsDict']]]] grids: Grid dashboard layout. Charts listed will be placed in a grid by row with the same width and height. If a chart cannot fit in a row, it will be placed automatically in the next row. :param pulumi.Input[str] name: Name of the dashboard. - :param pulumi.Input[pulumi.InputType['DashboardPermissionsArgs']] permissions: [Permissions](https://docs.splunk.com/Observability/infrastructure/terms-concepts/permissions.html) Controls who can view and/or edit your dashboard. **Note:** This feature is not present in all accounts. Please contact support if you are unsure. - :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['DashboardSelectedEventOverlayArgs']]]] selected_event_overlays: Defines event overlays which are enabled by **default**. Any overlay specified here should have an accompanying entry in `event_overlay`, which are similar to the properties here. + :param pulumi.Input[Union['DashboardPermissionsArgs', 'DashboardPermissionsArgsDict']] permissions: [Permissions](https://docs.splunk.com/Observability/infrastructure/terms-concepts/permissions.html) Controls who can view and/or edit your dashboard. **Note:** This feature is not present in all accounts. Please contact support if you are unsure. + :param pulumi.Input[Sequence[pulumi.Input[Union['DashboardSelectedEventOverlayArgs', 'DashboardSelectedEventOverlayArgsDict']]]] selected_event_overlays: Defines event overlays which are enabled by **default**. Any overlay specified here should have an accompanying entry in `event_overlay`, which are similar to the properties here. :param pulumi.Input[int] start_time: Seconds since epoch. Used for visualization. :param pulumi.Input[Sequence[pulumi.Input[str]]] tags: Tags of the dashboard. :param pulumi.Input[str] time_range: The time range prior to now to visualize. Splunk Observability Cloud time syntax (e.g. `"-5m"`, `"-1h"`). - :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['DashboardVariableArgs']]]] variables: Dashboard variable to apply to each chart in the dashboard. + :param pulumi.Input[Sequence[pulumi.Input[Union['DashboardVariableArgs', 'DashboardVariableArgsDict']]]] variables: Dashboard variable to apply to each chart in the dashboard. """ ... @overload @@ -758,24 +758,24 @@ def _internal_init(__self__, opts: Optional[pulumi.ResourceOptions] = None, authorized_writer_teams: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, authorized_writer_users: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, - charts: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['DashboardChartArgs']]]]] = None, + charts: Optional[pulumi.Input[Sequence[pulumi.Input[Union['DashboardChartArgs', 'DashboardChartArgsDict']]]]] = None, charts_resolution: Optional[pulumi.Input[str]] = None, - columns: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['DashboardColumnArgs']]]]] = None, + columns: Optional[pulumi.Input[Sequence[pulumi.Input[Union['DashboardColumnArgs', 'DashboardColumnArgsDict']]]]] = None, dashboard_group: Optional[pulumi.Input[str]] = None, description: Optional[pulumi.Input[str]] = None, discovery_options_query: Optional[pulumi.Input[str]] = None, discovery_options_selectors: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, end_time: Optional[pulumi.Input[int]] = None, - event_overlays: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['DashboardEventOverlayArgs']]]]] = None, - filters: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['DashboardFilterArgs']]]]] = None, - grids: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['DashboardGridArgs']]]]] = None, + event_overlays: Optional[pulumi.Input[Sequence[pulumi.Input[Union['DashboardEventOverlayArgs', 'DashboardEventOverlayArgsDict']]]]] = None, + filters: Optional[pulumi.Input[Sequence[pulumi.Input[Union['DashboardFilterArgs', 'DashboardFilterArgsDict']]]]] = None, + grids: Optional[pulumi.Input[Sequence[pulumi.Input[Union['DashboardGridArgs', 'DashboardGridArgsDict']]]]] = None, name: Optional[pulumi.Input[str]] = None, - permissions: Optional[pulumi.Input[pulumi.InputType['DashboardPermissionsArgs']]] = None, - selected_event_overlays: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['DashboardSelectedEventOverlayArgs']]]]] = None, + permissions: Optional[pulumi.Input[Union['DashboardPermissionsArgs', 'DashboardPermissionsArgsDict']]] = None, + selected_event_overlays: Optional[pulumi.Input[Sequence[pulumi.Input[Union['DashboardSelectedEventOverlayArgs', 'DashboardSelectedEventOverlayArgsDict']]]]] = None, start_time: Optional[pulumi.Input[int]] = None, tags: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, time_range: Optional[pulumi.Input[str]] = None, - variables: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['DashboardVariableArgs']]]]] = None, + variables: Optional[pulumi.Input[Sequence[pulumi.Input[Union['DashboardVariableArgs', 'DashboardVariableArgsDict']]]]] = None, __props__=None): opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts) if not isinstance(opts, pulumi.ResourceOptions): @@ -820,25 +820,25 @@ def get(resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, authorized_writer_teams: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, authorized_writer_users: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, - charts: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['DashboardChartArgs']]]]] = None, + charts: Optional[pulumi.Input[Sequence[pulumi.Input[Union['DashboardChartArgs', 'DashboardChartArgsDict']]]]] = None, charts_resolution: Optional[pulumi.Input[str]] = None, - columns: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['DashboardColumnArgs']]]]] = None, + columns: Optional[pulumi.Input[Sequence[pulumi.Input[Union['DashboardColumnArgs', 'DashboardColumnArgsDict']]]]] = None, dashboard_group: Optional[pulumi.Input[str]] = None, description: Optional[pulumi.Input[str]] = None, discovery_options_query: Optional[pulumi.Input[str]] = None, discovery_options_selectors: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, end_time: Optional[pulumi.Input[int]] = None, - event_overlays: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['DashboardEventOverlayArgs']]]]] = None, - filters: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['DashboardFilterArgs']]]]] = None, - grids: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['DashboardGridArgs']]]]] = None, + event_overlays: Optional[pulumi.Input[Sequence[pulumi.Input[Union['DashboardEventOverlayArgs', 'DashboardEventOverlayArgsDict']]]]] = None, + filters: Optional[pulumi.Input[Sequence[pulumi.Input[Union['DashboardFilterArgs', 'DashboardFilterArgsDict']]]]] = None, + grids: Optional[pulumi.Input[Sequence[pulumi.Input[Union['DashboardGridArgs', 'DashboardGridArgsDict']]]]] = None, name: Optional[pulumi.Input[str]] = None, - permissions: Optional[pulumi.Input[pulumi.InputType['DashboardPermissionsArgs']]] = None, - selected_event_overlays: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['DashboardSelectedEventOverlayArgs']]]]] = None, + permissions: Optional[pulumi.Input[Union['DashboardPermissionsArgs', 'DashboardPermissionsArgsDict']]] = None, + selected_event_overlays: Optional[pulumi.Input[Sequence[pulumi.Input[Union['DashboardSelectedEventOverlayArgs', 'DashboardSelectedEventOverlayArgsDict']]]]] = None, start_time: Optional[pulumi.Input[int]] = None, tags: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, time_range: Optional[pulumi.Input[str]] = None, url: Optional[pulumi.Input[str]] = None, - variables: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['DashboardVariableArgs']]]]] = None) -> 'Dashboard': + variables: Optional[pulumi.Input[Sequence[pulumi.Input[Union['DashboardVariableArgs', 'DashboardVariableArgsDict']]]]] = None) -> 'Dashboard': """ Get an existing Dashboard resource's state with the given name, id, and optional extra properties used to qualify the lookup. @@ -848,23 +848,23 @@ def get(resource_name: str, :param pulumi.ResourceOptions opts: Options for the resource. :param pulumi.Input[Sequence[pulumi.Input[str]]] authorized_writer_teams: Team IDs that have write access to this dashboard group. Remember to use an admin's token if using this feature and to include that admin's team (or user id in `authorized_writer_teams`). **Note:** Deprecated use `permissions` instead. :param pulumi.Input[Sequence[pulumi.Input[str]]] authorized_writer_users: User IDs that have write access to this dashboard group. Remember to use an admin's token if using this feature and to include that admin's user id (or team id in `authorized_writer_teams`). **Note:** Deprecated use `permissions` instead. - :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['DashboardChartArgs']]]] charts: Chart ID and layout information for the charts in the dashboard. + :param pulumi.Input[Sequence[pulumi.Input[Union['DashboardChartArgs', 'DashboardChartArgsDict']]]] charts: Chart ID and layout information for the charts in the dashboard. :param pulumi.Input[str] charts_resolution: Specifies the chart data display resolution for charts in this dashboard. Value can be one of `"default"`, `"low"`, `"high"`, or `"highest"`. - :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['DashboardColumnArgs']]]] columns: Column layout. Charts listed will be placed in a single column with the same width and height. + :param pulumi.Input[Sequence[pulumi.Input[Union['DashboardColumnArgs', 'DashboardColumnArgsDict']]]] columns: Column layout. Charts listed will be placed in a single column with the same width and height. :param pulumi.Input[str] dashboard_group: The ID of the dashboard group that contains the dashboard. :param pulumi.Input[str] description: Description of the dashboard. :param pulumi.Input[int] end_time: Seconds since epoch. Used for visualization. - :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['DashboardEventOverlayArgs']]]] event_overlays: Specify a list of event overlays to include in the dashboard. Note: These overlays correspond to the *suggested* event overlays specified in the web UI, and they're not automatically applied as active overlays. To set default active event overlays, use the `selected_event_overlay` property instead. - :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['DashboardFilterArgs']]]] filters: Filter to apply to the charts when displaying the dashboard. - :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['DashboardGridArgs']]]] grids: Grid dashboard layout. Charts listed will be placed in a grid by row with the same width and height. If a chart cannot fit in a row, it will be placed automatically in the next row. + :param pulumi.Input[Sequence[pulumi.Input[Union['DashboardEventOverlayArgs', 'DashboardEventOverlayArgsDict']]]] event_overlays: Specify a list of event overlays to include in the dashboard. Note: These overlays correspond to the *suggested* event overlays specified in the web UI, and they're not automatically applied as active overlays. To set default active event overlays, use the `selected_event_overlay` property instead. + :param pulumi.Input[Sequence[pulumi.Input[Union['DashboardFilterArgs', 'DashboardFilterArgsDict']]]] filters: Filter to apply to the charts when displaying the dashboard. + :param pulumi.Input[Sequence[pulumi.Input[Union['DashboardGridArgs', 'DashboardGridArgsDict']]]] grids: Grid dashboard layout. Charts listed will be placed in a grid by row with the same width and height. If a chart cannot fit in a row, it will be placed automatically in the next row. :param pulumi.Input[str] name: Name of the dashboard. - :param pulumi.Input[pulumi.InputType['DashboardPermissionsArgs']] permissions: [Permissions](https://docs.splunk.com/Observability/infrastructure/terms-concepts/permissions.html) Controls who can view and/or edit your dashboard. **Note:** This feature is not present in all accounts. Please contact support if you are unsure. - :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['DashboardSelectedEventOverlayArgs']]]] selected_event_overlays: Defines event overlays which are enabled by **default**. Any overlay specified here should have an accompanying entry in `event_overlay`, which are similar to the properties here. + :param pulumi.Input[Union['DashboardPermissionsArgs', 'DashboardPermissionsArgsDict']] permissions: [Permissions](https://docs.splunk.com/Observability/infrastructure/terms-concepts/permissions.html) Controls who can view and/or edit your dashboard. **Note:** This feature is not present in all accounts. Please contact support if you are unsure. + :param pulumi.Input[Sequence[pulumi.Input[Union['DashboardSelectedEventOverlayArgs', 'DashboardSelectedEventOverlayArgsDict']]]] selected_event_overlays: Defines event overlays which are enabled by **default**. Any overlay specified here should have an accompanying entry in `event_overlay`, which are similar to the properties here. :param pulumi.Input[int] start_time: Seconds since epoch. Used for visualization. :param pulumi.Input[Sequence[pulumi.Input[str]]] tags: Tags of the dashboard. :param pulumi.Input[str] time_range: The time range prior to now to visualize. Splunk Observability Cloud time syntax (e.g. `"-5m"`, `"-1h"`). :param pulumi.Input[str] url: The URL of the dashboard. - :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['DashboardVariableArgs']]]] variables: Dashboard variable to apply to each chart in the dashboard. + :param pulumi.Input[Sequence[pulumi.Input[Union['DashboardVariableArgs', 'DashboardVariableArgsDict']]]] variables: Dashboard variable to apply to each chart in the dashboard. """ opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) diff --git a/sdk/python/pulumi_signalfx/dashboard_group.py b/sdk/python/pulumi_signalfx/dashboard_group.py index e7a0d51d..a7c4b71a 100644 --- a/sdk/python/pulumi_signalfx/dashboard_group.py +++ b/sdk/python/pulumi_signalfx/dashboard_group.py @@ -300,11 +300,11 @@ def __init__(__self__, opts: Optional[pulumi.ResourceOptions] = None, authorized_writer_teams: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, authorized_writer_users: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, - dashboards: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['DashboardGroupDashboardArgs']]]]] = None, + dashboards: Optional[pulumi.Input[Sequence[pulumi.Input[Union['DashboardGroupDashboardArgs', 'DashboardGroupDashboardArgsDict']]]]] = None, description: Optional[pulumi.Input[str]] = None, - import_qualifiers: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['DashboardGroupImportQualifierArgs']]]]] = None, + import_qualifiers: Optional[pulumi.Input[Sequence[pulumi.Input[Union['DashboardGroupImportQualifierArgs', 'DashboardGroupImportQualifierArgsDict']]]]] = None, name: Optional[pulumi.Input[str]] = None, - permissions: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['DashboardGroupPermissionArgs']]]]] = None, + permissions: Optional[pulumi.Input[Sequence[pulumi.Input[Union['DashboardGroupPermissionArgs', 'DashboardGroupPermissionArgsDict']]]]] = None, teams: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, __props__=None): """ @@ -324,10 +324,10 @@ def __init__(__self__, :param pulumi.ResourceOptions opts: Options for the resource. :param pulumi.Input[Sequence[pulumi.Input[str]]] authorized_writer_teams: Team IDs that have write access to this dashboard group. Remember to use an admin's token if using this feature and to include that admin's team (or user id in `authorized_writer_teams`). **Note:** Deprecated use `permissions` instead. :param pulumi.Input[Sequence[pulumi.Input[str]]] authorized_writer_users: User IDs that have write access to this dashboard group. Remember to use an admin's token if using this feature and to include that admin's user id (or team id in `authorized_writer_teams`). **Note:** Deprecated use `permissions` instead. - :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['DashboardGroupDashboardArgs']]]] dashboards: [Mirrored dashboards](https://docs.splunk.com/observability/en/data-visualization/dashboards/dashboard-share-clone-mirror.html#mirror-dashboard) in this dashboard group. **Note:** This feature is not present in all accounts. Please contact support if you are unsure. + :param pulumi.Input[Sequence[pulumi.Input[Union['DashboardGroupDashboardArgs', 'DashboardGroupDashboardArgsDict']]]] dashboards: [Mirrored dashboards](https://docs.splunk.com/observability/en/data-visualization/dashboards/dashboard-share-clone-mirror.html#mirror-dashboard) in this dashboard group. **Note:** This feature is not present in all accounts. Please contact support if you are unsure. :param pulumi.Input[str] description: Description of the dashboard group. :param pulumi.Input[str] name: Name of the dashboard group. - :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['DashboardGroupPermissionArgs']]]] permissions: [Permissions](https://docs.splunk.com/Observability/infrastructure/terms-concepts/permissions.html) List of read and write permission configuration to specify which user, team, and organization can view and/or edit your dashboard group. **Note:** This feature is not present in all accounts. Please contact support if you are unsure. + :param pulumi.Input[Sequence[pulumi.Input[Union['DashboardGroupPermissionArgs', 'DashboardGroupPermissionArgsDict']]]] permissions: [Permissions](https://docs.splunk.com/Observability/infrastructure/terms-concepts/permissions.html) List of read and write permission configuration to specify which user, team, and organization can view and/or edit your dashboard group. **Note:** This feature is not present in all accounts. Please contact support if you are unsure. :param pulumi.Input[Sequence[pulumi.Input[str]]] teams: Team IDs to associate the dashboard group to. """ ... @@ -366,11 +366,11 @@ def _internal_init(__self__, opts: Optional[pulumi.ResourceOptions] = None, authorized_writer_teams: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, authorized_writer_users: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, - dashboards: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['DashboardGroupDashboardArgs']]]]] = None, + dashboards: Optional[pulumi.Input[Sequence[pulumi.Input[Union['DashboardGroupDashboardArgs', 'DashboardGroupDashboardArgsDict']]]]] = None, description: Optional[pulumi.Input[str]] = None, - import_qualifiers: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['DashboardGroupImportQualifierArgs']]]]] = None, + import_qualifiers: Optional[pulumi.Input[Sequence[pulumi.Input[Union['DashboardGroupImportQualifierArgs', 'DashboardGroupImportQualifierArgsDict']]]]] = None, name: Optional[pulumi.Input[str]] = None, - permissions: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['DashboardGroupPermissionArgs']]]]] = None, + permissions: Optional[pulumi.Input[Sequence[pulumi.Input[Union['DashboardGroupPermissionArgs', 'DashboardGroupPermissionArgsDict']]]]] = None, teams: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, __props__=None): opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts) @@ -401,11 +401,11 @@ def get(resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, authorized_writer_teams: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, authorized_writer_users: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, - dashboards: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['DashboardGroupDashboardArgs']]]]] = None, + dashboards: Optional[pulumi.Input[Sequence[pulumi.Input[Union['DashboardGroupDashboardArgs', 'DashboardGroupDashboardArgsDict']]]]] = None, description: Optional[pulumi.Input[str]] = None, - import_qualifiers: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['DashboardGroupImportQualifierArgs']]]]] = None, + import_qualifiers: Optional[pulumi.Input[Sequence[pulumi.Input[Union['DashboardGroupImportQualifierArgs', 'DashboardGroupImportQualifierArgsDict']]]]] = None, name: Optional[pulumi.Input[str]] = None, - permissions: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['DashboardGroupPermissionArgs']]]]] = None, + permissions: Optional[pulumi.Input[Sequence[pulumi.Input[Union['DashboardGroupPermissionArgs', 'DashboardGroupPermissionArgsDict']]]]] = None, teams: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None) -> 'DashboardGroup': """ Get an existing DashboardGroup resource's state with the given name, id, and optional extra @@ -416,10 +416,10 @@ def get(resource_name: str, :param pulumi.ResourceOptions opts: Options for the resource. :param pulumi.Input[Sequence[pulumi.Input[str]]] authorized_writer_teams: Team IDs that have write access to this dashboard group. Remember to use an admin's token if using this feature and to include that admin's team (or user id in `authorized_writer_teams`). **Note:** Deprecated use `permissions` instead. :param pulumi.Input[Sequence[pulumi.Input[str]]] authorized_writer_users: User IDs that have write access to this dashboard group. Remember to use an admin's token if using this feature and to include that admin's user id (or team id in `authorized_writer_teams`). **Note:** Deprecated use `permissions` instead. - :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['DashboardGroupDashboardArgs']]]] dashboards: [Mirrored dashboards](https://docs.splunk.com/observability/en/data-visualization/dashboards/dashboard-share-clone-mirror.html#mirror-dashboard) in this dashboard group. **Note:** This feature is not present in all accounts. Please contact support if you are unsure. + :param pulumi.Input[Sequence[pulumi.Input[Union['DashboardGroupDashboardArgs', 'DashboardGroupDashboardArgsDict']]]] dashboards: [Mirrored dashboards](https://docs.splunk.com/observability/en/data-visualization/dashboards/dashboard-share-clone-mirror.html#mirror-dashboard) in this dashboard group. **Note:** This feature is not present in all accounts. Please contact support if you are unsure. :param pulumi.Input[str] description: Description of the dashboard group. :param pulumi.Input[str] name: Name of the dashboard group. - :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['DashboardGroupPermissionArgs']]]] permissions: [Permissions](https://docs.splunk.com/Observability/infrastructure/terms-concepts/permissions.html) List of read and write permission configuration to specify which user, team, and organization can view and/or edit your dashboard group. **Note:** This feature is not present in all accounts. Please contact support if you are unsure. + :param pulumi.Input[Sequence[pulumi.Input[Union['DashboardGroupPermissionArgs', 'DashboardGroupPermissionArgsDict']]]] permissions: [Permissions](https://docs.splunk.com/Observability/infrastructure/terms-concepts/permissions.html) List of read and write permission configuration to specify which user, team, and organization can view and/or edit your dashboard group. **Note:** This feature is not present in all accounts. Please contact support if you are unsure. :param pulumi.Input[Sequence[pulumi.Input[str]]] teams: Team IDs to associate the dashboard group to. """ opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) diff --git a/sdk/python/pulumi_signalfx/data_link.py b/sdk/python/pulumi_signalfx/data_link.py index 2524d776..1909301a 100644 --- a/sdk/python/pulumi_signalfx/data_link.py +++ b/sdk/python/pulumi_signalfx/data_link.py @@ -229,9 +229,9 @@ def __init__(__self__, context_dashboard_id: Optional[pulumi.Input[str]] = None, property_name: Optional[pulumi.Input[str]] = None, property_value: Optional[pulumi.Input[str]] = None, - target_external_urls: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['DataLinkTargetExternalUrlArgs']]]]] = None, - target_signalfx_dashboards: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['DataLinkTargetSignalfxDashboardArgs']]]]] = None, - target_splunks: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['DataLinkTargetSplunkArgs']]]]] = None, + target_external_urls: Optional[pulumi.Input[Sequence[pulumi.Input[Union['DataLinkTargetExternalUrlArgs', 'DataLinkTargetExternalUrlArgsDict']]]]] = None, + target_signalfx_dashboards: Optional[pulumi.Input[Sequence[pulumi.Input[Union['DataLinkTargetSignalfxDashboardArgs', 'DataLinkTargetSignalfxDashboardArgsDict']]]]] = None, + target_splunks: Optional[pulumi.Input[Sequence[pulumi.Input[Union['DataLinkTargetSplunkArgs', 'DataLinkTargetSplunkArgsDict']]]]] = None, __props__=None): """ Manage Splunk Observability Cloud [Data Links](https://docs.signalfx.com/en/latest/managing/data-links.html). @@ -243,9 +243,9 @@ def __init__(__self__, :param pulumi.Input[str] context_dashboard_id: If provided, scopes this data link to the supplied dashboard id. If omitted then the link will be global. :param pulumi.Input[str] property_name: Name (key) of the metadata that's the trigger of a data link. If you specify `property_value`, you must specify `property_name`. :param pulumi.Input[str] property_value: Value of the metadata that's the trigger of a data link. If you specify this property, you must also specify `property_name`. - :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['DataLinkTargetExternalUrlArgs']]]] target_external_urls: Link to an external URL - :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['DataLinkTargetSignalfxDashboardArgs']]]] target_signalfx_dashboards: Link to a Splunk Observability Cloud dashboard - :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['DataLinkTargetSplunkArgs']]]] target_splunks: Link to an external URL + :param pulumi.Input[Sequence[pulumi.Input[Union['DataLinkTargetExternalUrlArgs', 'DataLinkTargetExternalUrlArgsDict']]]] target_external_urls: Link to an external URL + :param pulumi.Input[Sequence[pulumi.Input[Union['DataLinkTargetSignalfxDashboardArgs', 'DataLinkTargetSignalfxDashboardArgsDict']]]] target_signalfx_dashboards: Link to a Splunk Observability Cloud dashboard + :param pulumi.Input[Sequence[pulumi.Input[Union['DataLinkTargetSplunkArgs', 'DataLinkTargetSplunkArgsDict']]]] target_splunks: Link to an external URL """ ... @overload @@ -276,9 +276,9 @@ def _internal_init(__self__, context_dashboard_id: Optional[pulumi.Input[str]] = None, property_name: Optional[pulumi.Input[str]] = None, property_value: Optional[pulumi.Input[str]] = None, - target_external_urls: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['DataLinkTargetExternalUrlArgs']]]]] = None, - target_signalfx_dashboards: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['DataLinkTargetSignalfxDashboardArgs']]]]] = None, - target_splunks: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['DataLinkTargetSplunkArgs']]]]] = None, + target_external_urls: Optional[pulumi.Input[Sequence[pulumi.Input[Union['DataLinkTargetExternalUrlArgs', 'DataLinkTargetExternalUrlArgsDict']]]]] = None, + target_signalfx_dashboards: Optional[pulumi.Input[Sequence[pulumi.Input[Union['DataLinkTargetSignalfxDashboardArgs', 'DataLinkTargetSignalfxDashboardArgsDict']]]]] = None, + target_splunks: Optional[pulumi.Input[Sequence[pulumi.Input[Union['DataLinkTargetSplunkArgs', 'DataLinkTargetSplunkArgsDict']]]]] = None, __props__=None): opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts) if not isinstance(opts, pulumi.ResourceOptions): @@ -307,9 +307,9 @@ def get(resource_name: str, context_dashboard_id: Optional[pulumi.Input[str]] = None, property_name: Optional[pulumi.Input[str]] = None, property_value: Optional[pulumi.Input[str]] = None, - target_external_urls: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['DataLinkTargetExternalUrlArgs']]]]] = None, - target_signalfx_dashboards: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['DataLinkTargetSignalfxDashboardArgs']]]]] = None, - target_splunks: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['DataLinkTargetSplunkArgs']]]]] = None) -> 'DataLink': + target_external_urls: Optional[pulumi.Input[Sequence[pulumi.Input[Union['DataLinkTargetExternalUrlArgs', 'DataLinkTargetExternalUrlArgsDict']]]]] = None, + target_signalfx_dashboards: Optional[pulumi.Input[Sequence[pulumi.Input[Union['DataLinkTargetSignalfxDashboardArgs', 'DataLinkTargetSignalfxDashboardArgsDict']]]]] = None, + target_splunks: Optional[pulumi.Input[Sequence[pulumi.Input[Union['DataLinkTargetSplunkArgs', 'DataLinkTargetSplunkArgsDict']]]]] = None) -> 'DataLink': """ Get an existing DataLink resource's state with the given name, id, and optional extra properties used to qualify the lookup. @@ -320,9 +320,9 @@ def get(resource_name: str, :param pulumi.Input[str] context_dashboard_id: If provided, scopes this data link to the supplied dashboard id. If omitted then the link will be global. :param pulumi.Input[str] property_name: Name (key) of the metadata that's the trigger of a data link. If you specify `property_value`, you must specify `property_name`. :param pulumi.Input[str] property_value: Value of the metadata that's the trigger of a data link. If you specify this property, you must also specify `property_name`. - :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['DataLinkTargetExternalUrlArgs']]]] target_external_urls: Link to an external URL - :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['DataLinkTargetSignalfxDashboardArgs']]]] target_signalfx_dashboards: Link to a Splunk Observability Cloud dashboard - :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['DataLinkTargetSplunkArgs']]]] target_splunks: Link to an external URL + :param pulumi.Input[Sequence[pulumi.Input[Union['DataLinkTargetExternalUrlArgs', 'DataLinkTargetExternalUrlArgsDict']]]] target_external_urls: Link to an external URL + :param pulumi.Input[Sequence[pulumi.Input[Union['DataLinkTargetSignalfxDashboardArgs', 'DataLinkTargetSignalfxDashboardArgsDict']]]] target_signalfx_dashboards: Link to a Splunk Observability Cloud dashboard + :param pulumi.Input[Sequence[pulumi.Input[Union['DataLinkTargetSplunkArgs', 'DataLinkTargetSplunkArgsDict']]]] target_splunks: Link to an external URL """ opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) diff --git a/sdk/python/pulumi_signalfx/detector.py b/sdk/python/pulumi_signalfx/detector.py index b78b2a74..c8f306a9 100644 --- a/sdk/python/pulumi_signalfx/detector.py +++ b/sdk/python/pulumi_signalfx/detector.py @@ -715,7 +715,7 @@ def __init__(__self__, name: Optional[pulumi.Input[str]] = None, parent_detector_id: Optional[pulumi.Input[str]] = None, program_text: Optional[pulumi.Input[str]] = None, - rules: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['DetectorRuleArgs']]]]] = None, + rules: Optional[pulumi.Input[Sequence[pulumi.Input[Union['DetectorRuleArgs', 'DetectorRuleArgsDict']]]]] = None, show_data_markers: Optional[pulumi.Input[bool]] = None, show_event_lines: Optional[pulumi.Input[bool]] = None, start_time: Optional[pulumi.Input[int]] = None, @@ -723,7 +723,7 @@ def __init__(__self__, teams: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, time_range: Optional[pulumi.Input[int]] = None, timezone: Optional[pulumi.Input[str]] = None, - viz_options: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['DetectorVizOptionArgs']]]]] = None, + viz_options: Optional[pulumi.Input[Sequence[pulumi.Input[Union['DetectorVizOptionArgs', 'DetectorVizOptionArgsDict']]]]] = None, __props__=None): """ Provides a Splunk Observability Cloud detector resource. This can be used to create and manage detectors. @@ -797,7 +797,7 @@ def __init__(__self__, :param pulumi.Input[str] name: Name of the detector. :param pulumi.Input[str] parent_detector_id: ID of the AutoDetect parent detector from which this detector is customized and created. This property is required for detectors with detectorOrigin of type AutoDetectCustomization. The value can only be set when creating the detector and cannot be modified later. :param pulumi.Input[str] program_text: Signalflow program text for the detector. More info [in the Splunk Observability Cloud docs](https://dev.splunk.com/observability/docs/signalflow/). - :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['DetectorRuleArgs']]]] rules: Set of rules used for alerting. + :param pulumi.Input[Sequence[pulumi.Input[Union['DetectorRuleArgs', 'DetectorRuleArgsDict']]]] rules: Set of rules used for alerting. :param pulumi.Input[bool] show_data_markers: When `true`, markers will be drawn for each datapoint within the visualization. `true` by default. :param pulumi.Input[bool] show_event_lines: When `true`, the visualization will display a vertical line for each event trigger. `false` by default. :param pulumi.Input[int] start_time: Seconds since epoch. Used for visualization. Conflicts with `time_range`. @@ -805,7 +805,7 @@ def __init__(__self__, :param pulumi.Input[Sequence[pulumi.Input[str]]] teams: Team IDs to associate the detector to. :param pulumi.Input[int] time_range: Seconds to display in the visualization. This is a rolling range from the current time. Example: `3600` corresponds to `-1h` in web UI. `3600` by default. :param pulumi.Input[str] timezone: The property value is a string that denotes the geographic region associated with the time zone, (e.g. Australia/Sydney) - :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['DetectorVizOptionArgs']]]] viz_options: Plot-level customization options, associated with a publish statement. + :param pulumi.Input[Sequence[pulumi.Input[Union['DetectorVizOptionArgs', 'DetectorVizOptionArgsDict']]]] viz_options: Plot-level customization options, associated with a publish statement. """ ... @overload @@ -898,7 +898,7 @@ def _internal_init(__self__, name: Optional[pulumi.Input[str]] = None, parent_detector_id: Optional[pulumi.Input[str]] = None, program_text: Optional[pulumi.Input[str]] = None, - rules: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['DetectorRuleArgs']]]]] = None, + rules: Optional[pulumi.Input[Sequence[pulumi.Input[Union['DetectorRuleArgs', 'DetectorRuleArgsDict']]]]] = None, show_data_markers: Optional[pulumi.Input[bool]] = None, show_event_lines: Optional[pulumi.Input[bool]] = None, start_time: Optional[pulumi.Input[int]] = None, @@ -906,7 +906,7 @@ def _internal_init(__self__, teams: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, time_range: Optional[pulumi.Input[int]] = None, timezone: Optional[pulumi.Input[str]] = None, - viz_options: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['DetectorVizOptionArgs']]]]] = None, + viz_options: Optional[pulumi.Input[Sequence[pulumi.Input[Union['DetectorVizOptionArgs', 'DetectorVizOptionArgsDict']]]]] = None, __props__=None): opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts) if not isinstance(opts, pulumi.ResourceOptions): @@ -964,7 +964,7 @@ def get(resource_name: str, name: Optional[pulumi.Input[str]] = None, parent_detector_id: Optional[pulumi.Input[str]] = None, program_text: Optional[pulumi.Input[str]] = None, - rules: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['DetectorRuleArgs']]]]] = None, + rules: Optional[pulumi.Input[Sequence[pulumi.Input[Union['DetectorRuleArgs', 'DetectorRuleArgsDict']]]]] = None, show_data_markers: Optional[pulumi.Input[bool]] = None, show_event_lines: Optional[pulumi.Input[bool]] = None, start_time: Optional[pulumi.Input[int]] = None, @@ -973,7 +973,7 @@ def get(resource_name: str, time_range: Optional[pulumi.Input[int]] = None, timezone: Optional[pulumi.Input[str]] = None, url: Optional[pulumi.Input[str]] = None, - viz_options: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['DetectorVizOptionArgs']]]]] = None) -> 'Detector': + viz_options: Optional[pulumi.Input[Sequence[pulumi.Input[Union['DetectorVizOptionArgs', 'DetectorVizOptionArgsDict']]]]] = None) -> 'Detector': """ Get an existing Detector resource's state with the given name, id, and optional extra properties used to qualify the lookup. @@ -993,7 +993,7 @@ def get(resource_name: str, :param pulumi.Input[str] name: Name of the detector. :param pulumi.Input[str] parent_detector_id: ID of the AutoDetect parent detector from which this detector is customized and created. This property is required for detectors with detectorOrigin of type AutoDetectCustomization. The value can only be set when creating the detector and cannot be modified later. :param pulumi.Input[str] program_text: Signalflow program text for the detector. More info [in the Splunk Observability Cloud docs](https://dev.splunk.com/observability/docs/signalflow/). - :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['DetectorRuleArgs']]]] rules: Set of rules used for alerting. + :param pulumi.Input[Sequence[pulumi.Input[Union['DetectorRuleArgs', 'DetectorRuleArgsDict']]]] rules: Set of rules used for alerting. :param pulumi.Input[bool] show_data_markers: When `true`, markers will be drawn for each datapoint within the visualization. `true` by default. :param pulumi.Input[bool] show_event_lines: When `true`, the visualization will display a vertical line for each event trigger. `false` by default. :param pulumi.Input[int] start_time: Seconds since epoch. Used for visualization. Conflicts with `time_range`. @@ -1002,7 +1002,7 @@ def get(resource_name: str, :param pulumi.Input[int] time_range: Seconds to display in the visualization. This is a rolling range from the current time. Example: `3600` corresponds to `-1h` in web UI. `3600` by default. :param pulumi.Input[str] timezone: The property value is a string that denotes the geographic region associated with the time zone, (e.g. Australia/Sydney) :param pulumi.Input[str] url: The URL of the detector. - :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['DetectorVizOptionArgs']]]] viz_options: Plot-level customization options, associated with a publish statement. + :param pulumi.Input[Sequence[pulumi.Input[Union['DetectorVizOptionArgs', 'DetectorVizOptionArgsDict']]]] viz_options: Plot-level customization options, associated with a publish statement. """ opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) diff --git a/sdk/python/pulumi_signalfx/gcp/integration.py b/sdk/python/pulumi_signalfx/gcp/integration.py index 49c37c53..00e7e84c 100644 --- a/sdk/python/pulumi_signalfx/gcp/integration.py +++ b/sdk/python/pulumi_signalfx/gcp/integration.py @@ -360,7 +360,7 @@ def __init__(__self__, name: Optional[pulumi.Input[str]] = None, named_token: Optional[pulumi.Input[str]] = None, poll_rate: Optional[pulumi.Input[int]] = None, - project_service_keys: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['IntegrationProjectServiceKeyArgs']]]]] = None, + project_service_keys: Optional[pulumi.Input[Sequence[pulumi.Input[Union['IntegrationProjectServiceKeyArgs', 'IntegrationProjectServiceKeyArgsDict']]]]] = None, services: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, use_metric_source_project_for_quota: Optional[pulumi.Input[bool]] = None, __props__=None): @@ -380,7 +380,7 @@ def __init__(__self__, :param pulumi.Input[str] name: Name of the integration. :param pulumi.Input[str] named_token: Name of the org token to be used for data ingestion. If not specified then default access token is used. :param pulumi.Input[int] poll_rate: GCP integration poll rate (in seconds). Value between `60` and `600`. Default: `300`. - :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['IntegrationProjectServiceKeyArgs']]]] project_service_keys: GCP projects to add. + :param pulumi.Input[Sequence[pulumi.Input[Union['IntegrationProjectServiceKeyArgs', 'IntegrationProjectServiceKeyArgsDict']]]] project_service_keys: GCP projects to add. :param pulumi.Input[Sequence[pulumi.Input[str]]] services: GCP service metrics to import. Can be an empty list, or not included, to import 'All services'. See [Google Cloud Platform services](https://docs.splunk.com/Observability/gdi/get-data-in/integrations.html#google-cloud-platform-services) for a list of valid values. :param pulumi.Input[bool] use_metric_source_project_for_quota: When this value is set to true Observability Cloud will force usage of a quota from the project where metrics are stored. For this to work the service account provided for the project needs to be provided with serviceusage.services.use permission or Service Usage Consumer role in this project. When set to false default quota settings are used. """ @@ -419,7 +419,7 @@ def _internal_init(__self__, name: Optional[pulumi.Input[str]] = None, named_token: Optional[pulumi.Input[str]] = None, poll_rate: Optional[pulumi.Input[int]] = None, - project_service_keys: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['IntegrationProjectServiceKeyArgs']]]]] = None, + project_service_keys: Optional[pulumi.Input[Sequence[pulumi.Input[Union['IntegrationProjectServiceKeyArgs', 'IntegrationProjectServiceKeyArgsDict']]]]] = None, services: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, use_metric_source_project_for_quota: Optional[pulumi.Input[bool]] = None, __props__=None): @@ -462,7 +462,7 @@ def get(resource_name: str, name: Optional[pulumi.Input[str]] = None, named_token: Optional[pulumi.Input[str]] = None, poll_rate: Optional[pulumi.Input[int]] = None, - project_service_keys: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['IntegrationProjectServiceKeyArgs']]]]] = None, + project_service_keys: Optional[pulumi.Input[Sequence[pulumi.Input[Union['IntegrationProjectServiceKeyArgs', 'IntegrationProjectServiceKeyArgsDict']]]]] = None, services: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, use_metric_source_project_for_quota: Optional[pulumi.Input[bool]] = None) -> 'Integration': """ @@ -479,7 +479,7 @@ def get(resource_name: str, :param pulumi.Input[str] name: Name of the integration. :param pulumi.Input[str] named_token: Name of the org token to be used for data ingestion. If not specified then default access token is used. :param pulumi.Input[int] poll_rate: GCP integration poll rate (in seconds). Value between `60` and `600`. Default: `300`. - :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['IntegrationProjectServiceKeyArgs']]]] project_service_keys: GCP projects to add. + :param pulumi.Input[Sequence[pulumi.Input[Union['IntegrationProjectServiceKeyArgs', 'IntegrationProjectServiceKeyArgsDict']]]] project_service_keys: GCP projects to add. :param pulumi.Input[Sequence[pulumi.Input[str]]] services: GCP service metrics to import. Can be an empty list, or not included, to import 'All services'. See [Google Cloud Platform services](https://docs.splunk.com/Observability/gdi/get-data-in/integrations.html#google-cloud-platform-services) for a list of valid values. :param pulumi.Input[bool] use_metric_source_project_for_quota: When this value is set to true Observability Cloud will force usage of a quota from the project where metrics are stored. For this to work the service account provided for the project needs to be provided with serviceusage.services.use permission or Service Usage Consumer role in this project. When set to false default quota settings are used. """ diff --git a/sdk/python/pulumi_signalfx/heatmap_chart.py b/sdk/python/pulumi_signalfx/heatmap_chart.py index 43834cb3..c940e5bc 100644 --- a/sdk/python/pulumi_signalfx/heatmap_chart.py +++ b/sdk/python/pulumi_signalfx/heatmap_chart.py @@ -497,8 +497,8 @@ class HeatmapChart(pulumi.CustomResource): def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, - color_range: Optional[pulumi.Input[pulumi.InputType['HeatmapChartColorRangeArgs']]] = None, - color_scales: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['HeatmapChartColorScaleArgs']]]]] = None, + color_range: Optional[pulumi.Input[Union['HeatmapChartColorRangeArgs', 'HeatmapChartColorRangeArgsDict']]] = None, + color_scales: Optional[pulumi.Input[Sequence[pulumi.Input[Union['HeatmapChartColorScaleArgs', 'HeatmapChartColorScaleArgsDict']]]]] = None, description: Optional[pulumi.Input[str]] = None, disable_sampling: Optional[pulumi.Input[bool]] = None, group_bies: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, @@ -519,8 +519,8 @@ def __init__(__self__, :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. - :param pulumi.Input[pulumi.InputType['HeatmapChartColorRangeArgs']] color_range: Values and color for the color range. Example: `color_range : { min : 0, max : 100, color : "#0000ff" }`. Look at this [link](https://docs.splunk.com/observability/en/data-visualization/charts/chart-options.html). - :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['HeatmapChartColorScaleArgs']]]] color_scales: One to N blocks, each defining a single color range including both the color to display for that range and the borders of the range. Example: `color_scale { gt = 60, color = "blue" } color_scale { lte = 60, color = "yellow" }`. Look at this [link](https://docs.splunk.com/observability/en/data-visualization/charts/chart-options.html). + :param pulumi.Input[Union['HeatmapChartColorRangeArgs', 'HeatmapChartColorRangeArgsDict']] color_range: Values and color for the color range. Example: `color_range : { min : 0, max : 100, color : "#0000ff" }`. Look at this [link](https://docs.splunk.com/observability/en/data-visualization/charts/chart-options.html). + :param pulumi.Input[Sequence[pulumi.Input[Union['HeatmapChartColorScaleArgs', 'HeatmapChartColorScaleArgsDict']]]] color_scales: One to N blocks, each defining a single color range including both the color to display for that range and the borders of the range. Example: `color_scale { gt = 60, color = "blue" } color_scale { lte = 60, color = "yellow" }`. Look at this [link](https://docs.splunk.com/observability/en/data-visualization/charts/chart-options.html). :param pulumi.Input[str] description: Description of the chart. :param pulumi.Input[bool] disable_sampling: If `false`, samples a subset of the output MTS, which improves UI performance. `false` by default. :param pulumi.Input[Sequence[pulumi.Input[str]]] group_bies: Properties to group by in the heatmap (in nesting order). @@ -560,8 +560,8 @@ def __init__(__self__, resource_name: str, *args, **kwargs): def _internal_init(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, - color_range: Optional[pulumi.Input[pulumi.InputType['HeatmapChartColorRangeArgs']]] = None, - color_scales: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['HeatmapChartColorScaleArgs']]]]] = None, + color_range: Optional[pulumi.Input[Union['HeatmapChartColorRangeArgs', 'HeatmapChartColorRangeArgsDict']]] = None, + color_scales: Optional[pulumi.Input[Sequence[pulumi.Input[Union['HeatmapChartColorScaleArgs', 'HeatmapChartColorScaleArgsDict']]]]] = None, description: Optional[pulumi.Input[str]] = None, disable_sampling: Optional[pulumi.Input[bool]] = None, group_bies: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, @@ -610,8 +610,8 @@ def _internal_init(__self__, def get(resource_name: str, id: pulumi.Input[str], opts: Optional[pulumi.ResourceOptions] = None, - color_range: Optional[pulumi.Input[pulumi.InputType['HeatmapChartColorRangeArgs']]] = None, - color_scales: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['HeatmapChartColorScaleArgs']]]]] = None, + color_range: Optional[pulumi.Input[Union['HeatmapChartColorRangeArgs', 'HeatmapChartColorRangeArgsDict']]] = None, + color_scales: Optional[pulumi.Input[Sequence[pulumi.Input[Union['HeatmapChartColorScaleArgs', 'HeatmapChartColorScaleArgsDict']]]]] = None, description: Optional[pulumi.Input[str]] = None, disable_sampling: Optional[pulumi.Input[bool]] = None, group_bies: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, @@ -632,8 +632,8 @@ def get(resource_name: str, :param str resource_name: The unique name of the resulting resource. :param pulumi.Input[str] id: The unique provider ID of the resource to lookup. :param pulumi.ResourceOptions opts: Options for the resource. - :param pulumi.Input[pulumi.InputType['HeatmapChartColorRangeArgs']] color_range: Values and color for the color range. Example: `color_range : { min : 0, max : 100, color : "#0000ff" }`. Look at this [link](https://docs.splunk.com/observability/en/data-visualization/charts/chart-options.html). - :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['HeatmapChartColorScaleArgs']]]] color_scales: One to N blocks, each defining a single color range including both the color to display for that range and the borders of the range. Example: `color_scale { gt = 60, color = "blue" } color_scale { lte = 60, color = "yellow" }`. Look at this [link](https://docs.splunk.com/observability/en/data-visualization/charts/chart-options.html). + :param pulumi.Input[Union['HeatmapChartColorRangeArgs', 'HeatmapChartColorRangeArgsDict']] color_range: Values and color for the color range. Example: `color_range : { min : 0, max : 100, color : "#0000ff" }`. Look at this [link](https://docs.splunk.com/observability/en/data-visualization/charts/chart-options.html). + :param pulumi.Input[Sequence[pulumi.Input[Union['HeatmapChartColorScaleArgs', 'HeatmapChartColorScaleArgsDict']]]] color_scales: One to N blocks, each defining a single color range including both the color to display for that range and the borders of the range. Example: `color_scale { gt = 60, color = "blue" } color_scale { lte = 60, color = "yellow" }`. Look at this [link](https://docs.splunk.com/observability/en/data-visualization/charts/chart-options.html). :param pulumi.Input[str] description: Description of the chart. :param pulumi.Input[bool] disable_sampling: If `false`, samples a subset of the output MTS, which improves UI performance. `false` by default. :param pulumi.Input[Sequence[pulumi.Input[str]]] group_bies: Properties to group by in the heatmap (in nesting order). diff --git a/sdk/python/pulumi_signalfx/list_chart.py b/sdk/python/pulumi_signalfx/list_chart.py index 15426881..0f3cfb25 100644 --- a/sdk/python/pulumi_signalfx/list_chart.py +++ b/sdk/python/pulumi_signalfx/list_chart.py @@ -698,13 +698,13 @@ def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, color_by: Optional[pulumi.Input[str]] = None, - color_scales: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ListChartColorScaleArgs']]]]] = None, + color_scales: Optional[pulumi.Input[Sequence[pulumi.Input[Union['ListChartColorScaleArgs', 'ListChartColorScaleArgsDict']]]]] = None, description: Optional[pulumi.Input[str]] = None, disable_sampling: Optional[pulumi.Input[bool]] = None, end_time: Optional[pulumi.Input[int]] = None, hide_missing_values: Optional[pulumi.Input[bool]] = None, legend_fields_to_hides: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, - legend_options_fields: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ListChartLegendOptionsFieldArgs']]]]] = None, + legend_options_fields: Optional[pulumi.Input[Sequence[pulumi.Input[Union['ListChartLegendOptionsFieldArgs', 'ListChartLegendOptionsFieldArgsDict']]]]] = None, max_delay: Optional[pulumi.Input[int]] = None, max_precision: Optional[pulumi.Input[int]] = None, name: Optional[pulumi.Input[str]] = None, @@ -716,7 +716,7 @@ def __init__(__self__, time_range: Optional[pulumi.Input[int]] = None, timezone: Optional[pulumi.Input[str]] = None, unit_prefix: Optional[pulumi.Input[str]] = None, - viz_options: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ListChartVizOptionArgs']]]]] = None, + viz_options: Optional[pulumi.Input[Sequence[pulumi.Input[Union['ListChartVizOptionArgs', 'ListChartVizOptionArgsDict']]]]] = None, __props__=None): """ This chart type displays current data values in a list format. @@ -728,13 +728,13 @@ def __init__(__self__, :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :param pulumi.Input[str] color_by: Must be one of `"Scale"`, `"Dimension"` or `"Metric"`. `"Dimension"` by default. - :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ListChartColorScaleArgs']]]] color_scales: Single color range including both the color to display for that range and the borders of the range. Example: `[{ gt = 60, color = "blue" }, { lte = 60, color = "yellow" }]`. Look at this [link](https://docs.splunk.com/observability/en/data-visualization/charts/chart-options.html). + :param pulumi.Input[Sequence[pulumi.Input[Union['ListChartColorScaleArgs', 'ListChartColorScaleArgsDict']]]] color_scales: Single color range including both the color to display for that range and the borders of the range. Example: `[{ gt = 60, color = "blue" }, { lte = 60, color = "yellow" }]`. Look at this [link](https://docs.splunk.com/observability/en/data-visualization/charts/chart-options.html). :param pulumi.Input[str] description: Description of the chart. :param pulumi.Input[bool] disable_sampling: If `false`, samples a subset of the output MTS, which improves UI performance. `false` by default. :param pulumi.Input[int] end_time: Seconds since epoch. Used for visualization. Conflicts with `time_range`. :param pulumi.Input[bool] hide_missing_values: Determines whether to hide missing data points in the chart. If `true`, missing data points in the chart would be hidden. `false` by default. :param pulumi.Input[Sequence[pulumi.Input[str]]] legend_fields_to_hides: List of properties that should not be displayed in the chart legend (i.e. dimension names). All the properties are visible by default. Deprecated, please use `legend_options_fields`. - :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ListChartLegendOptionsFieldArgs']]]] legend_options_fields: List of property names and enabled flags that should be displayed in the data table for the chart, in the order provided. This option cannot be used with `legend_fields_to_hide`. + :param pulumi.Input[Sequence[pulumi.Input[Union['ListChartLegendOptionsFieldArgs', 'ListChartLegendOptionsFieldArgsDict']]]] legend_options_fields: List of property names and enabled flags that should be displayed in the data table for the chart, in the order provided. This option cannot be used with `legend_fields_to_hide`. :param pulumi.Input[int] max_delay: How long (in seconds) to wait for late datapoints. :param pulumi.Input[int] max_precision: Maximum number of digits to display when rounding values up or down. :param pulumi.Input[str] name: Name of the chart. @@ -746,7 +746,7 @@ def __init__(__self__, :param pulumi.Input[int] time_range: How many seconds ago from which to display data. For example, the last hour would be `3600`, etc. Conflicts with `start_time` and `end_time`. :param pulumi.Input[str] timezone: The property value is a string that denotes the geographic region associated with the time zone, (default UTC). :param pulumi.Input[str] unit_prefix: Must be `"Metric"` or `"Binary`". `"Metric"` by default. - :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ListChartVizOptionArgs']]]] viz_options: Plot-level customization options, associated with a publish statement. + :param pulumi.Input[Sequence[pulumi.Input[Union['ListChartVizOptionArgs', 'ListChartVizOptionArgsDict']]]] viz_options: Plot-level customization options, associated with a publish statement. """ ... @overload @@ -777,13 +777,13 @@ def _internal_init(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, color_by: Optional[pulumi.Input[str]] = None, - color_scales: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ListChartColorScaleArgs']]]]] = None, + color_scales: Optional[pulumi.Input[Sequence[pulumi.Input[Union['ListChartColorScaleArgs', 'ListChartColorScaleArgsDict']]]]] = None, description: Optional[pulumi.Input[str]] = None, disable_sampling: Optional[pulumi.Input[bool]] = None, end_time: Optional[pulumi.Input[int]] = None, hide_missing_values: Optional[pulumi.Input[bool]] = None, legend_fields_to_hides: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, - legend_options_fields: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ListChartLegendOptionsFieldArgs']]]]] = None, + legend_options_fields: Optional[pulumi.Input[Sequence[pulumi.Input[Union['ListChartLegendOptionsFieldArgs', 'ListChartLegendOptionsFieldArgsDict']]]]] = None, max_delay: Optional[pulumi.Input[int]] = None, max_precision: Optional[pulumi.Input[int]] = None, name: Optional[pulumi.Input[str]] = None, @@ -795,7 +795,7 @@ def _internal_init(__self__, time_range: Optional[pulumi.Input[int]] = None, timezone: Optional[pulumi.Input[str]] = None, unit_prefix: Optional[pulumi.Input[str]] = None, - viz_options: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ListChartVizOptionArgs']]]]] = None, + viz_options: Optional[pulumi.Input[Sequence[pulumi.Input[Union['ListChartVizOptionArgs', 'ListChartVizOptionArgsDict']]]]] = None, __props__=None): opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts) if not isinstance(opts, pulumi.ResourceOptions): @@ -839,13 +839,13 @@ def get(resource_name: str, id: pulumi.Input[str], opts: Optional[pulumi.ResourceOptions] = None, color_by: Optional[pulumi.Input[str]] = None, - color_scales: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ListChartColorScaleArgs']]]]] = None, + color_scales: Optional[pulumi.Input[Sequence[pulumi.Input[Union['ListChartColorScaleArgs', 'ListChartColorScaleArgsDict']]]]] = None, description: Optional[pulumi.Input[str]] = None, disable_sampling: Optional[pulumi.Input[bool]] = None, end_time: Optional[pulumi.Input[int]] = None, hide_missing_values: Optional[pulumi.Input[bool]] = None, legend_fields_to_hides: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, - legend_options_fields: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ListChartLegendOptionsFieldArgs']]]]] = None, + legend_options_fields: Optional[pulumi.Input[Sequence[pulumi.Input[Union['ListChartLegendOptionsFieldArgs', 'ListChartLegendOptionsFieldArgsDict']]]]] = None, max_delay: Optional[pulumi.Input[int]] = None, max_precision: Optional[pulumi.Input[int]] = None, name: Optional[pulumi.Input[str]] = None, @@ -858,7 +858,7 @@ def get(resource_name: str, timezone: Optional[pulumi.Input[str]] = None, unit_prefix: Optional[pulumi.Input[str]] = None, url: Optional[pulumi.Input[str]] = None, - viz_options: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ListChartVizOptionArgs']]]]] = None) -> 'ListChart': + viz_options: Optional[pulumi.Input[Sequence[pulumi.Input[Union['ListChartVizOptionArgs', 'ListChartVizOptionArgsDict']]]]] = None) -> 'ListChart': """ Get an existing ListChart resource's state with the given name, id, and optional extra properties used to qualify the lookup. @@ -867,13 +867,13 @@ def get(resource_name: str, :param pulumi.Input[str] id: The unique provider ID of the resource to lookup. :param pulumi.ResourceOptions opts: Options for the resource. :param pulumi.Input[str] color_by: Must be one of `"Scale"`, `"Dimension"` or `"Metric"`. `"Dimension"` by default. - :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ListChartColorScaleArgs']]]] color_scales: Single color range including both the color to display for that range and the borders of the range. Example: `[{ gt = 60, color = "blue" }, { lte = 60, color = "yellow" }]`. Look at this [link](https://docs.splunk.com/observability/en/data-visualization/charts/chart-options.html). + :param pulumi.Input[Sequence[pulumi.Input[Union['ListChartColorScaleArgs', 'ListChartColorScaleArgsDict']]]] color_scales: Single color range including both the color to display for that range and the borders of the range. Example: `[{ gt = 60, color = "blue" }, { lte = 60, color = "yellow" }]`. Look at this [link](https://docs.splunk.com/observability/en/data-visualization/charts/chart-options.html). :param pulumi.Input[str] description: Description of the chart. :param pulumi.Input[bool] disable_sampling: If `false`, samples a subset of the output MTS, which improves UI performance. `false` by default. :param pulumi.Input[int] end_time: Seconds since epoch. Used for visualization. Conflicts with `time_range`. :param pulumi.Input[bool] hide_missing_values: Determines whether to hide missing data points in the chart. If `true`, missing data points in the chart would be hidden. `false` by default. :param pulumi.Input[Sequence[pulumi.Input[str]]] legend_fields_to_hides: List of properties that should not be displayed in the chart legend (i.e. dimension names). All the properties are visible by default. Deprecated, please use `legend_options_fields`. - :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ListChartLegendOptionsFieldArgs']]]] legend_options_fields: List of property names and enabled flags that should be displayed in the data table for the chart, in the order provided. This option cannot be used with `legend_fields_to_hide`. + :param pulumi.Input[Sequence[pulumi.Input[Union['ListChartLegendOptionsFieldArgs', 'ListChartLegendOptionsFieldArgsDict']]]] legend_options_fields: List of property names and enabled flags that should be displayed in the data table for the chart, in the order provided. This option cannot be used with `legend_fields_to_hide`. :param pulumi.Input[int] max_delay: How long (in seconds) to wait for late datapoints. :param pulumi.Input[int] max_precision: Maximum number of digits to display when rounding values up or down. :param pulumi.Input[str] name: Name of the chart. @@ -886,7 +886,7 @@ def get(resource_name: str, :param pulumi.Input[str] timezone: The property value is a string that denotes the geographic region associated with the time zone, (default UTC). :param pulumi.Input[str] unit_prefix: Must be `"Metric"` or `"Binary`". `"Metric"` by default. :param pulumi.Input[str] url: The URL of the chart. - :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ListChartVizOptionArgs']]]] viz_options: Plot-level customization options, associated with a publish statement. + :param pulumi.Input[Sequence[pulumi.Input[Union['ListChartVizOptionArgs', 'ListChartVizOptionArgsDict']]]] viz_options: Plot-level customization options, associated with a publish statement. """ opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) diff --git a/sdk/python/pulumi_signalfx/log/view.py b/sdk/python/pulumi_signalfx/log/view.py index 7c90323f..f43c3482 100644 --- a/sdk/python/pulumi_signalfx/log/view.py +++ b/sdk/python/pulumi_signalfx/log/view.py @@ -337,13 +337,13 @@ class View(pulumi.CustomResource): def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, - columns: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ViewColumnArgs']]]]] = None, + columns: Optional[pulumi.Input[Sequence[pulumi.Input[Union['ViewColumnArgs', 'ViewColumnArgsDict']]]]] = None, default_connection: Optional[pulumi.Input[str]] = None, description: Optional[pulumi.Input[str]] = None, end_time: Optional[pulumi.Input[int]] = None, name: Optional[pulumi.Input[str]] = None, program_text: Optional[pulumi.Input[str]] = None, - sort_options: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ViewSortOptionArgs']]]]] = None, + sort_options: Optional[pulumi.Input[Sequence[pulumi.Input[Union['ViewSortOptionArgs', 'ViewSortOptionArgsDict']]]]] = None, start_time: Optional[pulumi.Input[int]] = None, time_range: Optional[pulumi.Input[int]] = None, __props__=None): @@ -356,13 +356,13 @@ def __init__(__self__, :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. - :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ViewColumnArgs']]]] columns: The column headers to show on the log view. + :param pulumi.Input[Sequence[pulumi.Input[Union['ViewColumnArgs', 'ViewColumnArgsDict']]]] columns: The column headers to show on the log view. :param pulumi.Input[str] default_connection: The connection that the log view uses to fetch data. This could be Splunk Enterprise, Splunk Enterprise Cloud or Observability Cloud. :param pulumi.Input[str] description: Description of the log view. :param pulumi.Input[int] end_time: Seconds since epoch. Used for visualization. Conflicts with `time_range`. :param pulumi.Input[str] name: Name of the log view. :param pulumi.Input[str] program_text: Signalflow program text for the log view. More info at https://developers.signalfx.com/docs/signalflow-overview. - :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ViewSortOptionArgs']]]] sort_options: The sorting options configuration to specify if the log view table needs to be sorted in a particular field. + :param pulumi.Input[Sequence[pulumi.Input[Union['ViewSortOptionArgs', 'ViewSortOptionArgsDict']]]] sort_options: The sorting options configuration to specify if the log view table needs to be sorted in a particular field. :param pulumi.Input[int] start_time: Seconds since epoch. Used for visualization. Conflicts with `time_range`. :param pulumi.Input[int] time_range: From when to display data. Splunk Observability Cloud time syntax (e.g. `"-5m"`, `"-1h"`). Conflicts with `start_time` and `end_time`. """ @@ -394,13 +394,13 @@ def __init__(__self__, resource_name: str, *args, **kwargs): def _internal_init(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, - columns: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ViewColumnArgs']]]]] = None, + columns: Optional[pulumi.Input[Sequence[pulumi.Input[Union['ViewColumnArgs', 'ViewColumnArgsDict']]]]] = None, default_connection: Optional[pulumi.Input[str]] = None, description: Optional[pulumi.Input[str]] = None, end_time: Optional[pulumi.Input[int]] = None, name: Optional[pulumi.Input[str]] = None, program_text: Optional[pulumi.Input[str]] = None, - sort_options: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ViewSortOptionArgs']]]]] = None, + sort_options: Optional[pulumi.Input[Sequence[pulumi.Input[Union['ViewSortOptionArgs', 'ViewSortOptionArgsDict']]]]] = None, start_time: Optional[pulumi.Input[int]] = None, time_range: Optional[pulumi.Input[int]] = None, __props__=None): @@ -436,13 +436,13 @@ def _internal_init(__self__, def get(resource_name: str, id: pulumi.Input[str], opts: Optional[pulumi.ResourceOptions] = None, - columns: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ViewColumnArgs']]]]] = None, + columns: Optional[pulumi.Input[Sequence[pulumi.Input[Union['ViewColumnArgs', 'ViewColumnArgsDict']]]]] = None, default_connection: Optional[pulumi.Input[str]] = None, description: Optional[pulumi.Input[str]] = None, end_time: Optional[pulumi.Input[int]] = None, name: Optional[pulumi.Input[str]] = None, program_text: Optional[pulumi.Input[str]] = None, - sort_options: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ViewSortOptionArgs']]]]] = None, + sort_options: Optional[pulumi.Input[Sequence[pulumi.Input[Union['ViewSortOptionArgs', 'ViewSortOptionArgsDict']]]]] = None, start_time: Optional[pulumi.Input[int]] = None, time_range: Optional[pulumi.Input[int]] = None, url: Optional[pulumi.Input[str]] = None) -> 'View': @@ -453,13 +453,13 @@ def get(resource_name: str, :param str resource_name: The unique name of the resulting resource. :param pulumi.Input[str] id: The unique provider ID of the resource to lookup. :param pulumi.ResourceOptions opts: Options for the resource. - :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ViewColumnArgs']]]] columns: The column headers to show on the log view. + :param pulumi.Input[Sequence[pulumi.Input[Union['ViewColumnArgs', 'ViewColumnArgsDict']]]] columns: The column headers to show on the log view. :param pulumi.Input[str] default_connection: The connection that the log view uses to fetch data. This could be Splunk Enterprise, Splunk Enterprise Cloud or Observability Cloud. :param pulumi.Input[str] description: Description of the log view. :param pulumi.Input[int] end_time: Seconds since epoch. Used for visualization. Conflicts with `time_range`. :param pulumi.Input[str] name: Name of the log view. :param pulumi.Input[str] program_text: Signalflow program text for the log view. More info at https://developers.signalfx.com/docs/signalflow-overview. - :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ViewSortOptionArgs']]]] sort_options: The sorting options configuration to specify if the log view table needs to be sorted in a particular field. + :param pulumi.Input[Sequence[pulumi.Input[Union['ViewSortOptionArgs', 'ViewSortOptionArgsDict']]]] sort_options: The sorting options configuration to specify if the log view table needs to be sorted in a particular field. :param pulumi.Input[int] start_time: Seconds since epoch. Used for visualization. Conflicts with `time_range`. :param pulumi.Input[int] time_range: From when to display data. Splunk Observability Cloud time syntax (e.g. `"-5m"`, `"-1h"`). Conflicts with `start_time` and `end_time`. :param pulumi.Input[str] url: The URL of the log view. diff --git a/sdk/python/pulumi_signalfx/metric_ruleset.py b/sdk/python/pulumi_signalfx/metric_ruleset.py index 9d4a16af..51de76d0 100644 --- a/sdk/python/pulumi_signalfx/metric_ruleset.py +++ b/sdk/python/pulumi_signalfx/metric_ruleset.py @@ -224,9 +224,9 @@ class MetricRuleset(pulumi.CustomResource): def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, - aggregation_rules: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['MetricRulesetAggregationRuleArgs']]]]] = None, + aggregation_rules: Optional[pulumi.Input[Sequence[pulumi.Input[Union['MetricRulesetAggregationRuleArgs', 'MetricRulesetAggregationRuleArgsDict']]]]] = None, metric_name: Optional[pulumi.Input[str]] = None, - routing_rules: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['MetricRulesetRoutingRuleArgs']]]]] = None, + routing_rules: Optional[pulumi.Input[Sequence[pulumi.Input[Union['MetricRulesetRoutingRuleArgs', 'MetricRulesetRoutingRuleArgsDict']]]]] = None, __props__=None): """ Provides an Observability Cloud resource for managing metric rulesets. @@ -237,9 +237,9 @@ def __init__(__self__, :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. - :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['MetricRulesetAggregationRuleArgs']]]] aggregation_rules: List of aggregation rules for the metric + :param pulumi.Input[Sequence[pulumi.Input[Union['MetricRulesetAggregationRuleArgs', 'MetricRulesetAggregationRuleArgsDict']]]] aggregation_rules: List of aggregation rules for the metric :param pulumi.Input[str] metric_name: Name of the input metric - :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['MetricRulesetRoutingRuleArgs']]]] routing_rules: Routing Rule object + :param pulumi.Input[Sequence[pulumi.Input[Union['MetricRulesetRoutingRuleArgs', 'MetricRulesetRoutingRuleArgsDict']]]] routing_rules: Routing Rule object """ ... @overload @@ -269,9 +269,9 @@ def __init__(__self__, resource_name: str, *args, **kwargs): def _internal_init(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, - aggregation_rules: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['MetricRulesetAggregationRuleArgs']]]]] = None, + aggregation_rules: Optional[pulumi.Input[Sequence[pulumi.Input[Union['MetricRulesetAggregationRuleArgs', 'MetricRulesetAggregationRuleArgsDict']]]]] = None, metric_name: Optional[pulumi.Input[str]] = None, - routing_rules: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['MetricRulesetRoutingRuleArgs']]]]] = None, + routing_rules: Optional[pulumi.Input[Sequence[pulumi.Input[Union['MetricRulesetRoutingRuleArgs', 'MetricRulesetRoutingRuleArgsDict']]]]] = None, __props__=None): opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts) if not isinstance(opts, pulumi.ResourceOptions): @@ -304,14 +304,14 @@ def _internal_init(__self__, def get(resource_name: str, id: pulumi.Input[str], opts: Optional[pulumi.ResourceOptions] = None, - aggregation_rules: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['MetricRulesetAggregationRuleArgs']]]]] = None, + aggregation_rules: Optional[pulumi.Input[Sequence[pulumi.Input[Union['MetricRulesetAggregationRuleArgs', 'MetricRulesetAggregationRuleArgsDict']]]]] = None, created: Optional[pulumi.Input[str]] = None, creator: Optional[pulumi.Input[str]] = None, last_updated: Optional[pulumi.Input[str]] = None, last_updated_by: Optional[pulumi.Input[str]] = None, last_updated_by_name: Optional[pulumi.Input[str]] = None, metric_name: Optional[pulumi.Input[str]] = None, - routing_rules: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['MetricRulesetRoutingRuleArgs']]]]] = None, + routing_rules: Optional[pulumi.Input[Sequence[pulumi.Input[Union['MetricRulesetRoutingRuleArgs', 'MetricRulesetRoutingRuleArgsDict']]]]] = None, version: Optional[pulumi.Input[str]] = None) -> 'MetricRuleset': """ Get an existing MetricRuleset resource's state with the given name, id, and optional extra @@ -320,14 +320,14 @@ def get(resource_name: str, :param str resource_name: The unique name of the resulting resource. :param pulumi.Input[str] id: The unique provider ID of the resource to lookup. :param pulumi.ResourceOptions opts: Options for the resource. - :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['MetricRulesetAggregationRuleArgs']]]] aggregation_rules: List of aggregation rules for the metric + :param pulumi.Input[Sequence[pulumi.Input[Union['MetricRulesetAggregationRuleArgs', 'MetricRulesetAggregationRuleArgsDict']]]] aggregation_rules: List of aggregation rules for the metric :param pulumi.Input[str] created: Timestamp of when the metric ruleset was created :param pulumi.Input[str] creator: ID of the creator of the metric ruleset :param pulumi.Input[str] last_updated: Timestamp of when the metric ruleset was last updated :param pulumi.Input[str] last_updated_by: ID of user who last updated the metric ruleset :param pulumi.Input[str] last_updated_by_name: Name of user who last updated this metric ruleset :param pulumi.Input[str] metric_name: Name of the input metric - :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['MetricRulesetRoutingRuleArgs']]]] routing_rules: Routing Rule object + :param pulumi.Input[Sequence[pulumi.Input[Union['MetricRulesetRoutingRuleArgs', 'MetricRulesetRoutingRuleArgsDict']]]] routing_rules: Routing Rule object :param pulumi.Input[str] version: Version of the ruleset """ opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) diff --git a/sdk/python/pulumi_signalfx/org_token.py b/sdk/python/pulumi_signalfx/org_token.py index 348b088c..6050cc6f 100644 --- a/sdk/python/pulumi_signalfx/org_token.py +++ b/sdk/python/pulumi_signalfx/org_token.py @@ -277,8 +277,8 @@ def __init__(__self__, auth_scopes: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, description: Optional[pulumi.Input[str]] = None, disabled: Optional[pulumi.Input[bool]] = None, - dpm_limits: Optional[pulumi.Input[pulumi.InputType['OrgTokenDpmLimitsArgs']]] = None, - host_or_usage_limits: Optional[pulumi.Input[pulumi.InputType['OrgTokenHostOrUsageLimitsArgs']]] = None, + dpm_limits: Optional[pulumi.Input[Union['OrgTokenDpmLimitsArgs', 'OrgTokenDpmLimitsArgsDict']]] = None, + host_or_usage_limits: Optional[pulumi.Input[Union['OrgTokenHostOrUsageLimitsArgs', 'OrgTokenHostOrUsageLimitsArgsDict']]] = None, name: Optional[pulumi.Input[str]] = None, notifications: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, __props__=None): @@ -294,8 +294,8 @@ def __init__(__self__, :param pulumi.Input[Sequence[pulumi.Input[str]]] auth_scopes: Authentication scope, ex: INGEST, API, RUM ... (Optional) :param pulumi.Input[str] description: Description of the token. :param pulumi.Input[bool] disabled: Flag that controls enabling the token. If set to `true`, the token is disabled, and you can't use it for authentication. Defaults to `false`. - :param pulumi.Input[pulumi.InputType['OrgTokenDpmLimitsArgs']] dpm_limits: Specify DPM-based limits for this token. - :param pulumi.Input[pulumi.InputType['OrgTokenHostOrUsageLimitsArgs']] host_or_usage_limits: Specify Usage-based limits for this token. + :param pulumi.Input[Union['OrgTokenDpmLimitsArgs', 'OrgTokenDpmLimitsArgsDict']] dpm_limits: Specify DPM-based limits for this token. + :param pulumi.Input[Union['OrgTokenHostOrUsageLimitsArgs', 'OrgTokenHostOrUsageLimitsArgsDict']] host_or_usage_limits: Specify Usage-based limits for this token. :param pulumi.Input[str] name: Name of the token. :param pulumi.Input[Sequence[pulumi.Input[str]]] notifications: Where to send notifications about this token's limits. See the Notification Format laid out in detectors. """ @@ -330,8 +330,8 @@ def _internal_init(__self__, auth_scopes: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, description: Optional[pulumi.Input[str]] = None, disabled: Optional[pulumi.Input[bool]] = None, - dpm_limits: Optional[pulumi.Input[pulumi.InputType['OrgTokenDpmLimitsArgs']]] = None, - host_or_usage_limits: Optional[pulumi.Input[pulumi.InputType['OrgTokenHostOrUsageLimitsArgs']]] = None, + dpm_limits: Optional[pulumi.Input[Union['OrgTokenDpmLimitsArgs', 'OrgTokenDpmLimitsArgsDict']]] = None, + host_or_usage_limits: Optional[pulumi.Input[Union['OrgTokenHostOrUsageLimitsArgs', 'OrgTokenHostOrUsageLimitsArgsDict']]] = None, name: Optional[pulumi.Input[str]] = None, notifications: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, __props__=None): @@ -366,8 +366,8 @@ def get(resource_name: str, auth_scopes: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, description: Optional[pulumi.Input[str]] = None, disabled: Optional[pulumi.Input[bool]] = None, - dpm_limits: Optional[pulumi.Input[pulumi.InputType['OrgTokenDpmLimitsArgs']]] = None, - host_or_usage_limits: Optional[pulumi.Input[pulumi.InputType['OrgTokenHostOrUsageLimitsArgs']]] = None, + dpm_limits: Optional[pulumi.Input[Union['OrgTokenDpmLimitsArgs', 'OrgTokenDpmLimitsArgsDict']]] = None, + host_or_usage_limits: Optional[pulumi.Input[Union['OrgTokenHostOrUsageLimitsArgs', 'OrgTokenHostOrUsageLimitsArgsDict']]] = None, name: Optional[pulumi.Input[str]] = None, notifications: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, secret: Optional[pulumi.Input[str]] = None) -> 'OrgToken': @@ -381,8 +381,8 @@ def get(resource_name: str, :param pulumi.Input[Sequence[pulumi.Input[str]]] auth_scopes: Authentication scope, ex: INGEST, API, RUM ... (Optional) :param pulumi.Input[str] description: Description of the token. :param pulumi.Input[bool] disabled: Flag that controls enabling the token. If set to `true`, the token is disabled, and you can't use it for authentication. Defaults to `false`. - :param pulumi.Input[pulumi.InputType['OrgTokenDpmLimitsArgs']] dpm_limits: Specify DPM-based limits for this token. - :param pulumi.Input[pulumi.InputType['OrgTokenHostOrUsageLimitsArgs']] host_or_usage_limits: Specify Usage-based limits for this token. + :param pulumi.Input[Union['OrgTokenDpmLimitsArgs', 'OrgTokenDpmLimitsArgsDict']] dpm_limits: Specify DPM-based limits for this token. + :param pulumi.Input[Union['OrgTokenHostOrUsageLimitsArgs', 'OrgTokenHostOrUsageLimitsArgsDict']] host_or_usage_limits: Specify Usage-based limits for this token. :param pulumi.Input[str] name: Name of the token. :param pulumi.Input[Sequence[pulumi.Input[str]]] notifications: Where to send notifications about this token's limits. See the Notification Format laid out in detectors. :param pulumi.Input[str] secret: The secret token created by the API. You cannot set this value. diff --git a/sdk/python/pulumi_signalfx/single_value_chart.py b/sdk/python/pulumi_signalfx/single_value_chart.py index d001264f..ca99ac2c 100644 --- a/sdk/python/pulumi_signalfx/single_value_chart.py +++ b/sdk/python/pulumi_signalfx/single_value_chart.py @@ -498,7 +498,7 @@ def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, color_by: Optional[pulumi.Input[str]] = None, - color_scales: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['SingleValueChartColorScaleArgs']]]]] = None, + color_scales: Optional[pulumi.Input[Sequence[pulumi.Input[Union['SingleValueChartColorScaleArgs', 'SingleValueChartColorScaleArgsDict']]]]] = None, description: Optional[pulumi.Input[str]] = None, is_timestamp_hidden: Optional[pulumi.Input[bool]] = None, max_delay: Optional[pulumi.Input[int]] = None, @@ -510,7 +510,7 @@ def __init__(__self__, show_spark_line: Optional[pulumi.Input[bool]] = None, timezone: Optional[pulumi.Input[str]] = None, unit_prefix: Optional[pulumi.Input[str]] = None, - viz_options: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['SingleValueChartVizOptionArgs']]]]] = None, + viz_options: Optional[pulumi.Input[Sequence[pulumi.Input[Union['SingleValueChartVizOptionArgs', 'SingleValueChartVizOptionArgsDict']]]]] = None, __props__=None): """ This chart type displays a single number in a large font, representing the current value of a single metric on a plot line. @@ -522,7 +522,7 @@ def __init__(__self__, :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :param pulumi.Input[str] color_by: Must be `"Dimension"`, `"Scale"` or `"Metric"`. `"Dimension"` by default. - :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['SingleValueChartColorScaleArgs']]]] color_scales: Single color range including both the color to display for that range and the borders of the range. Example: `[{ gt = 60, color = "blue" }, { lte = 60, color = "yellow" }]`. Look at this [link](https://docs.signalfx.com/en/latest/charts/chart-options-tab.html). + :param pulumi.Input[Sequence[pulumi.Input[Union['SingleValueChartColorScaleArgs', 'SingleValueChartColorScaleArgsDict']]]] color_scales: Single color range including both the color to display for that range and the borders of the range. Example: `[{ gt = 60, color = "blue" }, { lte = 60, color = "yellow" }]`. Look at this [link](https://docs.signalfx.com/en/latest/charts/chart-options-tab.html). :param pulumi.Input[str] description: Description of the chart. :param pulumi.Input[bool] is_timestamp_hidden: Whether to hide the timestamp in the chart. `false` by default. :param pulumi.Input[int] max_delay: How long (in seconds) to wait for late datapoints @@ -534,7 +534,7 @@ def __init__(__self__, :param pulumi.Input[bool] show_spark_line: Whether to show a trend line below the current value. `false` by default. :param pulumi.Input[str] timezone: The property value is a string that denotes the geographic region associated with the time zone, (e.g. Australia/Sydney) :param pulumi.Input[str] unit_prefix: Must be `"Metric"` or `"Binary"`. `"Metric"` by default. - :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['SingleValueChartVizOptionArgs']]]] viz_options: Plot-level customization options, associated with a publish statement. + :param pulumi.Input[Sequence[pulumi.Input[Union['SingleValueChartVizOptionArgs', 'SingleValueChartVizOptionArgsDict']]]] viz_options: Plot-level customization options, associated with a publish statement. """ ... @overload @@ -565,7 +565,7 @@ def _internal_init(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, color_by: Optional[pulumi.Input[str]] = None, - color_scales: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['SingleValueChartColorScaleArgs']]]]] = None, + color_scales: Optional[pulumi.Input[Sequence[pulumi.Input[Union['SingleValueChartColorScaleArgs', 'SingleValueChartColorScaleArgsDict']]]]] = None, description: Optional[pulumi.Input[str]] = None, is_timestamp_hidden: Optional[pulumi.Input[bool]] = None, max_delay: Optional[pulumi.Input[int]] = None, @@ -577,7 +577,7 @@ def _internal_init(__self__, show_spark_line: Optional[pulumi.Input[bool]] = None, timezone: Optional[pulumi.Input[str]] = None, unit_prefix: Optional[pulumi.Input[str]] = None, - viz_options: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['SingleValueChartVizOptionArgs']]]]] = None, + viz_options: Optional[pulumi.Input[Sequence[pulumi.Input[Union['SingleValueChartVizOptionArgs', 'SingleValueChartVizOptionArgsDict']]]]] = None, __props__=None): opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts) if not isinstance(opts, pulumi.ResourceOptions): @@ -615,7 +615,7 @@ def get(resource_name: str, id: pulumi.Input[str], opts: Optional[pulumi.ResourceOptions] = None, color_by: Optional[pulumi.Input[str]] = None, - color_scales: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['SingleValueChartColorScaleArgs']]]]] = None, + color_scales: Optional[pulumi.Input[Sequence[pulumi.Input[Union['SingleValueChartColorScaleArgs', 'SingleValueChartColorScaleArgsDict']]]]] = None, description: Optional[pulumi.Input[str]] = None, is_timestamp_hidden: Optional[pulumi.Input[bool]] = None, max_delay: Optional[pulumi.Input[int]] = None, @@ -628,7 +628,7 @@ def get(resource_name: str, timezone: Optional[pulumi.Input[str]] = None, unit_prefix: Optional[pulumi.Input[str]] = None, url: Optional[pulumi.Input[str]] = None, - viz_options: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['SingleValueChartVizOptionArgs']]]]] = None) -> 'SingleValueChart': + viz_options: Optional[pulumi.Input[Sequence[pulumi.Input[Union['SingleValueChartVizOptionArgs', 'SingleValueChartVizOptionArgsDict']]]]] = None) -> 'SingleValueChart': """ Get an existing SingleValueChart resource's state with the given name, id, and optional extra properties used to qualify the lookup. @@ -637,7 +637,7 @@ def get(resource_name: str, :param pulumi.Input[str] id: The unique provider ID of the resource to lookup. :param pulumi.ResourceOptions opts: Options for the resource. :param pulumi.Input[str] color_by: Must be `"Dimension"`, `"Scale"` or `"Metric"`. `"Dimension"` by default. - :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['SingleValueChartColorScaleArgs']]]] color_scales: Single color range including both the color to display for that range and the borders of the range. Example: `[{ gt = 60, color = "blue" }, { lte = 60, color = "yellow" }]`. Look at this [link](https://docs.signalfx.com/en/latest/charts/chart-options-tab.html). + :param pulumi.Input[Sequence[pulumi.Input[Union['SingleValueChartColorScaleArgs', 'SingleValueChartColorScaleArgsDict']]]] color_scales: Single color range including both the color to display for that range and the borders of the range. Example: `[{ gt = 60, color = "blue" }, { lte = 60, color = "yellow" }]`. Look at this [link](https://docs.signalfx.com/en/latest/charts/chart-options-tab.html). :param pulumi.Input[str] description: Description of the chart. :param pulumi.Input[bool] is_timestamp_hidden: Whether to hide the timestamp in the chart. `false` by default. :param pulumi.Input[int] max_delay: How long (in seconds) to wait for late datapoints @@ -650,7 +650,7 @@ def get(resource_name: str, :param pulumi.Input[str] timezone: The property value is a string that denotes the geographic region associated with the time zone, (e.g. Australia/Sydney) :param pulumi.Input[str] unit_prefix: Must be `"Metric"` or `"Binary"`. `"Metric"` by default. :param pulumi.Input[str] url: The URL of the chart. - :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['SingleValueChartVizOptionArgs']]]] viz_options: Plot-level customization options, associated with a publish statement. + :param pulumi.Input[Sequence[pulumi.Input[Union['SingleValueChartVizOptionArgs', 'SingleValueChartVizOptionArgsDict']]]] viz_options: Plot-level customization options, associated with a publish statement. """ opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) diff --git a/sdk/python/pulumi_signalfx/slo.py b/sdk/python/pulumi_signalfx/slo.py index c1b25e8c..42fb3f44 100644 --- a/sdk/python/pulumi_signalfx/slo.py +++ b/sdk/python/pulumi_signalfx/slo.py @@ -192,9 +192,9 @@ def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, description: Optional[pulumi.Input[str]] = None, - input: Optional[pulumi.Input[pulumi.InputType['SloInputArgs']]] = None, + input: Optional[pulumi.Input[Union['SloInputArgs', 'SloInputArgsDict']]] = None, name: Optional[pulumi.Input[str]] = None, - target: Optional[pulumi.Input[pulumi.InputType['SloTargetArgs']]] = None, + target: Optional[pulumi.Input[Union['SloTargetArgs', 'SloTargetArgsDict']]] = None, type: Optional[pulumi.Input[str]] = None, __props__=None): """ @@ -249,9 +249,9 @@ def __init__(__self__, :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :param pulumi.Input[str] description: Description of the SLO. - :param pulumi.Input[pulumi.InputType['SloInputArgs']] input: Properties to configure an SLO object inputs + :param pulumi.Input[Union['SloInputArgs', 'SloInputArgsDict']] input: Properties to configure an SLO object inputs :param pulumi.Input[str] name: Name of the SLO. Each SLO name must be unique within an organization. - :param pulumi.Input[pulumi.InputType['SloTargetArgs']] target: Define target value of the service level indicator in the appropriate time period. + :param pulumi.Input[Union['SloTargetArgs', 'SloTargetArgsDict']] target: Define target value of the service level indicator in the appropriate time period. :param pulumi.Input[str] type: Type of the SLO. Currently just: `"RequestBased"` is supported. """ ... @@ -325,9 +325,9 @@ def _internal_init(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, description: Optional[pulumi.Input[str]] = None, - input: Optional[pulumi.Input[pulumi.InputType['SloInputArgs']]] = None, + input: Optional[pulumi.Input[Union['SloInputArgs', 'SloInputArgsDict']]] = None, name: Optional[pulumi.Input[str]] = None, - target: Optional[pulumi.Input[pulumi.InputType['SloTargetArgs']]] = None, + target: Optional[pulumi.Input[Union['SloTargetArgs', 'SloTargetArgsDict']]] = None, type: Optional[pulumi.Input[str]] = None, __props__=None): opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts) @@ -360,9 +360,9 @@ def get(resource_name: str, id: pulumi.Input[str], opts: Optional[pulumi.ResourceOptions] = None, description: Optional[pulumi.Input[str]] = None, - input: Optional[pulumi.Input[pulumi.InputType['SloInputArgs']]] = None, + input: Optional[pulumi.Input[Union['SloInputArgs', 'SloInputArgsDict']]] = None, name: Optional[pulumi.Input[str]] = None, - target: Optional[pulumi.Input[pulumi.InputType['SloTargetArgs']]] = None, + target: Optional[pulumi.Input[Union['SloTargetArgs', 'SloTargetArgsDict']]] = None, type: Optional[pulumi.Input[str]] = None) -> 'Slo': """ Get an existing Slo resource's state with the given name, id, and optional extra @@ -372,9 +372,9 @@ def get(resource_name: str, :param pulumi.Input[str] id: The unique provider ID of the resource to lookup. :param pulumi.ResourceOptions opts: Options for the resource. :param pulumi.Input[str] description: Description of the SLO. - :param pulumi.Input[pulumi.InputType['SloInputArgs']] input: Properties to configure an SLO object inputs + :param pulumi.Input[Union['SloInputArgs', 'SloInputArgsDict']] input: Properties to configure an SLO object inputs :param pulumi.Input[str] name: Name of the SLO. Each SLO name must be unique within an organization. - :param pulumi.Input[pulumi.InputType['SloTargetArgs']] target: Define target value of the service level indicator in the appropriate time period. + :param pulumi.Input[Union['SloTargetArgs', 'SloTargetArgsDict']] target: Define target value of the service level indicator in the appropriate time period. :param pulumi.Input[str] type: Type of the SLO. Currently just: `"RequestBased"` is supported. """ opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) diff --git a/sdk/python/pulumi_signalfx/table_chart.py b/sdk/python/pulumi_signalfx/table_chart.py index fd02da1a..a0088576 100644 --- a/sdk/python/pulumi_signalfx/table_chart.py +++ b/sdk/python/pulumi_signalfx/table_chart.py @@ -444,7 +444,7 @@ def __init__(__self__, refresh_interval: Optional[pulumi.Input[int]] = None, timezone: Optional[pulumi.Input[str]] = None, unit_prefix: Optional[pulumi.Input[str]] = None, - viz_options: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['TableChartVizOptionArgs']]]]] = None, + viz_options: Optional[pulumi.Input[Sequence[pulumi.Input[Union['TableChartVizOptionArgs', 'TableChartVizOptionArgsDict']]]]] = None, __props__=None): """ This special type of chart displays a data table. This table can be grouped by a dimension. @@ -464,7 +464,7 @@ def __init__(__self__, :param pulumi.Input[int] refresh_interval: How often (in seconds) to refresh the values of the Table :param pulumi.Input[str] timezone: The property value is a string that denotes the geographic region associated with the time zone, (e.g. Australia/Sydney) :param pulumi.Input[str] unit_prefix: (Metric by default) Must be "Metric" or "Binary" - :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['TableChartVizOptionArgs']]]] viz_options: Plot-level customization options, associated with a publish statement + :param pulumi.Input[Sequence[pulumi.Input[Union['TableChartVizOptionArgs', 'TableChartVizOptionArgsDict']]]] viz_options: Plot-level customization options, associated with a publish statement """ ... @overload @@ -503,7 +503,7 @@ def _internal_init(__self__, refresh_interval: Optional[pulumi.Input[int]] = None, timezone: Optional[pulumi.Input[str]] = None, unit_prefix: Optional[pulumi.Input[str]] = None, - viz_options: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['TableChartVizOptionArgs']]]]] = None, + viz_options: Optional[pulumi.Input[Sequence[pulumi.Input[Union['TableChartVizOptionArgs', 'TableChartVizOptionArgsDict']]]]] = None, __props__=None): opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts) if not isinstance(opts, pulumi.ResourceOptions): @@ -550,7 +550,7 @@ def get(resource_name: str, timezone: Optional[pulumi.Input[str]] = None, unit_prefix: Optional[pulumi.Input[str]] = None, url: Optional[pulumi.Input[str]] = None, - viz_options: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['TableChartVizOptionArgs']]]]] = None) -> 'TableChart': + viz_options: Optional[pulumi.Input[Sequence[pulumi.Input[Union['TableChartVizOptionArgs', 'TableChartVizOptionArgsDict']]]]] = None) -> 'TableChart': """ Get an existing TableChart resource's state with the given name, id, and optional extra properties used to qualify the lookup. @@ -570,7 +570,7 @@ def get(resource_name: str, :param pulumi.Input[str] timezone: The property value is a string that denotes the geographic region associated with the time zone, (e.g. Australia/Sydney) :param pulumi.Input[str] unit_prefix: (Metric by default) Must be "Metric" or "Binary" :param pulumi.Input[str] url: The URL of the chart. - :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['TableChartVizOptionArgs']]]] viz_options: Plot-level customization options, associated with a publish statement + :param pulumi.Input[Sequence[pulumi.Input[Union['TableChartVizOptionArgs', 'TableChartVizOptionArgsDict']]]] viz_options: Plot-level customization options, associated with a publish statement """ opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) diff --git a/sdk/python/pulumi_signalfx/time_chart.py b/sdk/python/pulumi_signalfx/time_chart.py index c7b3e2fc..bb8de2e9 100644 --- a/sdk/python/pulumi_signalfx/time_chart.py +++ b/sdk/python/pulumi_signalfx/time_chart.py @@ -931,16 +931,16 @@ def __init__(__self__, opts: Optional[pulumi.ResourceOptions] = None, axes_include_zero: Optional[pulumi.Input[bool]] = None, axes_precision: Optional[pulumi.Input[int]] = None, - axis_left: Optional[pulumi.Input[pulumi.InputType['TimeChartAxisLeftArgs']]] = None, - axis_right: Optional[pulumi.Input[pulumi.InputType['TimeChartAxisRightArgs']]] = None, + axis_left: Optional[pulumi.Input[Union['TimeChartAxisLeftArgs', 'TimeChartAxisLeftArgsDict']]] = None, + axis_right: Optional[pulumi.Input[Union['TimeChartAxisRightArgs', 'TimeChartAxisRightArgsDict']]] = None, color_by: Optional[pulumi.Input[str]] = None, description: Optional[pulumi.Input[str]] = None, disable_sampling: Optional[pulumi.Input[bool]] = None, end_time: Optional[pulumi.Input[int]] = None, - event_options: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['TimeChartEventOptionArgs']]]]] = None, - histogram_options: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['TimeChartHistogramOptionArgs']]]]] = None, + event_options: Optional[pulumi.Input[Sequence[pulumi.Input[Union['TimeChartEventOptionArgs', 'TimeChartEventOptionArgsDict']]]]] = None, + histogram_options: Optional[pulumi.Input[Sequence[pulumi.Input[Union['TimeChartHistogramOptionArgs', 'TimeChartHistogramOptionArgsDict']]]]] = None, legend_fields_to_hides: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, - legend_options_fields: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['TimeChartLegendOptionsFieldArgs']]]]] = None, + legend_options_fields: Optional[pulumi.Input[Sequence[pulumi.Input[Union['TimeChartLegendOptionsFieldArgs', 'TimeChartLegendOptionsFieldArgsDict']]]]] = None, max_delay: Optional[pulumi.Input[int]] = None, minimum_resolution: Optional[pulumi.Input[int]] = None, name: Optional[pulumi.Input[str]] = None, @@ -955,7 +955,7 @@ def __init__(__self__, time_range: Optional[pulumi.Input[int]] = None, timezone: Optional[pulumi.Input[str]] = None, unit_prefix: Optional[pulumi.Input[str]] = None, - viz_options: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['TimeChartVizOptionArgs']]]]] = None, + viz_options: Optional[pulumi.Input[Sequence[pulumi.Input[Union['TimeChartVizOptionArgs', 'TimeChartVizOptionArgsDict']]]]] = None, __props__=None): """ Provides a Splunk Observability Cloud time chart resource. This can be used to create and manage the different types of time charts. @@ -968,16 +968,16 @@ def __init__(__self__, :param pulumi.ResourceOptions opts: Options for the resource. :param pulumi.Input[bool] axes_include_zero: Force the chart to display zero on the y-axes, even if none of the data is near zero. :param pulumi.Input[int] axes_precision: Specifies the digits Splunk Observability Cloud displays for values plotted on the chart. Defaults to `3`. - :param pulumi.Input[pulumi.InputType['TimeChartAxisLeftArgs']] axis_left: Set of axis options. - :param pulumi.Input[pulumi.InputType['TimeChartAxisRightArgs']] axis_right: Set of axis options. + :param pulumi.Input[Union['TimeChartAxisLeftArgs', 'TimeChartAxisLeftArgsDict']] axis_left: Set of axis options. + :param pulumi.Input[Union['TimeChartAxisRightArgs', 'TimeChartAxisRightArgsDict']] axis_right: Set of axis options. :param pulumi.Input[str] color_by: Must be `"Dimension"` or `"Metric"`. `"Dimension"` by default. :param pulumi.Input[str] description: Description of the chart. :param pulumi.Input[bool] disable_sampling: If `false`, samples a subset of the output MTS, which improves UI performance. `false` by default :param pulumi.Input[int] end_time: Seconds since epoch. Used for visualization. Conflicts with `time_range`. - :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['TimeChartEventOptionArgs']]]] event_options: Event customization options, associated with a publish statement. You will need to use this to change settings for any `events(…)` statements you use. - :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['TimeChartHistogramOptionArgs']]]] histogram_options: Only used when `plot_type` is `"Histogram"`. Histogram specific options. + :param pulumi.Input[Sequence[pulumi.Input[Union['TimeChartEventOptionArgs', 'TimeChartEventOptionArgsDict']]]] event_options: Event customization options, associated with a publish statement. You will need to use this to change settings for any `events(…)` statements you use. + :param pulumi.Input[Sequence[pulumi.Input[Union['TimeChartHistogramOptionArgs', 'TimeChartHistogramOptionArgsDict']]]] histogram_options: Only used when `plot_type` is `"Histogram"`. Histogram specific options. :param pulumi.Input[Sequence[pulumi.Input[str]]] legend_fields_to_hides: List of properties that should not be displayed in the chart legend (i.e. dimension names). All the properties are visible by default. Deprecated, please use `legend_options_fields`. - :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['TimeChartLegendOptionsFieldArgs']]]] legend_options_fields: List of property names and enabled flags that should be displayed in the data table for the chart, in the order provided. This option cannot be used with `legend_fields_to_hide`. + :param pulumi.Input[Sequence[pulumi.Input[Union['TimeChartLegendOptionsFieldArgs', 'TimeChartLegendOptionsFieldArgsDict']]]] legend_options_fields: List of property names and enabled flags that should be displayed in the data table for the chart, in the order provided. This option cannot be used with `legend_fields_to_hide`. :param pulumi.Input[int] max_delay: How long (in seconds) to wait for late datapoints. :param pulumi.Input[int] minimum_resolution: The minimum resolution (in seconds) to use for computing the underlying program. :param pulumi.Input[str] name: Name of the chart. @@ -992,7 +992,7 @@ def __init__(__self__, :param pulumi.Input[int] time_range: How many seconds ago from which to display data. For example, the last hour would be `3600`, etc. Conflicts with `start_time` and `end_time`. :param pulumi.Input[str] timezone: Time zone that SignalFlow uses as the basis of calendar window transformation methods. For example, if you set "timezone": "Europe/Paris" and then use the transformation sum(cycle="week", cycle_start="Monday") in your chart's SignalFlow program, the calendar window starts on Monday, Paris time. See the [full list of timezones for more](https://dev.splunk.com/observability/docs/signalflow/). `"UTC"` by default. :param pulumi.Input[str] unit_prefix: Must be `"Metric"` or `"Binary`". `"Metric"` by default. - :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['TimeChartVizOptionArgs']]]] viz_options: Plot-level customization options, associated with a publish statement. + :param pulumi.Input[Sequence[pulumi.Input[Union['TimeChartVizOptionArgs', 'TimeChartVizOptionArgsDict']]]] viz_options: Plot-level customization options, associated with a publish statement. """ ... @overload @@ -1024,16 +1024,16 @@ def _internal_init(__self__, opts: Optional[pulumi.ResourceOptions] = None, axes_include_zero: Optional[pulumi.Input[bool]] = None, axes_precision: Optional[pulumi.Input[int]] = None, - axis_left: Optional[pulumi.Input[pulumi.InputType['TimeChartAxisLeftArgs']]] = None, - axis_right: Optional[pulumi.Input[pulumi.InputType['TimeChartAxisRightArgs']]] = None, + axis_left: Optional[pulumi.Input[Union['TimeChartAxisLeftArgs', 'TimeChartAxisLeftArgsDict']]] = None, + axis_right: Optional[pulumi.Input[Union['TimeChartAxisRightArgs', 'TimeChartAxisRightArgsDict']]] = None, color_by: Optional[pulumi.Input[str]] = None, description: Optional[pulumi.Input[str]] = None, disable_sampling: Optional[pulumi.Input[bool]] = None, end_time: Optional[pulumi.Input[int]] = None, - event_options: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['TimeChartEventOptionArgs']]]]] = None, - histogram_options: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['TimeChartHistogramOptionArgs']]]]] = None, + event_options: Optional[pulumi.Input[Sequence[pulumi.Input[Union['TimeChartEventOptionArgs', 'TimeChartEventOptionArgsDict']]]]] = None, + histogram_options: Optional[pulumi.Input[Sequence[pulumi.Input[Union['TimeChartHistogramOptionArgs', 'TimeChartHistogramOptionArgsDict']]]]] = None, legend_fields_to_hides: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, - legend_options_fields: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['TimeChartLegendOptionsFieldArgs']]]]] = None, + legend_options_fields: Optional[pulumi.Input[Sequence[pulumi.Input[Union['TimeChartLegendOptionsFieldArgs', 'TimeChartLegendOptionsFieldArgsDict']]]]] = None, max_delay: Optional[pulumi.Input[int]] = None, minimum_resolution: Optional[pulumi.Input[int]] = None, name: Optional[pulumi.Input[str]] = None, @@ -1048,7 +1048,7 @@ def _internal_init(__self__, time_range: Optional[pulumi.Input[int]] = None, timezone: Optional[pulumi.Input[str]] = None, unit_prefix: Optional[pulumi.Input[str]] = None, - viz_options: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['TimeChartVizOptionArgs']]]]] = None, + viz_options: Optional[pulumi.Input[Sequence[pulumi.Input[Union['TimeChartVizOptionArgs', 'TimeChartVizOptionArgsDict']]]]] = None, __props__=None): opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts) if not isinstance(opts, pulumi.ResourceOptions): @@ -1100,16 +1100,16 @@ def get(resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, axes_include_zero: Optional[pulumi.Input[bool]] = None, axes_precision: Optional[pulumi.Input[int]] = None, - axis_left: Optional[pulumi.Input[pulumi.InputType['TimeChartAxisLeftArgs']]] = None, - axis_right: Optional[pulumi.Input[pulumi.InputType['TimeChartAxisRightArgs']]] = None, + axis_left: Optional[pulumi.Input[Union['TimeChartAxisLeftArgs', 'TimeChartAxisLeftArgsDict']]] = None, + axis_right: Optional[pulumi.Input[Union['TimeChartAxisRightArgs', 'TimeChartAxisRightArgsDict']]] = None, color_by: Optional[pulumi.Input[str]] = None, description: Optional[pulumi.Input[str]] = None, disable_sampling: Optional[pulumi.Input[bool]] = None, end_time: Optional[pulumi.Input[int]] = None, - event_options: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['TimeChartEventOptionArgs']]]]] = None, - histogram_options: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['TimeChartHistogramOptionArgs']]]]] = None, + event_options: Optional[pulumi.Input[Sequence[pulumi.Input[Union['TimeChartEventOptionArgs', 'TimeChartEventOptionArgsDict']]]]] = None, + histogram_options: Optional[pulumi.Input[Sequence[pulumi.Input[Union['TimeChartHistogramOptionArgs', 'TimeChartHistogramOptionArgsDict']]]]] = None, legend_fields_to_hides: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, - legend_options_fields: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['TimeChartLegendOptionsFieldArgs']]]]] = None, + legend_options_fields: Optional[pulumi.Input[Sequence[pulumi.Input[Union['TimeChartLegendOptionsFieldArgs', 'TimeChartLegendOptionsFieldArgsDict']]]]] = None, max_delay: Optional[pulumi.Input[int]] = None, minimum_resolution: Optional[pulumi.Input[int]] = None, name: Optional[pulumi.Input[str]] = None, @@ -1125,7 +1125,7 @@ def get(resource_name: str, timezone: Optional[pulumi.Input[str]] = None, unit_prefix: Optional[pulumi.Input[str]] = None, url: Optional[pulumi.Input[str]] = None, - viz_options: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['TimeChartVizOptionArgs']]]]] = None) -> 'TimeChart': + viz_options: Optional[pulumi.Input[Sequence[pulumi.Input[Union['TimeChartVizOptionArgs', 'TimeChartVizOptionArgsDict']]]]] = None) -> 'TimeChart': """ Get an existing TimeChart resource's state with the given name, id, and optional extra properties used to qualify the lookup. @@ -1135,16 +1135,16 @@ def get(resource_name: str, :param pulumi.ResourceOptions opts: Options for the resource. :param pulumi.Input[bool] axes_include_zero: Force the chart to display zero on the y-axes, even if none of the data is near zero. :param pulumi.Input[int] axes_precision: Specifies the digits Splunk Observability Cloud displays for values plotted on the chart. Defaults to `3`. - :param pulumi.Input[pulumi.InputType['TimeChartAxisLeftArgs']] axis_left: Set of axis options. - :param pulumi.Input[pulumi.InputType['TimeChartAxisRightArgs']] axis_right: Set of axis options. + :param pulumi.Input[Union['TimeChartAxisLeftArgs', 'TimeChartAxisLeftArgsDict']] axis_left: Set of axis options. + :param pulumi.Input[Union['TimeChartAxisRightArgs', 'TimeChartAxisRightArgsDict']] axis_right: Set of axis options. :param pulumi.Input[str] color_by: Must be `"Dimension"` or `"Metric"`. `"Dimension"` by default. :param pulumi.Input[str] description: Description of the chart. :param pulumi.Input[bool] disable_sampling: If `false`, samples a subset of the output MTS, which improves UI performance. `false` by default :param pulumi.Input[int] end_time: Seconds since epoch. Used for visualization. Conflicts with `time_range`. - :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['TimeChartEventOptionArgs']]]] event_options: Event customization options, associated with a publish statement. You will need to use this to change settings for any `events(…)` statements you use. - :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['TimeChartHistogramOptionArgs']]]] histogram_options: Only used when `plot_type` is `"Histogram"`. Histogram specific options. + :param pulumi.Input[Sequence[pulumi.Input[Union['TimeChartEventOptionArgs', 'TimeChartEventOptionArgsDict']]]] event_options: Event customization options, associated with a publish statement. You will need to use this to change settings for any `events(…)` statements you use. + :param pulumi.Input[Sequence[pulumi.Input[Union['TimeChartHistogramOptionArgs', 'TimeChartHistogramOptionArgsDict']]]] histogram_options: Only used when `plot_type` is `"Histogram"`. Histogram specific options. :param pulumi.Input[Sequence[pulumi.Input[str]]] legend_fields_to_hides: List of properties that should not be displayed in the chart legend (i.e. dimension names). All the properties are visible by default. Deprecated, please use `legend_options_fields`. - :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['TimeChartLegendOptionsFieldArgs']]]] legend_options_fields: List of property names and enabled flags that should be displayed in the data table for the chart, in the order provided. This option cannot be used with `legend_fields_to_hide`. + :param pulumi.Input[Sequence[pulumi.Input[Union['TimeChartLegendOptionsFieldArgs', 'TimeChartLegendOptionsFieldArgsDict']]]] legend_options_fields: List of property names and enabled flags that should be displayed in the data table for the chart, in the order provided. This option cannot be used with `legend_fields_to_hide`. :param pulumi.Input[int] max_delay: How long (in seconds) to wait for late datapoints. :param pulumi.Input[int] minimum_resolution: The minimum resolution (in seconds) to use for computing the underlying program. :param pulumi.Input[str] name: Name of the chart. @@ -1160,7 +1160,7 @@ def get(resource_name: str, :param pulumi.Input[str] timezone: Time zone that SignalFlow uses as the basis of calendar window transformation methods. For example, if you set "timezone": "Europe/Paris" and then use the transformation sum(cycle="week", cycle_start="Monday") in your chart's SignalFlow program, the calendar window starts on Monday, Paris time. See the [full list of timezones for more](https://dev.splunk.com/observability/docs/signalflow/). `"UTC"` by default. :param pulumi.Input[str] unit_prefix: Must be `"Metric"` or `"Binary`". `"Metric"` by default. :param pulumi.Input[str] url: The URL of the chart. - :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['TimeChartVizOptionArgs']]]] viz_options: Plot-level customization options, associated with a publish statement. + :param pulumi.Input[Sequence[pulumi.Input[Union['TimeChartVizOptionArgs', 'TimeChartVizOptionArgsDict']]]] viz_options: Plot-level customization options, associated with a publish statement. """ opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) diff --git a/sdk/python/pulumi_signalfx/webhook_integration.py b/sdk/python/pulumi_signalfx/webhook_integration.py index a61be33c..9f2c0477 100644 --- a/sdk/python/pulumi_signalfx/webhook_integration.py +++ b/sdk/python/pulumi_signalfx/webhook_integration.py @@ -250,7 +250,7 @@ def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, enabled: Optional[pulumi.Input[bool]] = None, - headers: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['WebhookIntegrationHeaderArgs']]]]] = None, + headers: Optional[pulumi.Input[Sequence[pulumi.Input[Union['WebhookIntegrationHeaderArgs', 'WebhookIntegrationHeaderArgsDict']]]]] = None, method: Optional[pulumi.Input[str]] = None, name: Optional[pulumi.Input[str]] = None, payload_template: Optional[pulumi.Input[str]] = None, @@ -267,7 +267,7 @@ def __init__(__self__, :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :param pulumi.Input[bool] enabled: Whether the integration is enabled. - :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['WebhookIntegrationHeaderArgs']]]] headers: A header to send with the request + :param pulumi.Input[Sequence[pulumi.Input[Union['WebhookIntegrationHeaderArgs', 'WebhookIntegrationHeaderArgsDict']]]] headers: A header to send with the request :param pulumi.Input[str] method: HTTP method used for the webhook request, such as 'GET', 'POST' and 'PUT' :param pulumi.Input[str] name: Name of the integration. :param pulumi.Input[str] payload_template: Template for the payload to be sent with the webhook request in JSON format @@ -302,7 +302,7 @@ def _internal_init(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, enabled: Optional[pulumi.Input[bool]] = None, - headers: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['WebhookIntegrationHeaderArgs']]]]] = None, + headers: Optional[pulumi.Input[Sequence[pulumi.Input[Union['WebhookIntegrationHeaderArgs', 'WebhookIntegrationHeaderArgsDict']]]]] = None, method: Optional[pulumi.Input[str]] = None, name: Optional[pulumi.Input[str]] = None, payload_template: Optional[pulumi.Input[str]] = None, @@ -339,7 +339,7 @@ def get(resource_name: str, id: pulumi.Input[str], opts: Optional[pulumi.ResourceOptions] = None, enabled: Optional[pulumi.Input[bool]] = None, - headers: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['WebhookIntegrationHeaderArgs']]]]] = None, + headers: Optional[pulumi.Input[Sequence[pulumi.Input[Union['WebhookIntegrationHeaderArgs', 'WebhookIntegrationHeaderArgsDict']]]]] = None, method: Optional[pulumi.Input[str]] = None, name: Optional[pulumi.Input[str]] = None, payload_template: Optional[pulumi.Input[str]] = None, @@ -353,7 +353,7 @@ def get(resource_name: str, :param pulumi.Input[str] id: The unique provider ID of the resource to lookup. :param pulumi.ResourceOptions opts: Options for the resource. :param pulumi.Input[bool] enabled: Whether the integration is enabled. - :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['WebhookIntegrationHeaderArgs']]]] headers: A header to send with the request + :param pulumi.Input[Sequence[pulumi.Input[Union['WebhookIntegrationHeaderArgs', 'WebhookIntegrationHeaderArgsDict']]]] headers: A header to send with the request :param pulumi.Input[str] method: HTTP method used for the webhook request, such as 'GET', 'POST' and 'PUT' :param pulumi.Input[str] name: Name of the integration. :param pulumi.Input[str] payload_template: Template for the payload to be sent with the webhook request in JSON format