1. Registry
  2. Packages
  3. Descope Provider
  4. API Docs
  5. AccessKeyAttribute
Viewing docs for Descope v1.0.1
published on Sunday, Oct 11, 2026 by Descope
descope logo Descope
Viewing docs for Descope v1.0.1
published on Sunday, Oct 11, 2026 by Descope

    Manages a single access key custom attribute definition in a Descope project.

    Create AccessKeyAttribute Resource

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

    Constructor syntax

    new AccessKeyAttribute(name: string, args: AccessKeyAttributeArgs, opts?: CustomResourceOptions);
    @overload
    def AccessKeyAttribute(resource_name: str,
                           args: AccessKeyAttributeArgs,
                           opts: Optional[ResourceOptions] = None)
    
    @overload
    def AccessKeyAttribute(resource_name: str,
                           opts: Optional[ResourceOptions] = None,
                           access_key_attribute_id: Optional[str] = None,
                           project_id: Optional[str] = None,
                           type: Optional[str] = None,
                           name: Optional[str] = None,
                           select_options: Optional[Sequence[str]] = None,
                           widget_authorization: Optional[AccessKeyAttributeWidgetAuthorizationArgs] = None)
    func NewAccessKeyAttribute(ctx *Context, name string, args AccessKeyAttributeArgs, opts ...ResourceOption) (*AccessKeyAttribute, error)
    public AccessKeyAttribute(string name, AccessKeyAttributeArgs args, CustomResourceOptions? opts = null)
    public AccessKeyAttribute(String name, AccessKeyAttributeArgs args)
    public AccessKeyAttribute(String name, AccessKeyAttributeArgs args, CustomResourceOptions options)
    
    type: descope:AccessKeyAttribute
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "descope_access_key_attribute" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args AccessKeyAttributeArgs
    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 AccessKeyAttributeArgs
    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 AccessKeyAttributeArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args AccessKeyAttributeArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args AccessKeyAttributeArgs
    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 accessKeyAttributeResource = new Descope.AccessKeyAttribute("accessKeyAttributeResource", new()
    {
        AccessKeyAttributeId = "string",
        ProjectId = "string",
        Type = "string",
        Name = "string",
        SelectOptions = new[]
        {
            "string",
        },
        WidgetAuthorization = new Descope.Inputs.AccessKeyAttributeWidgetAuthorizationArgs
        {
            EditPermissions = new[]
            {
                "string",
            },
            ViewPermissions = new[]
            {
                "string",
            },
        },
    });
    
    example, err := descope.NewAccessKeyAttribute(ctx, "accessKeyAttributeResource", &descope.AccessKeyAttributeArgs{
    	AccessKeyAttributeId: pulumi.String("string"),
    	ProjectId:            pulumi.String("string"),
    	Type:                 pulumi.String("string"),
    	Name:                 pulumi.String("string"),
    	SelectOptions: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	WidgetAuthorization: &descope.AccessKeyAttributeWidgetAuthorizationArgs{
    		EditPermissions: pulumi.StringArray{
    			pulumi.String("string"),
    		},
    		ViewPermissions: pulumi.StringArray{
    			pulumi.String("string"),
    		},
    	},
    })
    
    resource "descope_access_key_attribute" "accessKeyAttributeResource" {
      lifecycle {
        create_before_destroy = true
      }
      access_key_attribute_id = "string"
      project_id              = "string"
      type                    = "string"
      name                    = "string"
      select_options          = ["string"]
      widget_authorization = {
        edit_permissions = ["string"]
        view_permissions = ["string"]
      }
    }
    
    var accessKeyAttributeResource = new AccessKeyAttribute("accessKeyAttributeResource", AccessKeyAttributeArgs.builder()
        .accessKeyAttributeId("string")
        .projectId("string")
        .type("string")
        .name("string")
        .selectOptions("string")
        .widgetAuthorization(AccessKeyAttributeWidgetAuthorizationArgs.builder()
            .editPermissions("string")
            .viewPermissions("string")
            .build())
        .build());
    
    access_key_attribute_resource = descope.AccessKeyAttribute("accessKeyAttributeResource",
        access_key_attribute_id="string",
        project_id="string",
        type="string",
        name="string",
        select_options=["string"],
        widget_authorization={
            "edit_permissions": ["string"],
            "view_permissions": ["string"],
        })
    
    const accessKeyAttributeResource = new descope.AccessKeyAttribute("accessKeyAttributeResource", {
        accessKeyAttributeId: "string",
        projectId: "string",
        type: "string",
        name: "string",
        selectOptions: ["string"],
        widgetAuthorization: {
            editPermissions: ["string"],
            viewPermissions: ["string"],
        },
    });
    
    type: descope:AccessKeyAttribute
    properties:
        accessKeyAttributeId: string
        name: string
        projectId: string
        selectOptions:
            - string
        type: string
        widgetAuthorization:
            editPermissions:
                - string
            viewPermissions:
                - string
    

    AccessKeyAttribute 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 AccessKeyAttribute resource accepts the following input properties:

    AccessKeyAttributeId string
    The immutable machine name that identifies the attribute. This value is called Machine Name in the Descope console. Changing this value will require the resource to be deleted and recreated.
    ProjectId string
    The ID of the project that this access key attribute belongs to. Changing this value will require the resource to be deleted and recreated.
    Type string
    The type of the attribute. Choose one of "string", "number", "boolean", "singleselect", "multiselect", "date", "monthday". Changing this value will require the resource to be deleted and recreated.
    Name string
    The display name of the attribute. This value is called Display Name in the Descope console.
    SelectOptions List<string>
    The list of options to choose from when the attribute type is "singleselect" or "multiselect".
    WidgetAuthorization Descope.AccessKeyAttributeWidgetAuthorization
    Determines the permissions users are required to have to access this attribute in the user management widget.
    AccessKeyAttributeId string
    The immutable machine name that identifies the attribute. This value is called Machine Name in the Descope console. Changing this value will require the resource to be deleted and recreated.
    ProjectId string
    The ID of the project that this access key attribute belongs to. Changing this value will require the resource to be deleted and recreated.
    Type string
    The type of the attribute. Choose one of "string", "number", "boolean", "singleselect", "multiselect", "date", "monthday". Changing this value will require the resource to be deleted and recreated.
    Name string
    The display name of the attribute. This value is called Display Name in the Descope console.
    SelectOptions []string
    The list of options to choose from when the attribute type is "singleselect" or "multiselect".
    WidgetAuthorization AccessKeyAttributeWidgetAuthorizationArgs
    Determines the permissions users are required to have to access this attribute in the user management widget.
    access_key_attribute_id string
    The immutable machine name that identifies the attribute. This value is called Machine Name in the Descope console. Changing this value will require the resource to be deleted and recreated.
    project_id string
    The ID of the project that this access key attribute belongs to. Changing this value will require the resource to be deleted and recreated.
    type string
    The type of the attribute. Choose one of "string", "number", "boolean", "singleselect", "multiselect", "date", "monthday". Changing this value will require the resource to be deleted and recreated.
    name string
    The display name of the attribute. This value is called Display Name in the Descope console.
    select_options list(string)
    The list of options to choose from when the attribute type is "singleselect" or "multiselect".
    widget_authorization object
    Determines the permissions users are required to have to access this attribute in the user management widget.
    accessKeyAttributeId String
    The immutable machine name that identifies the attribute. This value is called Machine Name in the Descope console. Changing this value will require the resource to be deleted and recreated.
    projectId String
    The ID of the project that this access key attribute belongs to. Changing this value will require the resource to be deleted and recreated.
    type String
    The type of the attribute. Choose one of "string", "number", "boolean", "singleselect", "multiselect", "date", "monthday". Changing this value will require the resource to be deleted and recreated.
    name String
    The display name of the attribute. This value is called Display Name in the Descope console.
    selectOptions List<String>
    The list of options to choose from when the attribute type is "singleselect" or "multiselect".
    widgetAuthorization AccessKeyAttributeWidgetAuthorization
    Determines the permissions users are required to have to access this attribute in the user management widget.
    accessKeyAttributeId string
    The immutable machine name that identifies the attribute. This value is called Machine Name in the Descope console. Changing this value will require the resource to be deleted and recreated.
    projectId string
    The ID of the project that this access key attribute belongs to. Changing this value will require the resource to be deleted and recreated.
    type string
    The type of the attribute. Choose one of "string", "number", "boolean", "singleselect", "multiselect", "date", "monthday". Changing this value will require the resource to be deleted and recreated.
    name string
    The display name of the attribute. This value is called Display Name in the Descope console.
    selectOptions string[]
    The list of options to choose from when the attribute type is "singleselect" or "multiselect".
    widgetAuthorization AccessKeyAttributeWidgetAuthorization
    Determines the permissions users are required to have to access this attribute in the user management widget.
    access_key_attribute_id str
    The immutable machine name that identifies the attribute. This value is called Machine Name in the Descope console. Changing this value will require the resource to be deleted and recreated.
    project_id str
    The ID of the project that this access key attribute belongs to. Changing this value will require the resource to be deleted and recreated.
    type str
    The type of the attribute. Choose one of "string", "number", "boolean", "singleselect", "multiselect", "date", "monthday". Changing this value will require the resource to be deleted and recreated.
    name str
    The display name of the attribute. This value is called Display Name in the Descope console.
    select_options Sequence[str]
    The list of options to choose from when the attribute type is "singleselect" or "multiselect".
    widget_authorization AccessKeyAttributeWidgetAuthorizationArgs
    Determines the permissions users are required to have to access this attribute in the user management widget.
    accessKeyAttributeId String
    The immutable machine name that identifies the attribute. This value is called Machine Name in the Descope console. Changing this value will require the resource to be deleted and recreated.
    projectId String
    The ID of the project that this access key attribute belongs to. Changing this value will require the resource to be deleted and recreated.
    type String
    The type of the attribute. Choose one of "string", "number", "boolean", "singleselect", "multiselect", "date", "monthday". Changing this value will require the resource to be deleted and recreated.
    name String
    The display name of the attribute. This value is called Display Name in the Descope console.
    selectOptions List<String>
    The list of options to choose from when the attribute type is "singleselect" or "multiselect".
    widgetAuthorization Property Map
    Determines the permissions users are required to have to access this attribute in the user management widget.

    Outputs

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

    Get an existing AccessKeyAttribute 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?: AccessKeyAttributeState, opts?: CustomResourceOptions): AccessKeyAttribute
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            access_key_attribute_id: Optional[str] = None,
            name: Optional[str] = None,
            project_id: Optional[str] = None,
            select_options: Optional[Sequence[str]] = None,
            type: Optional[str] = None,
            widget_authorization: Optional[AccessKeyAttributeWidgetAuthorizationArgs] = None) -> AccessKeyAttribute
    func GetAccessKeyAttribute(ctx *Context, name string, id IDInput, state *AccessKeyAttributeState, opts ...ResourceOption) (*AccessKeyAttribute, error)
    public static AccessKeyAttribute Get(string name, Input<string> id, AccessKeyAttributeState? state, CustomResourceOptions? opts = null)
    public static AccessKeyAttribute get(String name, Output<String> id, AccessKeyAttributeState state, CustomResourceOptions options)
    resources:  existingAccessKeyAttribute:    type: descope:AccessKeyAttribute    get:      id: ${id}
    import {
      to = descope_access_key_attribute.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 AccessKeyAttributeState
    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 AccessKeyAttributeState
    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 AccessKeyAttributeState
    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 AccessKeyAttributeState
    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:
    AccessKeyAttributeId string
    The immutable machine name that identifies the attribute. This value is called Machine Name in the Descope console. Changing this value will require the resource to be deleted and recreated.
    Name string
    The display name of the attribute. This value is called Display Name in the Descope console.
    ProjectId string
    The ID of the project that this access key attribute belongs to. Changing this value will require the resource to be deleted and recreated.
    SelectOptions List<string>
    The list of options to choose from when the attribute type is "singleselect" or "multiselect".
    Type string
    The type of the attribute. Choose one of "string", "number", "boolean", "singleselect", "multiselect", "date", "monthday". Changing this value will require the resource to be deleted and recreated.
    WidgetAuthorization Descope.AccessKeyAttributeWidgetAuthorization
    Determines the permissions users are required to have to access this attribute in the user management widget.
    AccessKeyAttributeId string
    The immutable machine name that identifies the attribute. This value is called Machine Name in the Descope console. Changing this value will require the resource to be deleted and recreated.
    Name string
    The display name of the attribute. This value is called Display Name in the Descope console.
    ProjectId string
    The ID of the project that this access key attribute belongs to. Changing this value will require the resource to be deleted and recreated.
    SelectOptions []string
    The list of options to choose from when the attribute type is "singleselect" or "multiselect".
    Type string
    The type of the attribute. Choose one of "string", "number", "boolean", "singleselect", "multiselect", "date", "monthday". Changing this value will require the resource to be deleted and recreated.
    WidgetAuthorization AccessKeyAttributeWidgetAuthorizationArgs
    Determines the permissions users are required to have to access this attribute in the user management widget.
    access_key_attribute_id string
    The immutable machine name that identifies the attribute. This value is called Machine Name in the Descope console. Changing this value will require the resource to be deleted and recreated.
    name string
    The display name of the attribute. This value is called Display Name in the Descope console.
    project_id string
    The ID of the project that this access key attribute belongs to. Changing this value will require the resource to be deleted and recreated.
    select_options list(string)
    The list of options to choose from when the attribute type is "singleselect" or "multiselect".
    type string
    The type of the attribute. Choose one of "string", "number", "boolean", "singleselect", "multiselect", "date", "monthday". Changing this value will require the resource to be deleted and recreated.
    widget_authorization object
    Determines the permissions users are required to have to access this attribute in the user management widget.
    accessKeyAttributeId String
    The immutable machine name that identifies the attribute. This value is called Machine Name in the Descope console. Changing this value will require the resource to be deleted and recreated.
    name String
    The display name of the attribute. This value is called Display Name in the Descope console.
    projectId String
    The ID of the project that this access key attribute belongs to. Changing this value will require the resource to be deleted and recreated.
    selectOptions List<String>
    The list of options to choose from when the attribute type is "singleselect" or "multiselect".
    type String
    The type of the attribute. Choose one of "string", "number", "boolean", "singleselect", "multiselect", "date", "monthday". Changing this value will require the resource to be deleted and recreated.
    widgetAuthorization AccessKeyAttributeWidgetAuthorization
    Determines the permissions users are required to have to access this attribute in the user management widget.
    accessKeyAttributeId string
    The immutable machine name that identifies the attribute. This value is called Machine Name in the Descope console. Changing this value will require the resource to be deleted and recreated.
    name string
    The display name of the attribute. This value is called Display Name in the Descope console.
    projectId string
    The ID of the project that this access key attribute belongs to. Changing this value will require the resource to be deleted and recreated.
    selectOptions string[]
    The list of options to choose from when the attribute type is "singleselect" or "multiselect".
    type string
    The type of the attribute. Choose one of "string", "number", "boolean", "singleselect", "multiselect", "date", "monthday". Changing this value will require the resource to be deleted and recreated.
    widgetAuthorization AccessKeyAttributeWidgetAuthorization
    Determines the permissions users are required to have to access this attribute in the user management widget.
    access_key_attribute_id str
    The immutable machine name that identifies the attribute. This value is called Machine Name in the Descope console. Changing this value will require the resource to be deleted and recreated.
    name str
    The display name of the attribute. This value is called Display Name in the Descope console.
    project_id str
    The ID of the project that this access key attribute belongs to. Changing this value will require the resource to be deleted and recreated.
    select_options Sequence[str]
    The list of options to choose from when the attribute type is "singleselect" or "multiselect".
    type str
    The type of the attribute. Choose one of "string", "number", "boolean", "singleselect", "multiselect", "date", "monthday". Changing this value will require the resource to be deleted and recreated.
    widget_authorization AccessKeyAttributeWidgetAuthorizationArgs
    Determines the permissions users are required to have to access this attribute in the user management widget.
    accessKeyAttributeId String
    The immutable machine name that identifies the attribute. This value is called Machine Name in the Descope console. Changing this value will require the resource to be deleted and recreated.
    name String
    The display name of the attribute. This value is called Display Name in the Descope console.
    projectId String
    The ID of the project that this access key attribute belongs to. Changing this value will require the resource to be deleted and recreated.
    selectOptions List<String>
    The list of options to choose from when the attribute type is "singleselect" or "multiselect".
    type String
    The type of the attribute. Choose one of "string", "number", "boolean", "singleselect", "multiselect", "date", "monthday". Changing this value will require the resource to be deleted and recreated.
    widgetAuthorization Property Map
    Determines the permissions users are required to have to access this attribute in the user management widget.

    Supporting Types

    AccessKeyAttributeWidgetAuthorization, AccessKeyAttributeWidgetAuthorizationArgs

    EditPermissions List<string>
    The names of the permissions users are required to have to edit this attribute in the user management widget. An empty set means no restriction.
    ViewPermissions List<string>
    The names of the permissions users are required to have to view this attribute in the user management widget. An empty set means no restriction.
    EditPermissions []string
    The names of the permissions users are required to have to edit this attribute in the user management widget. An empty set means no restriction.
    ViewPermissions []string
    The names of the permissions users are required to have to view this attribute in the user management widget. An empty set means no restriction.
    edit_permissions list(string)
    The names of the permissions users are required to have to edit this attribute in the user management widget. An empty set means no restriction.
    view_permissions list(string)
    The names of the permissions users are required to have to view this attribute in the user management widget. An empty set means no restriction.
    editPermissions List<String>
    The names of the permissions users are required to have to edit this attribute in the user management widget. An empty set means no restriction.
    viewPermissions List<String>
    The names of the permissions users are required to have to view this attribute in the user management widget. An empty set means no restriction.
    editPermissions string[]
    The names of the permissions users are required to have to edit this attribute in the user management widget. An empty set means no restriction.
    viewPermissions string[]
    The names of the permissions users are required to have to view this attribute in the user management widget. An empty set means no restriction.
    edit_permissions Sequence[str]
    The names of the permissions users are required to have to edit this attribute in the user management widget. An empty set means no restriction.
    view_permissions Sequence[str]
    The names of the permissions users are required to have to view this attribute in the user management widget. An empty set means no restriction.
    editPermissions List<String>
    The names of the permissions users are required to have to edit this attribute in the user management widget. An empty set means no restriction.
    viewPermissions List<String>
    The names of the permissions users are required to have to view this attribute in the user management widget. An empty set means no restriction.

    Package Details

    Repository
    descope descope/pulumi-descope
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the descope Terraform Provider.
    descope logo Descope
    Viewing docs for Descope v1.0.1
    published on Sunday, Oct 11, 2026 by Descope

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial