com.ovhcloud.pulumi.ovh.Iam.IamFunctions Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-ovh Show documentation
Show all versions of pulumi-ovh Show documentation
A Pulumi package for creating and managing OVH resources.
// *** 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.ovhcloud.pulumi.ovh.Iam;
import com.ovhcloud.pulumi.ovh.Iam.inputs.GetPermissionsGroupArgs;
import com.ovhcloud.pulumi.ovh.Iam.inputs.GetPermissionsGroupPlainArgs;
import com.ovhcloud.pulumi.ovh.Iam.inputs.GetPolicyArgs;
import com.ovhcloud.pulumi.ovh.Iam.inputs.GetPolicyPlainArgs;
import com.ovhcloud.pulumi.ovh.Iam.inputs.GetReferenceActionsArgs;
import com.ovhcloud.pulumi.ovh.Iam.inputs.GetReferenceActionsPlainArgs;
import com.ovhcloud.pulumi.ovh.Iam.inputs.GetResourceGroupArgs;
import com.ovhcloud.pulumi.ovh.Iam.inputs.GetResourceGroupPlainArgs;
import com.ovhcloud.pulumi.ovh.Iam.outputs.GetPermissionsGroupResult;
import com.ovhcloud.pulumi.ovh.Iam.outputs.GetPermissionsGroupsResult;
import com.ovhcloud.pulumi.ovh.Iam.outputs.GetPoliciesResult;
import com.ovhcloud.pulumi.ovh.Iam.outputs.GetPolicyResult;
import com.ovhcloud.pulumi.ovh.Iam.outputs.GetReferenceActionsResult;
import com.ovhcloud.pulumi.ovh.Iam.outputs.GetReferenceResourceTypeResult;
import com.ovhcloud.pulumi.ovh.Iam.outputs.GetResourceGroupResult;
import com.ovhcloud.pulumi.ovh.Iam.outputs.GetResourceGroupsResult;
import com.ovhcloud.pulumi.ovh.Utilities;
import com.pulumi.core.Output;
import com.pulumi.core.TypeShape;
import com.pulumi.deployment.Deployment;
import com.pulumi.deployment.InvokeOptions;
import com.pulumi.resources.InvokeArgs;
import java.util.concurrent.CompletableFuture;
public final class IamFunctions {
public static Output getPermissionsGroup(GetPermissionsGroupArgs args) {
return getPermissionsGroup(args, InvokeOptions.Empty);
}
public static CompletableFuture getPermissionsGroupPlain(GetPermissionsGroupPlainArgs args) {
return getPermissionsGroupPlain(args, InvokeOptions.Empty);
}
public static Output getPermissionsGroup(GetPermissionsGroupArgs args, InvokeOptions options) {
return Deployment.getInstance().invoke("ovh:Iam/getPermissionsGroup:getPermissionsGroup", TypeShape.of(GetPermissionsGroupResult.class), args, Utilities.withVersion(options));
}
public static CompletableFuture getPermissionsGroupPlain(GetPermissionsGroupPlainArgs args, InvokeOptions options) {
return Deployment.getInstance().invokeAsync("ovh:Iam/getPermissionsGroup:getPermissionsGroup", TypeShape.of(GetPermissionsGroupResult.class), args, Utilities.withVersion(options));
}
/**
* Use this data source to retrieve an IAM permissions group.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.ovh.Iam.IamFunctions;
* import com.pulumi.ovh.Iam.inputs.GetPermissionsGroupArgs;
* 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) {
* final var website = IamFunctions.getPermissionsGroup(GetPermissionsGroupArgs.builder()
* .urn("urn:v1:eu:permissionsGroup:ovh:controlPanelAccess")
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static Output getPermissionsGroups() {
return getPermissionsGroups(InvokeArgs.Empty, InvokeOptions.Empty);
}
/**
* Use this data source to retrieve an IAM permissions group.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.ovh.Iam.IamFunctions;
* import com.pulumi.ovh.Iam.inputs.GetPermissionsGroupArgs;
* 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) {
* final var website = IamFunctions.getPermissionsGroup(GetPermissionsGroupArgs.builder()
* .urn("urn:v1:eu:permissionsGroup:ovh:controlPanelAccess")
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static CompletableFuture getPermissionsGroupsPlain() {
return getPermissionsGroupsPlain(InvokeArgs.Empty, InvokeOptions.Empty);
}
/**
* Use this data source to retrieve an IAM permissions group.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.ovh.Iam.IamFunctions;
* import com.pulumi.ovh.Iam.inputs.GetPermissionsGroupArgs;
* 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) {
* final var website = IamFunctions.getPermissionsGroup(GetPermissionsGroupArgs.builder()
* .urn("urn:v1:eu:permissionsGroup:ovh:controlPanelAccess")
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static Output getPermissionsGroups(InvokeArgs args) {
return getPermissionsGroups(args, InvokeOptions.Empty);
}
/**
* Use this data source to retrieve an IAM permissions group.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.ovh.Iam.IamFunctions;
* import com.pulumi.ovh.Iam.inputs.GetPermissionsGroupArgs;
* 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) {
* final var website = IamFunctions.getPermissionsGroup(GetPermissionsGroupArgs.builder()
* .urn("urn:v1:eu:permissionsGroup:ovh:controlPanelAccess")
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static CompletableFuture getPermissionsGroupsPlain(InvokeArgs args) {
return getPermissionsGroupsPlain(args, InvokeOptions.Empty);
}
/**
* Use this data source to retrieve an IAM permissions group.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.ovh.Iam.IamFunctions;
* import com.pulumi.ovh.Iam.inputs.GetPermissionsGroupArgs;
* 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) {
* final var website = IamFunctions.getPermissionsGroup(GetPermissionsGroupArgs.builder()
* .urn("urn:v1:eu:permissionsGroup:ovh:controlPanelAccess")
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static Output getPermissionsGroups(InvokeArgs args, InvokeOptions options) {
return Deployment.getInstance().invoke("ovh:Iam/getPermissionsGroups:getPermissionsGroups", TypeShape.of(GetPermissionsGroupsResult.class), args, Utilities.withVersion(options));
}
/**
* Use this data source to retrieve an IAM permissions group.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.ovh.Iam.IamFunctions;
* import com.pulumi.ovh.Iam.inputs.GetPermissionsGroupArgs;
* 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) {
* final var website = IamFunctions.getPermissionsGroup(GetPermissionsGroupArgs.builder()
* .urn("urn:v1:eu:permissionsGroup:ovh:controlPanelAccess")
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static CompletableFuture getPermissionsGroupsPlain(InvokeArgs args, InvokeOptions options) {
return Deployment.getInstance().invokeAsync("ovh:Iam/getPermissionsGroups:getPermissionsGroups", TypeShape.of(GetPermissionsGroupsResult.class), args, Utilities.withVersion(options));
}
/**
* Use this data source to list the existing IAM policies of an account.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.ovh.Iam.IamFunctions;
* 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) {
* final var myPolicies = IamFunctions.getPolicies();
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static Output getPolicies() {
return getPolicies(InvokeArgs.Empty, InvokeOptions.Empty);
}
/**
* Use this data source to list the existing IAM policies of an account.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.ovh.Iam.IamFunctions;
* 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) {
* final var myPolicies = IamFunctions.getPolicies();
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static CompletableFuture getPoliciesPlain() {
return getPoliciesPlain(InvokeArgs.Empty, InvokeOptions.Empty);
}
/**
* Use this data source to list the existing IAM policies of an account.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.ovh.Iam.IamFunctions;
* 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) {
* final var myPolicies = IamFunctions.getPolicies();
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static Output getPolicies(InvokeArgs args) {
return getPolicies(args, InvokeOptions.Empty);
}
/**
* Use this data source to list the existing IAM policies of an account.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.ovh.Iam.IamFunctions;
* 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) {
* final var myPolicies = IamFunctions.getPolicies();
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static CompletableFuture getPoliciesPlain(InvokeArgs args) {
return getPoliciesPlain(args, InvokeOptions.Empty);
}
/**
* Use this data source to list the existing IAM policies of an account.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.ovh.Iam.IamFunctions;
* 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) {
* final var myPolicies = IamFunctions.getPolicies();
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static Output getPolicies(InvokeArgs args, InvokeOptions options) {
return Deployment.getInstance().invoke("ovh:Iam/getPolicies:getPolicies", TypeShape.of(GetPoliciesResult.class), args, Utilities.withVersion(options));
}
/**
* Use this data source to list the existing IAM policies of an account.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.ovh.Iam.IamFunctions;
* 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) {
* final var myPolicies = IamFunctions.getPolicies();
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static CompletableFuture getPoliciesPlain(InvokeArgs args, InvokeOptions options) {
return Deployment.getInstance().invokeAsync("ovh:Iam/getPolicies:getPolicies", TypeShape.of(GetPoliciesResult.class), args, Utilities.withVersion(options));
}
/**
* Use this data source to retrieve am IAM policy.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.ovh.Iam.IamFunctions;
* import com.pulumi.ovh.Iam.inputs.GetPolicyArgs;
* 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) {
* final var myPolicy = IamFunctions.getPolicy(GetPolicyArgs.builder()
* .id("my_policy_id")
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static Output getPolicy(GetPolicyArgs args) {
return getPolicy(args, InvokeOptions.Empty);
}
/**
* Use this data source to retrieve am IAM policy.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.ovh.Iam.IamFunctions;
* import com.pulumi.ovh.Iam.inputs.GetPolicyArgs;
* 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) {
* final var myPolicy = IamFunctions.getPolicy(GetPolicyArgs.builder()
* .id("my_policy_id")
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static CompletableFuture getPolicyPlain(GetPolicyPlainArgs args) {
return getPolicyPlain(args, InvokeOptions.Empty);
}
/**
* Use this data source to retrieve am IAM policy.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.ovh.Iam.IamFunctions;
* import com.pulumi.ovh.Iam.inputs.GetPolicyArgs;
* 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) {
* final var myPolicy = IamFunctions.getPolicy(GetPolicyArgs.builder()
* .id("my_policy_id")
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static Output getPolicy(GetPolicyArgs args, InvokeOptions options) {
return Deployment.getInstance().invoke("ovh:Iam/getPolicy:getPolicy", TypeShape.of(GetPolicyResult.class), args, Utilities.withVersion(options));
}
/**
* Use this data source to retrieve am IAM policy.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.ovh.Iam.IamFunctions;
* import com.pulumi.ovh.Iam.inputs.GetPolicyArgs;
* 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) {
* final var myPolicy = IamFunctions.getPolicy(GetPolicyArgs.builder()
* .id("my_policy_id")
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static CompletableFuture getPolicyPlain(GetPolicyPlainArgs args, InvokeOptions options) {
return Deployment.getInstance().invokeAsync("ovh:Iam/getPolicy:getPolicy", TypeShape.of(GetPolicyResult.class), args, Utilities.withVersion(options));
}
/**
* Use this data source to list the IAM action associated with a resource type.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.ovh.Iam.IamFunctions;
* import com.pulumi.ovh.Iam.inputs.GetReferenceActionsArgs;
* 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) {
* final var vpsActions = IamFunctions.getReferenceActions(GetReferenceActionsArgs.builder()
* .resourceType("vps")
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static Output getReferenceActions(GetReferenceActionsArgs args) {
return getReferenceActions(args, InvokeOptions.Empty);
}
/**
* Use this data source to list the IAM action associated with a resource type.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.ovh.Iam.IamFunctions;
* import com.pulumi.ovh.Iam.inputs.GetReferenceActionsArgs;
* 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) {
* final var vpsActions = IamFunctions.getReferenceActions(GetReferenceActionsArgs.builder()
* .resourceType("vps")
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static CompletableFuture getReferenceActionsPlain(GetReferenceActionsPlainArgs args) {
return getReferenceActionsPlain(args, InvokeOptions.Empty);
}
/**
* Use this data source to list the IAM action associated with a resource type.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.ovh.Iam.IamFunctions;
* import com.pulumi.ovh.Iam.inputs.GetReferenceActionsArgs;
* 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) {
* final var vpsActions = IamFunctions.getReferenceActions(GetReferenceActionsArgs.builder()
* .resourceType("vps")
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static Output getReferenceActions(GetReferenceActionsArgs args, InvokeOptions options) {
return Deployment.getInstance().invoke("ovh:Iam/getReferenceActions:getReferenceActions", TypeShape.of(GetReferenceActionsResult.class), args, Utilities.withVersion(options));
}
/**
* Use this data source to list the IAM action associated with a resource type.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.ovh.Iam.IamFunctions;
* import com.pulumi.ovh.Iam.inputs.GetReferenceActionsArgs;
* 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) {
* final var vpsActions = IamFunctions.getReferenceActions(GetReferenceActionsArgs.builder()
* .resourceType("vps")
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static CompletableFuture getReferenceActionsPlain(GetReferenceActionsPlainArgs args, InvokeOptions options) {
return Deployment.getInstance().invokeAsync("ovh:Iam/getReferenceActions:getReferenceActions", TypeShape.of(GetReferenceActionsResult.class), args, Utilities.withVersion(options));
}
/**
* Use this data source to list all the IAM resource types.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.ovh.Iam.IamFunctions;
* 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) {
* final var types = IamFunctions.getReferenceResourceType();
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static Output getReferenceResourceType() {
return getReferenceResourceType(InvokeArgs.Empty, InvokeOptions.Empty);
}
/**
* Use this data source to list all the IAM resource types.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.ovh.Iam.IamFunctions;
* 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) {
* final var types = IamFunctions.getReferenceResourceType();
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static CompletableFuture getReferenceResourceTypePlain() {
return getReferenceResourceTypePlain(InvokeArgs.Empty, InvokeOptions.Empty);
}
/**
* Use this data source to list all the IAM resource types.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.ovh.Iam.IamFunctions;
* 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) {
* final var types = IamFunctions.getReferenceResourceType();
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static Output getReferenceResourceType(InvokeArgs args) {
return getReferenceResourceType(args, InvokeOptions.Empty);
}
/**
* Use this data source to list all the IAM resource types.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.ovh.Iam.IamFunctions;
* 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) {
* final var types = IamFunctions.getReferenceResourceType();
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static CompletableFuture getReferenceResourceTypePlain(InvokeArgs args) {
return getReferenceResourceTypePlain(args, InvokeOptions.Empty);
}
/**
* Use this data source to list all the IAM resource types.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.ovh.Iam.IamFunctions;
* 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) {
* final var types = IamFunctions.getReferenceResourceType();
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static Output getReferenceResourceType(InvokeArgs args, InvokeOptions options) {
return Deployment.getInstance().invoke("ovh:Iam/getReferenceResourceType:getReferenceResourceType", TypeShape.of(GetReferenceResourceTypeResult.class), args, Utilities.withVersion(options));
}
/**
* Use this data source to list all the IAM resource types.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.ovh.Iam.IamFunctions;
* 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) {
* final var types = IamFunctions.getReferenceResourceType();
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static CompletableFuture getReferenceResourceTypePlain(InvokeArgs args, InvokeOptions options) {
return Deployment.getInstance().invokeAsync("ovh:Iam/getReferenceResourceType:getReferenceResourceType", TypeShape.of(GetReferenceResourceTypeResult.class), args, Utilities.withVersion(options));
}
/**
* Use this data source get details about a resource group.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.ovh.Iam.IamFunctions;
* import com.pulumi.ovh.Iam.inputs.GetResourceGroupArgs;
* 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) {
* final var myResourceGroup = IamFunctions.getResourceGroup(GetResourceGroupArgs.builder()
* .id("my_resource_group_id")
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static Output getResourceGroup(GetResourceGroupArgs args) {
return getResourceGroup(args, InvokeOptions.Empty);
}
/**
* Use this data source get details about a resource group.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.ovh.Iam.IamFunctions;
* import com.pulumi.ovh.Iam.inputs.GetResourceGroupArgs;
* 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) {
* final var myResourceGroup = IamFunctions.getResourceGroup(GetResourceGroupArgs.builder()
* .id("my_resource_group_id")
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static CompletableFuture getResourceGroupPlain(GetResourceGroupPlainArgs args) {
return getResourceGroupPlain(args, InvokeOptions.Empty);
}
/**
* Use this data source get details about a resource group.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.ovh.Iam.IamFunctions;
* import com.pulumi.ovh.Iam.inputs.GetResourceGroupArgs;
* 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) {
* final var myResourceGroup = IamFunctions.getResourceGroup(GetResourceGroupArgs.builder()
* .id("my_resource_group_id")
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static Output getResourceGroup(GetResourceGroupArgs args, InvokeOptions options) {
return Deployment.getInstance().invoke("ovh:Iam/getResourceGroup:getResourceGroup", TypeShape.of(GetResourceGroupResult.class), args, Utilities.withVersion(options));
}
/**
* Use this data source get details about a resource group.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.ovh.Iam.IamFunctions;
* import com.pulumi.ovh.Iam.inputs.GetResourceGroupArgs;
* 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) {
* final var myResourceGroup = IamFunctions.getResourceGroup(GetResourceGroupArgs.builder()
* .id("my_resource_group_id")
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static CompletableFuture getResourceGroupPlain(GetResourceGroupPlainArgs args, InvokeOptions options) {
return Deployment.getInstance().invokeAsync("ovh:Iam/getResourceGroup:getResourceGroup", TypeShape.of(GetResourceGroupResult.class), args, Utilities.withVersion(options));
}
/**
* Use this data source to list the existing IAM policies of an account.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.ovh.Iam.IamFunctions;
* 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) {
* final var myGroups = IamFunctions.getResourceGroups();
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static Output getResourceGroups() {
return getResourceGroups(InvokeArgs.Empty, InvokeOptions.Empty);
}
/**
* Use this data source to list the existing IAM policies of an account.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.ovh.Iam.IamFunctions;
* 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) {
* final var myGroups = IamFunctions.getResourceGroups();
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static CompletableFuture getResourceGroupsPlain() {
return getResourceGroupsPlain(InvokeArgs.Empty, InvokeOptions.Empty);
}
/**
* Use this data source to list the existing IAM policies of an account.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.ovh.Iam.IamFunctions;
* 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) {
* final var myGroups = IamFunctions.getResourceGroups();
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static Output getResourceGroups(InvokeArgs args) {
return getResourceGroups(args, InvokeOptions.Empty);
}
/**
* Use this data source to list the existing IAM policies of an account.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.ovh.Iam.IamFunctions;
* 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) {
* final var myGroups = IamFunctions.getResourceGroups();
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static CompletableFuture getResourceGroupsPlain(InvokeArgs args) {
return getResourceGroupsPlain(args, InvokeOptions.Empty);
}
/**
* Use this data source to list the existing IAM policies of an account.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.ovh.Iam.IamFunctions;
* 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) {
* final var myGroups = IamFunctions.getResourceGroups();
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static Output getResourceGroups(InvokeArgs args, InvokeOptions options) {
return Deployment.getInstance().invoke("ovh:Iam/getResourceGroups:getResourceGroups", TypeShape.of(GetResourceGroupsResult.class), args, Utilities.withVersion(options));
}
/**
* Use this data source to list the existing IAM policies of an account.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.ovh.Iam.IamFunctions;
* 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) {
* final var myGroups = IamFunctions.getResourceGroups();
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static CompletableFuture getResourceGroupsPlain(InvokeArgs args, InvokeOptions options) {
return Deployment.getInstance().invokeAsync("ovh:Iam/getResourceGroups:getResourceGroups", TypeShape.of(GetResourceGroupsResult.class), args, Utilities.withVersion(options));
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy