com.pulumi.splunk.AdminSamlGroups Maven / Gradle / Ivy
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package com.pulumi.splunk;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Export;
import com.pulumi.core.annotations.ResourceType;
import com.pulumi.core.internal.Codegen;
import com.pulumi.splunk.AdminSamlGroupsArgs;
import com.pulumi.splunk.Utilities;
import com.pulumi.splunk.inputs.AdminSamlGroupsState;
import java.lang.String;
import java.util.List;
import javax.annotation.Nullable;
/**
* ## # Resource: splunk.AdminSamlGroups
*
* Manage external groups in an IdP response to internal Splunk roles.
*
* ## Example Usage
* ```java
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.splunk.AdminSamlGroups;
* import com.pulumi.splunk.AdminSamlGroupsArgs;
* import java.util.List;
* import java.util.ArrayList;
* import java.util.Map;
* import java.io.File;
* import java.nio.file.Files;
* import java.nio.file.Paths;
*
* public class App {
* public static void main(String[] args) {
* Pulumi.run(App::stack);
* }
*
* public static void stack(Context ctx) {
* var saml_group = new AdminSamlGroups("saml-group", AdminSamlGroupsArgs.builder()
* .roles(
* "admin",
* "power")
* .build());
*
* }
* }
* ```
*
* ## Import
*
* SAML groups can be imported using the id, e.g.
*
* ```sh
* $ pulumi import splunk:index/adminSamlGroups:AdminSamlGroups saml-group mygroup
* ```
*
*/
@ResourceType(type="splunk:index/adminSamlGroups:AdminSamlGroups")
public class AdminSamlGroups extends com.pulumi.resources.CustomResource {
/**
* The name of the external group.
*
*/
@Export(name="name", refs={String.class}, tree="[0]")
private Output name;
/**
* @return The name of the external group.
*
*/
public Output name() {
return this.name;
}
/**
* List of internal roles assigned to the group.
*
*/
@Export(name="roles", refs={List.class,String.class}, tree="[0,1]")
private Output> roles;
/**
* @return List of internal roles assigned to the group.
*
*/
public Output> roles() {
return this.roles;
}
/**
*
* @param name The _unique_ name of the resulting resource.
*/
public AdminSamlGroups(String name) {
this(name, AdminSamlGroupsArgs.Empty);
}
/**
*
* @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) {
this(name, args, null);
}
/**
*
* @param name The _unique_ name of the resulting resource.
* @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()));
}
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 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();
return com.pulumi.resources.CustomResourceOptions.merge(defaultOptions, options, id);
}
/**
* Get an existing Host resource's state with the given name, ID, and optional extra
* properties used to qualify the lookup.
*
* @param name The _unique_ name of the resulting resource.
* @param id The _unique_ provider ID of the resource to lookup.
* @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) {
return new AdminSamlGroups(name, id, state, options);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy