1. Packages
  2. AWS Classic
  3. API Docs
  4. ssoadmin
  5. getApplicationAssignments

Try AWS Native preview for resources not in the classic version.

AWS Classic v6.32.0 published on Friday, Apr 19, 2024 by Pulumi

aws.ssoadmin.getApplicationAssignments

Explore with Pulumi AI

aws logo

Try AWS Native preview for resources not in the classic version.

AWS Classic v6.32.0 published on Friday, Apr 19, 2024 by Pulumi

    Data source for managing AWS SSO Admin Application Assignments.

    Example Usage

    Basic Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    const example = aws.ssoadmin.getApplicationAssignments({
        applicationArn: exampleAwsSsoadminApplication.applicationArn,
    });
    
    import pulumi
    import pulumi_aws as aws
    
    example = aws.ssoadmin.get_application_assignments(application_arn=example_aws_ssoadmin_application["applicationArn"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/ssoadmin"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := ssoadmin.GetApplicationAssignments(ctx, &ssoadmin.GetApplicationAssignmentsArgs{
    			ApplicationArn: exampleAwsSsoadminApplication.ApplicationArn,
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Aws = Pulumi.Aws;
    
    return await Deployment.RunAsync(() => 
    {
        var example = Aws.SsoAdmin.GetApplicationAssignments.Invoke(new()
        {
            ApplicationArn = exampleAwsSsoadminApplication.ApplicationArn,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.aws.ssoadmin.SsoadminFunctions;
    import com.pulumi.aws.ssoadmin.inputs.GetApplicationAssignmentsArgs;
    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 example = SsoadminFunctions.getApplicationAssignments(GetApplicationAssignmentsArgs.builder()
                .applicationArn(exampleAwsSsoadminApplication.applicationArn())
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          Function: aws:ssoadmin:getApplicationAssignments
          Arguments:
            applicationArn: ${exampleAwsSsoadminApplication.applicationArn}
    

    Using getApplicationAssignments

    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 getApplicationAssignments(args: GetApplicationAssignmentsArgs, opts?: InvokeOptions): Promise<GetApplicationAssignmentsResult>
    function getApplicationAssignmentsOutput(args: GetApplicationAssignmentsOutputArgs, opts?: InvokeOptions): Output<GetApplicationAssignmentsResult>
    def get_application_assignments(application_arn: Optional[str] = None,
                                    application_assignments: Optional[Sequence[GetApplicationAssignmentsApplicationAssignment]] = None,
                                    opts: Optional[InvokeOptions] = None) -> GetApplicationAssignmentsResult
    def get_application_assignments_output(application_arn: Optional[pulumi.Input[str]] = None,
                                    application_assignments: Optional[pulumi.Input[Sequence[pulumi.Input[GetApplicationAssignmentsApplicationAssignmentArgs]]]] = None,
                                    opts: Optional[InvokeOptions] = None) -> Output[GetApplicationAssignmentsResult]
    func GetApplicationAssignments(ctx *Context, args *GetApplicationAssignmentsArgs, opts ...InvokeOption) (*GetApplicationAssignmentsResult, error)
    func GetApplicationAssignmentsOutput(ctx *Context, args *GetApplicationAssignmentsOutputArgs, opts ...InvokeOption) GetApplicationAssignmentsResultOutput

    > Note: This function is named GetApplicationAssignments in the Go SDK.

    public static class GetApplicationAssignments 
    {
        public static Task<GetApplicationAssignmentsResult> InvokeAsync(GetApplicationAssignmentsArgs args, InvokeOptions? opts = null)
        public static Output<GetApplicationAssignmentsResult> Invoke(GetApplicationAssignmentsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetApplicationAssignmentsResult> getApplicationAssignments(GetApplicationAssignmentsArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: aws:ssoadmin/getApplicationAssignments:getApplicationAssignments
      arguments:
        # arguments dictionary

    The following arguments are supported:

    ApplicationArn string
    ARN of the application.
    ApplicationAssignments List<GetApplicationAssignmentsApplicationAssignment>
    List of principals assigned to the application. See the application_assignments attribute reference below.
    ApplicationArn string
    ARN of the application.
    ApplicationAssignments []GetApplicationAssignmentsApplicationAssignment
    List of principals assigned to the application. See the application_assignments attribute reference below.
    applicationArn String
    ARN of the application.
    applicationAssignments List<GetApplicationAssignmentsApplicationAssignment>
    List of principals assigned to the application. See the application_assignments attribute reference below.
    applicationArn string
    ARN of the application.
    applicationAssignments GetApplicationAssignmentsApplicationAssignment[]
    List of principals assigned to the application. See the application_assignments attribute reference below.
    application_arn str
    ARN of the application.
    application_assignments Sequence[GetApplicationAssignmentsApplicationAssignment]
    List of principals assigned to the application. See the application_assignments attribute reference below.
    applicationArn String
    ARN of the application.
    applicationAssignments List<Property Map>
    List of principals assigned to the application. See the application_assignments attribute reference below.

    getApplicationAssignments Result

    The following output properties are available:

    ApplicationArn string
    ARN of the application.
    Id string
    ApplicationAssignments List<GetApplicationAssignmentsApplicationAssignment>
    List of principals assigned to the application. See the application_assignments attribute reference below.
    ApplicationArn string
    ARN of the application.
    Id string
    ApplicationAssignments []GetApplicationAssignmentsApplicationAssignment
    List of principals assigned to the application. See the application_assignments attribute reference below.
    applicationArn String
    ARN of the application.
    id String
    applicationAssignments List<GetApplicationAssignmentsApplicationAssignment>
    List of principals assigned to the application. See the application_assignments attribute reference below.
    applicationArn string
    ARN of the application.
    id string
    applicationAssignments GetApplicationAssignmentsApplicationAssignment[]
    List of principals assigned to the application. See the application_assignments attribute reference below.
    application_arn str
    ARN of the application.
    id str
    application_assignments Sequence[GetApplicationAssignmentsApplicationAssignment]
    List of principals assigned to the application. See the application_assignments attribute reference below.
    applicationArn String
    ARN of the application.
    id String
    applicationAssignments List<Property Map>
    List of principals assigned to the application. See the application_assignments attribute reference below.

    Supporting Types

    GetApplicationAssignmentsApplicationAssignment

    ApplicationArn string
    ARN of the application.
    PrincipalId string
    An identifier for an object in IAM Identity Center, such as a user or group.
    PrincipalType string
    Entity type for which the assignment will be created. Valid values are USER or GROUP.
    ApplicationArn string
    ARN of the application.
    PrincipalId string
    An identifier for an object in IAM Identity Center, such as a user or group.
    PrincipalType string
    Entity type for which the assignment will be created. Valid values are USER or GROUP.
    applicationArn String
    ARN of the application.
    principalId String
    An identifier for an object in IAM Identity Center, such as a user or group.
    principalType String
    Entity type for which the assignment will be created. Valid values are USER or GROUP.
    applicationArn string
    ARN of the application.
    principalId string
    An identifier for an object in IAM Identity Center, such as a user or group.
    principalType string
    Entity type for which the assignment will be created. Valid values are USER or GROUP.
    application_arn str
    ARN of the application.
    principal_id str
    An identifier for an object in IAM Identity Center, such as a user or group.
    principal_type str
    Entity type for which the assignment will be created. Valid values are USER or GROUP.
    applicationArn String
    ARN of the application.
    principalId String
    An identifier for an object in IAM Identity Center, such as a user or group.
    principalType String
    Entity type for which the assignment will be created. Valid values are USER or GROUP.

    Package Details

    Repository
    AWS Classic pulumi/pulumi-aws
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the aws Terraform Provider.
    aws logo

    Try AWS Native preview for resources not in the classic version.

    AWS Classic v6.32.0 published on Friday, Apr 19, 2024 by Pulumi