diff --git a/sdk/java/build.gradle b/sdk/java/build.gradle index b4cbaeea..63cc4bc7 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/splunk/AdminSamlGroups.java b/sdk/java/src/main/java/com/pulumi/splunk/AdminSamlGroups.java index 9359cb0d..ecc88d93 100644 --- a/sdk/java/src/main/java/com/pulumi/splunk/AdminSamlGroups.java +++ b/sdk/java/src/main/java/com/pulumi/splunk/AdminSamlGroups.java @@ -101,7 +101,7 @@ public Output> roles() { * * @param name The _unique_ name of the resulting resource. */ - public AdminSamlGroups(String name) { + public AdminSamlGroups(java.lang.String name) { this(name, AdminSamlGroupsArgs.Empty); } /** @@ -109,7 +109,7 @@ public AdminSamlGroups(String name) { * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ - public AdminSamlGroups(String name, @Nullable AdminSamlGroupsArgs args) { + public AdminSamlGroups(java.lang.String name, @Nullable AdminSamlGroupsArgs args) { this(name, args, null); } /** @@ -118,15 +118,22 @@ public AdminSamlGroups(String name, @Nullable AdminSamlGroupsArgs 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 AdminSamlGroups(String name, @Nullable AdminSamlGroupsArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("splunk:index/adminSamlGroups:AdminSamlGroups", name, args == null ? AdminSamlGroupsArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + public AdminSamlGroups(java.lang.String name, @Nullable AdminSamlGroupsArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("splunk:index/adminSamlGroups:AdminSamlGroups", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } - private AdminSamlGroups(String name, Output id, @Nullable AdminSamlGroupsState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("splunk:index/adminSamlGroups:AdminSamlGroups", name, state, makeResourceOptions(options, id)); + private AdminSamlGroups(java.lang.String name, Output id, @Nullable AdminSamlGroupsState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("splunk:index/adminSamlGroups:AdminSamlGroups", name, state, makeResourceOptions(options, id), false); } - private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { + private static AdminSamlGroupsArgs makeArgs(@Nullable AdminSamlGroupsArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? AdminSamlGroupsArgs.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(); @@ -142,7 +149,7 @@ private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@N * @param state * @param options Optional settings to control the behavior of the CustomResource. */ - public static AdminSamlGroups get(String name, Output id, @Nullable AdminSamlGroupsState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + public static AdminSamlGroups get(java.lang.String name, Output id, @Nullable AdminSamlGroupsState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new AdminSamlGroups(name, id, state, options); } } diff --git a/sdk/java/src/main/java/com/pulumi/splunk/AppsLocal.java b/sdk/java/src/main/java/com/pulumi/splunk/AppsLocal.java index 4fa6da0d..d6e6cf50 100644 --- a/sdk/java/src/main/java/com/pulumi/splunk/AppsLocal.java +++ b/sdk/java/src/main/java/com/pulumi/splunk/AppsLocal.java @@ -270,7 +270,7 @@ public Output visible() { * * @param name The _unique_ name of the resulting resource. */ - public AppsLocal(String name) { + public AppsLocal(java.lang.String name) { this(name, AppsLocalArgs.Empty); } /** @@ -278,7 +278,7 @@ public AppsLocal(String name) { * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ - public AppsLocal(String name, @Nullable AppsLocalArgs args) { + public AppsLocal(java.lang.String name, @Nullable AppsLocalArgs args) { this(name, args, null); } /** @@ -287,15 +287,22 @@ public AppsLocal(String name, @Nullable AppsLocalArgs 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 AppsLocal(String name, @Nullable AppsLocalArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("splunk:index/appsLocal:AppsLocal", name, args == null ? AppsLocalArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + public AppsLocal(java.lang.String name, @Nullable AppsLocalArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("splunk:index/appsLocal:AppsLocal", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } - private AppsLocal(String name, Output id, @Nullable AppsLocalState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("splunk:index/appsLocal:AppsLocal", name, state, makeResourceOptions(options, id)); + private AppsLocal(java.lang.String name, Output id, @Nullable AppsLocalState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("splunk:index/appsLocal:AppsLocal", name, state, makeResourceOptions(options, id), false); } - private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { + private static AppsLocalArgs makeArgs(@Nullable AppsLocalArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? AppsLocalArgs.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(); @@ -311,7 +318,7 @@ private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@N * @param state * @param options Optional settings to control the behavior of the CustomResource. */ - public static AppsLocal get(String name, Output id, @Nullable AppsLocalState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + public static AppsLocal get(java.lang.String name, Output id, @Nullable AppsLocalState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new AppsLocal(name, id, state, options); } } diff --git a/sdk/java/src/main/java/com/pulumi/splunk/AuthenticationUsers.java b/sdk/java/src/main/java/com/pulumi/splunk/AuthenticationUsers.java index dcc6f0ef..923d7a6f 100644 --- a/sdk/java/src/main/java/com/pulumi/splunk/AuthenticationUsers.java +++ b/sdk/java/src/main/java/com/pulumi/splunk/AuthenticationUsers.java @@ -40,22 +40,22 @@ * import java.nio.file.Files; * import java.nio.file.Paths; * - * public class App { - * public static void main(String[] args) { + * public class App }{{@code + * public static void main(String[] args) }{{@code * Pulumi.run(App::stack); - * } + * }}{@code * - * public static void stack(Context ctx) { + * public static void stack(Context ctx) }{{@code * var user01 = new AuthenticationUsers("user01", AuthenticationUsersArgs.builder() * .name("user01") - * .email("user01{@literal @}example.com") + * .email("user01}{@literal @}{@code example.com") * .password("password01") * .forceChangePass(false) * .roles("terraform-user01-role") * .build()); * - * } - * } + * }}{@code + * }}{@code * } * * <!--End PulumiCodeChooser --> @@ -194,7 +194,7 @@ public Output tz() { * * @param name The _unique_ name of the resulting resource. */ - public AuthenticationUsers(String name) { + public AuthenticationUsers(java.lang.String name) { this(name, AuthenticationUsersArgs.Empty); } /** @@ -202,7 +202,7 @@ public AuthenticationUsers(String name) { * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ - public AuthenticationUsers(String name, @Nullable AuthenticationUsersArgs args) { + public AuthenticationUsers(java.lang.String name, @Nullable AuthenticationUsersArgs args) { this(name, args, null); } /** @@ -211,15 +211,22 @@ public AuthenticationUsers(String name, @Nullable AuthenticationUsersArgs 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 AuthenticationUsers(String name, @Nullable AuthenticationUsersArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("splunk:index/authenticationUsers:AuthenticationUsers", name, args == null ? AuthenticationUsersArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + public AuthenticationUsers(java.lang.String name, @Nullable AuthenticationUsersArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("splunk:index/authenticationUsers:AuthenticationUsers", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); + } + + private AuthenticationUsers(java.lang.String name, Output id, @Nullable AuthenticationUsersState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("splunk:index/authenticationUsers:AuthenticationUsers", name, state, makeResourceOptions(options, id), false); } - private AuthenticationUsers(String name, Output id, @Nullable AuthenticationUsersState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("splunk:index/authenticationUsers:AuthenticationUsers", name, state, makeResourceOptions(options, id)); + private static AuthenticationUsersArgs makeArgs(@Nullable AuthenticationUsersArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? AuthenticationUsersArgs.Empty : args; } - private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { + 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( @@ -238,7 +245,7 @@ private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@N * @param state * @param options Optional settings to control the behavior of the CustomResource. */ - public static AuthenticationUsers get(String name, Output id, @Nullable AuthenticationUsersState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + public static AuthenticationUsers get(java.lang.String name, Output id, @Nullable AuthenticationUsersState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new AuthenticationUsers(name, id, state, options); } } diff --git a/sdk/java/src/main/java/com/pulumi/splunk/AuthorizationRoles.java b/sdk/java/src/main/java/com/pulumi/splunk/AuthorizationRoles.java index a1754d43..7d05efcc 100644 --- a/sdk/java/src/main/java/com/pulumi/splunk/AuthorizationRoles.java +++ b/sdk/java/src/main/java/com/pulumi/splunk/AuthorizationRoles.java @@ -262,7 +262,7 @@ public Output> searchTimeWin() { * * @param name The _unique_ name of the resulting resource. */ - public AuthorizationRoles(String name) { + public AuthorizationRoles(java.lang.String name) { this(name, AuthorizationRolesArgs.Empty); } /** @@ -270,7 +270,7 @@ public AuthorizationRoles(String name) { * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ - public AuthorizationRoles(String name, @Nullable AuthorizationRolesArgs args) { + public AuthorizationRoles(java.lang.String name, @Nullable AuthorizationRolesArgs args) { this(name, args, null); } /** @@ -279,15 +279,22 @@ public AuthorizationRoles(String name, @Nullable AuthorizationRolesArgs 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 AuthorizationRoles(String name, @Nullable AuthorizationRolesArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("splunk:index/authorizationRoles:AuthorizationRoles", name, args == null ? AuthorizationRolesArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + public AuthorizationRoles(java.lang.String name, @Nullable AuthorizationRolesArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("splunk:index/authorizationRoles:AuthorizationRoles", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } - private AuthorizationRoles(String name, Output id, @Nullable AuthorizationRolesState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("splunk:index/authorizationRoles:AuthorizationRoles", name, state, makeResourceOptions(options, id)); + private AuthorizationRoles(java.lang.String name, Output id, @Nullable AuthorizationRolesState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("splunk:index/authorizationRoles:AuthorizationRoles", name, state, makeResourceOptions(options, id), false); } - private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { + private static AuthorizationRolesArgs makeArgs(@Nullable AuthorizationRolesArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? AuthorizationRolesArgs.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(); @@ -303,7 +310,7 @@ private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@N * @param state * @param options Optional settings to control the behavior of the CustomResource. */ - public static AuthorizationRoles get(String name, Output id, @Nullable AuthorizationRolesState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + public static AuthorizationRoles get(java.lang.String name, Output id, @Nullable AuthorizationRolesState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new AuthorizationRoles(name, id, state, options); } } diff --git a/sdk/java/src/main/java/com/pulumi/splunk/ConfigsConf.java b/sdk/java/src/main/java/com/pulumi/splunk/ConfigsConf.java index 00d4c9dc..ca91c1a9 100644 --- a/sdk/java/src/main/java/com/pulumi/splunk/ConfigsConf.java +++ b/sdk/java/src/main/java/com/pulumi/splunk/ConfigsConf.java @@ -101,7 +101,7 @@ public Output> variables() { * * @param name The _unique_ name of the resulting resource. */ - public ConfigsConf(String name) { + public ConfigsConf(java.lang.String name) { this(name, ConfigsConfArgs.Empty); } /** @@ -109,7 +109,7 @@ public ConfigsConf(String name) { * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ - public ConfigsConf(String name, @Nullable ConfigsConfArgs args) { + public ConfigsConf(java.lang.String name, @Nullable ConfigsConfArgs args) { this(name, args, null); } /** @@ -118,15 +118,22 @@ public ConfigsConf(String name, @Nullable ConfigsConfArgs 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 ConfigsConf(String name, @Nullable ConfigsConfArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("splunk:index/configsConf:ConfigsConf", name, args == null ? ConfigsConfArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + public ConfigsConf(java.lang.String name, @Nullable ConfigsConfArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("splunk:index/configsConf:ConfigsConf", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } - private ConfigsConf(String name, Output id, @Nullable ConfigsConfState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("splunk:index/configsConf:ConfigsConf", name, state, makeResourceOptions(options, id)); + private ConfigsConf(java.lang.String name, Output id, @Nullable ConfigsConfState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("splunk:index/configsConf:ConfigsConf", name, state, makeResourceOptions(options, id), false); } - private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { + private static ConfigsConfArgs makeArgs(@Nullable ConfigsConfArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? ConfigsConfArgs.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(); @@ -142,7 +149,7 @@ private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@N * @param state * @param options Optional settings to control the behavior of the CustomResource. */ - public static ConfigsConf get(String name, Output id, @Nullable ConfigsConfState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + public static ConfigsConf get(java.lang.String name, Output id, @Nullable ConfigsConfState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new ConfigsConf(name, id, state, options); } } diff --git a/sdk/java/src/main/java/com/pulumi/splunk/DataUiViews.java b/sdk/java/src/main/java/com/pulumi/splunk/DataUiViews.java index 3a82d366..af88d585 100644 --- a/sdk/java/src/main/java/com/pulumi/splunk/DataUiViews.java +++ b/sdk/java/src/main/java/com/pulumi/splunk/DataUiViews.java @@ -38,23 +38,23 @@ * import java.nio.file.Files; * import java.nio.file.Paths; * - * public class App { - * public static void main(String[] args) { + * public class App }{{@code + * public static void main(String[] args) }{{@code * Pulumi.run(App::stack); - * } + * }}{@code * - * public static void stack(Context ctx) { + * public static void stack(Context ctx) }{{@code * var dashboard = new DataUiViews("dashboard", DataUiViewsArgs.builder() * .name("Terraform_Sample_Dashboard") - * .eaiData("Terraform operationsindex=_internal sourcetype=splunkd_access useragent=\"splunk-simple-go-client\" | timechart fixedrange=f values(status) by uri_path-24h{@literal @}hnow1") + * .eaiData("Terraform operationsindex=_internal sourcetype=splunkd_access useragent=\"splunk-simple-go-client\" | timechart fixedrange=f values(status) by uri_path-24h}{@literal @}{@code hnow1") * .acl(DataUiViewsAclArgs.builder() * .owner("admin") * .app("search") * .build()) * .build()); * - * } - * } + * }}{@code + * }}{@code * } * * <!--End PulumiCodeChooser --> @@ -103,7 +103,7 @@ public Output name() { * * @param name The _unique_ name of the resulting resource. */ - public DataUiViews(String name) { + public DataUiViews(java.lang.String name) { this(name, DataUiViewsArgs.Empty); } /** @@ -111,7 +111,7 @@ public DataUiViews(String name) { * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ - public DataUiViews(String name, DataUiViewsArgs args) { + public DataUiViews(java.lang.String name, DataUiViewsArgs args) { this(name, args, null); } /** @@ -120,15 +120,22 @@ public DataUiViews(String name, DataUiViewsArgs 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 DataUiViews(String name, DataUiViewsArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("splunk:index/dataUiViews:DataUiViews", name, args == null ? DataUiViewsArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + public DataUiViews(java.lang.String name, DataUiViewsArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("splunk:index/dataUiViews:DataUiViews", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); + } + + private DataUiViews(java.lang.String name, Output id, @Nullable DataUiViewsState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("splunk:index/dataUiViews:DataUiViews", name, state, makeResourceOptions(options, id), false); } - private DataUiViews(String name, Output id, @Nullable DataUiViewsState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("splunk:index/dataUiViews:DataUiViews", name, state, makeResourceOptions(options, id)); + private static DataUiViewsArgs makeArgs(DataUiViewsArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? DataUiViewsArgs.Empty : args; } - private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { + 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(); @@ -144,7 +151,7 @@ private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@N * @param state * @param options Optional settings to control the behavior of the CustomResource. */ - public static DataUiViews get(String name, Output id, @Nullable DataUiViewsState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + public static DataUiViews get(java.lang.String name, Output id, @Nullable DataUiViewsState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new DataUiViews(name, id, state, options); } } diff --git a/sdk/java/src/main/java/com/pulumi/splunk/GenericAcl.java b/sdk/java/src/main/java/com/pulumi/splunk/GenericAcl.java index 21597899..306530f2 100644 --- a/sdk/java/src/main/java/com/pulumi/splunk/GenericAcl.java +++ b/sdk/java/src/main/java/com/pulumi/splunk/GenericAcl.java @@ -119,7 +119,7 @@ public Output path() { * * @param name The _unique_ name of the resulting resource. */ - public GenericAcl(String name) { + public GenericAcl(java.lang.String name) { this(name, GenericAclArgs.Empty); } /** @@ -127,7 +127,7 @@ public GenericAcl(String name) { * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ - public GenericAcl(String name, GenericAclArgs args) { + public GenericAcl(java.lang.String name, GenericAclArgs args) { this(name, args, null); } /** @@ -136,15 +136,22 @@ public GenericAcl(String name, GenericAclArgs 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 GenericAcl(String name, GenericAclArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("splunk:index/genericAcl:GenericAcl", name, args == null ? GenericAclArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + public GenericAcl(java.lang.String name, GenericAclArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("splunk:index/genericAcl:GenericAcl", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } - private GenericAcl(String name, Output id, @Nullable GenericAclState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("splunk:index/genericAcl:GenericAcl", name, state, makeResourceOptions(options, id)); + private GenericAcl(java.lang.String name, Output id, @Nullable GenericAclState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("splunk:index/genericAcl:GenericAcl", name, state, makeResourceOptions(options, id), false); } - private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { + private static GenericAclArgs makeArgs(GenericAclArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? GenericAclArgs.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(); @@ -160,7 +167,7 @@ private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@N * @param state * @param options Optional settings to control the behavior of the CustomResource. */ - public static GenericAcl get(String name, Output id, @Nullable GenericAclState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + public static GenericAcl get(java.lang.String name, Output id, @Nullable GenericAclState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new GenericAcl(name, id, state, options); } } diff --git a/sdk/java/src/main/java/com/pulumi/splunk/GlobalHttpEventCollector.java b/sdk/java/src/main/java/com/pulumi/splunk/GlobalHttpEventCollector.java index fa7cb672..2d93af84 100644 --- a/sdk/java/src/main/java/com/pulumi/splunk/GlobalHttpEventCollector.java +++ b/sdk/java/src/main/java/com/pulumi/splunk/GlobalHttpEventCollector.java @@ -164,7 +164,7 @@ public Output useDeploymentServer() { * * @param name The _unique_ name of the resulting resource. */ - public GlobalHttpEventCollector(String name) { + public GlobalHttpEventCollector(java.lang.String name) { this(name, GlobalHttpEventCollectorArgs.Empty); } /** @@ -172,7 +172,7 @@ public GlobalHttpEventCollector(String name) { * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ - public GlobalHttpEventCollector(String name, @Nullable GlobalHttpEventCollectorArgs args) { + public GlobalHttpEventCollector(java.lang.String name, @Nullable GlobalHttpEventCollectorArgs args) { this(name, args, null); } /** @@ -181,15 +181,22 @@ public GlobalHttpEventCollector(String name, @Nullable GlobalHttpEventCollectorA * @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 GlobalHttpEventCollector(String name, @Nullable GlobalHttpEventCollectorArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("splunk:index/globalHttpEventCollector:GlobalHttpEventCollector", name, args == null ? GlobalHttpEventCollectorArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + public GlobalHttpEventCollector(java.lang.String name, @Nullable GlobalHttpEventCollectorArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("splunk:index/globalHttpEventCollector:GlobalHttpEventCollector", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } - private GlobalHttpEventCollector(String name, Output id, @Nullable GlobalHttpEventCollectorState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("splunk:index/globalHttpEventCollector:GlobalHttpEventCollector", name, state, makeResourceOptions(options, id)); + private GlobalHttpEventCollector(java.lang.String name, Output id, @Nullable GlobalHttpEventCollectorState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("splunk:index/globalHttpEventCollector:GlobalHttpEventCollector", name, state, makeResourceOptions(options, id), false); } - private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { + private static GlobalHttpEventCollectorArgs makeArgs(@Nullable GlobalHttpEventCollectorArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? GlobalHttpEventCollectorArgs.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(); @@ -205,7 +212,7 @@ private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@N * @param state * @param options Optional settings to control the behavior of the CustomResource. */ - public static GlobalHttpEventCollector get(String name, Output id, @Nullable GlobalHttpEventCollectorState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + public static GlobalHttpEventCollector get(java.lang.String name, Output id, @Nullable GlobalHttpEventCollectorState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new GlobalHttpEventCollector(name, id, state, options); } } diff --git a/sdk/java/src/main/java/com/pulumi/splunk/Indexes.java b/sdk/java/src/main/java/com/pulumi/splunk/Indexes.java index 0001c582..837dbaab 100644 --- a/sdk/java/src/main/java/com/pulumi/splunk/Indexes.java +++ b/sdk/java/src/main/java/com/pulumi/splunk/Indexes.java @@ -705,7 +705,7 @@ public Output warmToColdScript() { * * @param name The _unique_ name of the resulting resource. */ - public Indexes(String name) { + public Indexes(java.lang.String name) { this(name, IndexesArgs.Empty); } /** @@ -713,7 +713,7 @@ public Indexes(String name) { * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ - public Indexes(String name, @Nullable IndexesArgs args) { + public Indexes(java.lang.String name, @Nullable IndexesArgs args) { this(name, args, null); } /** @@ -722,15 +722,22 @@ public Indexes(String name, @Nullable IndexesArgs 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 Indexes(String name, @Nullable IndexesArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("splunk:index/indexes:Indexes", name, args == null ? IndexesArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + public Indexes(java.lang.String name, @Nullable IndexesArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("splunk:index/indexes:Indexes", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } - private Indexes(String name, Output id, @Nullable IndexesState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("splunk:index/indexes:Indexes", name, state, makeResourceOptions(options, id)); + private Indexes(java.lang.String name, Output id, @Nullable IndexesState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("splunk:index/indexes:Indexes", name, state, makeResourceOptions(options, id), false); } - private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { + private static IndexesArgs makeArgs(@Nullable IndexesArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? IndexesArgs.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(); @@ -746,7 +753,7 @@ private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@N * @param state * @param options Optional settings to control the behavior of the CustomResource. */ - public static Indexes get(String name, Output id, @Nullable IndexesState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + public static Indexes get(java.lang.String name, Output id, @Nullable IndexesState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new Indexes(name, id, state, options); } } diff --git a/sdk/java/src/main/java/com/pulumi/splunk/InputsHttpEventCollector.java b/sdk/java/src/main/java/com/pulumi/splunk/InputsHttpEventCollector.java index 9065dfad..c91ee566 100644 --- a/sdk/java/src/main/java/com/pulumi/splunk/InputsHttpEventCollector.java +++ b/sdk/java/src/main/java/com/pulumi/splunk/InputsHttpEventCollector.java @@ -221,7 +221,7 @@ public Output useAck() { * * @param name The _unique_ name of the resulting resource. */ - public InputsHttpEventCollector(String name) { + public InputsHttpEventCollector(java.lang.String name) { this(name, InputsHttpEventCollectorArgs.Empty); } /** @@ -229,7 +229,7 @@ public InputsHttpEventCollector(String name) { * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ - public InputsHttpEventCollector(String name, @Nullable InputsHttpEventCollectorArgs args) { + public InputsHttpEventCollector(java.lang.String name, @Nullable InputsHttpEventCollectorArgs args) { this(name, args, null); } /** @@ -238,15 +238,22 @@ public InputsHttpEventCollector(String name, @Nullable InputsHttpEventCollectorA * @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 InputsHttpEventCollector(String name, @Nullable InputsHttpEventCollectorArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("splunk:index/inputsHttpEventCollector:InputsHttpEventCollector", name, args == null ? InputsHttpEventCollectorArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + public InputsHttpEventCollector(java.lang.String name, @Nullable InputsHttpEventCollectorArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("splunk:index/inputsHttpEventCollector:InputsHttpEventCollector", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } - private InputsHttpEventCollector(String name, Output id, @Nullable InputsHttpEventCollectorState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("splunk:index/inputsHttpEventCollector:InputsHttpEventCollector", name, state, makeResourceOptions(options, id)); + private InputsHttpEventCollector(java.lang.String name, Output id, @Nullable InputsHttpEventCollectorState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("splunk:index/inputsHttpEventCollector:InputsHttpEventCollector", name, state, makeResourceOptions(options, id), false); } - private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { + private static InputsHttpEventCollectorArgs makeArgs(@Nullable InputsHttpEventCollectorArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? InputsHttpEventCollectorArgs.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(); @@ -262,7 +269,7 @@ private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@N * @param state * @param options Optional settings to control the behavior of the CustomResource. */ - public static InputsHttpEventCollector get(String name, Output id, @Nullable InputsHttpEventCollectorState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + public static InputsHttpEventCollector get(java.lang.String name, Output id, @Nullable InputsHttpEventCollectorState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new InputsHttpEventCollector(name, id, state, options); } } diff --git a/sdk/java/src/main/java/com/pulumi/splunk/InputsMonitor.java b/sdk/java/src/main/java/com/pulumi/splunk/InputsMonitor.java index 248254d1..c0fb4f3a 100644 --- a/sdk/java/src/main/java/com/pulumi/splunk/InputsMonitor.java +++ b/sdk/java/src/main/java/com/pulumi/splunk/InputsMonitor.java @@ -290,7 +290,7 @@ public Output whitelist() { * * @param name The _unique_ name of the resulting resource. */ - public InputsMonitor(String name) { + public InputsMonitor(java.lang.String name) { this(name, InputsMonitorArgs.Empty); } /** @@ -298,7 +298,7 @@ public InputsMonitor(String name) { * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ - public InputsMonitor(String name, @Nullable InputsMonitorArgs args) { + public InputsMonitor(java.lang.String name, @Nullable InputsMonitorArgs args) { this(name, args, null); } /** @@ -307,15 +307,22 @@ public InputsMonitor(String name, @Nullable InputsMonitorArgs 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 InputsMonitor(String name, @Nullable InputsMonitorArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("splunk:index/inputsMonitor:InputsMonitor", name, args == null ? InputsMonitorArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + public InputsMonitor(java.lang.String name, @Nullable InputsMonitorArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("splunk:index/inputsMonitor:InputsMonitor", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } - private InputsMonitor(String name, Output id, @Nullable InputsMonitorState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("splunk:index/inputsMonitor:InputsMonitor", name, state, makeResourceOptions(options, id)); + private InputsMonitor(java.lang.String name, Output id, @Nullable InputsMonitorState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("splunk:index/inputsMonitor:InputsMonitor", name, state, makeResourceOptions(options, id), false); } - private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { + private static InputsMonitorArgs makeArgs(@Nullable InputsMonitorArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? InputsMonitorArgs.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(); @@ -331,7 +338,7 @@ private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@N * @param state * @param options Optional settings to control the behavior of the CustomResource. */ - public static InputsMonitor get(String name, Output id, @Nullable InputsMonitorState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + public static InputsMonitor get(java.lang.String name, Output id, @Nullable InputsMonitorState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new InputsMonitor(name, id, state, options); } } diff --git a/sdk/java/src/main/java/com/pulumi/splunk/InputsScript.java b/sdk/java/src/main/java/com/pulumi/splunk/InputsScript.java index 8245165c..133870ba 100644 --- a/sdk/java/src/main/java/com/pulumi/splunk/InputsScript.java +++ b/sdk/java/src/main/java/com/pulumi/splunk/InputsScript.java @@ -209,7 +209,7 @@ public Output sourcetype() { * * @param name The _unique_ name of the resulting resource. */ - public InputsScript(String name) { + public InputsScript(java.lang.String name) { this(name, InputsScriptArgs.Empty); } /** @@ -217,7 +217,7 @@ public InputsScript(String name) { * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ - public InputsScript(String name, InputsScriptArgs args) { + public InputsScript(java.lang.String name, InputsScriptArgs args) { this(name, args, null); } /** @@ -226,15 +226,22 @@ public InputsScript(String name, InputsScriptArgs 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 InputsScript(String name, InputsScriptArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("splunk:index/inputsScript:InputsScript", name, args == null ? InputsScriptArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + public InputsScript(java.lang.String name, InputsScriptArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("splunk:index/inputsScript:InputsScript", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } - private InputsScript(String name, Output id, @Nullable InputsScriptState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("splunk:index/inputsScript:InputsScript", name, state, makeResourceOptions(options, id)); + private InputsScript(java.lang.String name, Output id, @Nullable InputsScriptState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("splunk:index/inputsScript:InputsScript", name, state, makeResourceOptions(options, id), false); } - private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { + private static InputsScriptArgs makeArgs(InputsScriptArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? InputsScriptArgs.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(); @@ -250,7 +257,7 @@ private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@N * @param state * @param options Optional settings to control the behavior of the CustomResource. */ - public static InputsScript get(String name, Output id, @Nullable InputsScriptState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + public static InputsScript get(java.lang.String name, Output id, @Nullable InputsScriptState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new InputsScript(name, id, state, options); } } diff --git a/sdk/java/src/main/java/com/pulumi/splunk/InputsTcpCooked.java b/sdk/java/src/main/java/com/pulumi/splunk/InputsTcpCooked.java index 3e17832a..01f3d81f 100644 --- a/sdk/java/src/main/java/com/pulumi/splunk/InputsTcpCooked.java +++ b/sdk/java/src/main/java/com/pulumi/splunk/InputsTcpCooked.java @@ -160,7 +160,7 @@ public Output restrictToHost() { * * @param name The _unique_ name of the resulting resource. */ - public InputsTcpCooked(String name) { + public InputsTcpCooked(java.lang.String name) { this(name, InputsTcpCookedArgs.Empty); } /** @@ -168,7 +168,7 @@ public InputsTcpCooked(String name) { * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ - public InputsTcpCooked(String name, @Nullable InputsTcpCookedArgs args) { + public InputsTcpCooked(java.lang.String name, @Nullable InputsTcpCookedArgs args) { this(name, args, null); } /** @@ -177,15 +177,22 @@ public InputsTcpCooked(String name, @Nullable InputsTcpCookedArgs 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 InputsTcpCooked(String name, @Nullable InputsTcpCookedArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("splunk:index/inputsTcpCooked:InputsTcpCooked", name, args == null ? InputsTcpCookedArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + public InputsTcpCooked(java.lang.String name, @Nullable InputsTcpCookedArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("splunk:index/inputsTcpCooked:InputsTcpCooked", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } - private InputsTcpCooked(String name, Output id, @Nullable InputsTcpCookedState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("splunk:index/inputsTcpCooked:InputsTcpCooked", name, state, makeResourceOptions(options, id)); + private InputsTcpCooked(java.lang.String name, Output id, @Nullable InputsTcpCookedState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("splunk:index/inputsTcpCooked:InputsTcpCooked", name, state, makeResourceOptions(options, id), false); } - private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { + private static InputsTcpCookedArgs makeArgs(@Nullable InputsTcpCookedArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? InputsTcpCookedArgs.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(); @@ -201,7 +208,7 @@ private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@N * @param state * @param options Optional settings to control the behavior of the CustomResource. */ - public static InputsTcpCooked get(String name, Output id, @Nullable InputsTcpCookedState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + public static InputsTcpCooked get(java.lang.String name, Output id, @Nullable InputsTcpCookedState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new InputsTcpCooked(name, id, state, options); } } diff --git a/sdk/java/src/main/java/com/pulumi/splunk/InputsTcpRaw.java b/sdk/java/src/main/java/com/pulumi/splunk/InputsTcpRaw.java index 7ab33b72..e1978e5c 100644 --- a/sdk/java/src/main/java/com/pulumi/splunk/InputsTcpRaw.java +++ b/sdk/java/src/main/java/com/pulumi/splunk/InputsTcpRaw.java @@ -247,7 +247,7 @@ public Output sourcetype() { * * @param name The _unique_ name of the resulting resource. */ - public InputsTcpRaw(String name) { + public InputsTcpRaw(java.lang.String name) { this(name, InputsTcpRawArgs.Empty); } /** @@ -255,7 +255,7 @@ public InputsTcpRaw(String name) { * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ - public InputsTcpRaw(String name, @Nullable InputsTcpRawArgs args) { + public InputsTcpRaw(java.lang.String name, @Nullable InputsTcpRawArgs args) { this(name, args, null); } /** @@ -264,15 +264,22 @@ public InputsTcpRaw(String name, @Nullable InputsTcpRawArgs 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 InputsTcpRaw(String name, @Nullable InputsTcpRawArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("splunk:index/inputsTcpRaw:InputsTcpRaw", name, args == null ? InputsTcpRawArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + public InputsTcpRaw(java.lang.String name, @Nullable InputsTcpRawArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("splunk:index/inputsTcpRaw:InputsTcpRaw", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } - private InputsTcpRaw(String name, Output id, @Nullable InputsTcpRawState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("splunk:index/inputsTcpRaw:InputsTcpRaw", name, state, makeResourceOptions(options, id)); + private InputsTcpRaw(java.lang.String name, Output id, @Nullable InputsTcpRawState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("splunk:index/inputsTcpRaw:InputsTcpRaw", name, state, makeResourceOptions(options, id), false); } - private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { + private static InputsTcpRawArgs makeArgs(@Nullable InputsTcpRawArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? InputsTcpRawArgs.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(); @@ -288,7 +295,7 @@ private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@N * @param state * @param options Optional settings to control the behavior of the CustomResource. */ - public static InputsTcpRaw get(String name, Output id, @Nullable InputsTcpRawState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + public static InputsTcpRaw get(java.lang.String name, Output id, @Nullable InputsTcpRawState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new InputsTcpRaw(name, id, state, options); } } diff --git a/sdk/java/src/main/java/com/pulumi/splunk/InputsTcpSplunkTcpToken.java b/sdk/java/src/main/java/com/pulumi/splunk/InputsTcpSplunkTcpToken.java index ddbe97eb..7c117c7c 100644 --- a/sdk/java/src/main/java/com/pulumi/splunk/InputsTcpSplunkTcpToken.java +++ b/sdk/java/src/main/java/com/pulumi/splunk/InputsTcpSplunkTcpToken.java @@ -105,7 +105,7 @@ public Output token() { * * @param name The _unique_ name of the resulting resource. */ - public InputsTcpSplunkTcpToken(String name) { + public InputsTcpSplunkTcpToken(java.lang.String name) { this(name, InputsTcpSplunkTcpTokenArgs.Empty); } /** @@ -113,7 +113,7 @@ public InputsTcpSplunkTcpToken(String name) { * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ - public InputsTcpSplunkTcpToken(String name, @Nullable InputsTcpSplunkTcpTokenArgs args) { + public InputsTcpSplunkTcpToken(java.lang.String name, @Nullable InputsTcpSplunkTcpTokenArgs args) { this(name, args, null); } /** @@ -122,15 +122,22 @@ public InputsTcpSplunkTcpToken(String name, @Nullable InputsTcpSplunkTcpTokenArg * @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 InputsTcpSplunkTcpToken(String name, @Nullable InputsTcpSplunkTcpTokenArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("splunk:index/inputsTcpSplunkTcpToken:InputsTcpSplunkTcpToken", name, args == null ? InputsTcpSplunkTcpTokenArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + public InputsTcpSplunkTcpToken(java.lang.String name, @Nullable InputsTcpSplunkTcpTokenArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("splunk:index/inputsTcpSplunkTcpToken:InputsTcpSplunkTcpToken", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } - private InputsTcpSplunkTcpToken(String name, Output id, @Nullable InputsTcpSplunkTcpTokenState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("splunk:index/inputsTcpSplunkTcpToken:InputsTcpSplunkTcpToken", name, state, makeResourceOptions(options, id)); + private InputsTcpSplunkTcpToken(java.lang.String name, Output id, @Nullable InputsTcpSplunkTcpTokenState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("splunk:index/inputsTcpSplunkTcpToken:InputsTcpSplunkTcpToken", name, state, makeResourceOptions(options, id), false); } - private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { + private static InputsTcpSplunkTcpTokenArgs makeArgs(@Nullable InputsTcpSplunkTcpTokenArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? InputsTcpSplunkTcpTokenArgs.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(); @@ -146,7 +153,7 @@ private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@N * @param state * @param options Optional settings to control the behavior of the CustomResource. */ - public static InputsTcpSplunkTcpToken get(String name, Output id, @Nullable InputsTcpSplunkTcpTokenState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + public static InputsTcpSplunkTcpToken get(java.lang.String name, Output id, @Nullable InputsTcpSplunkTcpTokenState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new InputsTcpSplunkTcpToken(name, id, state, options); } } diff --git a/sdk/java/src/main/java/com/pulumi/splunk/InputsTcpSsl.java b/sdk/java/src/main/java/com/pulumi/splunk/InputsTcpSsl.java index 60761a98..719f4e48 100644 --- a/sdk/java/src/main/java/com/pulumi/splunk/InputsTcpSsl.java +++ b/sdk/java/src/main/java/com/pulumi/splunk/InputsTcpSsl.java @@ -134,7 +134,7 @@ public Output serverCert() { * * @param name The _unique_ name of the resulting resource. */ - public InputsTcpSsl(String name) { + public InputsTcpSsl(java.lang.String name) { this(name, InputsTcpSslArgs.Empty); } /** @@ -142,7 +142,7 @@ public InputsTcpSsl(String name) { * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ - public InputsTcpSsl(String name, @Nullable InputsTcpSslArgs args) { + public InputsTcpSsl(java.lang.String name, @Nullable InputsTcpSslArgs args) { this(name, args, null); } /** @@ -151,15 +151,22 @@ public InputsTcpSsl(String name, @Nullable InputsTcpSslArgs 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 InputsTcpSsl(String name, @Nullable InputsTcpSslArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("splunk:index/inputsTcpSsl:InputsTcpSsl", name, args == null ? InputsTcpSslArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + public InputsTcpSsl(java.lang.String name, @Nullable InputsTcpSslArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("splunk:index/inputsTcpSsl:InputsTcpSsl", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } - private InputsTcpSsl(String name, Output id, @Nullable InputsTcpSslState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("splunk:index/inputsTcpSsl:InputsTcpSsl", name, state, makeResourceOptions(options, id)); + private InputsTcpSsl(java.lang.String name, Output id, @Nullable InputsTcpSslState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("splunk:index/inputsTcpSsl:InputsTcpSsl", name, state, makeResourceOptions(options, id), false); } - private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { + private static InputsTcpSslArgs makeArgs(@Nullable InputsTcpSslArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? InputsTcpSslArgs.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( @@ -178,7 +185,7 @@ private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@N * @param state * @param options Optional settings to control the behavior of the CustomResource. */ - public static InputsTcpSsl get(String name, Output id, @Nullable InputsTcpSslState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + public static InputsTcpSsl get(java.lang.String name, Output id, @Nullable InputsTcpSslState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new InputsTcpSsl(name, id, state, options); } } diff --git a/sdk/java/src/main/java/com/pulumi/splunk/InputsUdp.java b/sdk/java/src/main/java/com/pulumi/splunk/InputsUdp.java index a665fa99..eda356f8 100644 --- a/sdk/java/src/main/java/com/pulumi/splunk/InputsUdp.java +++ b/sdk/java/src/main/java/com/pulumi/splunk/InputsUdp.java @@ -247,7 +247,7 @@ public Output sourcetype() { * * @param name The _unique_ name of the resulting resource. */ - public InputsUdp(String name) { + public InputsUdp(java.lang.String name) { this(name, InputsUdpArgs.Empty); } /** @@ -255,7 +255,7 @@ public InputsUdp(String name) { * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ - public InputsUdp(String name, @Nullable InputsUdpArgs args) { + public InputsUdp(java.lang.String name, @Nullable InputsUdpArgs args) { this(name, args, null); } /** @@ -264,15 +264,22 @@ public InputsUdp(String name, @Nullable InputsUdpArgs 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 InputsUdp(String name, @Nullable InputsUdpArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("splunk:index/inputsUdp:InputsUdp", name, args == null ? InputsUdpArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + public InputsUdp(java.lang.String name, @Nullable InputsUdpArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("splunk:index/inputsUdp:InputsUdp", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } - private InputsUdp(String name, Output id, @Nullable InputsUdpState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("splunk:index/inputsUdp:InputsUdp", name, state, makeResourceOptions(options, id)); + private InputsUdp(java.lang.String name, Output id, @Nullable InputsUdpState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("splunk:index/inputsUdp:InputsUdp", name, state, makeResourceOptions(options, id), false); } - private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { + private static InputsUdpArgs makeArgs(@Nullable InputsUdpArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? InputsUdpArgs.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(); @@ -288,7 +295,7 @@ private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@N * @param state * @param options Optional settings to control the behavior of the CustomResource. */ - public static InputsUdp get(String name, Output id, @Nullable InputsUdpState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + public static InputsUdp get(java.lang.String name, Output id, @Nullable InputsUdpState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new InputsUdp(name, id, state, options); } } diff --git a/sdk/java/src/main/java/com/pulumi/splunk/OutputsTcpDefault.java b/sdk/java/src/main/java/com/pulumi/splunk/OutputsTcpDefault.java index 2092bb15..132c3ae2 100644 --- a/sdk/java/src/main/java/com/pulumi/splunk/OutputsTcpDefault.java +++ b/sdk/java/src/main/java/com/pulumi/splunk/OutputsTcpDefault.java @@ -220,7 +220,7 @@ public Output sendCookedData() { * * @param name The _unique_ name of the resulting resource. */ - public OutputsTcpDefault(String name) { + public OutputsTcpDefault(java.lang.String name) { this(name, OutputsTcpDefaultArgs.Empty); } /** @@ -228,7 +228,7 @@ public OutputsTcpDefault(String name) { * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ - public OutputsTcpDefault(String name, @Nullable OutputsTcpDefaultArgs args) { + public OutputsTcpDefault(java.lang.String name, @Nullable OutputsTcpDefaultArgs args) { this(name, args, null); } /** @@ -237,15 +237,22 @@ public OutputsTcpDefault(String name, @Nullable OutputsTcpDefaultArgs 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 OutputsTcpDefault(String name, @Nullable OutputsTcpDefaultArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("splunk:index/outputsTcpDefault:OutputsTcpDefault", name, args == null ? OutputsTcpDefaultArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + public OutputsTcpDefault(java.lang.String name, @Nullable OutputsTcpDefaultArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("splunk:index/outputsTcpDefault:OutputsTcpDefault", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } - private OutputsTcpDefault(String name, Output id, @Nullable OutputsTcpDefaultState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("splunk:index/outputsTcpDefault:OutputsTcpDefault", name, state, makeResourceOptions(options, id)); + private OutputsTcpDefault(java.lang.String name, Output id, @Nullable OutputsTcpDefaultState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("splunk:index/outputsTcpDefault:OutputsTcpDefault", name, state, makeResourceOptions(options, id), false); } - private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { + private static OutputsTcpDefaultArgs makeArgs(@Nullable OutputsTcpDefaultArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? OutputsTcpDefaultArgs.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(); @@ -261,7 +268,7 @@ private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@N * @param state * @param options Optional settings to control the behavior of the CustomResource. */ - public static OutputsTcpDefault get(String name, Output id, @Nullable OutputsTcpDefaultState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + public static OutputsTcpDefault get(java.lang.String name, Output id, @Nullable OutputsTcpDefaultState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new OutputsTcpDefault(name, id, state, options); } } diff --git a/sdk/java/src/main/java/com/pulumi/splunk/OutputsTcpGroup.java b/sdk/java/src/main/java/com/pulumi/splunk/OutputsTcpGroup.java index 6c873e53..2b9b5226 100644 --- a/sdk/java/src/main/java/com/pulumi/splunk/OutputsTcpGroup.java +++ b/sdk/java/src/main/java/com/pulumi/splunk/OutputsTcpGroup.java @@ -246,7 +246,7 @@ public Output token() { * * @param name The _unique_ name of the resulting resource. */ - public OutputsTcpGroup(String name) { + public OutputsTcpGroup(java.lang.String name) { this(name, OutputsTcpGroupArgs.Empty); } /** @@ -254,7 +254,7 @@ public OutputsTcpGroup(String name) { * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ - public OutputsTcpGroup(String name, OutputsTcpGroupArgs args) { + public OutputsTcpGroup(java.lang.String name, OutputsTcpGroupArgs args) { this(name, args, null); } /** @@ -263,15 +263,22 @@ public OutputsTcpGroup(String name, OutputsTcpGroupArgs 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 OutputsTcpGroup(String name, OutputsTcpGroupArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("splunk:index/outputsTcpGroup:OutputsTcpGroup", name, args == null ? OutputsTcpGroupArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + public OutputsTcpGroup(java.lang.String name, OutputsTcpGroupArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("splunk:index/outputsTcpGroup:OutputsTcpGroup", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } - private OutputsTcpGroup(String name, Output id, @Nullable OutputsTcpGroupState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("splunk:index/outputsTcpGroup:OutputsTcpGroup", name, state, makeResourceOptions(options, id)); + private OutputsTcpGroup(java.lang.String name, Output id, @Nullable OutputsTcpGroupState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("splunk:index/outputsTcpGroup:OutputsTcpGroup", name, state, makeResourceOptions(options, id), false); } - private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { + private static OutputsTcpGroupArgs makeArgs(OutputsTcpGroupArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? OutputsTcpGroupArgs.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(); @@ -287,7 +294,7 @@ private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@N * @param state * @param options Optional settings to control the behavior of the CustomResource. */ - public static OutputsTcpGroup get(String name, Output id, @Nullable OutputsTcpGroupState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + public static OutputsTcpGroup get(java.lang.String name, Output id, @Nullable OutputsTcpGroupState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new OutputsTcpGroup(name, id, state, options); } } diff --git a/sdk/java/src/main/java/com/pulumi/splunk/OutputsTcpServer.java b/sdk/java/src/main/java/com/pulumi/splunk/OutputsTcpServer.java index ca359aad..f0b4199a 100644 --- a/sdk/java/src/main/java/com/pulumi/splunk/OutputsTcpServer.java +++ b/sdk/java/src/main/java/com/pulumi/splunk/OutputsTcpServer.java @@ -225,7 +225,7 @@ public Output sslVerifyServerCert() { * * @param name The _unique_ name of the resulting resource. */ - public OutputsTcpServer(String name) { + public OutputsTcpServer(java.lang.String name) { this(name, OutputsTcpServerArgs.Empty); } /** @@ -233,7 +233,7 @@ public OutputsTcpServer(String name) { * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ - public OutputsTcpServer(String name, @Nullable OutputsTcpServerArgs args) { + public OutputsTcpServer(java.lang.String name, @Nullable OutputsTcpServerArgs args) { this(name, args, null); } /** @@ -242,15 +242,22 @@ public OutputsTcpServer(String name, @Nullable OutputsTcpServerArgs 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 OutputsTcpServer(String name, @Nullable OutputsTcpServerArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("splunk:index/outputsTcpServer:OutputsTcpServer", name, args == null ? OutputsTcpServerArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + public OutputsTcpServer(java.lang.String name, @Nullable OutputsTcpServerArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("splunk:index/outputsTcpServer:OutputsTcpServer", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } - private OutputsTcpServer(String name, Output id, @Nullable OutputsTcpServerState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("splunk:index/outputsTcpServer:OutputsTcpServer", name, state, makeResourceOptions(options, id)); + private OutputsTcpServer(java.lang.String name, Output id, @Nullable OutputsTcpServerState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("splunk:index/outputsTcpServer:OutputsTcpServer", name, state, makeResourceOptions(options, id), false); } - private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { + private static OutputsTcpServerArgs makeArgs(@Nullable OutputsTcpServerArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? OutputsTcpServerArgs.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( @@ -269,7 +276,7 @@ private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@N * @param state * @param options Optional settings to control the behavior of the CustomResource. */ - public static OutputsTcpServer get(String name, Output id, @Nullable OutputsTcpServerState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + public static OutputsTcpServer get(java.lang.String name, Output id, @Nullable OutputsTcpServerState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new OutputsTcpServer(name, id, state, options); } } diff --git a/sdk/java/src/main/java/com/pulumi/splunk/OutputsTcpSyslog.java b/sdk/java/src/main/java/com/pulumi/splunk/OutputsTcpSyslog.java index d6218a35..07de3424 100644 --- a/sdk/java/src/main/java/com/pulumi/splunk/OutputsTcpSyslog.java +++ b/sdk/java/src/main/java/com/pulumi/splunk/OutputsTcpSyslog.java @@ -190,7 +190,7 @@ public Output type() { * * @param name The _unique_ name of the resulting resource. */ - public OutputsTcpSyslog(String name) { + public OutputsTcpSyslog(java.lang.String name) { this(name, OutputsTcpSyslogArgs.Empty); } /** @@ -198,7 +198,7 @@ public OutputsTcpSyslog(String name) { * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ - public OutputsTcpSyslog(String name, @Nullable OutputsTcpSyslogArgs args) { + public OutputsTcpSyslog(java.lang.String name, @Nullable OutputsTcpSyslogArgs args) { this(name, args, null); } /** @@ -207,15 +207,22 @@ public OutputsTcpSyslog(String name, @Nullable OutputsTcpSyslogArgs 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 OutputsTcpSyslog(String name, @Nullable OutputsTcpSyslogArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("splunk:index/outputsTcpSyslog:OutputsTcpSyslog", name, args == null ? OutputsTcpSyslogArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + public OutputsTcpSyslog(java.lang.String name, @Nullable OutputsTcpSyslogArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("splunk:index/outputsTcpSyslog:OutputsTcpSyslog", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } - private OutputsTcpSyslog(String name, Output id, @Nullable OutputsTcpSyslogState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("splunk:index/outputsTcpSyslog:OutputsTcpSyslog", name, state, makeResourceOptions(options, id)); + private OutputsTcpSyslog(java.lang.String name, Output id, @Nullable OutputsTcpSyslogState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("splunk:index/outputsTcpSyslog:OutputsTcpSyslog", name, state, makeResourceOptions(options, id), false); } - private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { + private static OutputsTcpSyslogArgs makeArgs(@Nullable OutputsTcpSyslogArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? OutputsTcpSyslogArgs.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(); @@ -231,7 +238,7 @@ private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@N * @param state * @param options Optional settings to control the behavior of the CustomResource. */ - public static OutputsTcpSyslog get(String name, Output id, @Nullable OutputsTcpSyslogState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + public static OutputsTcpSyslog get(java.lang.String name, Output id, @Nullable OutputsTcpSyslogState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new OutputsTcpSyslog(name, id, state, options); } } diff --git a/sdk/java/src/main/java/com/pulumi/splunk/Provider.java b/sdk/java/src/main/java/com/pulumi/splunk/Provider.java index ae5c081d..96e7546b 100644 --- a/sdk/java/src/main/java/com/pulumi/splunk/Provider.java +++ b/sdk/java/src/main/java/com/pulumi/splunk/Provider.java @@ -85,7 +85,7 @@ public Output> username() { * * @param name The _unique_ name of the resulting resource. */ - public Provider(String name) { + public Provider(java.lang.String name) { this(name, ProviderArgs.Empty); } /** @@ -93,7 +93,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, ProviderArgs args) { + public Provider(java.lang.String name, ProviderArgs args) { this(name, args, null); } /** @@ -102,11 +102,18 @@ public Provider(String name, 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, ProviderArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("splunk", name, args == null ? ProviderArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + public Provider(java.lang.String name, ProviderArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("splunk", 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(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/splunk/SavedSearches.java b/sdk/java/src/main/java/com/pulumi/splunk/SavedSearches.java index c80454e4..a074d785 100644 --- a/sdk/java/src/main/java/com/pulumi/splunk/SavedSearches.java +++ b/sdk/java/src/main/java/com/pulumi/splunk/SavedSearches.java @@ -43,12 +43,12 @@ * import java.nio.file.Files; * import java.nio.file.Paths; * - * public class App { - * public static void main(String[] args) { + * public class App }{{@code + * public static void main(String[] args) }{{@code * Pulumi.run(App::stack); - * } + * }}{@code * - * public static void stack(Context ctx) { + * public static void stack(Context ctx) }{{@code * var savedSearch = new SavedSearches("savedSearch", SavedSearchesArgs.builder() * .name("Test New Alert") * .search("index=main") @@ -58,11 +58,11 @@ * .actionEmailMaxResults(10) * .actionEmailSendResults(false) * .actionEmailSubject("Splunk Alert: $name$") - * .actionEmailTo("splunk{@literal @}splunk.com") + * .actionEmailTo("splunk}{@literal @}{@code splunk.com") * .actionEmailTrackAlert(true) * .dispatchEarliestTime("rt-15m") * .dispatchLatestTime("rt-0m") - * .cronSchedule("*{@literal /}5 * * * *") + * .cronSchedule("*}/{@code 5 * * * *") * .acl(SavedSearchesAclArgs.builder() * .owner("admin") * .sharing("app") @@ -70,8 +70,8 @@ * .build()) * .build()); * - * } - * } + * }}{@code + * }}{@code * } * * <!--End PulumiCodeChooser --> @@ -1242,14 +1242,14 @@ public Output> actionSlackParamAttachment() { return Codegen.optional(this.actionSlackParamAttachment); } /** - * Slack channel to send the message to (Should start with # or{@literal @}) + * Slack channel to send the message to (Should start with # or {@literal @}) * */ @Export(name="actionSlackParamChannel", refs={String.class}, tree="[0]") private Output actionSlackParamChannel; /** - * @return Slack channel to send the message to (Should start with # or{@literal @}) + * @return Slack channel to send the message to (Should start with # or {@literal @}) * */ public Output> actionSlackParamChannel() { @@ -1794,14 +1794,14 @@ public Output autoSummarizeCommand() { return this.autoSummarizeCommand; } /** - * Cron schedule that probes and generates the summaries for this saved search.The default value is *{@literal /}10 * * * * and corresponds to \`every ten hours\`. + * Cron schedule that probes and generates the summaries for this saved search.The default value is */10 * * * * and corresponds to \`every ten hours\`. * */ @Export(name="autoSummarizeCronSchedule", refs={String.class}, tree="[0]") private Output autoSummarizeCronSchedule; /** - * @return Cron schedule that probes and generates the summaries for this saved search.The default value is *{@literal /}10 * * * * and corresponds to \`every ten hours\`. + * @return Cron schedule that probes and generates the summaries for this saved search.The default value is */10 * * * * and corresponds to \`every ten hours\`. * */ public Output autoSummarizeCronSchedule() { @@ -1948,14 +1948,14 @@ public Output autoSummarizeTimespan() { return this.autoSummarizeTimespan; } /** - * Valid values: cron stringThe cron schedule to execute this search. For example: *{@literal /}5 * * * * causes the search to execute every 5 minutes. + * Valid values: cron stringThe cron schedule to execute this search. For example: */5 * * * * causes the search to execute every 5 minutes. * */ @Export(name="cronSchedule", refs={String.class}, tree="[0]") private Output cronSchedule; /** - * @return Valid values: cron stringThe cron schedule to execute this search. For example: *{@literal /}5 * * * * causes the search to execute every 5 minutes. + * @return Valid values: cron stringThe cron schedule to execute this search. For example: */5 * * * * causes the search to execute every 5 minutes. * */ public Output cronSchedule() { @@ -2442,7 +2442,7 @@ public Output workloadPool() { * * @param name The _unique_ name of the resulting resource. */ - public SavedSearches(String name) { + public SavedSearches(java.lang.String name) { this(name, SavedSearchesArgs.Empty); } /** @@ -2450,7 +2450,7 @@ public SavedSearches(String name) { * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ - public SavedSearches(String name, SavedSearchesArgs args) { + public SavedSearches(java.lang.String name, SavedSearchesArgs args) { this(name, args, null); } /** @@ -2459,15 +2459,22 @@ public SavedSearches(String name, SavedSearchesArgs 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 SavedSearches(String name, SavedSearchesArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("splunk:index/savedSearches:SavedSearches", name, args == null ? SavedSearchesArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + public SavedSearches(java.lang.String name, SavedSearchesArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("splunk:index/savedSearches:SavedSearches", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); + } + + private SavedSearches(java.lang.String name, Output id, @Nullable SavedSearchesState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("splunk:index/savedSearches:SavedSearches", name, state, makeResourceOptions(options, id), false); } - private SavedSearches(String name, Output id, @Nullable SavedSearchesState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("splunk:index/savedSearches:SavedSearches", name, state, makeResourceOptions(options, id)); + private static SavedSearchesArgs makeArgs(SavedSearchesArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? SavedSearchesArgs.Empty : args; } - private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { + 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(); @@ -2483,7 +2490,7 @@ private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@N * @param state * @param options Optional settings to control the behavior of the CustomResource. */ - public static SavedSearches get(String name, Output id, @Nullable SavedSearchesState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + public static SavedSearches get(java.lang.String name, Output id, @Nullable SavedSearchesState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new SavedSearches(name, id, state, options); } } diff --git a/sdk/java/src/main/java/com/pulumi/splunk/SavedSearchesArgs.java b/sdk/java/src/main/java/com/pulumi/splunk/SavedSearchesArgs.java index b103ffea..e2603741 100644 --- a/sdk/java/src/main/java/com/pulumi/splunk/SavedSearchesArgs.java +++ b/sdk/java/src/main/java/com/pulumi/splunk/SavedSearchesArgs.java @@ -1206,14 +1206,14 @@ public Optional> actionSlackParamAttachment() { } /** - * Slack channel to send the message to (Should start with # or{@literal @}) + * Slack channel to send the message to (Should start with # or {@literal @}) * */ @Import(name="actionSlackParamChannel") private @Nullable Output actionSlackParamChannel; /** - * @return Slack channel to send the message to (Should start with # or{@literal @}) + * @return Slack channel to send the message to (Should start with # or {@literal @}) * */ public Optional> actionSlackParamChannel() { @@ -1781,14 +1781,14 @@ public Optional> autoSummarizeCommand() { } /** - * Cron schedule that probes and generates the summaries for this saved search.The default value is *{@literal /}10 * * * * and corresponds to \`every ten hours\`. + * Cron schedule that probes and generates the summaries for this saved search.The default value is */10 * * * * and corresponds to \`every ten hours\`. * */ @Import(name="autoSummarizeCronSchedule") private @Nullable Output autoSummarizeCronSchedule; /** - * @return Cron schedule that probes and generates the summaries for this saved search.The default value is *{@literal /}10 * * * * and corresponds to \`every ten hours\`. + * @return Cron schedule that probes and generates the summaries for this saved search.The default value is */10 * * * * and corresponds to \`every ten hours\`. * */ public Optional> autoSummarizeCronSchedule() { @@ -1946,14 +1946,14 @@ public Optional> autoSummarizeTimespan() { } /** - * Valid values: cron stringThe cron schedule to execute this search. For example: *{@literal /}5 * * * * causes the search to execute every 5 minutes. + * Valid values: cron stringThe cron schedule to execute this search. For example: */5 * * * * causes the search to execute every 5 minutes. * */ @Import(name="cronSchedule") private @Nullable Output cronSchedule; /** - * @return Valid values: cron stringThe cron schedule to execute this search. For example: *{@literal /}5 * * * * causes the search to execute every 5 minutes. + * @return Valid values: cron stringThe cron schedule to execute this search. For example: */5 * * * * causes the search to execute every 5 minutes. * */ public Optional> cronSchedule() { @@ -4315,7 +4315,7 @@ public Builder actionSlackParamAttachment(String actionSlackParamAttachment) { } /** - * @param actionSlackParamChannel Slack channel to send the message to (Should start with # or{@literal @}) + * @param actionSlackParamChannel Slack channel to send the message to (Should start with # or {@literal @}) * * @return builder * @@ -4326,7 +4326,7 @@ public Builder actionSlackParamChannel(@Nullable Output actionSlackParam } /** - * @param actionSlackParamChannel Slack channel to send the message to (Should start with # or{@literal @}) + * @param actionSlackParamChannel Slack channel to send the message to (Should start with # or {@literal @}) * * @return builder * @@ -5112,7 +5112,7 @@ public Builder autoSummarizeCommand(String autoSummarizeCommand) { } /** - * @param autoSummarizeCronSchedule Cron schedule that probes and generates the summaries for this saved search.The default value is *{@literal /}10 * * * * and corresponds to \`every ten hours\`. + * @param autoSummarizeCronSchedule Cron schedule that probes and generates the summaries for this saved search.The default value is */10 * * * * and corresponds to \`every ten hours\`. * * @return builder * @@ -5123,7 +5123,7 @@ public Builder autoSummarizeCronSchedule(@Nullable Output autoSummarizeC } /** - * @param autoSummarizeCronSchedule Cron schedule that probes and generates the summaries for this saved search.The default value is *{@literal /}10 * * * * and corresponds to \`every ten hours\`. + * @param autoSummarizeCronSchedule Cron schedule that probes and generates the summaries for this saved search.The default value is */10 * * * * and corresponds to \`every ten hours\`. * * @return builder * @@ -5343,7 +5343,7 @@ public Builder autoSummarizeTimespan(String autoSummarizeTimespan) { } /** - * @param cronSchedule Valid values: cron stringThe cron schedule to execute this search. For example: *{@literal /}5 * * * * causes the search to execute every 5 minutes. + * @param cronSchedule Valid values: cron stringThe cron schedule to execute this search. For example: */5 * * * * causes the search to execute every 5 minutes. * * @return builder * @@ -5354,7 +5354,7 @@ public Builder cronSchedule(@Nullable Output cronSchedule) { } /** - * @param cronSchedule Valid values: cron stringThe cron schedule to execute this search. For example: *{@literal /}5 * * * * causes the search to execute every 5 minutes. + * @param cronSchedule Valid values: cron stringThe cron schedule to execute this search. For example: */5 * * * * causes the search to execute every 5 minutes. * * @return builder * diff --git a/sdk/java/src/main/java/com/pulumi/splunk/ShIndexesManager.java b/sdk/java/src/main/java/com/pulumi/splunk/ShIndexesManager.java index 4db1e288..5b43b179 100644 --- a/sdk/java/src/main/java/com/pulumi/splunk/ShIndexesManager.java +++ b/sdk/java/src/main/java/com/pulumi/splunk/ShIndexesManager.java @@ -136,7 +136,7 @@ public Output name() { * * @param name The _unique_ name of the resulting resource. */ - public ShIndexesManager(String name) { + public ShIndexesManager(java.lang.String name) { this(name, ShIndexesManagerArgs.Empty); } /** @@ -144,7 +144,7 @@ public ShIndexesManager(String name) { * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ - public ShIndexesManager(String name, @Nullable ShIndexesManagerArgs args) { + public ShIndexesManager(java.lang.String name, @Nullable ShIndexesManagerArgs args) { this(name, args, null); } /** @@ -153,15 +153,22 @@ public ShIndexesManager(String name, @Nullable ShIndexesManagerArgs 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 ShIndexesManager(String name, @Nullable ShIndexesManagerArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("splunk:index/shIndexesManager:ShIndexesManager", name, args == null ? ShIndexesManagerArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + public ShIndexesManager(java.lang.String name, @Nullable ShIndexesManagerArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("splunk:index/shIndexesManager:ShIndexesManager", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } - private ShIndexesManager(String name, Output id, @Nullable ShIndexesManagerState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("splunk:index/shIndexesManager:ShIndexesManager", name, state, makeResourceOptions(options, id)); + private ShIndexesManager(java.lang.String name, Output id, @Nullable ShIndexesManagerState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("splunk:index/shIndexesManager:ShIndexesManager", name, state, makeResourceOptions(options, id), false); } - private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { + private static ShIndexesManagerArgs makeArgs(@Nullable ShIndexesManagerArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? ShIndexesManagerArgs.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(); @@ -177,7 +184,7 @@ private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@N * @param state * @param options Optional settings to control the behavior of the CustomResource. */ - public static ShIndexesManager get(String name, Output id, @Nullable ShIndexesManagerState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + public static ShIndexesManager get(java.lang.String name, Output id, @Nullable ShIndexesManagerState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new ShIndexesManager(name, id, state, options); } } diff --git a/sdk/java/src/main/java/com/pulumi/splunk/Utilities.java b/sdk/java/src/main/java/com/pulumi/splunk/Utilities.java index 05144f14..af675135 100644 --- a/sdk/java/src/main/java/com/pulumi/splunk/Utilities.java +++ b/sdk/java/src/main/java/com/pulumi/splunk/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/splunk/inputs/SavedSearchesState.java b/sdk/java/src/main/java/com/pulumi/splunk/inputs/SavedSearchesState.java index cf6e6bd2..84e3d850 100644 --- a/sdk/java/src/main/java/com/pulumi/splunk/inputs/SavedSearchesState.java +++ b/sdk/java/src/main/java/com/pulumi/splunk/inputs/SavedSearchesState.java @@ -1265,14 +1265,14 @@ public Optional> actionSlackParamAttachment() { } /** - * Slack channel to send the message to (Should start with # or{@literal @}) + * Slack channel to send the message to (Should start with # or {@literal @}) * */ @Import(name="actionSlackParamChannel") private @Nullable Output actionSlackParamChannel; /** - * @return Slack channel to send the message to (Should start with # or{@literal @}) + * @return Slack channel to send the message to (Should start with # or {@literal @}) * */ public Optional> actionSlackParamChannel() { @@ -1855,14 +1855,14 @@ public Optional> autoSummarizeCommand() { } /** - * Cron schedule that probes and generates the summaries for this saved search.The default value is *{@literal /}10 * * * * and corresponds to \`every ten hours\`. + * Cron schedule that probes and generates the summaries for this saved search.The default value is */10 * * * * and corresponds to \`every ten hours\`. * */ @Import(name="autoSummarizeCronSchedule") private @Nullable Output autoSummarizeCronSchedule; /** - * @return Cron schedule that probes and generates the summaries for this saved search.The default value is *{@literal /}10 * * * * and corresponds to \`every ten hours\`. + * @return Cron schedule that probes and generates the summaries for this saved search.The default value is */10 * * * * and corresponds to \`every ten hours\`. * */ public Optional> autoSummarizeCronSchedule() { @@ -2020,14 +2020,14 @@ public Optional> autoSummarizeTimespan() { } /** - * Valid values: cron stringThe cron schedule to execute this search. For example: *{@literal /}5 * * * * causes the search to execute every 5 minutes. + * Valid values: cron stringThe cron schedule to execute this search. For example: */5 * * * * causes the search to execute every 5 minutes. * */ @Import(name="cronSchedule") private @Nullable Output cronSchedule; /** - * @return Valid values: cron stringThe cron schedule to execute this search. For example: *{@literal /}5 * * * * causes the search to execute every 5 minutes. + * @return Valid values: cron stringThe cron schedule to execute this search. For example: */5 * * * * causes the search to execute every 5 minutes. * */ public Optional> cronSchedule() { @@ -4478,7 +4478,7 @@ public Builder actionSlackParamAttachment(String actionSlackParamAttachment) { } /** - * @param actionSlackParamChannel Slack channel to send the message to (Should start with # or{@literal @}) + * @param actionSlackParamChannel Slack channel to send the message to (Should start with # or {@literal @}) * * @return builder * @@ -4489,7 +4489,7 @@ public Builder actionSlackParamChannel(@Nullable Output actionSlackParam } /** - * @param actionSlackParamChannel Slack channel to send the message to (Should start with # or{@literal @}) + * @param actionSlackParamChannel Slack channel to send the message to (Should start with # or {@literal @}) * * @return builder * @@ -5296,7 +5296,7 @@ public Builder autoSummarizeCommand(String autoSummarizeCommand) { } /** - * @param autoSummarizeCronSchedule Cron schedule that probes and generates the summaries for this saved search.The default value is *{@literal /}10 * * * * and corresponds to \`every ten hours\`. + * @param autoSummarizeCronSchedule Cron schedule that probes and generates the summaries for this saved search.The default value is */10 * * * * and corresponds to \`every ten hours\`. * * @return builder * @@ -5307,7 +5307,7 @@ public Builder autoSummarizeCronSchedule(@Nullable Output autoSummarizeC } /** - * @param autoSummarizeCronSchedule Cron schedule that probes and generates the summaries for this saved search.The default value is *{@literal /}10 * * * * and corresponds to \`every ten hours\`. + * @param autoSummarizeCronSchedule Cron schedule that probes and generates the summaries for this saved search.The default value is */10 * * * * and corresponds to \`every ten hours\`. * * @return builder * @@ -5527,7 +5527,7 @@ public Builder autoSummarizeTimespan(String autoSummarizeTimespan) { } /** - * @param cronSchedule Valid values: cron stringThe cron schedule to execute this search. For example: *{@literal /}5 * * * * causes the search to execute every 5 minutes. + * @param cronSchedule Valid values: cron stringThe cron schedule to execute this search. For example: */5 * * * * causes the search to execute every 5 minutes. * * @return builder * @@ -5538,7 +5538,7 @@ public Builder cronSchedule(@Nullable Output cronSchedule) { } /** - * @param cronSchedule Valid values: cron stringThe cron schedule to execute this search. For example: *{@literal /}5 * * * * causes the search to execute every 5 minutes. + * @param cronSchedule Valid values: cron stringThe cron schedule to execute this search. For example: */5 * * * * causes the search to execute every 5 minutes. * * @return builder * diff --git a/sdk/python/pulumi_splunk/apps_local.py b/sdk/python/pulumi_splunk/apps_local.py index 273923d7..07afba29 100644 --- a/sdk/python/pulumi_splunk/apps_local.py +++ b/sdk/python/pulumi_splunk/apps_local.py @@ -494,7 +494,7 @@ class AppsLocal(pulumi.CustomResource): def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, - acl: Optional[pulumi.Input[pulumi.InputType['AppsLocalAclArgs']]] = None, + acl: Optional[pulumi.Input[Union['AppsLocalAclArgs', 'AppsLocalAclArgsDict']]] = None, auth: Optional[pulumi.Input[str]] = None, author: Optional[pulumi.Input[str]] = None, configured: Optional[pulumi.Input[bool]] = None, @@ -527,7 +527,7 @@ 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['AppsLocalAclArgs']] acl: The app/user context that is the namespace for the resource + :param pulumi.Input[Union['AppsLocalAclArgs', 'AppsLocalAclArgsDict']] acl: The app/user context that is the namespace for the resource :param pulumi.Input[str] auth: Splunkbase session token for operations like install and update that require login. Use auth or session when installing or updating an app through Splunkbase. :param pulumi.Input[str] author: For apps posted to Splunkbase, use your Splunk account username. For internal apps, include your name and contact information. :param pulumi.Input[bool] configured: Custom setup complete indication: @@ -590,7 +590,7 @@ def __init__(__self__, resource_name: str, *args, **kwargs): def _internal_init(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, - acl: Optional[pulumi.Input[pulumi.InputType['AppsLocalAclArgs']]] = None, + acl: Optional[pulumi.Input[Union['AppsLocalAclArgs', 'AppsLocalAclArgsDict']]] = None, auth: Optional[pulumi.Input[str]] = None, author: Optional[pulumi.Input[str]] = None, configured: Optional[pulumi.Input[bool]] = None, @@ -635,7 +635,7 @@ def _internal_init(__self__, def get(resource_name: str, id: pulumi.Input[str], opts: Optional[pulumi.ResourceOptions] = None, - acl: Optional[pulumi.Input[pulumi.InputType['AppsLocalAclArgs']]] = None, + acl: Optional[pulumi.Input[Union['AppsLocalAclArgs', 'AppsLocalAclArgsDict']]] = None, auth: Optional[pulumi.Input[str]] = None, author: Optional[pulumi.Input[str]] = None, configured: Optional[pulumi.Input[bool]] = None, @@ -655,7 +655,7 @@ 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['AppsLocalAclArgs']] acl: The app/user context that is the namespace for the resource + :param pulumi.Input[Union['AppsLocalAclArgs', 'AppsLocalAclArgsDict']] acl: The app/user context that is the namespace for the resource :param pulumi.Input[str] auth: Splunkbase session token for operations like install and update that require login. Use auth or session when installing or updating an app through Splunkbase. :param pulumi.Input[str] author: For apps posted to Splunkbase, use your Splunk account username. For internal apps, include your name and contact information. :param pulumi.Input[bool] configured: Custom setup complete indication: diff --git a/sdk/python/pulumi_splunk/configs_conf.py b/sdk/python/pulumi_splunk/configs_conf.py index fb0a2318..f249dd81 100644 --- a/sdk/python/pulumi_splunk/configs_conf.py +++ b/sdk/python/pulumi_splunk/configs_conf.py @@ -122,7 +122,7 @@ class ConfigsConf(pulumi.CustomResource): def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, - acl: Optional[pulumi.Input[pulumi.InputType['ConfigsConfAclArgs']]] = None, + acl: Optional[pulumi.Input[Union['ConfigsConfAclArgs', 'ConfigsConfAclArgsDict']]] = None, name: Optional[pulumi.Input[str]] = None, variables: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None, __props__=None): @@ -190,7 +190,7 @@ def __init__(__self__, resource_name: str, *args, **kwargs): def _internal_init(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, - acl: Optional[pulumi.Input[pulumi.InputType['ConfigsConfAclArgs']]] = None, + acl: Optional[pulumi.Input[Union['ConfigsConfAclArgs', 'ConfigsConfAclArgsDict']]] = None, name: Optional[pulumi.Input[str]] = None, variables: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None, __props__=None): @@ -215,7 +215,7 @@ def _internal_init(__self__, def get(resource_name: str, id: pulumi.Input[str], opts: Optional[pulumi.ResourceOptions] = None, - acl: Optional[pulumi.Input[pulumi.InputType['ConfigsConfAclArgs']]] = None, + acl: Optional[pulumi.Input[Union['ConfigsConfAclArgs', 'ConfigsConfAclArgsDict']]] = None, name: Optional[pulumi.Input[str]] = None, variables: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None) -> 'ConfigsConf': """ diff --git a/sdk/python/pulumi_splunk/data_ui_views.py b/sdk/python/pulumi_splunk/data_ui_views.py index 8d2335d9..4fdda209 100644 --- a/sdk/python/pulumi_splunk/data_ui_views.py +++ b/sdk/python/pulumi_splunk/data_ui_views.py @@ -125,7 +125,7 @@ class DataUiViews(pulumi.CustomResource): def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, - acl: Optional[pulumi.Input[pulumi.InputType['DataUiViewsAclArgs']]] = None, + acl: Optional[pulumi.Input[Union['DataUiViewsAclArgs', 'DataUiViewsAclArgsDict']]] = None, eai_data: Optional[pulumi.Input[str]] = None, name: Optional[pulumi.Input[str]] = None, __props__=None): @@ -142,10 +142,10 @@ def __init__(__self__, dashboard = splunk.DataUiViews("dashboard", name="Terraform_Sample_Dashboard", eai_data="Terraform operationsindex=_internal sourcetype=splunkd_access useragent=\\"splunk-simple-go-client\\" | timechart fixedrange=f values(status) by uri_path-24h@hnow1", - acl=splunk.DataUiViewsAclArgs( - owner="admin", - app="search", - )) + acl={ + "owner": "admin", + "app": "search", + }) ``` :param str resource_name: The name of the resource. @@ -173,10 +173,10 @@ def __init__(__self__, dashboard = splunk.DataUiViews("dashboard", name="Terraform_Sample_Dashboard", eai_data="Terraform operationsindex=_internal sourcetype=splunkd_access useragent=\\"splunk-simple-go-client\\" | timechart fixedrange=f values(status) by uri_path-24h@hnow1", - acl=splunk.DataUiViewsAclArgs( - owner="admin", - app="search", - )) + acl={ + "owner": "admin", + "app": "search", + }) ``` :param str resource_name: The name of the resource. @@ -194,7 +194,7 @@ def __init__(__self__, resource_name: str, *args, **kwargs): def _internal_init(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, - acl: Optional[pulumi.Input[pulumi.InputType['DataUiViewsAclArgs']]] = None, + acl: Optional[pulumi.Input[Union['DataUiViewsAclArgs', 'DataUiViewsAclArgsDict']]] = None, eai_data: Optional[pulumi.Input[str]] = None, name: Optional[pulumi.Input[str]] = None, __props__=None): @@ -221,7 +221,7 @@ def _internal_init(__self__, def get(resource_name: str, id: pulumi.Input[str], opts: Optional[pulumi.ResourceOptions] = None, - acl: Optional[pulumi.Input[pulumi.InputType['DataUiViewsAclArgs']]] = None, + acl: Optional[pulumi.Input[Union['DataUiViewsAclArgs', 'DataUiViewsAclArgsDict']]] = None, eai_data: Optional[pulumi.Input[str]] = None, name: Optional[pulumi.Input[str]] = None) -> 'DataUiViews': """ diff --git a/sdk/python/pulumi_splunk/generic_acl.py b/sdk/python/pulumi_splunk/generic_acl.py index 9ceccdef..46505bd0 100644 --- a/sdk/python/pulumi_splunk/generic_acl.py +++ b/sdk/python/pulumi_splunk/generic_acl.py @@ -109,7 +109,7 @@ class GenericAcl(pulumi.CustomResource): def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, - acl: Optional[pulumi.Input[pulumi.InputType['GenericAclAclArgs']]] = None, + acl: Optional[pulumi.Input[Union['GenericAclAclArgs', 'GenericAclAclArgsDict']]] = None, path: Optional[pulumi.Input[str]] = None, __props__=None): """ @@ -121,23 +121,23 @@ def __init__(__self__, my_app = splunk.GenericAcl("my_app", path="apps/local/my_app", - acl=splunk.GenericAclAclArgs( - app="system", - owner="nobody", - reads=["*"], - writes=[ + acl={ + "app": "system", + "owner": "nobody", + "reads": ["*"], + "writes": [ "admin", "power", ], - )) + }) my_dashboard = splunk.GenericAcl("my_dashboard", path="data/ui/views/my_dashboard", - acl=splunk.GenericAclAclArgs( - app="my_app", - owner="joe_user", - reads=["team_joe"], - writes=["team_joe"], - )) + acl={ + "app": "my_app", + "owner": "joe_user", + "reads": ["team_joe"], + "writes": ["team_joe"], + }) ``` ## Import @@ -150,7 +150,7 @@ 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['GenericAclAclArgs']] acl: The ACL to apply to the object, including app/owner to properly identify the object. + :param pulumi.Input[Union['GenericAclAclArgs', 'GenericAclAclArgsDict']] acl: The ACL to apply to the object, including app/owner to properly identify the object. Though technically optional, it should be explicitly set for this resource to really be valid. Some objects, such as apps, require specific values for app and owner. Consult the REST API documentation regarding which values to use for app and owner for objects that don't fit in the normal namespace. @@ -171,23 +171,23 @@ def __init__(__self__, my_app = splunk.GenericAcl("my_app", path="apps/local/my_app", - acl=splunk.GenericAclAclArgs( - app="system", - owner="nobody", - reads=["*"], - writes=[ + acl={ + "app": "system", + "owner": "nobody", + "reads": ["*"], + "writes": [ "admin", "power", ], - )) + }) my_dashboard = splunk.GenericAcl("my_dashboard", path="data/ui/views/my_dashboard", - acl=splunk.GenericAclAclArgs( - app="my_app", - owner="joe_user", - reads=["team_joe"], - writes=["team_joe"], - )) + acl={ + "app": "my_app", + "owner": "joe_user", + "reads": ["team_joe"], + "writes": ["team_joe"], + }) ``` ## Import @@ -213,7 +213,7 @@ def __init__(__self__, resource_name: str, *args, **kwargs): def _internal_init(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, - acl: Optional[pulumi.Input[pulumi.InputType['GenericAclAclArgs']]] = None, + acl: Optional[pulumi.Input[Union['GenericAclAclArgs', 'GenericAclAclArgsDict']]] = None, path: Optional[pulumi.Input[str]] = None, __props__=None): opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts) @@ -238,7 +238,7 @@ def _internal_init(__self__, def get(resource_name: str, id: pulumi.Input[str], opts: Optional[pulumi.ResourceOptions] = None, - acl: Optional[pulumi.Input[pulumi.InputType['GenericAclAclArgs']]] = None, + acl: Optional[pulumi.Input[Union['GenericAclAclArgs', 'GenericAclAclArgsDict']]] = None, path: Optional[pulumi.Input[str]] = None) -> 'GenericAcl': """ Get an existing GenericAcl resource's state with the given name, id, and optional extra @@ -247,7 +247,7 @@ 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['GenericAclAclArgs']] acl: The ACL to apply to the object, including app/owner to properly identify the object. + :param pulumi.Input[Union['GenericAclAclArgs', 'GenericAclAclArgsDict']] acl: The ACL to apply to the object, including app/owner to properly identify the object. Though technically optional, it should be explicitly set for this resource to really be valid. Some objects, such as apps, require specific values for app and owner. Consult the REST API documentation regarding which values to use for app and owner for objects that don't fit in the normal namespace. diff --git a/sdk/python/pulumi_splunk/indexes.py b/sdk/python/pulumi_splunk/indexes.py index 7d2afd0d..0f052191 100644 --- a/sdk/python/pulumi_splunk/indexes.py +++ b/sdk/python/pulumi_splunk/indexes.py @@ -1458,7 +1458,7 @@ class Indexes(pulumi.CustomResource): def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, - acl: Optional[pulumi.Input[pulumi.InputType['IndexesAclArgs']]] = None, + acl: Optional[pulumi.Input[Union['IndexesAclArgs', 'IndexesAclArgsDict']]] = None, block_sign_size: Optional[pulumi.Input[int]] = None, bucket_rebuild_memory_hint: Optional[pulumi.Input[str]] = None, cold_path: Optional[pulumi.Input[str]] = None, @@ -1522,7 +1522,7 @@ 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['IndexesAclArgs']] acl: The app/user context that is the namespace for the resource + :param pulumi.Input[Union['IndexesAclArgs', 'IndexesAclArgsDict']] acl: The app/user context that is the namespace for the resource :param pulumi.Input[int] block_sign_size: Controls how many events make up a block for block signatures. If this is set to 0, block signing is disabled for this index.
A recommended value is 100. :param pulumi.Input[str] bucket_rebuild_memory_hint: Suggestion for the bucket rebuild process for the size of the time-series (tsidx) file to make. Caution: This is an advanced parameter. Inappropriate use of this parameter causes splunkd to not start if rebuild is required. Do not set this parameter unless instructed by Splunk Support. @@ -1649,7 +1649,7 @@ def __init__(__self__, resource_name: str, *args, **kwargs): def _internal_init(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, - acl: Optional[pulumi.Input[pulumi.InputType['IndexesAclArgs']]] = None, + acl: Optional[pulumi.Input[Union['IndexesAclArgs', 'IndexesAclArgsDict']]] = None, block_sign_size: Optional[pulumi.Input[int]] = None, bucket_rebuild_memory_hint: Optional[pulumi.Input[str]] = None, cold_path: Optional[pulumi.Input[str]] = None, @@ -1746,7 +1746,7 @@ def _internal_init(__self__, def get(resource_name: str, id: pulumi.Input[str], opts: Optional[pulumi.ResourceOptions] = None, - acl: Optional[pulumi.Input[pulumi.InputType['IndexesAclArgs']]] = None, + acl: Optional[pulumi.Input[Union['IndexesAclArgs', 'IndexesAclArgsDict']]] = None, block_sign_size: Optional[pulumi.Input[int]] = None, bucket_rebuild_memory_hint: Optional[pulumi.Input[str]] = None, cold_path: Optional[pulumi.Input[str]] = None, @@ -1792,7 +1792,7 @@ 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['IndexesAclArgs']] acl: The app/user context that is the namespace for the resource + :param pulumi.Input[Union['IndexesAclArgs', 'IndexesAclArgsDict']] acl: The app/user context that is the namespace for the resource :param pulumi.Input[int] block_sign_size: Controls how many events make up a block for block signatures. If this is set to 0, block signing is disabled for this index.
A recommended value is 100. :param pulumi.Input[str] bucket_rebuild_memory_hint: Suggestion for the bucket rebuild process for the size of the time-series (tsidx) file to make. Caution: This is an advanced parameter. Inappropriate use of this parameter causes splunkd to not start if rebuild is required. Do not set this parameter unless instructed by Splunk Support. diff --git a/sdk/python/pulumi_splunk/inputs_http_event_collector.py b/sdk/python/pulumi_splunk/inputs_http_event_collector.py index 7f62ac51..8ca48f92 100644 --- a/sdk/python/pulumi_splunk/inputs_http_event_collector.py +++ b/sdk/python/pulumi_splunk/inputs_http_event_collector.py @@ -354,7 +354,7 @@ class InputsHttpEventCollector(pulumi.CustomResource): def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, - acl: Optional[pulumi.Input[pulumi.InputType['InputsHttpEventCollectorAclArgs']]] = None, + acl: Optional[pulumi.Input[Union['InputsHttpEventCollectorAclArgs', 'InputsHttpEventCollectorAclArgsDict']]] = None, disabled: Optional[pulumi.Input[bool]] = None, host: Optional[pulumi.Input[str]] = None, index: Optional[pulumi.Input[str]] = None, @@ -388,17 +388,17 @@ def __init__(__self__, sourcetype="new:sourcetype", disabled=False, use_ack=0, - acl=splunk.InputsHttpEventCollectorAclArgs( - owner="user01", - sharing="global", - reads=["admin"], - writes=["admin"], - )) + acl={ + "owner": "user01", + "sharing": "global", + "reads": ["admin"], + "writes": ["admin"], + }) ``` :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. - :param pulumi.Input[pulumi.InputType['InputsHttpEventCollectorAclArgs']] acl: The app/user context that is the namespace for the resource + :param pulumi.Input[Union['InputsHttpEventCollectorAclArgs', 'InputsHttpEventCollectorAclArgsDict']] acl: The app/user context that is the namespace for the resource :param pulumi.Input[bool] disabled: Input disabled indicator :param pulumi.Input[str] host: Default host value for events with this token :param pulumi.Input[str] index: Index to store generated events @@ -438,12 +438,12 @@ def __init__(__self__, sourcetype="new:sourcetype", disabled=False, use_ack=0, - acl=splunk.InputsHttpEventCollectorAclArgs( - owner="user01", - sharing="global", - reads=["admin"], - writes=["admin"], - )) + acl={ + "owner": "user01", + "sharing": "global", + "reads": ["admin"], + "writes": ["admin"], + }) ``` :param str resource_name: The name of the resource. @@ -461,7 +461,7 @@ def __init__(__self__, resource_name: str, *args, **kwargs): def _internal_init(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, - acl: Optional[pulumi.Input[pulumi.InputType['InputsHttpEventCollectorAclArgs']]] = None, + acl: Optional[pulumi.Input[Union['InputsHttpEventCollectorAclArgs', 'InputsHttpEventCollectorAclArgsDict']]] = None, disabled: Optional[pulumi.Input[bool]] = None, host: Optional[pulumi.Input[str]] = None, index: Optional[pulumi.Input[str]] = None, @@ -500,7 +500,7 @@ def _internal_init(__self__, def get(resource_name: str, id: pulumi.Input[str], opts: Optional[pulumi.ResourceOptions] = None, - acl: Optional[pulumi.Input[pulumi.InputType['InputsHttpEventCollectorAclArgs']]] = None, + acl: Optional[pulumi.Input[Union['InputsHttpEventCollectorAclArgs', 'InputsHttpEventCollectorAclArgsDict']]] = None, disabled: Optional[pulumi.Input[bool]] = None, host: Optional[pulumi.Input[str]] = None, index: Optional[pulumi.Input[str]] = None, @@ -517,7 +517,7 @@ 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['InputsHttpEventCollectorAclArgs']] acl: The app/user context that is the namespace for the resource + :param pulumi.Input[Union['InputsHttpEventCollectorAclArgs', 'InputsHttpEventCollectorAclArgsDict']] acl: The app/user context that is the namespace for the resource :param pulumi.Input[bool] disabled: Input disabled indicator :param pulumi.Input[str] host: Default host value for events with this token :param pulumi.Input[str] index: Index to store generated events diff --git a/sdk/python/pulumi_splunk/inputs_monitor.py b/sdk/python/pulumi_splunk/inputs_monitor.py index 585c68aa..0d4f0b4f 100644 --- a/sdk/python/pulumi_splunk/inputs_monitor.py +++ b/sdk/python/pulumi_splunk/inputs_monitor.py @@ -546,7 +546,7 @@ class InputsMonitor(pulumi.CustomResource): def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, - acl: Optional[pulumi.Input[pulumi.InputType['InputsMonitorAclArgs']]] = None, + acl: Optional[pulumi.Input[Union['InputsMonitorAclArgs', 'InputsMonitorAclArgsDict']]] = None, blacklist: Optional[pulumi.Input[str]] = None, crc_salt: Optional[pulumi.Input[str]] = None, disabled: Optional[pulumi.Input[bool]] = None, @@ -582,7 +582,7 @@ 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['InputsMonitorAclArgs']] acl: The app/user context that is the namespace for the resource + :param pulumi.Input[Union['InputsMonitorAclArgs', 'InputsMonitorAclArgsDict']] acl: The app/user context that is the namespace for the resource :param pulumi.Input[str] blacklist: Specify a regular expression for a file path. The file path that matches this regular expression is not indexed. :param pulumi.Input[str] crc_salt: A string that modifies the file tracking identity for files in this input. The magic value invokes special behavior. :param pulumi.Input[bool] disabled: Indicates if input monitoring is disabled. @@ -637,7 +637,7 @@ def __init__(__self__, resource_name: str, *args, **kwargs): def _internal_init(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, - acl: Optional[pulumi.Input[pulumi.InputType['InputsMonitorAclArgs']]] = None, + acl: Optional[pulumi.Input[Union['InputsMonitorAclArgs', 'InputsMonitorAclArgsDict']]] = None, blacklist: Optional[pulumi.Input[str]] = None, crc_salt: Optional[pulumi.Input[str]] = None, disabled: Optional[pulumi.Input[bool]] = None, @@ -688,7 +688,7 @@ def _internal_init(__self__, def get(resource_name: str, id: pulumi.Input[str], opts: Optional[pulumi.ResourceOptions] = None, - acl: Optional[pulumi.Input[pulumi.InputType['InputsMonitorAclArgs']]] = None, + acl: Optional[pulumi.Input[Union['InputsMonitorAclArgs', 'InputsMonitorAclArgsDict']]] = None, blacklist: Optional[pulumi.Input[str]] = None, crc_salt: Optional[pulumi.Input[str]] = None, disabled: Optional[pulumi.Input[bool]] = None, @@ -711,7 +711,7 @@ 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['InputsMonitorAclArgs']] acl: The app/user context that is the namespace for the resource + :param pulumi.Input[Union['InputsMonitorAclArgs', 'InputsMonitorAclArgsDict']] acl: The app/user context that is the namespace for the resource :param pulumi.Input[str] blacklist: Specify a regular expression for a file path. The file path that matches this regular expression is not indexed. :param pulumi.Input[str] crc_salt: A string that modifies the file tracking identity for files in this input. The magic value invokes special behavior. :param pulumi.Input[bool] disabled: Indicates if input monitoring is disabled. diff --git a/sdk/python/pulumi_splunk/inputs_script.py b/sdk/python/pulumi_splunk/inputs_script.py index 76539b64..27fdcdd8 100644 --- a/sdk/python/pulumi_splunk/inputs_script.py +++ b/sdk/python/pulumi_splunk/inputs_script.py @@ -361,7 +361,7 @@ class InputsScript(pulumi.CustomResource): def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, - acl: Optional[pulumi.Input[pulumi.InputType['InputsScriptAclArgs']]] = None, + acl: Optional[pulumi.Input[Union['InputsScriptAclArgs', 'InputsScriptAclArgsDict']]] = None, disabled: Optional[pulumi.Input[bool]] = None, host: Optional[pulumi.Input[str]] = None, index: Optional[pulumi.Input[str]] = None, @@ -390,7 +390,7 @@ 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['InputsScriptAclArgs']] acl: The app/user context that is the namespace for the resource + :param pulumi.Input[Union['InputsScriptAclArgs', 'InputsScriptAclArgsDict']] acl: The app/user context that is the namespace for the resource :param pulumi.Input[bool] disabled: Specifies whether the input script is disabled. :param pulumi.Input[str] host: Sets the host for events from this input. Defaults to whatever host sent the event. :param pulumi.Input[str] index: Sets the index for events from this input. Defaults to the main index. @@ -440,7 +440,7 @@ def __init__(__self__, resource_name: str, *args, **kwargs): def _internal_init(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, - acl: Optional[pulumi.Input[pulumi.InputType['InputsScriptAclArgs']]] = None, + acl: Optional[pulumi.Input[Union['InputsScriptAclArgs', 'InputsScriptAclArgsDict']]] = None, disabled: Optional[pulumi.Input[bool]] = None, host: Optional[pulumi.Input[str]] = None, index: Optional[pulumi.Input[str]] = None, @@ -481,7 +481,7 @@ def _internal_init(__self__, def get(resource_name: str, id: pulumi.Input[str], opts: Optional[pulumi.ResourceOptions] = None, - acl: Optional[pulumi.Input[pulumi.InputType['InputsScriptAclArgs']]] = None, + acl: Optional[pulumi.Input[Union['InputsScriptAclArgs', 'InputsScriptAclArgsDict']]] = None, disabled: Optional[pulumi.Input[bool]] = None, host: Optional[pulumi.Input[str]] = None, index: Optional[pulumi.Input[str]] = None, @@ -498,7 +498,7 @@ 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['InputsScriptAclArgs']] acl: The app/user context that is the namespace for the resource + :param pulumi.Input[Union['InputsScriptAclArgs', 'InputsScriptAclArgsDict']] acl: The app/user context that is the namespace for the resource :param pulumi.Input[bool] disabled: Specifies whether the input script is disabled. :param pulumi.Input[str] host: Sets the host for events from this input. Defaults to whatever host sent the event. :param pulumi.Input[str] index: Sets the index for events from this input. Defaults to the main index. diff --git a/sdk/python/pulumi_splunk/inputs_tcp_cooked.py b/sdk/python/pulumi_splunk/inputs_tcp_cooked.py index a266e073..be3a164c 100644 --- a/sdk/python/pulumi_splunk/inputs_tcp_cooked.py +++ b/sdk/python/pulumi_splunk/inputs_tcp_cooked.py @@ -246,7 +246,7 @@ class InputsTcpCooked(pulumi.CustomResource): def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, - acl: Optional[pulumi.Input[pulumi.InputType['InputsTcpCookedAclArgs']]] = None, + acl: Optional[pulumi.Input[Union['InputsTcpCookedAclArgs', 'InputsTcpCookedAclArgsDict']]] = None, connection_host: Optional[pulumi.Input[str]] = None, disabled: Optional[pulumi.Input[bool]] = None, host: Optional[pulumi.Input[str]] = None, @@ -273,7 +273,7 @@ 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['InputsTcpCookedAclArgs']] acl: The app/user context that is the namespace for the resource + :param pulumi.Input[Union['InputsTcpCookedAclArgs', 'InputsTcpCookedAclArgsDict']] acl: The app/user context that is the namespace for the resource :param pulumi.Input[str] connection_host: Valid values: (ip | dns | none) Set the host for the remote server that is sending data. ip sets the host to the IP address of the remote server sending data. @@ -324,7 +324,7 @@ def __init__(__self__, resource_name: str, *args, **kwargs): def _internal_init(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, - acl: Optional[pulumi.Input[pulumi.InputType['InputsTcpCookedAclArgs']]] = None, + acl: Optional[pulumi.Input[Union['InputsTcpCookedAclArgs', 'InputsTcpCookedAclArgsDict']]] = None, connection_host: Optional[pulumi.Input[str]] = None, disabled: Optional[pulumi.Input[bool]] = None, host: Optional[pulumi.Input[str]] = None, @@ -355,7 +355,7 @@ def _internal_init(__self__, def get(resource_name: str, id: pulumi.Input[str], opts: Optional[pulumi.ResourceOptions] = None, - acl: Optional[pulumi.Input[pulumi.InputType['InputsTcpCookedAclArgs']]] = None, + acl: Optional[pulumi.Input[Union['InputsTcpCookedAclArgs', 'InputsTcpCookedAclArgsDict']]] = None, connection_host: Optional[pulumi.Input[str]] = None, disabled: Optional[pulumi.Input[bool]] = None, host: Optional[pulumi.Input[str]] = None, @@ -368,7 +368,7 @@ 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['InputsTcpCookedAclArgs']] acl: The app/user context that is the namespace for the resource + :param pulumi.Input[Union['InputsTcpCookedAclArgs', 'InputsTcpCookedAclArgsDict']] acl: The app/user context that is the namespace for the resource :param pulumi.Input[str] connection_host: Valid values: (ip | dns | none) Set the host for the remote server that is sending data. ip sets the host to the IP address of the remote server sending data. diff --git a/sdk/python/pulumi_splunk/inputs_tcp_raw.py b/sdk/python/pulumi_splunk/inputs_tcp_raw.py index 415c7726..eeabdd14 100644 --- a/sdk/python/pulumi_splunk/inputs_tcp_raw.py +++ b/sdk/python/pulumi_splunk/inputs_tcp_raw.py @@ -434,7 +434,7 @@ class InputsTcpRaw(pulumi.CustomResource): def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, - acl: Optional[pulumi.Input[pulumi.InputType['InputsTcpRawAclArgs']]] = None, + acl: Optional[pulumi.Input[Union['InputsTcpRawAclArgs', 'InputsTcpRawAclArgsDict']]] = None, connection_host: Optional[pulumi.Input[str]] = None, disabled: Optional[pulumi.Input[bool]] = None, host: Optional[pulumi.Input[str]] = None, @@ -468,7 +468,7 @@ 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['InputsTcpRawAclArgs']] acl: The app/user context that is the namespace for the resource + :param pulumi.Input[Union['InputsTcpRawAclArgs', 'InputsTcpRawAclArgsDict']] acl: The app/user context that is the namespace for the resource :param pulumi.Input[str] connection_host: Valid values: (ip | dns | none) Set the host for the remote server that is sending data. ip sets the host to the IP address of the remote server sending data. @@ -533,7 +533,7 @@ def __init__(__self__, resource_name: str, *args, **kwargs): def _internal_init(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, - acl: Optional[pulumi.Input[pulumi.InputType['InputsTcpRawAclArgs']]] = None, + acl: Optional[pulumi.Input[Union['InputsTcpRawAclArgs', 'InputsTcpRawAclArgsDict']]] = None, connection_host: Optional[pulumi.Input[str]] = None, disabled: Optional[pulumi.Input[bool]] = None, host: Optional[pulumi.Input[str]] = None, @@ -574,7 +574,7 @@ def _internal_init(__self__, def get(resource_name: str, id: pulumi.Input[str], opts: Optional[pulumi.ResourceOptions] = None, - acl: Optional[pulumi.Input[pulumi.InputType['InputsTcpRawAclArgs']]] = None, + acl: Optional[pulumi.Input[Union['InputsTcpRawAclArgs', 'InputsTcpRawAclArgsDict']]] = None, connection_host: Optional[pulumi.Input[str]] = None, disabled: Optional[pulumi.Input[bool]] = None, host: Optional[pulumi.Input[str]] = None, @@ -592,7 +592,7 @@ 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['InputsTcpRawAclArgs']] acl: The app/user context that is the namespace for the resource + :param pulumi.Input[Union['InputsTcpRawAclArgs', 'InputsTcpRawAclArgsDict']] acl: The app/user context that is the namespace for the resource :param pulumi.Input[str] connection_host: Valid values: (ip | dns | none) Set the host for the remote server that is sending data. ip sets the host to the IP address of the remote server sending data. diff --git a/sdk/python/pulumi_splunk/inputs_tcp_splunk_tcp_token.py b/sdk/python/pulumi_splunk/inputs_tcp_splunk_tcp_token.py index 29ca5d83..1f4282db 100644 --- a/sdk/python/pulumi_splunk/inputs_tcp_splunk_tcp_token.py +++ b/sdk/python/pulumi_splunk/inputs_tcp_splunk_tcp_token.py @@ -130,7 +130,7 @@ class InputsTcpSplunkTcpToken(pulumi.CustomResource): def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, - acl: Optional[pulumi.Input[pulumi.InputType['InputsTcpSplunkTcpTokenAclArgs']]] = None, + acl: Optional[pulumi.Input[Union['InputsTcpSplunkTcpTokenAclArgs', 'InputsTcpSplunkTcpTokenAclArgsDict']]] = None, name: Optional[pulumi.Input[str]] = None, token: Optional[pulumi.Input[str]] = None, __props__=None): @@ -152,7 +152,7 @@ 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['InputsTcpSplunkTcpTokenAclArgs']] acl: The app/user context that is the namespace for the resource + :param pulumi.Input[Union['InputsTcpSplunkTcpTokenAclArgs', 'InputsTcpSplunkTcpTokenAclArgsDict']] acl: The app/user context that is the namespace for the resource :param pulumi.Input[str] name: Required. Name for the token to create. :param pulumi.Input[str] token: Optional. Token value to use. If unspecified, a token is generated automatically. """ @@ -193,7 +193,7 @@ def __init__(__self__, resource_name: str, *args, **kwargs): def _internal_init(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, - acl: Optional[pulumi.Input[pulumi.InputType['InputsTcpSplunkTcpTokenAclArgs']]] = None, + acl: Optional[pulumi.Input[Union['InputsTcpSplunkTcpTokenAclArgs', 'InputsTcpSplunkTcpTokenAclArgsDict']]] = None, name: Optional[pulumi.Input[str]] = None, token: Optional[pulumi.Input[str]] = None, __props__=None): @@ -218,7 +218,7 @@ def _internal_init(__self__, def get(resource_name: str, id: pulumi.Input[str], opts: Optional[pulumi.ResourceOptions] = None, - acl: Optional[pulumi.Input[pulumi.InputType['InputsTcpSplunkTcpTokenAclArgs']]] = None, + acl: Optional[pulumi.Input[Union['InputsTcpSplunkTcpTokenAclArgs', 'InputsTcpSplunkTcpTokenAclArgsDict']]] = None, name: Optional[pulumi.Input[str]] = None, token: Optional[pulumi.Input[str]] = None) -> 'InputsTcpSplunkTcpToken': """ @@ -228,7 +228,7 @@ 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['InputsTcpSplunkTcpTokenAclArgs']] acl: The app/user context that is the namespace for the resource + :param pulumi.Input[Union['InputsTcpSplunkTcpTokenAclArgs', 'InputsTcpSplunkTcpTokenAclArgsDict']] acl: The app/user context that is the namespace for the resource :param pulumi.Input[str] name: Required. Name for the token to create. :param pulumi.Input[str] token: Optional. Token value to use. If unspecified, a token is generated automatically. """ diff --git a/sdk/python/pulumi_splunk/inputs_udp.py b/sdk/python/pulumi_splunk/inputs_udp.py index 809c6023..c47956a3 100644 --- a/sdk/python/pulumi_splunk/inputs_udp.py +++ b/sdk/python/pulumi_splunk/inputs_udp.py @@ -442,7 +442,7 @@ class InputsUdp(pulumi.CustomResource): def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, - acl: Optional[pulumi.Input[pulumi.InputType['InputsUdpAclArgs']]] = None, + acl: Optional[pulumi.Input[Union['InputsUdpAclArgs', 'InputsUdpAclArgsDict']]] = None, connection_host: Optional[pulumi.Input[str]] = None, disabled: Optional[pulumi.Input[bool]] = None, host: Optional[pulumi.Input[str]] = None, @@ -476,7 +476,7 @@ 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['InputsUdpAclArgs']] acl: The app/user context that is the namespace for the resource + :param pulumi.Input[Union['InputsUdpAclArgs', 'InputsUdpAclArgsDict']] acl: The app/user context that is the namespace for the resource :param pulumi.Input[str] connection_host: Valid values: (ip | dns | none) Set the host for the remote server that is sending data. ip sets the host to the IP address of the remote server sending data. @@ -535,7 +535,7 @@ def __init__(__self__, resource_name: str, *args, **kwargs): def _internal_init(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, - acl: Optional[pulumi.Input[pulumi.InputType['InputsUdpAclArgs']]] = None, + acl: Optional[pulumi.Input[Union['InputsUdpAclArgs', 'InputsUdpAclArgsDict']]] = None, connection_host: Optional[pulumi.Input[str]] = None, disabled: Optional[pulumi.Input[bool]] = None, host: Optional[pulumi.Input[str]] = None, @@ -578,7 +578,7 @@ def _internal_init(__self__, def get(resource_name: str, id: pulumi.Input[str], opts: Optional[pulumi.ResourceOptions] = None, - acl: Optional[pulumi.Input[pulumi.InputType['InputsUdpAclArgs']]] = None, + acl: Optional[pulumi.Input[Union['InputsUdpAclArgs', 'InputsUdpAclArgsDict']]] = None, connection_host: Optional[pulumi.Input[str]] = None, disabled: Optional[pulumi.Input[bool]] = None, host: Optional[pulumi.Input[str]] = None, @@ -597,7 +597,7 @@ 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['InputsUdpAclArgs']] acl: The app/user context that is the namespace for the resource + :param pulumi.Input[Union['InputsUdpAclArgs', 'InputsUdpAclArgsDict']] acl: The app/user context that is the namespace for the resource :param pulumi.Input[str] connection_host: Valid values: (ip | dns | none) Set the host for the remote server that is sending data. ip sets the host to the IP address of the remote server sending data. diff --git a/sdk/python/pulumi_splunk/outputs_tcp_default.py b/sdk/python/pulumi_splunk/outputs_tcp_default.py index 4ba94021..e46bd6b8 100644 --- a/sdk/python/pulumi_splunk/outputs_tcp_default.py +++ b/sdk/python/pulumi_splunk/outputs_tcp_default.py @@ -370,7 +370,7 @@ class OutputsTcpDefault(pulumi.CustomResource): def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, - acl: Optional[pulumi.Input[pulumi.InputType['OutputsTcpDefaultAclArgs']]] = None, + acl: Optional[pulumi.Input[Union['OutputsTcpDefaultAclArgs', 'OutputsTcpDefaultAclArgsDict']]] = None, default_group: Optional[pulumi.Input[str]] = None, disabled: Optional[pulumi.Input[bool]] = None, drop_events_on_queue_full: Optional[pulumi.Input[int]] = None, @@ -403,7 +403,7 @@ 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['OutputsTcpDefaultAclArgs']] acl: The app/user context that is the namespace for the resource + :param pulumi.Input[Union['OutputsTcpDefaultAclArgs', 'OutputsTcpDefaultAclArgsDict']] acl: The app/user context that is the namespace for the resource :param pulumi.Input[str] default_group: Comma-separated list of one or more target group names, specified later in [tcpout:] stanzas of outputs.conf.spec file. The forwarder sends all data to the specified groups. If you do not want to forward data automatically, do not set this attribute. Can be overridden by an inputs.conf _TCP_ROUTING setting, which in turn can be overridden by a props.conf/transforms.conf modifier. :param pulumi.Input[bool] disabled: Disables default tcpout settings @@ -467,7 +467,7 @@ def __init__(__self__, resource_name: str, *args, **kwargs): def _internal_init(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, - acl: Optional[pulumi.Input[pulumi.InputType['OutputsTcpDefaultAclArgs']]] = None, + acl: Optional[pulumi.Input[Union['OutputsTcpDefaultAclArgs', 'OutputsTcpDefaultAclArgsDict']]] = None, default_group: Optional[pulumi.Input[str]] = None, disabled: Optional[pulumi.Input[bool]] = None, drop_events_on_queue_full: Optional[pulumi.Input[int]] = None, @@ -504,7 +504,7 @@ def _internal_init(__self__, def get(resource_name: str, id: pulumi.Input[str], opts: Optional[pulumi.ResourceOptions] = None, - acl: Optional[pulumi.Input[pulumi.InputType['OutputsTcpDefaultAclArgs']]] = None, + acl: Optional[pulumi.Input[Union['OutputsTcpDefaultAclArgs', 'OutputsTcpDefaultAclArgsDict']]] = None, default_group: Optional[pulumi.Input[str]] = None, disabled: Optional[pulumi.Input[bool]] = None, drop_events_on_queue_full: Optional[pulumi.Input[int]] = None, @@ -520,7 +520,7 @@ 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['OutputsTcpDefaultAclArgs']] acl: The app/user context that is the namespace for the resource + :param pulumi.Input[Union['OutputsTcpDefaultAclArgs', 'OutputsTcpDefaultAclArgsDict']] acl: The app/user context that is the namespace for the resource :param pulumi.Input[str] default_group: Comma-separated list of one or more target group names, specified later in [tcpout:] stanzas of outputs.conf.spec file. The forwarder sends all data to the specified groups. If you do not want to forward data automatically, do not set this attribute. Can be overridden by an inputs.conf _TCP_ROUTING setting, which in turn can be overridden by a props.conf/transforms.conf modifier. :param pulumi.Input[bool] disabled: Disables default tcpout settings diff --git a/sdk/python/pulumi_splunk/outputs_tcp_group.py b/sdk/python/pulumi_splunk/outputs_tcp_group.py index 3f3c087b..8c5443ba 100644 --- a/sdk/python/pulumi_splunk/outputs_tcp_group.py +++ b/sdk/python/pulumi_splunk/outputs_tcp_group.py @@ -425,7 +425,7 @@ class OutputsTcpGroup(pulumi.CustomResource): def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, - acl: Optional[pulumi.Input[pulumi.InputType['OutputsTcpGroupAclArgs']]] = None, + acl: Optional[pulumi.Input[Union['OutputsTcpGroupAclArgs', 'OutputsTcpGroupAclArgsDict']]] = None, compressed: Optional[pulumi.Input[bool]] = None, disabled: Optional[pulumi.Input[bool]] = None, drop_events_on_queue_full: Optional[pulumi.Input[int]] = None, @@ -462,7 +462,7 @@ 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['OutputsTcpGroupAclArgs']] acl: The app/user context that is the namespace for the resource + :param pulumi.Input[Union['OutputsTcpGroupAclArgs', 'OutputsTcpGroupAclArgsDict']] acl: The app/user context that is the namespace for the resource :param pulumi.Input[bool] compressed: If true, forwarder sends compressed data. If set to true, the receiver port must also have compression turned on. :param pulumi.Input[bool] disabled: If true, disables the group. :param pulumi.Input[int] drop_events_on_queue_full: If set to a positive number, wait the specified number of seconds before throwing out all new events until the output queue has space. Defaults to -1 (do not drop events). @@ -528,7 +528,7 @@ def __init__(__self__, resource_name: str, *args, **kwargs): def _internal_init(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, - acl: Optional[pulumi.Input[pulumi.InputType['OutputsTcpGroupAclArgs']]] = None, + acl: Optional[pulumi.Input[Union['OutputsTcpGroupAclArgs', 'OutputsTcpGroupAclArgsDict']]] = None, compressed: Optional[pulumi.Input[bool]] = None, disabled: Optional[pulumi.Input[bool]] = None, drop_events_on_queue_full: Optional[pulumi.Input[int]] = None, @@ -571,7 +571,7 @@ def _internal_init(__self__, def get(resource_name: str, id: pulumi.Input[str], opts: Optional[pulumi.ResourceOptions] = None, - acl: Optional[pulumi.Input[pulumi.InputType['OutputsTcpGroupAclArgs']]] = None, + acl: Optional[pulumi.Input[Union['OutputsTcpGroupAclArgs', 'OutputsTcpGroupAclArgsDict']]] = None, compressed: Optional[pulumi.Input[bool]] = None, disabled: Optional[pulumi.Input[bool]] = None, drop_events_on_queue_full: Optional[pulumi.Input[int]] = None, @@ -589,7 +589,7 @@ 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['OutputsTcpGroupAclArgs']] acl: The app/user context that is the namespace for the resource + :param pulumi.Input[Union['OutputsTcpGroupAclArgs', 'OutputsTcpGroupAclArgsDict']] acl: The app/user context that is the namespace for the resource :param pulumi.Input[bool] compressed: If true, forwarder sends compressed data. If set to true, the receiver port must also have compression turned on. :param pulumi.Input[bool] disabled: If true, disables the group. :param pulumi.Input[int] drop_events_on_queue_full: If set to a positive number, wait the specified number of seconds before throwing out all new events until the output queue has space. Defaults to -1 (do not drop events). diff --git a/sdk/python/pulumi_splunk/outputs_tcp_server.py b/sdk/python/pulumi_splunk/outputs_tcp_server.py index 0b61885f..b417a76a 100644 --- a/sdk/python/pulumi_splunk/outputs_tcp_server.py +++ b/sdk/python/pulumi_splunk/outputs_tcp_server.py @@ -398,7 +398,7 @@ class OutputsTcpServer(pulumi.CustomResource): def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, - acl: Optional[pulumi.Input[pulumi.InputType['OutputsTcpServerAclArgs']]] = None, + acl: Optional[pulumi.Input[Union['OutputsTcpServerAclArgs', 'OutputsTcpServerAclArgsDict']]] = None, disabled: Optional[pulumi.Input[bool]] = None, method: Optional[pulumi.Input[str]] = None, name: Optional[pulumi.Input[str]] = None, @@ -428,7 +428,7 @@ 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['OutputsTcpServerAclArgs']] acl: The app/user context that is the namespace for the resource + :param pulumi.Input[Union['OutputsTcpServerAclArgs', 'OutputsTcpServerAclArgsDict']] acl: The app/user context that is the namespace for the resource :param pulumi.Input[bool] disabled: If true, disables the group. :param pulumi.Input[str] method: Valid values: (clone | balance | autobalance) The data distribution method used when two or more servers exist in the same forwarder group. @@ -480,7 +480,7 @@ def __init__(__self__, resource_name: str, *args, **kwargs): def _internal_init(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, - acl: Optional[pulumi.Input[pulumi.InputType['OutputsTcpServerAclArgs']]] = None, + acl: Optional[pulumi.Input[Union['OutputsTcpServerAclArgs', 'OutputsTcpServerAclArgsDict']]] = None, disabled: Optional[pulumi.Input[bool]] = None, method: Optional[pulumi.Input[str]] = None, name: Optional[pulumi.Input[str]] = None, @@ -523,7 +523,7 @@ def _internal_init(__self__, def get(resource_name: str, id: pulumi.Input[str], opts: Optional[pulumi.ResourceOptions] = None, - acl: Optional[pulumi.Input[pulumi.InputType['OutputsTcpServerAclArgs']]] = None, + acl: Optional[pulumi.Input[Union['OutputsTcpServerAclArgs', 'OutputsTcpServerAclArgsDict']]] = None, disabled: Optional[pulumi.Input[bool]] = None, method: Optional[pulumi.Input[str]] = None, name: Optional[pulumi.Input[str]] = None, @@ -541,7 +541,7 @@ 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['OutputsTcpServerAclArgs']] acl: The app/user context that is the namespace for the resource + :param pulumi.Input[Union['OutputsTcpServerAclArgs', 'OutputsTcpServerAclArgsDict']] acl: The app/user context that is the namespace for the resource :param pulumi.Input[bool] disabled: If true, disables the group. :param pulumi.Input[str] method: Valid values: (clone | balance | autobalance) The data distribution method used when two or more servers exist in the same forwarder group. diff --git a/sdk/python/pulumi_splunk/outputs_tcp_syslog.py b/sdk/python/pulumi_splunk/outputs_tcp_syslog.py index 9a21e369..3951b258 100644 --- a/sdk/python/pulumi_splunk/outputs_tcp_syslog.py +++ b/sdk/python/pulumi_splunk/outputs_tcp_syslog.py @@ -314,7 +314,7 @@ class OutputsTcpSyslog(pulumi.CustomResource): def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, - acl: Optional[pulumi.Input[pulumi.InputType['OutputsTcpSyslogAclArgs']]] = None, + acl: Optional[pulumi.Input[Union['OutputsTcpSyslogAclArgs', 'OutputsTcpSyslogAclArgsDict']]] = None, disabled: Optional[pulumi.Input[bool]] = None, name: Optional[pulumi.Input[str]] = None, priority: Optional[pulumi.Input[int]] = None, @@ -342,7 +342,7 @@ 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['OutputsTcpSyslogAclArgs']] acl: The app/user context that is the namespace for the resource + :param pulumi.Input[Union['OutputsTcpSyslogAclArgs', 'OutputsTcpSyslogAclArgsDict']] acl: The app/user context that is the namespace for the resource :param pulumi.Input[bool] disabled: If true, disables global syslog settings. :param pulumi.Input[str] name: Name of the syslog output group. This is name used when creating syslog configuration in outputs.conf. :param pulumi.Input[int] priority: Sets syslog priority value. The priority value should specified as an integer. See $SPLUNK_HOME/etc/system/README/outputs.conf.spec for details. @@ -395,7 +395,7 @@ def __init__(__self__, resource_name: str, *args, **kwargs): def _internal_init(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, - acl: Optional[pulumi.Input[pulumi.InputType['OutputsTcpSyslogAclArgs']]] = None, + acl: Optional[pulumi.Input[Union['OutputsTcpSyslogAclArgs', 'OutputsTcpSyslogAclArgsDict']]] = None, disabled: Optional[pulumi.Input[bool]] = None, name: Optional[pulumi.Input[str]] = None, priority: Optional[pulumi.Input[int]] = None, @@ -430,7 +430,7 @@ def _internal_init(__self__, def get(resource_name: str, id: pulumi.Input[str], opts: Optional[pulumi.ResourceOptions] = None, - acl: Optional[pulumi.Input[pulumi.InputType['OutputsTcpSyslogAclArgs']]] = None, + acl: Optional[pulumi.Input[Union['OutputsTcpSyslogAclArgs', 'OutputsTcpSyslogAclArgsDict']]] = None, disabled: Optional[pulumi.Input[bool]] = None, name: Optional[pulumi.Input[str]] = None, priority: Optional[pulumi.Input[int]] = None, @@ -445,7 +445,7 @@ 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['OutputsTcpSyslogAclArgs']] acl: The app/user context that is the namespace for the resource + :param pulumi.Input[Union['OutputsTcpSyslogAclArgs', 'OutputsTcpSyslogAclArgsDict']] acl: The app/user context that is the namespace for the resource :param pulumi.Input[bool] disabled: If true, disables global syslog settings. :param pulumi.Input[str] name: Name of the syslog output group. This is name used when creating syslog configuration in outputs.conf. :param pulumi.Input[int] priority: Sets syslog priority value. The priority value should specified as an integer. See $SPLUNK_HOME/etc/system/README/outputs.conf.spec for details. diff --git a/sdk/python/pulumi_splunk/saved_searches.py b/sdk/python/pulumi_splunk/saved_searches.py index 106c1d0b..e2ed3ee0 100644 --- a/sdk/python/pulumi_splunk/saved_searches.py +++ b/sdk/python/pulumi_splunk/saved_searches.py @@ -5337,7 +5337,7 @@ class SavedSearches(pulumi.CustomResource): def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, - acl: Optional[pulumi.Input[pulumi.InputType['SavedSearchesAclArgs']]] = None, + acl: Optional[pulumi.Input[Union['SavedSearchesAclArgs', 'SavedSearchesAclArgsDict']]] = None, action_create_xsoar_incident: Optional[pulumi.Input[str]] = None, action_create_xsoar_incident_param_custom_fields: Optional[pulumi.Input[str]] = None, action_create_xsoar_incident_param_details: Optional[pulumi.Input[str]] = None, @@ -5525,16 +5525,16 @@ def __init__(__self__, dispatch_earliest_time="rt-15m", dispatch_latest_time="rt-0m", cron_schedule="*/5 * * * *", - acl=splunk.SavedSearchesAclArgs( - owner="admin", - sharing="app", - app="launcher", - )) + acl={ + "owner": "admin", + "sharing": "app", + "app": "launcher", + }) ``` :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. - :param pulumi.Input[pulumi.InputType['SavedSearchesAclArgs']] acl: The app/user context that is the namespace for the resource + :param pulumi.Input[Union['SavedSearchesAclArgs', 'SavedSearchesAclArgsDict']] acl: The app/user context that is the namespace for the resource :param pulumi.Input[str] action_create_xsoar_incident: Enable XSOAR alerting (Should by 1 (Enabled) or 0 (Disabled)) :param pulumi.Input[str] action_create_xsoar_incident_param_custom_fields: XSOAR custom incident fields (should be a comma separated list) :param pulumi.Input[str] action_create_xsoar_incident_param_details: XSOAR incident description @@ -5738,11 +5738,11 @@ def __init__(__self__, dispatch_earliest_time="rt-15m", dispatch_latest_time="rt-0m", cron_schedule="*/5 * * * *", - acl=splunk.SavedSearchesAclArgs( - owner="admin", - sharing="app", - app="launcher", - )) + acl={ + "owner": "admin", + "sharing": "app", + "app": "launcher", + }) ``` :param str resource_name: The name of the resource. @@ -5760,7 +5760,7 @@ def __init__(__self__, resource_name: str, *args, **kwargs): def _internal_init(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, - acl: Optional[pulumi.Input[pulumi.InputType['SavedSearchesAclArgs']]] = None, + acl: Optional[pulumi.Input[Union['SavedSearchesAclArgs', 'SavedSearchesAclArgsDict']]] = None, action_create_xsoar_incident: Optional[pulumi.Input[str]] = None, action_create_xsoar_incident_param_custom_fields: Optional[pulumi.Input[str]] = None, action_create_xsoar_incident_param_details: Optional[pulumi.Input[str]] = None, @@ -6110,7 +6110,7 @@ def _internal_init(__self__, def get(resource_name: str, id: pulumi.Input[str], opts: Optional[pulumi.ResourceOptions] = None, - acl: Optional[pulumi.Input[pulumi.InputType['SavedSearchesAclArgs']]] = None, + acl: Optional[pulumi.Input[Union['SavedSearchesAclArgs', 'SavedSearchesAclArgsDict']]] = None, action_create_xsoar_incident: Optional[pulumi.Input[str]] = None, action_create_xsoar_incident_param_custom_fields: Optional[pulumi.Input[str]] = None, action_create_xsoar_incident_param_details: Optional[pulumi.Input[str]] = None, @@ -6284,7 +6284,7 @@ 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['SavedSearchesAclArgs']] acl: The app/user context that is the namespace for the resource + :param pulumi.Input[Union['SavedSearchesAclArgs', 'SavedSearchesAclArgsDict']] acl: The app/user context that is the namespace for the resource :param pulumi.Input[str] action_create_xsoar_incident: Enable XSOAR alerting (Should by 1 (Enabled) or 0 (Disabled)) :param pulumi.Input[str] action_create_xsoar_incident_param_custom_fields: XSOAR custom incident fields (should be a comma separated list) :param pulumi.Input[str] action_create_xsoar_incident_param_details: XSOAR incident description diff --git a/sdk/python/pulumi_splunk/sh_indexes_manager.py b/sdk/python/pulumi_splunk/sh_indexes_manager.py index 2bf917e0..efef3739 100644 --- a/sdk/python/pulumi_splunk/sh_indexes_manager.py +++ b/sdk/python/pulumi_splunk/sh_indexes_manager.py @@ -194,7 +194,7 @@ class ShIndexesManager(pulumi.CustomResource): def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, - acl: Optional[pulumi.Input[pulumi.InputType['ShIndexesManagerAclArgs']]] = None, + acl: Optional[pulumi.Input[Union['ShIndexesManagerAclArgs', 'ShIndexesManagerAclArgsDict']]] = None, datatype: Optional[pulumi.Input[str]] = None, frozen_time_period_in_secs: Optional[pulumi.Input[str]] = None, max_global_raw_data_size_mb: Optional[pulumi.Input[str]] = None, @@ -274,7 +274,7 @@ def __init__(__self__, resource_name: str, *args, **kwargs): def _internal_init(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, - acl: Optional[pulumi.Input[pulumi.InputType['ShIndexesManagerAclArgs']]] = None, + acl: Optional[pulumi.Input[Union['ShIndexesManagerAclArgs', 'ShIndexesManagerAclArgsDict']]] = None, datatype: Optional[pulumi.Input[str]] = None, frozen_time_period_in_secs: Optional[pulumi.Input[str]] = None, max_global_raw_data_size_mb: Optional[pulumi.Input[str]] = None, @@ -303,7 +303,7 @@ def _internal_init(__self__, def get(resource_name: str, id: pulumi.Input[str], opts: Optional[pulumi.ResourceOptions] = None, - acl: Optional[pulumi.Input[pulumi.InputType['ShIndexesManagerAclArgs']]] = None, + acl: Optional[pulumi.Input[Union['ShIndexesManagerAclArgs', 'ShIndexesManagerAclArgsDict']]] = None, datatype: Optional[pulumi.Input[str]] = None, frozen_time_period_in_secs: Optional[pulumi.Input[str]] = None, max_global_raw_data_size_mb: Optional[pulumi.Input[str]] = None,