1. Registry
  2. Packages
  3. AWS
  4. API Docs
  5. quicksight
  6. AccountCustomPermission
Viewing docs for AWS v7.55.0
published on Friday, Nov 13, 2026 by Pulumi
aws logo aws logo
Viewing docs for AWS v7.55.0
published on Friday, Nov 13, 2026 by Pulumi

    Manages an AWS QuickSight Account Custom Permission.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    const example = new aws.quicksight.CustomPermissions("example", {
        capabilities: {
            printReports: "DENY",
            shareDashboards: "DENY",
        },
        customPermissionsName: "example-permissions",
    });
    const exampleAccountCustomPermission = new aws.quicksight.AccountCustomPermission("example", {customPermissionsName: example.customPermissionsName});
    
    import pulumi
    import pulumi_aws as aws
    
    example = aws.quicksight.CustomPermissions("example",
        capabilities={
            "print_reports": "DENY",
            "share_dashboards": "DENY",
        },
        custom_permissions_name="example-permissions")
    example_account_custom_permission = aws.quicksight.AccountCustomPermission("example", custom_permissions_name=example.custom_permissions_name)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/quicksight"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		example, err := quicksight.NewCustomPermissions(ctx, "example", &quicksight.CustomPermissionsArgs{
    			Capabilities: &quicksight.CustomPermissionsCapabilitiesArgs{
    				PrintReports:    pulumi.String("DENY"),
    				ShareDashboards: pulumi.String("DENY"),
    			},
    			CustomPermissionsName: pulumi.String("example-permissions"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = quicksight.NewAccountCustomPermission(ctx, "example", &quicksight.AccountCustomPermissionArgs{
    			CustomPermissionsName: example.CustomPermissionsName,
    		})
    		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 = new Aws.Quicksight.CustomPermissions("example", new()
        {
            Capabilities = new Aws.Quicksight.Inputs.CustomPermissionsCapabilitiesArgs
            {
                PrintReports = "DENY",
                ShareDashboards = "DENY",
            },
            CustomPermissionsName = "example-permissions",
        });
    
        var exampleAccountCustomPermission = new Aws.Quicksight.AccountCustomPermission("example", new()
        {
            CustomPermissionsName = example.CustomPermissionsName,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.aws.quicksight.CustomPermissions;
    import com.pulumi.aws.quicksight.CustomPermissionsArgs;
    import com.pulumi.aws.quicksight.inputs.CustomPermissionsCapabilitiesArgs;
    import com.pulumi.aws.quicksight.AccountCustomPermission;
    import com.pulumi.aws.quicksight.AccountCustomPermissionArgs;
    import java.util.ArrayList;
    import java.util.Arrays;
    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) {
            var example = new CustomPermissions("example", CustomPermissionsArgs.builder()
                .capabilities(CustomPermissionsCapabilitiesArgs.builder()
                    .printReports("DENY")
                    .shareDashboards("DENY")
                    .build())
                .customPermissionsName("example-permissions")
                .build());
    
            var exampleAccountCustomPermission = new AccountCustomPermission("exampleAccountCustomPermission", AccountCustomPermissionArgs.builder()
                .customPermissionsName(example.customPermissionsName())
                .build());
    
        }
    }
    
    resources:
      example:
        type: aws:quicksight:CustomPermissions
        properties:
          capabilities:
            printReports: DENY
            shareDashboards: DENY
          customPermissionsName: example-permissions
      exampleAccountCustomPermission:
        type: aws:quicksight:AccountCustomPermission
        name: example
        properties:
          customPermissionsName: ${example.customPermissionsName}
    
    terraform {
      required_providers {
        aws = {
          source = "pulumi/aws"
        }
      }
    }
    
    resource "aws_quicksight_custom_permissions" "example" {
      lifecycle {
        create_before_destroy = true
      }
      capabilities {
        print_reports    = "DENY"
        share_dashboards = "DENY"
      }
      custom_permissions_name = "example-permissions"
    }
    resource "aws_quicksight_account_custom_permission" "example" {
      lifecycle {
        create_before_destroy = true
      }
      custom_permissions_name = aws_quicksight_custom_permissions.example.custom_permissions_name
    }
    

    Create AccountCustomPermission Resource

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

    Constructor syntax

    new AccountCustomPermission(name: string, args: AccountCustomPermissionArgs, opts?: CustomResourceOptions);
    @overload
    def AccountCustomPermission(resource_name: str,
                                args: AccountCustomPermissionArgs,
                                opts: Optional[ResourceOptions] = None)
    
    @overload
    def AccountCustomPermission(resource_name: str,
                                opts: Optional[ResourceOptions] = None,
                                custom_permissions_name: Optional[str] = None,
                                aws_account_id: Optional[str] = None,
                                region: Optional[str] = None)
    func NewAccountCustomPermission(ctx *Context, name string, args AccountCustomPermissionArgs, opts ...ResourceOption) (*AccountCustomPermission, error)
    public AccountCustomPermission(string name, AccountCustomPermissionArgs args, CustomResourceOptions? opts = null)
    public AccountCustomPermission(String name, AccountCustomPermissionArgs args)
    public AccountCustomPermission(String name, AccountCustomPermissionArgs args, CustomResourceOptions options)
    
    type: aws:quicksight:AccountCustomPermission
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "aws_quicksight_account_custom_permission" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args AccountCustomPermissionArgs
    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 AccountCustomPermissionArgs
    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 AccountCustomPermissionArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args AccountCustomPermissionArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args AccountCustomPermissionArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

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

    var accountCustomPermissionResource = new Aws.Quicksight.AccountCustomPermission("accountCustomPermissionResource", new()
    {
        CustomPermissionsName = "string",
        AwsAccountId = "string",
        Region = "string",
    });
    
    example, err := quicksight.NewAccountCustomPermission(ctx, "accountCustomPermissionResource", &quicksight.AccountCustomPermissionArgs{
    	CustomPermissionsName: pulumi.String("string"),
    	AwsAccountId:          pulumi.String("string"),
    	Region:                pulumi.String("string"),
    })
    
    resource "aws_quicksight_account_custom_permission" "accountCustomPermissionResource" {
      lifecycle {
        create_before_destroy = true
      }
      custom_permissions_name = "string"
      aws_account_id          = "string"
      region                  = "string"
    }
    
    var accountCustomPermissionResource = new AccountCustomPermission("accountCustomPermissionResource", AccountCustomPermissionArgs.builder()
        .customPermissionsName("string")
        .awsAccountId("string")
        .region("string")
        .build());
    
    account_custom_permission_resource = aws.quicksight.AccountCustomPermission("accountCustomPermissionResource",
        custom_permissions_name="string",
        aws_account_id="string",
        region="string")
    
    const accountCustomPermissionResource = new aws.quicksight.AccountCustomPermission("accountCustomPermissionResource", {
        customPermissionsName: "string",
        awsAccountId: "string",
        region: "string",
    });
    
    type: aws:quicksight:AccountCustomPermission
    properties:
        awsAccountId: string
        customPermissionsName: string
        region: string
    

    AccountCustomPermission Resource Properties

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

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The AccountCustomPermission resource accepts the following input properties:

    CustomPermissionsName string

    Name of the custom permissions profile to apply to the account.

    The following arguments are optional:

    AwsAccountId string
    AWS account ID. Defaults to the account ID determined from the provider configuration.
    Region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    CustomPermissionsName string

    Name of the custom permissions profile to apply to the account.

    The following arguments are optional:

    AwsAccountId string
    AWS account ID. Defaults to the account ID determined from the provider configuration.
    Region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    custom_permissions_name string

    Name of the custom permissions profile to apply to the account.

    The following arguments are optional:

    aws_account_id string
    AWS account ID. Defaults to the account ID determined from the provider configuration.
    region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    customPermissionsName String

    Name of the custom permissions profile to apply to the account.

    The following arguments are optional:

    awsAccountId String
    AWS account ID. Defaults to the account ID determined from the provider configuration.
    region String
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    customPermissionsName string

    Name of the custom permissions profile to apply to the account.

    The following arguments are optional:

    awsAccountId string
    AWS account ID. Defaults to the account ID determined from the provider configuration.
    region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    custom_permissions_name str

    Name of the custom permissions profile to apply to the account.

    The following arguments are optional:

    aws_account_id str
    AWS account ID. Defaults to the account ID determined from the provider configuration.
    region str
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    customPermissionsName String

    Name of the custom permissions profile to apply to the account.

    The following arguments are optional:

    awsAccountId String
    AWS account ID. Defaults to the account ID determined from the provider configuration.
    region String
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the AccountCustomPermission 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 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 AccountCustomPermission Resource

    Get an existing AccountCustomPermission 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?: AccountCustomPermissionState, opts?: CustomResourceOptions): AccountCustomPermission
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            aws_account_id: Optional[str] = None,
            custom_permissions_name: Optional[str] = None,
            region: Optional[str] = None) -> AccountCustomPermission
    func GetAccountCustomPermission(ctx *Context, name string, id IDInput, state *AccountCustomPermissionState, opts ...ResourceOption) (*AccountCustomPermission, error)
    public static AccountCustomPermission Get(string name, Input<string> id, AccountCustomPermissionState? state, CustomResourceOptions? opts = null)
    public static AccountCustomPermission get(String name, Output<String> id, AccountCustomPermissionState state, CustomResourceOptions options)
    resources:  existingAccountCustomPermission:    type: aws:quicksight:AccountCustomPermission    get:      id: ${id}
    import {
      to = aws_quicksight_account_custom_permission.example
      id = "${id}"
    }
    
    name string
    The unique name of the resulting resource.
    id Input<ID>
    The unique provider ID of the resource to look up.
    state AccountCustomPermissionState
    Known property values the provider needs, along with the ID, to find the resource. Usually not required.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resulting resource.
    id str
    The unique provider ID of the resource to look up.
    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 resulting resource.
    id IDInput
    The unique provider ID of the resource to look up.
    state AccountCustomPermissionState
    Known property values the provider needs, along with the ID, to find the resource. Usually not required.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resulting resource.
    id Input<string>
    The unique provider ID of the resource to look up.
    state AccountCustomPermissionState
    Known property values the provider needs, along with the ID, to find the resource. Usually not required.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resulting resource.
    id Output<String>
    The unique provider ID of the resource to look up.
    state AccountCustomPermissionState
    Known property values the provider needs, along with the ID, to find the resource. Usually not required.
    options CustomResourceOptions
    Bag of options to control resource's behavior.
    The following state arguments are supported:
    AwsAccountId string
    AWS account ID. Defaults to the account ID determined from the provider configuration.
    CustomPermissionsName string

    Name of the custom permissions profile to apply to the account.

    The following arguments are optional:

    Region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    AwsAccountId string
    AWS account ID. Defaults to the account ID determined from the provider configuration.
    CustomPermissionsName string

    Name of the custom permissions profile to apply to the account.

    The following arguments are optional:

    Region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    aws_account_id string
    AWS account ID. Defaults to the account ID determined from the provider configuration.
    custom_permissions_name string

    Name of the custom permissions profile to apply to the account.

    The following arguments are optional:

    region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    awsAccountId String
    AWS account ID. Defaults to the account ID determined from the provider configuration.
    customPermissionsName String

    Name of the custom permissions profile to apply to the account.

    The following arguments are optional:

    region String
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    awsAccountId string
    AWS account ID. Defaults to the account ID determined from the provider configuration.
    customPermissionsName string

    Name of the custom permissions profile to apply to the account.

    The following arguments are optional:

    region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    aws_account_id str
    AWS account ID. Defaults to the account ID determined from the provider configuration.
    custom_permissions_name str

    Name of the custom permissions profile to apply to the account.

    The following arguments are optional:

    region str
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    awsAccountId String
    AWS account ID. Defaults to the account ID determined from the provider configuration.
    customPermissionsName String

    Name of the custom permissions profile to apply to the account.

    The following arguments are optional:

    region String
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.

    Import

    Identity Schema

    Required

    • awsAccountId (String) AWS account ID.

    Optional

    • accountId (String) AWS Account where this resource is managed.
    • region (String) Region where this resource is managed.

    Using pulumi import, import QuickSight Account Custom Permission using the AWS account ID. For example:

    $ pulumi import aws:quicksight/accountCustomPermission:AccountCustomPermission example 012345678900
    

    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 aws logo
    Viewing docs for AWS v7.55.0
    published on Friday, Nov 13, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial