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

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

AWS Classic v6.31.1 published on Thursday, Apr 18, 2024 by Pulumi

aws.ssoadmin.AccountAssignment

Explore with Pulumi AI

aws logo

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

AWS Classic v6.31.1 published on Thursday, Apr 18, 2024 by Pulumi

    Provides a Single Sign-On (SSO) Account Assignment resource

    Example Usage

    Create AccountAssignment Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new AccountAssignment(name: string, args: AccountAssignmentArgs, opts?: CustomResourceOptions);
    @overload
    def AccountAssignment(resource_name: str,
                          args: AccountAssignmentArgs,
                          opts: Optional[ResourceOptions] = None)
    
    @overload
    def AccountAssignment(resource_name: str,
                          opts: Optional[ResourceOptions] = None,
                          instance_arn: Optional[str] = None,
                          permission_set_arn: Optional[str] = None,
                          principal_id: Optional[str] = None,
                          principal_type: Optional[str] = None,
                          target_id: Optional[str] = None,
                          target_type: Optional[str] = None)
    func NewAccountAssignment(ctx *Context, name string, args AccountAssignmentArgs, opts ...ResourceOption) (*AccountAssignment, error)
    public AccountAssignment(string name, AccountAssignmentArgs args, CustomResourceOptions? opts = null)
    public AccountAssignment(String name, AccountAssignmentArgs args)
    public AccountAssignment(String name, AccountAssignmentArgs args, CustomResourceOptions options)
    
    type: aws:ssoadmin:AccountAssignment
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args AccountAssignmentArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args AccountAssignmentArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args AccountAssignmentArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args AccountAssignmentArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args AccountAssignmentArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Example

    The following reference example uses placeholder values for all input properties.

    var accountAssignmentResource = new Aws.SsoAdmin.AccountAssignment("accountAssignmentResource", new()
    {
        InstanceArn = "string",
        PermissionSetArn = "string",
        PrincipalId = "string",
        PrincipalType = "string",
        TargetId = "string",
        TargetType = "string",
    });
    
    example, err := ssoadmin.NewAccountAssignment(ctx, "accountAssignmentResource", &ssoadmin.AccountAssignmentArgs{
    	InstanceArn:      pulumi.String("string"),
    	PermissionSetArn: pulumi.String("string"),
    	PrincipalId:      pulumi.String("string"),
    	PrincipalType:    pulumi.String("string"),
    	TargetId:         pulumi.String("string"),
    	TargetType:       pulumi.String("string"),
    })
    
    var accountAssignmentResource = new AccountAssignment("accountAssignmentResource", AccountAssignmentArgs.builder()        
        .instanceArn("string")
        .permissionSetArn("string")
        .principalId("string")
        .principalType("string")
        .targetId("string")
        .targetType("string")
        .build());
    
    account_assignment_resource = aws.ssoadmin.AccountAssignment("accountAssignmentResource",
        instance_arn="string",
        permission_set_arn="string",
        principal_id="string",
        principal_type="string",
        target_id="string",
        target_type="string")
    
    const accountAssignmentResource = new aws.ssoadmin.AccountAssignment("accountAssignmentResource", {
        instanceArn: "string",
        permissionSetArn: "string",
        principalId: "string",
        principalType: "string",
        targetId: "string",
        targetType: "string",
    });
    
    type: aws:ssoadmin:AccountAssignment
    properties:
        instanceArn: string
        permissionSetArn: string
        principalId: string
        principalType: string
        targetId: string
        targetType: string
    

    AccountAssignment Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The AccountAssignment resource accepts the following input properties:

    InstanceArn string
    The Amazon Resource Name (ARN) of the SSO Instance.
    PermissionSetArn string
    The Amazon Resource Name (ARN) of the Permission Set that the admin wants to grant the principal access to.
    PrincipalId string
    An identifier for an object in SSO, such as a user or group. PrincipalIds are GUIDs (For example, f81d4fae-7dec-11d0-a765-00a0c91e6bf6).
    PrincipalType string
    The entity type for which the assignment will be created. Valid values: USER, GROUP.
    TargetId string
    An AWS account identifier, typically a 10-12 digit string.
    TargetType string
    The entity type for which the assignment will be created. Valid values: AWS_ACCOUNT.
    InstanceArn string
    The Amazon Resource Name (ARN) of the SSO Instance.
    PermissionSetArn string
    The Amazon Resource Name (ARN) of the Permission Set that the admin wants to grant the principal access to.
    PrincipalId string
    An identifier for an object in SSO, such as a user or group. PrincipalIds are GUIDs (For example, f81d4fae-7dec-11d0-a765-00a0c91e6bf6).
    PrincipalType string
    The entity type for which the assignment will be created. Valid values: USER, GROUP.
    TargetId string
    An AWS account identifier, typically a 10-12 digit string.
    TargetType string
    The entity type for which the assignment will be created. Valid values: AWS_ACCOUNT.
    instanceArn String
    The Amazon Resource Name (ARN) of the SSO Instance.
    permissionSetArn String
    The Amazon Resource Name (ARN) of the Permission Set that the admin wants to grant the principal access to.
    principalId String
    An identifier for an object in SSO, such as a user or group. PrincipalIds are GUIDs (For example, f81d4fae-7dec-11d0-a765-00a0c91e6bf6).
    principalType String
    The entity type for which the assignment will be created. Valid values: USER, GROUP.
    targetId String
    An AWS account identifier, typically a 10-12 digit string.
    targetType String
    The entity type for which the assignment will be created. Valid values: AWS_ACCOUNT.
    instanceArn string
    The Amazon Resource Name (ARN) of the SSO Instance.
    permissionSetArn string
    The Amazon Resource Name (ARN) of the Permission Set that the admin wants to grant the principal access to.
    principalId string
    An identifier for an object in SSO, such as a user or group. PrincipalIds are GUIDs (For example, f81d4fae-7dec-11d0-a765-00a0c91e6bf6).
    principalType string
    The entity type for which the assignment will be created. Valid values: USER, GROUP.
    targetId string
    An AWS account identifier, typically a 10-12 digit string.
    targetType string
    The entity type for which the assignment will be created. Valid values: AWS_ACCOUNT.
    instance_arn str
    The Amazon Resource Name (ARN) of the SSO Instance.
    permission_set_arn str
    The Amazon Resource Name (ARN) of the Permission Set that the admin wants to grant the principal access to.
    principal_id str
    An identifier for an object in SSO, such as a user or group. PrincipalIds are GUIDs (For example, f81d4fae-7dec-11d0-a765-00a0c91e6bf6).
    principal_type str
    The entity type for which the assignment will be created. Valid values: USER, GROUP.
    target_id str
    An AWS account identifier, typically a 10-12 digit string.
    target_type str
    The entity type for which the assignment will be created. Valid values: AWS_ACCOUNT.
    instanceArn String
    The Amazon Resource Name (ARN) of the SSO Instance.
    permissionSetArn String
    The Amazon Resource Name (ARN) of the Permission Set that the admin wants to grant the principal access to.
    principalId String
    An identifier for an object in SSO, such as a user or group. PrincipalIds are GUIDs (For example, f81d4fae-7dec-11d0-a765-00a0c91e6bf6).
    principalType String
    The entity type for which the assignment will be created. Valid values: USER, GROUP.
    targetId String
    An AWS account identifier, typically a 10-12 digit string.
    targetType String
    The entity type for which the assignment will be created. Valid values: AWS_ACCOUNT.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the AccountAssignment resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing AccountAssignment Resource

    Get an existing AccountAssignment resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: AccountAssignmentState, opts?: CustomResourceOptions): AccountAssignment
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            instance_arn: Optional[str] = None,
            permission_set_arn: Optional[str] = None,
            principal_id: Optional[str] = None,
            principal_type: Optional[str] = None,
            target_id: Optional[str] = None,
            target_type: Optional[str] = None) -> AccountAssignment
    func GetAccountAssignment(ctx *Context, name string, id IDInput, state *AccountAssignmentState, opts ...ResourceOption) (*AccountAssignment, error)
    public static AccountAssignment Get(string name, Input<string> id, AccountAssignmentState? state, CustomResourceOptions? opts = null)
    public static AccountAssignment get(String name, Output<String> id, AccountAssignmentState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    InstanceArn string
    The Amazon Resource Name (ARN) of the SSO Instance.
    PermissionSetArn string
    The Amazon Resource Name (ARN) of the Permission Set that the admin wants to grant the principal access to.
    PrincipalId string
    An identifier for an object in SSO, such as a user or group. PrincipalIds are GUIDs (For example, f81d4fae-7dec-11d0-a765-00a0c91e6bf6).
    PrincipalType string
    The entity type for which the assignment will be created. Valid values: USER, GROUP.
    TargetId string
    An AWS account identifier, typically a 10-12 digit string.
    TargetType string
    The entity type for which the assignment will be created. Valid values: AWS_ACCOUNT.
    InstanceArn string
    The Amazon Resource Name (ARN) of the SSO Instance.
    PermissionSetArn string
    The Amazon Resource Name (ARN) of the Permission Set that the admin wants to grant the principal access to.
    PrincipalId string
    An identifier for an object in SSO, such as a user or group. PrincipalIds are GUIDs (For example, f81d4fae-7dec-11d0-a765-00a0c91e6bf6).
    PrincipalType string
    The entity type for which the assignment will be created. Valid values: USER, GROUP.
    TargetId string
    An AWS account identifier, typically a 10-12 digit string.
    TargetType string
    The entity type for which the assignment will be created. Valid values: AWS_ACCOUNT.
    instanceArn String
    The Amazon Resource Name (ARN) of the SSO Instance.
    permissionSetArn String
    The Amazon Resource Name (ARN) of the Permission Set that the admin wants to grant the principal access to.
    principalId String
    An identifier for an object in SSO, such as a user or group. PrincipalIds are GUIDs (For example, f81d4fae-7dec-11d0-a765-00a0c91e6bf6).
    principalType String
    The entity type for which the assignment will be created. Valid values: USER, GROUP.
    targetId String
    An AWS account identifier, typically a 10-12 digit string.
    targetType String
    The entity type for which the assignment will be created. Valid values: AWS_ACCOUNT.
    instanceArn string
    The Amazon Resource Name (ARN) of the SSO Instance.
    permissionSetArn string
    The Amazon Resource Name (ARN) of the Permission Set that the admin wants to grant the principal access to.
    principalId string
    An identifier for an object in SSO, such as a user or group. PrincipalIds are GUIDs (For example, f81d4fae-7dec-11d0-a765-00a0c91e6bf6).
    principalType string
    The entity type for which the assignment will be created. Valid values: USER, GROUP.
    targetId string
    An AWS account identifier, typically a 10-12 digit string.
    targetType string
    The entity type for which the assignment will be created. Valid values: AWS_ACCOUNT.
    instance_arn str
    The Amazon Resource Name (ARN) of the SSO Instance.
    permission_set_arn str
    The Amazon Resource Name (ARN) of the Permission Set that the admin wants to grant the principal access to.
    principal_id str
    An identifier for an object in SSO, such as a user or group. PrincipalIds are GUIDs (For example, f81d4fae-7dec-11d0-a765-00a0c91e6bf6).
    principal_type str
    The entity type for which the assignment will be created. Valid values: USER, GROUP.
    target_id str
    An AWS account identifier, typically a 10-12 digit string.
    target_type str
    The entity type for which the assignment will be created. Valid values: AWS_ACCOUNT.
    instanceArn String
    The Amazon Resource Name (ARN) of the SSO Instance.
    permissionSetArn String
    The Amazon Resource Name (ARN) of the Permission Set that the admin wants to grant the principal access to.
    principalId String
    An identifier for an object in SSO, such as a user or group. PrincipalIds are GUIDs (For example, f81d4fae-7dec-11d0-a765-00a0c91e6bf6).
    principalType String
    The entity type for which the assignment will be created. Valid values: USER, GROUP.
    targetId String
    An AWS account identifier, typically a 10-12 digit string.
    targetType String
    The entity type for which the assignment will be created. Valid values: AWS_ACCOUNT.

    Import

    Using pulumi import, import SSO Account Assignments using the principal_id, principal_type, target_id, target_type, permission_set_arn, instance_arn separated by commas (,). For example:

    $ pulumi import aws:ssoadmin/accountAssignment:AccountAssignment example f81d4fae-7dec-11d0-a765-00a0c91e6bf6,GROUP,1234567890,AWS_ACCOUNT,arn:aws:sso:::permissionSet/ssoins-0123456789abcdef/ps-0123456789abcdef,arn:aws:sso:::instance/ssoins-0123456789abcdef
    

    To learn more about importing existing cloud resources, see Importing resources.

    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.31.1 published on Thursday, Apr 18, 2024 by Pulumi