@volcengine/pulumi
Version:
A Pulumi package for creating and managing volcengine cloud resources.
96 lines (95 loc) • 3.42 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as inputs from "../types/input";
import * as outputs from "../types/output";
/**
* Provides a resource to manage tos bucket customdomain
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as volcengine from "@volcengine/pulumi";
*
* // Create a custom domain for TOS bucket
* const _default = new volcengine.tos.BucketCustomdomain("default", {
* bucketName: "tflyb7",
* customDomainRules: [{
* domain: "www.163.com",
* protocol: "tos",
* }],
* });
* const default1 = new volcengine.tos.BucketCustomdomain("default1", {
* bucketName: "tflyb7",
* customDomainRules: [{
* domain: "www.2345.com",
* protocol: "tos",
* }],
* });
* ```
*
* ## Import
*
* TosBucketCustomDomain can be imported using the bucketName:domain, e.g.
*
* ```sh
* $ pulumi import volcengine:tos/bucketCustomdomain:BucketCustomdomain default bucket_name:custom_domain
* ```
*/
export declare class BucketCustomdomain extends pulumi.CustomResource {
/**
* Get an existing BucketCustomdomain 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?: BucketCustomdomainState, opts?: pulumi.CustomResourceOptions): BucketCustomdomain;
/**
* Returns true if the given object is an instance of BucketCustomdomain. 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 BucketCustomdomain;
/**
* The name of the TOS bucket.
*/
readonly bucketName: pulumi.Output<string>;
/**
* The custom domain role for the bucket.
*/
readonly customDomainRules: pulumi.Output<outputs.tos.BucketCustomdomainCustomDomainRule[]>;
/**
* Create a BucketCustomdomain 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: BucketCustomdomainArgs, opts?: pulumi.CustomResourceOptions);
}
/**
* Input properties used for looking up and filtering BucketCustomdomain resources.
*/
export interface BucketCustomdomainState {
/**
* The name of the TOS bucket.
*/
bucketName?: pulumi.Input<string>;
/**
* The custom domain role for the bucket.
*/
customDomainRules?: pulumi.Input<pulumi.Input<inputs.tos.BucketCustomdomainCustomDomainRule>[]>;
}
/**
* The set of arguments for constructing a BucketCustomdomain resource.
*/
export interface BucketCustomdomainArgs {
/**
* The name of the TOS bucket.
*/
bucketName: pulumi.Input<string>;
/**
* The custom domain role for the bucket.
*/
customDomainRules: pulumi.Input<pulumi.Input<inputs.tos.BucketCustomdomainCustomDomainRule>[]>;
}