published on Tuesday, Sep 29, 2026 by htmlcsstoimage
HTML/CSS to Imagepublished on Tuesday, Sep 29, 2026 by htmlcsstoimage
Create ApiKey Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ApiKey(name: string, args?: ApiKeyArgs, opts?: CustomResourceOptions);@overload
def ApiKey(resource_name: str,
args: Optional[ApiKeyArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def ApiKey(resource_name: str,
opts: Optional[ResourceOptions] = None,
all_future_permissions: Optional[bool] = None,
description: Optional[str] = None,
disabled: Optional[bool] = None,
name: Optional[str] = None,
permissions: Optional[Sequence[str]] = None)func NewApiKey(ctx *Context, name string, args *ApiKeyArgs, opts ...ResourceOption) (*ApiKey, error)public ApiKey(string name, ApiKeyArgs? args = null, CustomResourceOptions? opts = null)
public ApiKey(String name, ApiKeyArgs args)
public ApiKey(String name, ApiKeyArgs args, CustomResourceOptions options)
type: html-css-to-image:ApiKey
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "html-css-to-image_api_key" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args ApiKeyArgs
- 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 ApiKeyArgs
- 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 ApiKeyArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ApiKeyArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ApiKeyArgs
- 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 apiKeyResource = new HtmlCssToImage.ApiKey("apiKeyResource", new()
{
AllFuturePermissions = false,
Description = "string",
Disabled = false,
Name = "string",
Permissions = new[]
{
"string",
},
});
example, err := htmlcsstoimage.NewApiKey(ctx, "apiKeyResource", &htmlcsstoimage.ApiKeyArgs{
AllFuturePermissions: pulumi.Bool(false),
Description: pulumi.String("string"),
Disabled: pulumi.Bool(false),
Name: pulumi.String("string"),
Permissions: pulumi.StringArray{
pulumi.String("string"),
},
})
resource "html-css-to-image_api_key" "apiKeyResource" {
lifecycle {
create_before_destroy = true
}
all_future_permissions = false
description = "string"
disabled = false
name = "string"
permissions = ["string"]
}
var apiKeyResource = new ApiKey("apiKeyResource", ApiKeyArgs.builder()
.allFuturePermissions(false)
.description("string")
.disabled(false)
.name("string")
.permissions("string")
.build());
api_key_resource = html_css_to_image.ApiKey("apiKeyResource",
all_future_permissions=False,
description="string",
disabled=False,
name="string",
permissions=["string"])
const apiKeyResource = new html_css_to_image.ApiKey("apiKeyResource", {
allFuturePermissions: false,
description: "string",
disabled: false,
name: "string",
permissions: ["string"],
});
type: html-css-to-image:ApiKey
properties:
allFuturePermissions: false
description: string
disabled: false
name: string
permissions:
- string
ApiKey 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 ApiKey resource accepts the following input properties:
- All
Future boolPermissions - Grant all current and future permissions. Requires caller authority. Defaults to false.
- Description string
- Purpose of the key, up to 2000 characters. Omitted, null, or blank clears it.
- Disabled bool
- Disable authentication with the key. Defaults to false.
- Name string
- Display name, up to 255 characters. Omitted, null, or blank uses an API-generated name based on the original creation time.
- Permissions List<string>
- Complete permission set. Required when allFuturePermissions is false; [] grants no permissions. Must be omitted or empty when allFuturePermissions is true.
- All
Future boolPermissions - Grant all current and future permissions. Requires caller authority. Defaults to false.
- Description string
- Purpose of the key, up to 2000 characters. Omitted, null, or blank clears it.
- Disabled bool
- Disable authentication with the key. Defaults to false.
- Name string
- Display name, up to 255 characters. Omitted, null, or blank uses an API-generated name based on the original creation time.
- Permissions []string
- Complete permission set. Required when allFuturePermissions is false; [] grants no permissions. Must be omitted or empty when allFuturePermissions is true.
- all_
future_ boolpermissions - Grant all current and future permissions. Requires caller authority. Defaults to false.
- description string
- Purpose of the key, up to 2000 characters. Omitted, null, or blank clears it.
- disabled bool
- Disable authentication with the key. Defaults to false.
- name string
- Display name, up to 255 characters. Omitted, null, or blank uses an API-generated name based on the original creation time.
- permissions list(string)
- Complete permission set. Required when allFuturePermissions is false; [] grants no permissions. Must be omitted or empty when allFuturePermissions is true.
- all
Future BooleanPermissions - Grant all current and future permissions. Requires caller authority. Defaults to false.
- description String
- Purpose of the key, up to 2000 characters. Omitted, null, or blank clears it.
- disabled Boolean
- Disable authentication with the key. Defaults to false.
- name String
- Display name, up to 255 characters. Omitted, null, or blank uses an API-generated name based on the original creation time.
- permissions List<String>
- Complete permission set. Required when allFuturePermissions is false; [] grants no permissions. Must be omitted or empty when allFuturePermissions is true.
- all
Future booleanPermissions - Grant all current and future permissions. Requires caller authority. Defaults to false.
- description string
- Purpose of the key, up to 2000 characters. Omitted, null, or blank clears it.
- disabled boolean
- Disable authentication with the key. Defaults to false.
- name string
- Display name, up to 255 characters. Omitted, null, or blank uses an API-generated name based on the original creation time.
- permissions string[]
- Complete permission set. Required when allFuturePermissions is false; [] grants no permissions. Must be omitted or empty when allFuturePermissions is true.
- all_
future_ boolpermissions - Grant all current and future permissions. Requires caller authority. Defaults to false.
- description str
- Purpose of the key, up to 2000 characters. Omitted, null, or blank clears it.
- disabled bool
- Disable authentication with the key. Defaults to false.
- name str
- Display name, up to 255 characters. Omitted, null, or blank uses an API-generated name based on the original creation time.
- permissions Sequence[str]
- Complete permission set. Required when allFuturePermissions is false; [] grants no permissions. Must be omitted or empty when allFuturePermissions is true.
- all
Future BooleanPermissions - Grant all current and future permissions. Requires caller authority. Defaults to false.
- description String
- Purpose of the key, up to 2000 characters. Omitted, null, or blank clears it.
- disabled Boolean
- Disable authentication with the key. Defaults to false.
- name String
- Display name, up to 255 characters. Omitted, null, or blank uses an API-generated name based on the original creation time.
- permissions List<String>
- Complete permission set. Required when allFuturePermissions is false; [] grants no permissions. Must be omitted or empty when allFuturePermissions is true.
Outputs
All input properties are implicitly available as output properties. Additionally, the ApiKey resource produces the following output properties:
- Api
Id string - API ID used to authenticate with this key.
- Created
At string - Creation timestamp.
- Effective
Name string - Actual display name returned by the API, including a generated name when name is omitted.
- Effective
Permissions List<string> - Current grants returned by the API, including expansion of all_future_permissions.
- Id string
- The provider-assigned unique ID for this managed resource.
- Updated
At string - Last update timestamp.
- Value string
- Secret returned only at creation. Preserved during refresh and updates; unavailable after import.
- Api
Id string - API ID used to authenticate with this key.
- Api
Key string - Secret returned only at creation. Preserved during refresh and updates; unavailable after import.
- Created
At string - Creation timestamp.
- Effective
Name string - Actual display name returned by the API, including a generated name when name is omitted.
- Effective
Permissions []string - Current grants returned by the API, including expansion of all_future_permissions.
- Id string
- The provider-assigned unique ID for this managed resource.
- Updated
At string - Last update timestamp.
- api_
id string - API ID used to authenticate with this key.
- api_
key string - Secret returned only at creation. Preserved during refresh and updates; unavailable after import.
- created_
at string - Creation timestamp.
- effective_
name string - Actual display name returned by the API, including a generated name when name is omitted.
- effective_
permissions list(string) - Current grants returned by the API, including expansion of all_future_permissions.
- id string
- The provider-assigned unique ID for this managed resource.
- updated_
at string - Last update timestamp.
- api
Id String - API ID used to authenticate with this key.
- api
Key String - Secret returned only at creation. Preserved during refresh and updates; unavailable after import.
- created
At String - Creation timestamp.
- effective
Name String - Actual display name returned by the API, including a generated name when name is omitted.
- effective
Permissions List<String> - Current grants returned by the API, including expansion of all_future_permissions.
- id String
- The provider-assigned unique ID for this managed resource.
- updated
At String - Last update timestamp.
- api
Id string - API ID used to authenticate with this key.
- api
Key string - Secret returned only at creation. Preserved during refresh and updates; unavailable after import.
- created
At string - Creation timestamp.
- effective
Name string - Actual display name returned by the API, including a generated name when name is omitted.
- effective
Permissions string[] - Current grants returned by the API, including expansion of all_future_permissions.
- id string
- The provider-assigned unique ID for this managed resource.
- updated
At string - Last update timestamp.
- api_
id str - API ID used to authenticate with this key.
- api_
key str - Secret returned only at creation. Preserved during refresh and updates; unavailable after import.
- created_
at str - Creation timestamp.
- effective_
name str - Actual display name returned by the API, including a generated name when name is omitted.
- effective_
permissions Sequence[str] - Current grants returned by the API, including expansion of all_future_permissions.
- id str
- The provider-assigned unique ID for this managed resource.
- updated_
at str - Last update timestamp.
- api
Id String - API ID used to authenticate with this key.
- api
Key String - Secret returned only at creation. Preserved during refresh and updates; unavailable after import.
- created
At String - Creation timestamp.
- effective
Name String - Actual display name returned by the API, including a generated name when name is omitted.
- effective
Permissions List<String> - Current grants returned by the API, including expansion of all_future_permissions.
- id String
- The provider-assigned unique ID for this managed resource.
- updated
At String - Last update timestamp.
Look up Existing ApiKey Resource
Get an existing ApiKey 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?: ApiKeyState, opts?: CustomResourceOptions): ApiKey@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
all_future_permissions: Optional[bool] = None,
api_id: Optional[str] = None,
api_key: Optional[str] = None,
created_at: Optional[str] = None,
description: Optional[str] = None,
disabled: Optional[bool] = None,
effective_name: Optional[str] = None,
effective_permissions: Optional[Sequence[str]] = None,
name: Optional[str] = None,
permissions: Optional[Sequence[str]] = None,
updated_at: Optional[str] = None) -> ApiKeyfunc GetApiKey(ctx *Context, name string, id IDInput, state *ApiKeyState, opts ...ResourceOption) (*ApiKey, error)public static ApiKey Get(string name, Input<string> id, ApiKeyState? state, CustomResourceOptions? opts = null)public static ApiKey get(String name, Output<String> id, ApiKeyState state, CustomResourceOptions options)resources: _: type: html-css-to-image:ApiKey get: id: ${id}import {
to = html-css-to-image_api_key.example
id = "${id}"
}
- 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.
- All
Future boolPermissions - Grant all current and future permissions. Requires caller authority. Defaults to false.
- Api
Id string - API ID used to authenticate with this key.
- Created
At string - Creation timestamp.
- Description string
- Purpose of the key, up to 2000 characters. Omitted, null, or blank clears it.
- Disabled bool
- Disable authentication with the key. Defaults to false.
- Effective
Name string - Actual display name returned by the API, including a generated name when name is omitted.
- Effective
Permissions List<string> - Current grants returned by the API, including expansion of all_future_permissions.
- Name string
- Display name, up to 255 characters. Omitted, null, or blank uses an API-generated name based on the original creation time.
- Permissions List<string>
- Complete permission set. Required when allFuturePermissions is false; [] grants no permissions. Must be omitted or empty when allFuturePermissions is true.
- Updated
At string - Last update timestamp.
- Value string
- Secret returned only at creation. Preserved during refresh and updates; unavailable after import.
- All
Future boolPermissions - Grant all current and future permissions. Requires caller authority. Defaults to false.
- Api
Id string - API ID used to authenticate with this key.
- Api
Key string - Secret returned only at creation. Preserved during refresh and updates; unavailable after import.
- Created
At string - Creation timestamp.
- Description string
- Purpose of the key, up to 2000 characters. Omitted, null, or blank clears it.
- Disabled bool
- Disable authentication with the key. Defaults to false.
- Effective
Name string - Actual display name returned by the API, including a generated name when name is omitted.
- Effective
Permissions []string - Current grants returned by the API, including expansion of all_future_permissions.
- Name string
- Display name, up to 255 characters. Omitted, null, or blank uses an API-generated name based on the original creation time.
- Permissions []string
- Complete permission set. Required when allFuturePermissions is false; [] grants no permissions. Must be omitted or empty when allFuturePermissions is true.
- Updated
At string - Last update timestamp.
- all_
future_ boolpermissions - Grant all current and future permissions. Requires caller authority. Defaults to false.
- api_
id string - API ID used to authenticate with this key.
- api_
key string - Secret returned only at creation. Preserved during refresh and updates; unavailable after import.
- created_
at string - Creation timestamp.
- description string
- Purpose of the key, up to 2000 characters. Omitted, null, or blank clears it.
- disabled bool
- Disable authentication with the key. Defaults to false.
- effective_
name string - Actual display name returned by the API, including a generated name when name is omitted.
- effective_
permissions list(string) - Current grants returned by the API, including expansion of all_future_permissions.
- name string
- Display name, up to 255 characters. Omitted, null, or blank uses an API-generated name based on the original creation time.
- permissions list(string)
- Complete permission set. Required when allFuturePermissions is false; [] grants no permissions. Must be omitted or empty when allFuturePermissions is true.
- updated_
at string - Last update timestamp.
- all
Future BooleanPermissions - Grant all current and future permissions. Requires caller authority. Defaults to false.
- api
Id String - API ID used to authenticate with this key.
- api
Key String - Secret returned only at creation. Preserved during refresh and updates; unavailable after import.
- created
At String - Creation timestamp.
- description String
- Purpose of the key, up to 2000 characters. Omitted, null, or blank clears it.
- disabled Boolean
- Disable authentication with the key. Defaults to false.
- effective
Name String - Actual display name returned by the API, including a generated name when name is omitted.
- effective
Permissions List<String> - Current grants returned by the API, including expansion of all_future_permissions.
- name String
- Display name, up to 255 characters. Omitted, null, or blank uses an API-generated name based on the original creation time.
- permissions List<String>
- Complete permission set. Required when allFuturePermissions is false; [] grants no permissions. Must be omitted or empty when allFuturePermissions is true.
- updated
At String - Last update timestamp.
- all
Future booleanPermissions - Grant all current and future permissions. Requires caller authority. Defaults to false.
- api
Id string - API ID used to authenticate with this key.
- api
Key string - Secret returned only at creation. Preserved during refresh and updates; unavailable after import.
- created
At string - Creation timestamp.
- description string
- Purpose of the key, up to 2000 characters. Omitted, null, or blank clears it.
- disabled boolean
- Disable authentication with the key. Defaults to false.
- effective
Name string - Actual display name returned by the API, including a generated name when name is omitted.
- effective
Permissions string[] - Current grants returned by the API, including expansion of all_future_permissions.
- name string
- Display name, up to 255 characters. Omitted, null, or blank uses an API-generated name based on the original creation time.
- permissions string[]
- Complete permission set. Required when allFuturePermissions is false; [] grants no permissions. Must be omitted or empty when allFuturePermissions is true.
- updated
At string - Last update timestamp.
- all_
future_ boolpermissions - Grant all current and future permissions. Requires caller authority. Defaults to false.
- api_
id str - API ID used to authenticate with this key.
- api_
key str - Secret returned only at creation. Preserved during refresh and updates; unavailable after import.
- created_
at str - Creation timestamp.
- description str
- Purpose of the key, up to 2000 characters. Omitted, null, or blank clears it.
- disabled bool
- Disable authentication with the key. Defaults to false.
- effective_
name str - Actual display name returned by the API, including a generated name when name is omitted.
- effective_
permissions Sequence[str] - Current grants returned by the API, including expansion of all_future_permissions.
- name str
- Display name, up to 255 characters. Omitted, null, or blank uses an API-generated name based on the original creation time.
- permissions Sequence[str]
- Complete permission set. Required when allFuturePermissions is false; [] grants no permissions. Must be omitted or empty when allFuturePermissions is true.
- updated_
at str - Last update timestamp.
- all
Future BooleanPermissions - Grant all current and future permissions. Requires caller authority. Defaults to false.
- api
Id String - API ID used to authenticate with this key.
- api
Key String - Secret returned only at creation. Preserved during refresh and updates; unavailable after import.
- created
At String - Creation timestamp.
- description String
- Purpose of the key, up to 2000 characters. Omitted, null, or blank clears it.
- disabled Boolean
- Disable authentication with the key. Defaults to false.
- effective
Name String - Actual display name returned by the API, including a generated name when name is omitted.
- effective
Permissions List<String> - Current grants returned by the API, including expansion of all_future_permissions.
- name String
- Display name, up to 255 characters. Omitted, null, or blank uses an API-generated name based on the original creation time.
- permissions List<String>
- Complete permission set. Required when allFuturePermissions is false; [] grants no permissions. Must be omitted or empty when allFuturePermissions is true.
- updated
At String - Last update timestamp.
Package Details
- Repository
- html-css-to-image htmlcsstoimage/pulumi-html-css-to-image
- License
- MIT
- Notes
- This Pulumi package is based on the
html-css-to-imageTerraform Provider.
HTML/CSS to Imagepublished on Tuesday, Sep 29, 2026 by htmlcsstoimage