1. Packages
  2. Volcengine
  3. API Docs
  4. cloud_identity
  5. PermissionSets
Volcengine v0.0.24 published on Tuesday, Jun 25, 2024 by Volcengine

volcengine.cloud_identity.PermissionSets

Explore with Pulumi AI

volcengine logo
Volcengine v0.0.24 published on Tuesday, Jun 25, 2024 by Volcengine

    Use this data source to query detailed information of cloud identity permission sets

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Volcengine = Pulumi.Volcengine;
    
    return await Deployment.RunAsync(() => 
    {
        var fooPermissionSet = new List<Volcengine.Cloud_identity.PermissionSet>();
        for (var rangeIndex = 0; rangeIndex < 2; rangeIndex++)
        {
            var range = new { Value = rangeIndex };
            fooPermissionSet.Add(new Volcengine.Cloud_identity.PermissionSet($"fooPermissionSet-{range.Value}", new()
            {
                Description = "tf",
                SessionDuration = 5000,
                PermissionPolicies = new[]
                {
                    new Volcengine.Cloud_identity.Inputs.PermissionSetPermissionPolicyArgs
                    {
                        PermissionPolicyType = "System",
                        PermissionPolicyName = "AdministratorAccess",
                        InlinePolicyDocument = "",
                    },
                    new Volcengine.Cloud_identity.Inputs.PermissionSetPermissionPolicyArgs
                    {
                        PermissionPolicyType = "System",
                        PermissionPolicyName = "ReadOnlyAccess",
                        InlinePolicyDocument = "",
                    },
                    new Volcengine.Cloud_identity.Inputs.PermissionSetPermissionPolicyArgs
                    {
                        PermissionPolicyType = "Inline",
                        InlinePolicyDocument = "{\"Statement\":[{\"Effect\":\"Allow\",\"Action\":[\"auto_scaling:DescribeScalingGroups\"],\"Resource\":[\"*\"]}]}",
                    },
                },
            }));
        }
        var fooPermissionSets = Volcengine.Cloud_identity.PermissionSets.Invoke(new()
        {
            Ids = fooPermissionSet.Select(__item => __item.Id).ToList(),
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/cloud_identity"
    )
    func main() {
    pulumi.Run(func(ctx *pulumi.Context) error {
    var fooPermissionSet []*cloud_identity.PermissionSet
    for index := 0; index < 2; index++ {
        key0 := index
        _ := index
    __res, err := cloud_identity.NewPermissionSet(ctx, fmt.Sprintf("fooPermissionSet-%v", key0), &cloud_identity.PermissionSetArgs{
    Description: pulumi.String("tf"),
    SessionDuration: pulumi.Int(5000),
    PermissionPolicies: cloud_identity.PermissionSetPermissionPolicyArray{
    &cloud_identity.PermissionSetPermissionPolicyArgs{
    PermissionPolicyType: pulumi.String("System"),
    PermissionPolicyName: pulumi.String("AdministratorAccess"),
    InlinePolicyDocument: pulumi.String(""),
    },
    &cloud_identity.PermissionSetPermissionPolicyArgs{
    PermissionPolicyType: pulumi.String("System"),
    PermissionPolicyName: pulumi.String("ReadOnlyAccess"),
    InlinePolicyDocument: pulumi.String(""),
    },
    &cloud_identity.PermissionSetPermissionPolicyArgs{
    PermissionPolicyType: pulumi.String("Inline"),
    InlinePolicyDocument: pulumi.String("{\"Statement\":[{\"Effect\":\"Allow\",\"Action\":[\"auto_scaling:DescribeScalingGroups\"],\"Resource\":[\"*\"]}]}"),
    },
    },
    })
    if err != nil {
    return err
    }
    fooPermissionSet = append(fooPermissionSet, __res)
    }
    _ = cloud_identity.PermissionSetsOutput(ctx, cloud_identity.PermissionSetsOutputArgs{
    Ids: %!v(PANIC=Format method: fatal: A failure has occurred: unlowered splat expression @ #-functions-volcengine:cloud_identity-permissionSets:PermissionSets.pp:23,9-31),
    }, nil);
    return nil
    })
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.volcengine.cloud_identity.PermissionSet;
    import com.pulumi.volcengine.cloud_identity.PermissionSetArgs;
    import com.pulumi.volcengine.cloud_identity.inputs.PermissionSetPermissionPolicyArgs;
    import com.pulumi.volcengine.cloud_identity.Cloud_identityFunctions;
    import com.pulumi.volcengine.cloud_identity.inputs.PermissionSetsArgs;
    import com.pulumi.codegen.internal.KeyedValue;
    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) {
            for (var i = 0; i < 2; i++) {
                new PermissionSet("fooPermissionSet-" + i, PermissionSetArgs.builder()            
                    .description("tf")
                    .sessionDuration(5000)
                    .permissionPolicies(                
                        PermissionSetPermissionPolicyArgs.builder()
                            .permissionPolicyType("System")
                            .permissionPolicyName("AdministratorAccess")
                            .inlinePolicyDocument("")
                            .build(),
                        PermissionSetPermissionPolicyArgs.builder()
                            .permissionPolicyType("System")
                            .permissionPolicyName("ReadOnlyAccess")
                            .inlinePolicyDocument("")
                            .build(),
                        PermissionSetPermissionPolicyArgs.builder()
                            .permissionPolicyType("Inline")
                            .inlinePolicyDocument("{\"Statement\":[{\"Effect\":\"Allow\",\"Action\":[\"auto_scaling:DescribeScalingGroups\"],\"Resource\":[\"*\"]}]}")
                            .build())
                    .build());
    
            
    }
            final var fooPermissionSets = Cloud_identityFunctions.PermissionSets(PermissionSetsArgs.builder()
                .ids(fooPermissionSet.stream().map(element -> element.id()).collect(toList()))
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_volcengine as volcengine
    
    foo_permission_set = []
    for range in [{"value": i} for i in range(0, 2)]:
        foo_permission_set.append(volcengine.cloud_identity.PermissionSet(f"fooPermissionSet-{range['value']}",
            description="tf",
            session_duration=5000,
            permission_policies=[
                volcengine.cloud_identity.PermissionSetPermissionPolicyArgs(
                    permission_policy_type="System",
                    permission_policy_name="AdministratorAccess",
                    inline_policy_document="",
                ),
                volcengine.cloud_identity.PermissionSetPermissionPolicyArgs(
                    permission_policy_type="System",
                    permission_policy_name="ReadOnlyAccess",
                    inline_policy_document="",
                ),
                volcengine.cloud_identity.PermissionSetPermissionPolicyArgs(
                    permission_policy_type="Inline",
                    inline_policy_document="{\"Statement\":[{\"Effect\":\"Allow\",\"Action\":[\"auto_scaling:DescribeScalingGroups\"],\"Resource\":[\"*\"]}]}",
                ),
            ]))
    foo_permission_sets = volcengine.cloud_identity.permission_sets_output(ids=[__item.id for __item in foo_permission_set])
    
    import * as pulumi from "@pulumi/pulumi";
    import * as volcengine from "@pulumi/volcengine";
    import * as volcengine from "@volcengine/pulumi";
    
    const fooPermissionSet: volcengine.cloud_identity.PermissionSet[] = [];
    for (const range = {value: 0}; range.value < 2; range.value++) {
        fooPermissionSet.push(new volcengine.cloud_identity.PermissionSet(`fooPermissionSet-${range.value}`, {
            description: "tf",
            sessionDuration: 5000,
            permissionPolicies: [
                {
                    permissionPolicyType: "System",
                    permissionPolicyName: "AdministratorAccess",
                    inlinePolicyDocument: "",
                },
                {
                    permissionPolicyType: "System",
                    permissionPolicyName: "ReadOnlyAccess",
                    inlinePolicyDocument: "",
                },
                {
                    permissionPolicyType: "Inline",
                    inlinePolicyDocument: "{\"Statement\":[{\"Effect\":\"Allow\",\"Action\":[\"auto_scaling:DescribeScalingGroups\"],\"Resource\":[\"*\"]}]}",
                },
            ],
        }));
    }
    const fooPermissionSets = volcengine.cloud_identity.PermissionSetsOutput({
        ids: fooPermissionSet.map(__item => __item.id),
    });
    

    Coming soon!

    Using PermissionSets

    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 permissionSets(args: PermissionSetsArgs, opts?: InvokeOptions): Promise<PermissionSetsResult>
    function permissionSetsOutput(args: PermissionSetsOutputArgs, opts?: InvokeOptions): Output<PermissionSetsResult>
    def permission_sets(ids: Optional[Sequence[str]] = None,
                        name_regex: Optional[str] = None,
                        output_file: Optional[str] = None,
                        opts: Optional[InvokeOptions] = None) -> PermissionSetsResult
    def permission_sets_output(ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                        name_regex: Optional[pulumi.Input[str]] = None,
                        output_file: Optional[pulumi.Input[str]] = None,
                        opts: Optional[InvokeOptions] = None) -> Output[PermissionSetsResult]
    func PermissionSets(ctx *Context, args *PermissionSetsArgs, opts ...InvokeOption) (*PermissionSetsResult, error)
    func PermissionSetsOutput(ctx *Context, args *PermissionSetsOutputArgs, opts ...InvokeOption) PermissionSetsResultOutput
    public static class PermissionSets 
    {
        public static Task<PermissionSetsResult> InvokeAsync(PermissionSetsArgs args, InvokeOptions? opts = null)
        public static Output<PermissionSetsResult> Invoke(PermissionSetsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<PermissionSetsResult> permissionSets(PermissionSetsArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: volcengine:cloud_identity:PermissionSets
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Ids List<string>
    A list of cloud identity permission set IDs.
    NameRegex string
    A Name Regex of cloud identity permission set.
    OutputFile string
    File name where to save data source results.
    Ids []string
    A list of cloud identity permission set IDs.
    NameRegex string
    A Name Regex of cloud identity permission set.
    OutputFile string
    File name where to save data source results.
    ids List<String>
    A list of cloud identity permission set IDs.
    nameRegex String
    A Name Regex of cloud identity permission set.
    outputFile String
    File name where to save data source results.
    ids string[]
    A list of cloud identity permission set IDs.
    nameRegex string
    A Name Regex of cloud identity permission set.
    outputFile string
    File name where to save data source results.
    ids Sequence[str]
    A list of cloud identity permission set IDs.
    name_regex str
    A Name Regex of cloud identity permission set.
    output_file str
    File name where to save data source results.
    ids List<String>
    A list of cloud identity permission set IDs.
    nameRegex String
    A Name Regex of cloud identity permission set.
    outputFile String
    File name where to save data source results.

    PermissionSets Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    PermissionSets List<PermissionSetsPermissionSet>
    The collection of query.
    TotalCount int
    The total count of query.
    Ids List<string>
    NameRegex string
    OutputFile string
    Id string
    The provider-assigned unique ID for this managed resource.
    PermissionSets []PermissionSetsPermissionSet
    The collection of query.
    TotalCount int
    The total count of query.
    Ids []string
    NameRegex string
    OutputFile string
    id String
    The provider-assigned unique ID for this managed resource.
    permissionSets List<PermissionSetsPermissionSet>
    The collection of query.
    totalCount Integer
    The total count of query.
    ids List<String>
    nameRegex String
    outputFile String
    id string
    The provider-assigned unique ID for this managed resource.
    permissionSets PermissionSetsPermissionSet[]
    The collection of query.
    totalCount number
    The total count of query.
    ids string[]
    nameRegex string
    outputFile string
    id str
    The provider-assigned unique ID for this managed resource.
    permission_sets Sequence[PermissionSetsPermissionSet]
    The collection of query.
    total_count int
    The total count of query.
    ids Sequence[str]
    name_regex str
    output_file str
    id String
    The provider-assigned unique ID for this managed resource.
    permissionSets List<Property Map>
    The collection of query.
    totalCount Number
    The total count of query.
    ids List<String>
    nameRegex String
    outputFile String

    Supporting Types

    PermissionSetsPermissionSet

    CreatedTime string
    The create time of the cloud identity permission set.
    Description string
    The description of the cloud identity permission set.
    Id string
    The id of the cloud identity permission set.
    Name string
    The name of the cloud identity permission set.
    PermissionPolicies List<PermissionSetsPermissionSetPermissionPolicy>
    The policies of the cloud identity permission set.
    PermissionSetId string
    The id of the cloud identity permission set.
    RelayState string
    The relay state of the cloud identity permission set.
    SessionDuration int
    The session duration of the cloud identity permission set.
    UpdatedTime string
    The updated time of the cloud identity permission set.
    CreatedTime string
    The create time of the cloud identity permission set.
    Description string
    The description of the cloud identity permission set.
    Id string
    The id of the cloud identity permission set.
    Name string
    The name of the cloud identity permission set.
    PermissionPolicies []PermissionSetsPermissionSetPermissionPolicy
    The policies of the cloud identity permission set.
    PermissionSetId string
    The id of the cloud identity permission set.
    RelayState string
    The relay state of the cloud identity permission set.
    SessionDuration int
    The session duration of the cloud identity permission set.
    UpdatedTime string
    The updated time of the cloud identity permission set.
    createdTime String
    The create time of the cloud identity permission set.
    description String
    The description of the cloud identity permission set.
    id String
    The id of the cloud identity permission set.
    name String
    The name of the cloud identity permission set.
    permissionPolicies List<PermissionSetsPermissionSetPermissionPolicy>
    The policies of the cloud identity permission set.
    permissionSetId String
    The id of the cloud identity permission set.
    relayState String
    The relay state of the cloud identity permission set.
    sessionDuration Integer
    The session duration of the cloud identity permission set.
    updatedTime String
    The updated time of the cloud identity permission set.
    createdTime string
    The create time of the cloud identity permission set.
    description string
    The description of the cloud identity permission set.
    id string
    The id of the cloud identity permission set.
    name string
    The name of the cloud identity permission set.
    permissionPolicies PermissionSetsPermissionSetPermissionPolicy[]
    The policies of the cloud identity permission set.
    permissionSetId string
    The id of the cloud identity permission set.
    relayState string
    The relay state of the cloud identity permission set.
    sessionDuration number
    The session duration of the cloud identity permission set.
    updatedTime string
    The updated time of the cloud identity permission set.
    created_time str
    The create time of the cloud identity permission set.
    description str
    The description of the cloud identity permission set.
    id str
    The id of the cloud identity permission set.
    name str
    The name of the cloud identity permission set.
    permission_policies Sequence[PermissionSetsPermissionSetPermissionPolicy]
    The policies of the cloud identity permission set.
    permission_set_id str
    The id of the cloud identity permission set.
    relay_state str
    The relay state of the cloud identity permission set.
    session_duration int
    The session duration of the cloud identity permission set.
    updated_time str
    The updated time of the cloud identity permission set.
    createdTime String
    The create time of the cloud identity permission set.
    description String
    The description of the cloud identity permission set.
    id String
    The id of the cloud identity permission set.
    name String
    The name of the cloud identity permission set.
    permissionPolicies List<Property Map>
    The policies of the cloud identity permission set.
    permissionSetId String
    The id of the cloud identity permission set.
    relayState String
    The relay state of the cloud identity permission set.
    sessionDuration Number
    The session duration of the cloud identity permission set.
    updatedTime String
    The updated time of the cloud identity permission set.

    PermissionSetsPermissionSetPermissionPolicy

    CreateTime string
    The create time of the cloud identity permission set policy.
    PermissionPolicyDocument string
    The document of the cloud identity permission set policy.
    PermissionPolicyName string
    The name of the cloud identity permission set policy.
    PermissionPolicyType string
    The type of the cloud identity permission set policy.
    CreateTime string
    The create time of the cloud identity permission set policy.
    PermissionPolicyDocument string
    The document of the cloud identity permission set policy.
    PermissionPolicyName string
    The name of the cloud identity permission set policy.
    PermissionPolicyType string
    The type of the cloud identity permission set policy.
    createTime String
    The create time of the cloud identity permission set policy.
    permissionPolicyDocument String
    The document of the cloud identity permission set policy.
    permissionPolicyName String
    The name of the cloud identity permission set policy.
    permissionPolicyType String
    The type of the cloud identity permission set policy.
    createTime string
    The create time of the cloud identity permission set policy.
    permissionPolicyDocument string
    The document of the cloud identity permission set policy.
    permissionPolicyName string
    The name of the cloud identity permission set policy.
    permissionPolicyType string
    The type of the cloud identity permission set policy.
    create_time str
    The create time of the cloud identity permission set policy.
    permission_policy_document str
    The document of the cloud identity permission set policy.
    permission_policy_name str
    The name of the cloud identity permission set policy.
    permission_policy_type str
    The type of the cloud identity permission set policy.
    createTime String
    The create time of the cloud identity permission set policy.
    permissionPolicyDocument String
    The document of the cloud identity permission set policy.
    permissionPolicyName String
    The name of the cloud identity permission set policy.
    permissionPolicyType String
    The type of the cloud identity permission set policy.

    Package Details

    Repository
    volcengine volcengine/pulumi-volcengine
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the volcengine Terraform Provider.
    volcengine logo
    Volcengine v0.0.24 published on Tuesday, Jun 25, 2024 by Volcengine