UNPKG

@pulumi/ise

Version:

A Pulumi package for managing resources on a Cisco ISE (Identity Service Engine) instance.. Based on terraform-provider-ise: version v0.2.1

273 lines (272 loc) 11 kB
import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * This resource can manage a Device Admin Policy Set. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as ise from "@pulumi/ise"; * * const example = new ise.deviceadmin.PolicySet("example", { * name: "PolicySet1", * description: "My description", * isProxy: false, * rank: 0, * serviceName: "Default Device Admin", * state: "enabled", * conditionType: "ConditionAttributes", * conditionIsNegate: false, * conditionAttributeName: "Location", * conditionAttributeValue: "All Locations", * conditionDictionaryName: "DEVICE", * conditionOperator: "equals", * }); * ``` * * ## Import * * The `pulumi import` command can be used, for example: * * ```sh * $ pulumi import ise:deviceadmin/policySet:PolicySet example "76d24097-41c4-4558-a4d0-a8c07ac08470" * ``` */ export declare class PolicySet extends pulumi.CustomResource { /** * Get an existing PolicySet 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?: PolicySetState, opts?: pulumi.CustomResourceOptions): PolicySet; /** * Returns true if the given object is an instance of PolicySet. 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 PolicySet; /** * List of child conditions. `conditionType` must be one of `ConditionAndBlock` or `ConditionOrBlock`. */ readonly childrens: pulumi.Output<outputs.deviceadmin.PolicySetChildren[] | undefined>; /** * Dictionary attribute name */ readonly conditionAttributeName: pulumi.Output<string | undefined>; /** * Attribute value for condition. Value type is specified in dictionary object. */ readonly conditionAttributeValue: pulumi.Output<string | undefined>; /** * Dictionary name */ readonly conditionDictionaryName: pulumi.Output<string | undefined>; /** * Dictionary value */ readonly conditionDictionaryValue: pulumi.Output<string | undefined>; /** * UUID for condition */ readonly conditionId: pulumi.Output<string | undefined>; /** * Indicates whereas this condition is in negate mode */ readonly conditionIsNegate: pulumi.Output<boolean | undefined>; /** * Equality operator * - Choices: `contains`, `endsWith`, `equals`, `greaterOrEquals`, `greaterThan`, `in`, `ipEquals`, `ipGreaterThan`, `ipLessThan`, `ipNotEquals`, `lessOrEquals`, `lessThan`, `matches`, `notContains`, `notEndsWith`, `notEquals`, `notIn`, `notStartsWith`, `startsWith`, `macContains`, `macEndsWith`, `macEquals`, `macIn`, `macNotContains`, `macNotEndsWith`, `macNotEquals`, `macNotIn`, `macNotStartsWith`, `macStartsWith` */ readonly conditionOperator: pulumi.Output<string | undefined>; /** * Indicates whether the record is the condition itself or a logical aggregation. Logical aggreation indicates that additional conditions are present under the children attribute. * - Choices: `ConditionAndBlock`, `ConditionAttributes`, `ConditionOrBlock`, `ConditionReference` */ readonly conditionType: pulumi.Output<string | undefined>; /** * Indicates if this policy set is the default one */ readonly default: pulumi.Output<boolean | undefined>; /** * The description of the policy set */ readonly description: pulumi.Output<string | undefined>; /** * Flag which indicates if the policy set service is of type 'Proxy Sequence' or 'Allowed Protocols' */ readonly isProxy: pulumi.Output<boolean | undefined>; /** * Given name for the policy set, [Valid characters are alphanumerics, underscore, hyphen, space, period, parentheses] */ readonly name: pulumi.Output<string>; /** * The rank (priority) in relation to other policy sets. Lower rank is higher priority. */ readonly rank: pulumi.Output<number | undefined>; /** * Policy set service identifier. 'Allowed Protocols' or 'Server Sequence'. */ readonly serviceName: pulumi.Output<string>; /** * The state that the policy set is in. A disabled policy set cannot be matched. * - Choices: `disabled`, `enabled`, `monitor` */ readonly state: pulumi.Output<string | undefined>; /** * Create a PolicySet 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: PolicySetArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering PolicySet resources. */ export interface PolicySetState { /** * List of child conditions. `conditionType` must be one of `ConditionAndBlock` or `ConditionOrBlock`. */ childrens?: pulumi.Input<pulumi.Input<inputs.deviceadmin.PolicySetChildren>[]>; /** * Dictionary attribute name */ conditionAttributeName?: pulumi.Input<string>; /** * Attribute value for condition. Value type is specified in dictionary object. */ conditionAttributeValue?: pulumi.Input<string>; /** * Dictionary name */ conditionDictionaryName?: pulumi.Input<string>; /** * Dictionary value */ conditionDictionaryValue?: pulumi.Input<string>; /** * UUID for condition */ conditionId?: pulumi.Input<string>; /** * Indicates whereas this condition is in negate mode */ conditionIsNegate?: pulumi.Input<boolean>; /** * Equality operator * - Choices: `contains`, `endsWith`, `equals`, `greaterOrEquals`, `greaterThan`, `in`, `ipEquals`, `ipGreaterThan`, `ipLessThan`, `ipNotEquals`, `lessOrEquals`, `lessThan`, `matches`, `notContains`, `notEndsWith`, `notEquals`, `notIn`, `notStartsWith`, `startsWith`, `macContains`, `macEndsWith`, `macEquals`, `macIn`, `macNotContains`, `macNotEndsWith`, `macNotEquals`, `macNotIn`, `macNotStartsWith`, `macStartsWith` */ conditionOperator?: pulumi.Input<string>; /** * Indicates whether the record is the condition itself or a logical aggregation. Logical aggreation indicates that additional conditions are present under the children attribute. * - Choices: `ConditionAndBlock`, `ConditionAttributes`, `ConditionOrBlock`, `ConditionReference` */ conditionType?: pulumi.Input<string>; /** * Indicates if this policy set is the default one */ default?: pulumi.Input<boolean>; /** * The description of the policy set */ description?: pulumi.Input<string>; /** * Flag which indicates if the policy set service is of type 'Proxy Sequence' or 'Allowed Protocols' */ isProxy?: pulumi.Input<boolean>; /** * Given name for the policy set, [Valid characters are alphanumerics, underscore, hyphen, space, period, parentheses] */ name?: pulumi.Input<string>; /** * The rank (priority) in relation to other policy sets. Lower rank is higher priority. */ rank?: pulumi.Input<number>; /** * Policy set service identifier. 'Allowed Protocols' or 'Server Sequence'. */ serviceName?: pulumi.Input<string>; /** * The state that the policy set is in. A disabled policy set cannot be matched. * - Choices: `disabled`, `enabled`, `monitor` */ state?: pulumi.Input<string>; } /** * The set of arguments for constructing a PolicySet resource. */ export interface PolicySetArgs { /** * List of child conditions. `conditionType` must be one of `ConditionAndBlock` or `ConditionOrBlock`. */ childrens?: pulumi.Input<pulumi.Input<inputs.deviceadmin.PolicySetChildren>[]>; /** * Dictionary attribute name */ conditionAttributeName?: pulumi.Input<string>; /** * Attribute value for condition. Value type is specified in dictionary object. */ conditionAttributeValue?: pulumi.Input<string>; /** * Dictionary name */ conditionDictionaryName?: pulumi.Input<string>; /** * Dictionary value */ conditionDictionaryValue?: pulumi.Input<string>; /** * UUID for condition */ conditionId?: pulumi.Input<string>; /** * Indicates whereas this condition is in negate mode */ conditionIsNegate?: pulumi.Input<boolean>; /** * Equality operator * - Choices: `contains`, `endsWith`, `equals`, `greaterOrEquals`, `greaterThan`, `in`, `ipEquals`, `ipGreaterThan`, `ipLessThan`, `ipNotEquals`, `lessOrEquals`, `lessThan`, `matches`, `notContains`, `notEndsWith`, `notEquals`, `notIn`, `notStartsWith`, `startsWith`, `macContains`, `macEndsWith`, `macEquals`, `macIn`, `macNotContains`, `macNotEndsWith`, `macNotEquals`, `macNotIn`, `macNotStartsWith`, `macStartsWith` */ conditionOperator?: pulumi.Input<string>; /** * Indicates whether the record is the condition itself or a logical aggregation. Logical aggreation indicates that additional conditions are present under the children attribute. * - Choices: `ConditionAndBlock`, `ConditionAttributes`, `ConditionOrBlock`, `ConditionReference` */ conditionType?: pulumi.Input<string>; /** * Indicates if this policy set is the default one */ default?: pulumi.Input<boolean>; /** * The description of the policy set */ description?: pulumi.Input<string>; /** * Flag which indicates if the policy set service is of type 'Proxy Sequence' or 'Allowed Protocols' */ isProxy?: pulumi.Input<boolean>; /** * Given name for the policy set, [Valid characters are alphanumerics, underscore, hyphen, space, period, parentheses] */ name?: pulumi.Input<string>; /** * The rank (priority) in relation to other policy sets. Lower rank is higher priority. */ rank?: pulumi.Input<number>; /** * Policy set service identifier. 'Allowed Protocols' or 'Server Sequence'. */ serviceName: pulumi.Input<string>; /** * The state that the policy set is in. A disabled policy set cannot be matched. * - Choices: `disabled`, `enabled`, `monitor` */ state?: pulumi.Input<string>; }