outscale 1.1.0 published on Thursday, Apr 3, 2025 by outscale
outscale.getPoliciesLinkedToUser
Explore with Pulumi AI
Provides information about a link policy to user.
For more information on this resource, see the User Guide.
For more information on this resource actions, see the API documentation.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as outscale from "@pulumi/outscale";
const linkedPolicy01 = outscale.getPoliciesLinkedToUser({
    userName: "user_name",
});
import pulumi
import pulumi_outscale as outscale
linked_policy01 = outscale.get_policies_linked_to_user(user_name="user_name")
package main
import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/outscale/outscale"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := outscale.GetPoliciesLinkedToUser(ctx, &outscale.GetPoliciesLinkedToUserArgs{
			UserName: "user_name",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Outscale = Pulumi.Outscale;
return await Deployment.RunAsync(() => 
{
    var linkedPolicy01 = Outscale.GetPoliciesLinkedToUser.Invoke(new()
    {
        UserName = "user_name",
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.outscale.OutscaleFunctions;
import com.pulumi.outscale.inputs.GetPoliciesLinkedToUserArgs;
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 linkedPolicy01 = OutscaleFunctions.getPoliciesLinkedToUser(GetPoliciesLinkedToUserArgs.builder()
            .userName("user_name")
            .build());
    }
}
variables:
  linkedPolicy01:
    fn::invoke:
      function: outscale:getPoliciesLinkedToUser
      arguments:
        userName: user_name
Using getPoliciesLinkedToUser
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getPoliciesLinkedToUser(args: GetPoliciesLinkedToUserArgs, opts?: InvokeOptions): Promise<GetPoliciesLinkedToUserResult>
function getPoliciesLinkedToUserOutput(args: GetPoliciesLinkedToUserOutputArgs, opts?: InvokeOptions): Output<GetPoliciesLinkedToUserResult>def get_policies_linked_to_user(id: Optional[str] = None,
                                user_name: Optional[str] = None,
                                opts: Optional[InvokeOptions] = None) -> GetPoliciesLinkedToUserResult
def get_policies_linked_to_user_output(id: Optional[pulumi.Input[str]] = None,
                                user_name: Optional[pulumi.Input[str]] = None,
                                opts: Optional[InvokeOptions] = None) -> Output[GetPoliciesLinkedToUserResult]func GetPoliciesLinkedToUser(ctx *Context, args *GetPoliciesLinkedToUserArgs, opts ...InvokeOption) (*GetPoliciesLinkedToUserResult, error)
func GetPoliciesLinkedToUserOutput(ctx *Context, args *GetPoliciesLinkedToUserOutputArgs, opts ...InvokeOption) GetPoliciesLinkedToUserResultOutput> Note: This function is named GetPoliciesLinkedToUser in the Go SDK.
public static class GetPoliciesLinkedToUser 
{
    public static Task<GetPoliciesLinkedToUserResult> InvokeAsync(GetPoliciesLinkedToUserArgs args, InvokeOptions? opts = null)
    public static Output<GetPoliciesLinkedToUserResult> Invoke(GetPoliciesLinkedToUserInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetPoliciesLinkedToUserResult> getPoliciesLinkedToUser(GetPoliciesLinkedToUserArgs args, InvokeOptions options)
public static Output<GetPoliciesLinkedToUserResult> getPoliciesLinkedToUser(GetPoliciesLinkedToUserArgs args, InvokeOptions options)
fn::invoke:
  function: outscale:index/getPoliciesLinkedToUser:getPoliciesLinkedToUser
  arguments:
    # arguments dictionaryThe following arguments are supported:
getPoliciesLinkedToUser Result
The following output properties are available:
- Id string
 - Policies
List<Get
Policies Linked To User Policy>  - User
Name string 
- Id string
 - Policies
[]Get
Policies Linked To User Policy  - User
Name string 
- id String
 - policies
List<Get
Policies Linked To User Policy>  - user
Name String 
- id string
 - policies
Get
Policies Linked To User Policy[]  - user
Name string 
- id String
 - policies List<Property Map>
 - user
Name String 
Supporting Types
GetPoliciesLinkedToUserPolicy     
- Creation
Date string - The date and time (UTC) at which the linked policy was created.
 - Last
Modification stringDate  - The date and time (UTC) at which the linked policy was last modified.
 - Orn string
 - The OUTSCALE Resource Name (ORN) of the policy. For more information, see Resource Identifiers.
 - Policy
Id string - The ID of the policy.
 - Policy
Name string - The name of the policy.
 
- Creation
Date string - The date and time (UTC) at which the linked policy was created.
 - Last
Modification stringDate  - The date and time (UTC) at which the linked policy was last modified.
 - Orn string
 - The OUTSCALE Resource Name (ORN) of the policy. For more information, see Resource Identifiers.
 - Policy
Id string - The ID of the policy.
 - Policy
Name string - The name of the policy.
 
- creation
Date String - The date and time (UTC) at which the linked policy was created.
 - last
Modification StringDate  - The date and time (UTC) at which the linked policy was last modified.
 - orn String
 - The OUTSCALE Resource Name (ORN) of the policy. For more information, see Resource Identifiers.
 - policy
Id String - The ID of the policy.
 - policy
Name String - The name of the policy.
 
- creation
Date string - The date and time (UTC) at which the linked policy was created.
 - last
Modification stringDate  - The date and time (UTC) at which the linked policy was last modified.
 - orn string
 - The OUTSCALE Resource Name (ORN) of the policy. For more information, see Resource Identifiers.
 - policy
Id string - The ID of the policy.
 - policy
Name string - The name of the policy.
 
- creation_
date str - The date and time (UTC) at which the linked policy was created.
 - last_
modification_ strdate  - The date and time (UTC) at which the linked policy was last modified.
 - orn str
 - The OUTSCALE Resource Name (ORN) of the policy. For more information, see Resource Identifiers.
 - policy_
id str - The ID of the policy.
 - policy_
name str - The name of the policy.
 
- creation
Date String - The date and time (UTC) at which the linked policy was created.
 - last
Modification StringDate  - The date and time (UTC) at which the linked policy was last modified.
 - orn String
 - The OUTSCALE Resource Name (ORN) of the policy. For more information, see Resource Identifiers.
 - policy
Id String - The ID of the policy.
 - policy
Name String - The name of the policy.
 
Package Details
- Repository
 - outscale outscale/terraform-provider-outscale
 - License
 - Notes
 - This Pulumi package is based on the 
outscaleTerraform Provider.