@volcengine/pulumi
Version:
A Pulumi package for creating and managing volcengine cloud resources.
133 lines (132 loc) • 4.62 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 rocketmq allow list
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as volcengine from "@volcengine/pulumi";
*
* const foo = new volcengine.rocketmq.RocketMQAllowList("foo", {
* allowLists: [
* "192.168.0.0/24",
* "192.168.2.0/24",
* ],
* allowListDesc: "acc-test",
* allowListName: "acc-test-allow-list",
* });
* ```
*
* ## Import
*
* RocketmqAllowList can be imported using the id, e.g.
*
* ```sh
* $ pulumi import volcengine:rocketmq/rocketMQAllowList:RocketMQAllowList default resource_id
* ```
*/
export declare class RocketMQAllowList extends pulumi.CustomResource {
/**
* Get an existing RocketMQAllowList 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?: RocketMQAllowListState, opts?: pulumi.CustomResourceOptions): RocketMQAllowList;
/**
* Returns true if the given object is an instance of RocketMQAllowList. 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 RocketMQAllowList;
/**
* The description of the allow list.
*/
readonly allowListDesc: pulumi.Output<string | undefined>;
/**
* The number of ip address in the rocketmq allow list.
*/
readonly allowListIpNum: pulumi.Output<number>;
/**
* The name of the allow list.
*/
readonly allowListName: pulumi.Output<string>;
/**
* The type of the rocketmq allow list.
*/
readonly allowListType: pulumi.Output<string>;
/**
* The list of ip addresses. Enter an IP address or a range of IP addresses in CIDR format.
*/
readonly allowLists: pulumi.Output<string[]>;
/**
* The number of the rocketmq instances associated with the allow list.
*/
readonly associatedInstanceNum: pulumi.Output<number>;
/**
* The associated instance information of the allow list.
*/
readonly associatedInstances: pulumi.Output<outputs.rocketmq.RocketMQAllowListAssociatedInstance[]>;
/**
* Create a RocketMQAllowList 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: RocketMQAllowListArgs, opts?: pulumi.CustomResourceOptions);
}
/**
* Input properties used for looking up and filtering RocketMQAllowList resources.
*/
export interface RocketMQAllowListState {
/**
* The description of the allow list.
*/
allowListDesc?: pulumi.Input<string>;
/**
* The number of ip address in the rocketmq allow list.
*/
allowListIpNum?: pulumi.Input<number>;
/**
* The name of the allow list.
*/
allowListName?: pulumi.Input<string>;
/**
* The type of the rocketmq allow list.
*/
allowListType?: pulumi.Input<string>;
/**
* The list of ip addresses. Enter an IP address or a range of IP addresses in CIDR format.
*/
allowLists?: pulumi.Input<pulumi.Input<string>[]>;
/**
* The number of the rocketmq instances associated with the allow list.
*/
associatedInstanceNum?: pulumi.Input<number>;
/**
* The associated instance information of the allow list.
*/
associatedInstances?: pulumi.Input<pulumi.Input<inputs.rocketmq.RocketMQAllowListAssociatedInstance>[]>;
}
/**
* The set of arguments for constructing a RocketMQAllowList resource.
*/
export interface RocketMQAllowListArgs {
/**
* The description of the allow list.
*/
allowListDesc?: pulumi.Input<string>;
/**
* The name of the allow list.
*/
allowListName: pulumi.Input<string>;
/**
* The list of ip addresses. Enter an IP address or a range of IP addresses in CIDR format.
*/
allowLists: pulumi.Input<pulumi.Input<string>[]>;
}