@pulumi/linode
Version:
A Pulumi package for creating and managing linode cloud resources.
113 lines (112 loc) • 5.19 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* Manages the settings of a Linode account.
* For more information, see the [Linode APIv4 docs](https://techdocs.akamai.com/linode-api/reference/get-account-settings).
*
* ## Example Usage
*
* The following example shows how one might use this resource to change their Linode account settings.
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as linode from "@pulumi/linode";
*
* const myaccount = new linode.AccountSettings("myaccount", {
* longviewSubscription: "longview-40",
* backupsEnabled: true,
* });
* ```
*
* ## Additional Results
*
* * `managed` - Enables monitoring for connectivity, response, and total request time.
*
* * `objectStorage` - A string describing the status of this account’s Object Storage service enrollment.
*/
export declare class AccountSettings extends pulumi.CustomResource {
/**
* Get an existing AccountSettings resource's state with the given name, ID, and optional extra
* properties used to qualify the lookup.
*
* @param name The _unique_ name of the resulting resource.
* @param id The _unique_ provider ID of the resource to lookup.
* @param state Any extra arguments used during the lookup.
* @param opts Optional settings to control the behavior of the CustomResource.
*/
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: AccountSettingsState, opts?: pulumi.CustomResourceOptions): AccountSettings;
/**
* Returns true if the given object is an instance of AccountSettings. This is designed to work even
* when multiple copies of the Pulumi SDK have been loaded into the same process.
*/
static isInstance(obj: any): obj is AccountSettings;
/**
* The account-wide backups default. If true, all Linodes created will automatically be enrolled in the Backups service. If false, Linodes will not be enrolled by default, but may still be enrolled on creation or later.
*/
readonly backupsEnabled: pulumi.Output<boolean>;
/**
* The Longview Pro tier you are currently subscribed to. The value must be a [Longview Subscription](https://techdocs.akamai.com/linode-api/reference/get-longview-subscriptions) ID or null for Longview Free.
*/
readonly longviewSubscription: pulumi.Output<string>;
/**
* Enables monitoring for connectivity, response, and total request time.
*/
readonly managed: pulumi.Output<boolean>;
/**
* Enables network helper across all users by default for new Linodes and Linode Configs.
*/
readonly networkHelper: pulumi.Output<boolean>;
/**
* A string describing the status of this account's Object Storage service enrollment.
*/
readonly objectStorage: pulumi.Output<string>;
/**
* Create a AccountSettings resource with the given unique name, arguments, and options.
*
* @param name The _unique_ name of the resource.
* @param args The arguments to use to populate this resource's properties.
* @param opts A bag of options that control this resource's behavior.
*/
constructor(name: string, args?: AccountSettingsArgs, opts?: pulumi.CustomResourceOptions);
}
/**
* Input properties used for looking up and filtering AccountSettings resources.
*/
export interface AccountSettingsState {
/**
* The account-wide backups default. If true, all Linodes created will automatically be enrolled in the Backups service. If false, Linodes will not be enrolled by default, but may still be enrolled on creation or later.
*/
backupsEnabled?: pulumi.Input<boolean>;
/**
* The Longview Pro tier you are currently subscribed to. The value must be a [Longview Subscription](https://techdocs.akamai.com/linode-api/reference/get-longview-subscriptions) ID or null for Longview Free.
*/
longviewSubscription?: pulumi.Input<string>;
/**
* Enables monitoring for connectivity, response, and total request time.
*/
managed?: pulumi.Input<boolean>;
/**
* Enables network helper across all users by default for new Linodes and Linode Configs.
*/
networkHelper?: pulumi.Input<boolean>;
/**
* A string describing the status of this account's Object Storage service enrollment.
*/
objectStorage?: pulumi.Input<string>;
}
/**
* The set of arguments for constructing a AccountSettings resource.
*/
export interface AccountSettingsArgs {
/**
* The account-wide backups default. If true, all Linodes created will automatically be enrolled in the Backups service. If false, Linodes will not be enrolled by default, but may still be enrolled on creation or later.
*/
backupsEnabled?: pulumi.Input<boolean>;
/**
* The Longview Pro tier you are currently subscribed to. The value must be a [Longview Subscription](https://techdocs.akamai.com/linode-api/reference/get-longview-subscriptions) ID or null for Longview Free.
*/
longviewSubscription?: pulumi.Input<string>;
/**
* Enables network helper across all users by default for new Linodes and Linode Configs.
*/
networkHelper?: pulumi.Input<boolean>;
}