iosxe.PolicyMapEvent
Explore with Pulumi AI
This resource can manage the Policy Map Event configuration.
Example Usage
Coming soon!
Coming soon!
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.iosxe.PolicyMapEvent;
import com.pulumi.iosxe.PolicyMapEventArgs;
import com.pulumi.iosxe.inputs.PolicyMapEventClassNumberArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }
    public static void stack(Context ctx) {
        var example = new PolicyMapEvent("example", PolicyMapEventArgs.builder()        
            .classNumbers(PolicyMapEventClassNumberArgs.builder()
                .action_numbers(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
                .class_("MY_CLASS")
                .execution_type("do-until-failure")
                .number(10)
                .build())
            .eventType("authentication-success")
            .matchType("match-all")
            .build());
    }
}
Coming soon!
Coming soon!
resources:
  example:
    type: iosxe:PolicyMapEvent
    properties:
      classNumbers:
        - action_numbers:
            - authenticateUsingMethod: dot1x
              authenticateUsingPriority: 10
              authenticateUsingRetries: 2
              authenticateUsingRetryTime: 0
              number: 10
          class: MY_CLASS
          execution_type: do-until-failure
          number: 10
      eventType: authentication-success
      matchType: match-all
Create PolicyMapEvent Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new PolicyMapEvent(name: string, args: PolicyMapEventArgs, opts?: CustomResourceOptions);@overload
def PolicyMapEvent(resource_name: str,
                   args: PolicyMapEventArgs,
                   opts: Optional[ResourceOptions] = None)
@overload
def PolicyMapEvent(resource_name: str,
                   opts: Optional[ResourceOptions] = None,
                   event_type: Optional[str] = None,
                   class_numbers: Optional[Sequence[PolicyMapEventClassNumberArgs]] = None,
                   device: Optional[str] = None,
                   match_type: Optional[str] = None,
                   name: Optional[str] = None)func NewPolicyMapEvent(ctx *Context, name string, args PolicyMapEventArgs, opts ...ResourceOption) (*PolicyMapEvent, error)public PolicyMapEvent(string name, PolicyMapEventArgs args, CustomResourceOptions? opts = null)
public PolicyMapEvent(String name, PolicyMapEventArgs args)
public PolicyMapEvent(String name, PolicyMapEventArgs args, CustomResourceOptions options)
type: iosxe:PolicyMapEvent
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
 - The unique name of the resource.
 - args PolicyMapEventArgs
 - 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 PolicyMapEventArgs
 - 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 PolicyMapEventArgs
 - The arguments to resource properties.
 - opts ResourceOption
 - Bag of options to control resource's behavior.
 
- name string
 - The unique name of the resource.
 - args PolicyMapEventArgs
 - The arguments to resource properties.
 - opts CustomResourceOptions
 - Bag of options to control resource's behavior.
 
- name String
 - The unique name of the resource.
 - args PolicyMapEventArgs
 - 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 policyMapEventResource = new Iosxe.PolicyMapEvent("policyMapEventResource", new()
{
    EventType = "string",
    ClassNumbers = new[]
    {
        new Iosxe.Inputs.PolicyMapEventClassNumberArgs
        {
            Number = 0,
            ActionNumbers = new[]
            {
                new Iosxe.Inputs.PolicyMapEventClassNumberActionNumberArgs
                {
                    Number = 0,
                    ActivateServiceTemplateConfigServiceTemplate = "string",
                    AuthenticateUsingMethod = "string",
                    AuthenticateUsingPriority = 0,
                    AuthenticateUsingRetries = 0,
                    AuthenticateUsingRetryTime = 0,
                    Authorize = false,
                    PauseReauthentication = false,
                    TerminateConfig = "string",
                },
            },
            Class = "string",
            ExecutionType = "string",
        },
    },
    Device = "string",
    MatchType = "string",
    Name = "string",
});
example, err := iosxe.NewPolicyMapEvent(ctx, "policyMapEventResource", &iosxe.PolicyMapEventArgs{
	EventType: pulumi.String("string"),
	ClassNumbers: iosxe.PolicyMapEventClassNumberArray{
		&iosxe.PolicyMapEventClassNumberArgs{
			Number: pulumi.Int(0),
			ActionNumbers: iosxe.PolicyMapEventClassNumberActionNumberArray{
				&iosxe.PolicyMapEventClassNumberActionNumberArgs{
					Number: pulumi.Int(0),
					ActivateServiceTemplateConfigServiceTemplate: pulumi.String("string"),
					AuthenticateUsingMethod:                      pulumi.String("string"),
					AuthenticateUsingPriority:                    pulumi.Int(0),
					AuthenticateUsingRetries:                     pulumi.Int(0),
					AuthenticateUsingRetryTime:                   pulumi.Int(0),
					Authorize:                                    pulumi.Bool(false),
					PauseReauthentication:                        pulumi.Bool(false),
					TerminateConfig:                              pulumi.String("string"),
				},
			},
			Class:         pulumi.String("string"),
			ExecutionType: pulumi.String("string"),
		},
	},
	Device:    pulumi.String("string"),
	MatchType: pulumi.String("string"),
	Name:      pulumi.String("string"),
})
var policyMapEventResource = new PolicyMapEvent("policyMapEventResource", PolicyMapEventArgs.builder()
    .eventType("string")
    .classNumbers(PolicyMapEventClassNumberArgs.builder()
        .number(0)
        .actionNumbers(PolicyMapEventClassNumberActionNumberArgs.builder()
            .number(0)
            .activateServiceTemplateConfigServiceTemplate("string")
            .authenticateUsingMethod("string")
            .authenticateUsingPriority(0)
            .authenticateUsingRetries(0)
            .authenticateUsingRetryTime(0)
            .authorize(false)
            .pauseReauthentication(false)
            .terminateConfig("string")
            .build())
        .class_("string")
        .executionType("string")
        .build())
    .device("string")
    .matchType("string")
    .name("string")
    .build());
policy_map_event_resource = iosxe.PolicyMapEvent("policyMapEventResource",
    event_type="string",
    class_numbers=[iosxe.PolicyMapEventClassNumberArgs(
        number=0,
        action_numbers=[iosxe.PolicyMapEventClassNumberActionNumberArgs(
            number=0,
            activate_service_template_config_service_template="string",
            authenticate_using_method="string",
            authenticate_using_priority=0,
            authenticate_using_retries=0,
            authenticate_using_retry_time=0,
            authorize=False,
            pause_reauthentication=False,
            terminate_config="string",
        )],
        class_="string",
        execution_type="string",
    )],
    device="string",
    match_type="string",
    name="string")
const policyMapEventResource = new iosxe.PolicyMapEvent("policyMapEventResource", {
    eventType: "string",
    classNumbers: [{
        number: 0,
        actionNumbers: [{
            number: 0,
            activateServiceTemplateConfigServiceTemplate: "string",
            authenticateUsingMethod: "string",
            authenticateUsingPriority: 0,
            authenticateUsingRetries: 0,
            authenticateUsingRetryTime: 0,
            authorize: false,
            pauseReauthentication: false,
            terminateConfig: "string",
        }],
        "class": "string",
        executionType: "string",
    }],
    device: "string",
    matchType: "string",
    name: "string",
});
type: iosxe:PolicyMapEvent
properties:
    classNumbers:
        - actionNumbers:
            - activateServiceTemplateConfigServiceTemplate: string
              authenticateUsingMethod: string
              authenticateUsingPriority: 0
              authenticateUsingRetries: 0
              authenticateUsingRetryTime: 0
              authorize: false
              number: 0
              pauseReauthentication: false
              terminateConfig: string
          class: string
          executionType: string
          number: 0
    device: string
    eventType: string
    matchType: string
    name: string
PolicyMapEvent Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The PolicyMapEvent resource accepts the following input properties:
- Event
Type string - Choices: 
aaa-available,absolute-timeout,agent-found,authentication-failure,authentication-success,authorization-failure,authorization-success,identity-update,inactivity-timeout,remote-authentication-failure,remote-authentication-success,remote-update,session-disconnected,session-started,tag-added,tag-removed,template-activated,template-activation-failed,template-deactivated,template-deactivation-failed,timer-expiry,violation 
- Choices: 
 - Class
Numbers List<Lbrlabs.Pulumi Package. Iosxe. Inputs. Policy Map Event Class Number>  - class number, 1 for 1st class, 2 for 2nd...
 - Device string
 - A device name from the provider configuration.
 - Match
Type string - Choices: 
match-all,match-first 
- Choices: 
 - Name string
 - Name of the policy map
 
- Event
Type string - Choices: 
aaa-available,absolute-timeout,agent-found,authentication-failure,authentication-success,authorization-failure,authorization-success,identity-update,inactivity-timeout,remote-authentication-failure,remote-authentication-success,remote-update,session-disconnected,session-started,tag-added,tag-removed,template-activated,template-activation-failed,template-deactivated,template-deactivation-failed,timer-expiry,violation 
- Choices: 
 - Class
Numbers []PolicyMap Event Class Number Args  - class number, 1 for 1st class, 2 for 2nd...
 - Device string
 - A device name from the provider configuration.
 - Match
Type string - Choices: 
match-all,match-first 
- Choices: 
 - Name string
 - Name of the policy map
 
- event
Type String - Choices: 
aaa-available,absolute-timeout,agent-found,authentication-failure,authentication-success,authorization-failure,authorization-success,identity-update,inactivity-timeout,remote-authentication-failure,remote-authentication-success,remote-update,session-disconnected,session-started,tag-added,tag-removed,template-activated,template-activation-failed,template-deactivated,template-deactivation-failed,timer-expiry,violation 
- Choices: 
 - class
Numbers List<PolicyMap Event Class Number>  - class number, 1 for 1st class, 2 for 2nd...
 - device String
 - A device name from the provider configuration.
 - match
Type String - Choices: 
match-all,match-first 
- Choices: 
 - name String
 - Name of the policy map
 
- event
Type string - Choices: 
aaa-available,absolute-timeout,agent-found,authentication-failure,authentication-success,authorization-failure,authorization-success,identity-update,inactivity-timeout,remote-authentication-failure,remote-authentication-success,remote-update,session-disconnected,session-started,tag-added,tag-removed,template-activated,template-activation-failed,template-deactivated,template-deactivation-failed,timer-expiry,violation 
- Choices: 
 - class
Numbers PolicyMap Event Class Number[]  - class number, 1 for 1st class, 2 for 2nd...
 - device string
 - A device name from the provider configuration.
 - match
Type string - Choices: 
match-all,match-first 
- Choices: 
 - name string
 - Name of the policy map
 
- event_
type str - Choices: 
aaa-available,absolute-timeout,agent-found,authentication-failure,authentication-success,authorization-failure,authorization-success,identity-update,inactivity-timeout,remote-authentication-failure,remote-authentication-success,remote-update,session-disconnected,session-started,tag-added,tag-removed,template-activated,template-activation-failed,template-deactivated,template-deactivation-failed,timer-expiry,violation 
- Choices: 
 - class_
numbers Sequence[PolicyMap Event Class Number Args]  - class number, 1 for 1st class, 2 for 2nd...
 - device str
 - A device name from the provider configuration.
 - match_
type str - Choices: 
match-all,match-first 
- Choices: 
 - name str
 - Name of the policy map
 
- event
Type String - Choices: 
aaa-available,absolute-timeout,agent-found,authentication-failure,authentication-success,authorization-failure,authorization-success,identity-update,inactivity-timeout,remote-authentication-failure,remote-authentication-success,remote-update,session-disconnected,session-started,tag-added,tag-removed,template-activated,template-activation-failed,template-deactivated,template-deactivation-failed,timer-expiry,violation 
- Choices: 
 - class
Numbers List<Property Map> - class number, 1 for 1st class, 2 for 2nd...
 - device String
 - A device name from the provider configuration.
 - match
Type String - Choices: 
match-all,match-first 
- Choices: 
 - name String
 - Name of the policy map
 
Outputs
All input properties are implicitly available as output properties. Additionally, the PolicyMapEvent resource produces the following output properties:
- Id string
 - The provider-assigned unique ID for this managed resource.
 
- Id string
 - The provider-assigned unique ID for this managed resource.
 
- id String
 - The provider-assigned unique ID for this managed resource.
 
- id string
 - The provider-assigned unique ID for this managed resource.
 
- id str
 - The provider-assigned unique ID for this managed resource.
 
- id String
 - The provider-assigned unique ID for this managed resource.
 
Look up Existing PolicyMapEvent Resource
Get an existing PolicyMapEvent 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?: PolicyMapEventState, opts?: CustomResourceOptions): PolicyMapEvent@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        class_numbers: Optional[Sequence[PolicyMapEventClassNumberArgs]] = None,
        device: Optional[str] = None,
        event_type: Optional[str] = None,
        match_type: Optional[str] = None,
        name: Optional[str] = None) -> PolicyMapEventfunc GetPolicyMapEvent(ctx *Context, name string, id IDInput, state *PolicyMapEventState, opts ...ResourceOption) (*PolicyMapEvent, error)public static PolicyMapEvent Get(string name, Input<string> id, PolicyMapEventState? state, CustomResourceOptions? opts = null)public static PolicyMapEvent get(String name, Output<String> id, PolicyMapEventState state, CustomResourceOptions options)Resource lookup is not supported in YAML- 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.
 
- Class
Numbers List<Lbrlabs.Pulumi Package. Iosxe. Inputs. Policy Map Event Class Number>  - class number, 1 for 1st class, 2 for 2nd...
 - Device string
 - A device name from the provider configuration.
 - Event
Type string - Choices: 
aaa-available,absolute-timeout,agent-found,authentication-failure,authentication-success,authorization-failure,authorization-success,identity-update,inactivity-timeout,remote-authentication-failure,remote-authentication-success,remote-update,session-disconnected,session-started,tag-added,tag-removed,template-activated,template-activation-failed,template-deactivated,template-deactivation-failed,timer-expiry,violation 
- Choices: 
 - Match
Type string - Choices: 
match-all,match-first 
- Choices: 
 - Name string
 - Name of the policy map
 
- Class
Numbers []PolicyMap Event Class Number Args  - class number, 1 for 1st class, 2 for 2nd...
 - Device string
 - A device name from the provider configuration.
 - Event
Type string - Choices: 
aaa-available,absolute-timeout,agent-found,authentication-failure,authentication-success,authorization-failure,authorization-success,identity-update,inactivity-timeout,remote-authentication-failure,remote-authentication-success,remote-update,session-disconnected,session-started,tag-added,tag-removed,template-activated,template-activation-failed,template-deactivated,template-deactivation-failed,timer-expiry,violation 
- Choices: 
 - Match
Type string - Choices: 
match-all,match-first 
- Choices: 
 - Name string
 - Name of the policy map
 
- class
Numbers List<PolicyMap Event Class Number>  - class number, 1 for 1st class, 2 for 2nd...
 - device String
 - A device name from the provider configuration.
 - event
Type String - Choices: 
aaa-available,absolute-timeout,agent-found,authentication-failure,authentication-success,authorization-failure,authorization-success,identity-update,inactivity-timeout,remote-authentication-failure,remote-authentication-success,remote-update,session-disconnected,session-started,tag-added,tag-removed,template-activated,template-activation-failed,template-deactivated,template-deactivation-failed,timer-expiry,violation 
- Choices: 
 - match
Type String - Choices: 
match-all,match-first 
- Choices: 
 - name String
 - Name of the policy map
 
- class
Numbers PolicyMap Event Class Number[]  - class number, 1 for 1st class, 2 for 2nd...
 - device string
 - A device name from the provider configuration.
 - event
Type string - Choices: 
aaa-available,absolute-timeout,agent-found,authentication-failure,authentication-success,authorization-failure,authorization-success,identity-update,inactivity-timeout,remote-authentication-failure,remote-authentication-success,remote-update,session-disconnected,session-started,tag-added,tag-removed,template-activated,template-activation-failed,template-deactivated,template-deactivation-failed,timer-expiry,violation 
- Choices: 
 - match
Type string - Choices: 
match-all,match-first 
- Choices: 
 - name string
 - Name of the policy map
 
- class_
numbers Sequence[PolicyMap Event Class Number Args]  - class number, 1 for 1st class, 2 for 2nd...
 - device str
 - A device name from the provider configuration.
 - event_
type str - Choices: 
aaa-available,absolute-timeout,agent-found,authentication-failure,authentication-success,authorization-failure,authorization-success,identity-update,inactivity-timeout,remote-authentication-failure,remote-authentication-success,remote-update,session-disconnected,session-started,tag-added,tag-removed,template-activated,template-activation-failed,template-deactivated,template-deactivation-failed,timer-expiry,violation 
- Choices: 
 - match_
type str - Choices: 
match-all,match-first 
- Choices: 
 - name str
 - Name of the policy map
 
- class
Numbers List<Property Map> - class number, 1 for 1st class, 2 for 2nd...
 - device String
 - A device name from the provider configuration.
 - event
Type String - Choices: 
aaa-available,absolute-timeout,agent-found,authentication-failure,authentication-success,authorization-failure,authorization-success,identity-update,inactivity-timeout,remote-authentication-failure,remote-authentication-success,remote-update,session-disconnected,session-started,tag-added,tag-removed,template-activated,template-activation-failed,template-deactivated,template-deactivation-failed,timer-expiry,violation 
- Choices: 
 - match
Type String - Choices: 
match-all,match-first 
- Choices: 
 - name String
 - Name of the policy map
 
Supporting Types
PolicyMapEventClassNumber, PolicyMapEventClassNumberArgs          
- Number int
 - Action
Numbers []PolicyMap Event Class Number Action Number  - Class string
 - Execution
Type string 
- number Integer
 - action
Numbers List<PolicyMap Event Class Number Action Number>  - class_ String
 - execution
Type String 
- number number
 - action
Numbers PolicyMap Event Class Number Action Number[]  - class string
 - execution
Type string 
- number Number
 - action
Numbers List<Property Map> - class String
 - execution
Type String 
PolicyMapEventClassNumberActionNumber, PolicyMapEventClassNumberActionNumberArgs              
- Number int
 - Activate
Service stringTemplate Config Service Template  - Authenticate
Using stringMethod  - Authenticate
Using intPriority  - Authenticate
Using intRetries  - Authenticate
Using intRetry Time  - bool
 - Pause
Reauthentication bool - Terminate
Config string 
- Number int
 - Activate
Service stringTemplate Config Service Template  - Authenticate
Using stringMethod  - Authenticate
Using intPriority  - Authenticate
Using intRetries  - Authenticate
Using intRetry Time  - bool
 - Pause
Reauthentication bool - Terminate
Config string 
- number Integer
 - activate
Service StringTemplate Config Service Template  - authenticate
Using StringMethod  - authenticate
Using IntegerPriority  - authenticate
Using IntegerRetries  - authenticate
Using IntegerRetry Time  - Boolean
 - pause
Reauthentication Boolean - terminate
Config String 
- number number
 - activate
Service stringTemplate Config Service Template  - authenticate
Using stringMethod  - authenticate
Using numberPriority  - authenticate
Using numberRetries  - authenticate
Using numberRetry Time  - boolean
 - pause
Reauthentication boolean - terminate
Config string 
- number Number
 - activate
Service StringTemplate Config Service Template  - authenticate
Using StringMethod  - authenticate
Using NumberPriority  - authenticate
Using NumberRetries  - authenticate
Using NumberRetry Time  - Boolean
 - pause
Reauthentication Boolean - terminate
Config String 
Import
 $ pulumi import iosxe:index/policyMapEvent:PolicyMapEvent example "Cisco-IOS-XE-native:native/policy/Cisco-IOS-XE-policy:policy-map=dot1x_policy/event=authentication-success"
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
 - iosxe lbrlabs/pulumi-iosxe
 - License
 - Apache-2.0
 - Notes
 - This Pulumi package is based on the 
iosxeTerraform Provider.