iosxe.AaaAuthorization
Explore with Pulumi AI
This resource can manage the AAA Authorization 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.AaaAuthorization;
import com.pulumi.iosxe.AaaAuthorizationArgs;
import com.pulumi.iosxe.inputs.AaaAuthorizationExecArgs;
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 AaaAuthorization("example", AaaAuthorizationArgs.builder()
.execs(AaaAuthorizationExecArgs.builder()
.a1_group("GROUP1")
.a1_if_authenticated(true)
.a1_local(false)
.name("TEST")
.build())
.build());
}
}
Coming soon!
Coming soon!
resources:
example:
type: iosxe:AaaAuthorization
properties:
execs:
- a1_group: GROUP1
a1_if_authenticated: true
a1_local: false
name: TEST
Create AaaAuthorization Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new AaaAuthorization(name: string, args?: AaaAuthorizationArgs, opts?: CustomResourceOptions);
@overload
def AaaAuthorization(resource_name: str,
args: Optional[AaaAuthorizationArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def AaaAuthorization(resource_name: str,
opts: Optional[ResourceOptions] = None,
delete_mode: Optional[str] = None,
device: Optional[str] = None,
execs: Optional[Sequence[AaaAuthorizationExecArgs]] = None,
networks: Optional[Sequence[AaaAuthorizationNetworkArgs]] = None)
func NewAaaAuthorization(ctx *Context, name string, args *AaaAuthorizationArgs, opts ...ResourceOption) (*AaaAuthorization, error)
public AaaAuthorization(string name, AaaAuthorizationArgs? args = null, CustomResourceOptions? opts = null)
public AaaAuthorization(String name, AaaAuthorizationArgs args)
public AaaAuthorization(String name, AaaAuthorizationArgs args, CustomResourceOptions options)
type: iosxe:AaaAuthorization
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 AaaAuthorizationArgs
- 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 AaaAuthorizationArgs
- 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 AaaAuthorizationArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AaaAuthorizationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args AaaAuthorizationArgs
- 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 aaaAuthorizationResource = new Iosxe.AaaAuthorization("aaaAuthorizationResource", new()
{
DeleteMode = "string",
Device = "string",
Execs = new[]
{
new Iosxe.Inputs.AaaAuthorizationExecArgs
{
Name = "string",
A1Group = "string",
A1IfAuthenticated = false,
A1Local = false,
A2Local = false,
},
},
Networks = new[]
{
new Iosxe.Inputs.AaaAuthorizationNetworkArgs
{
Id = "string",
A1Group = "string",
},
},
});
example, err := iosxe.NewAaaAuthorization(ctx, "aaaAuthorizationResource", &iosxe.AaaAuthorizationArgs{
DeleteMode: pulumi.String("string"),
Device: pulumi.String("string"),
Execs: iosxe.AaaAuthorizationExecArray{
&iosxe.AaaAuthorizationExecArgs{
Name: pulumi.String("string"),
A1Group: pulumi.String("string"),
A1IfAuthenticated: pulumi.Bool(false),
A1Local: pulumi.Bool(false),
A2Local: pulumi.Bool(false),
},
},
Networks: iosxe.AaaAuthorizationNetworkArray{
&iosxe.AaaAuthorizationNetworkArgs{
Id: pulumi.String("string"),
A1Group: pulumi.String("string"),
},
},
})
var aaaAuthorizationResource = new AaaAuthorization("aaaAuthorizationResource", AaaAuthorizationArgs.builder()
.deleteMode("string")
.device("string")
.execs(AaaAuthorizationExecArgs.builder()
.name("string")
.a1Group("string")
.a1IfAuthenticated(false)
.a1Local(false)
.a2Local(false)
.build())
.networks(AaaAuthorizationNetworkArgs.builder()
.id("string")
.a1Group("string")
.build())
.build());
aaa_authorization_resource = iosxe.AaaAuthorization("aaaAuthorizationResource",
delete_mode="string",
device="string",
execs=[{
"name": "string",
"a1_group": "string",
"a1_if_authenticated": False,
"a1_local": False,
"a2_local": False,
}],
networks=[{
"id": "string",
"a1_group": "string",
}])
const aaaAuthorizationResource = new iosxe.AaaAuthorization("aaaAuthorizationResource", {
deleteMode: "string",
device: "string",
execs: [{
name: "string",
a1Group: "string",
a1IfAuthenticated: false,
a1Local: false,
a2Local: false,
}],
networks: [{
id: "string",
a1Group: "string",
}],
});
type: iosxe:AaaAuthorization
properties:
deleteMode: string
device: string
execs:
- a1Group: string
a1IfAuthenticated: false
a1Local: false
a2Local: false
name: string
networks:
- a1Group: string
id: string
AaaAuthorization Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The AaaAuthorization resource accepts the following input properties:
- Delete
Mode string - Configure behavior when deleting/destroying the resource. Either delete the entire object (YANG container) being
managed, or only delete the individual resource attributes configured explicitly and leave everything else as-is.
Default value is
all
. - Choices:all
,attributes
- Device string
- A device name from the provider configuration.
- Execs
List<Lbrlabs.
Pulumi Package. Iosxe. Inputs. Aaa Authorization Exec> - For starting an exec (shell).
- Networks
List<Lbrlabs.
Pulumi Package. Iosxe. Inputs. Aaa Authorization Network> - For network services. (PPP, SLIP, ARAP)
- Delete
Mode string - Configure behavior when deleting/destroying the resource. Either delete the entire object (YANG container) being
managed, or only delete the individual resource attributes configured explicitly and leave everything else as-is.
Default value is
all
. - Choices:all
,attributes
- Device string
- A device name from the provider configuration.
- Execs
[]Aaa
Authorization Exec Args - For starting an exec (shell).
- Networks
[]Aaa
Authorization Network Args - For network services. (PPP, SLIP, ARAP)
- delete
Mode String - Configure behavior when deleting/destroying the resource. Either delete the entire object (YANG container) being
managed, or only delete the individual resource attributes configured explicitly and leave everything else as-is.
Default value is
all
. - Choices:all
,attributes
- device String
- A device name from the provider configuration.
- execs
List<Aaa
Authorization Exec> - For starting an exec (shell).
- networks
List<Aaa
Authorization Network> - For network services. (PPP, SLIP, ARAP)
- delete
Mode string - Configure behavior when deleting/destroying the resource. Either delete the entire object (YANG container) being
managed, or only delete the individual resource attributes configured explicitly and leave everything else as-is.
Default value is
all
. - Choices:all
,attributes
- device string
- A device name from the provider configuration.
- execs
Aaa
Authorization Exec[] - For starting an exec (shell).
- networks
Aaa
Authorization Network[] - For network services. (PPP, SLIP, ARAP)
- delete_
mode str - Configure behavior when deleting/destroying the resource. Either delete the entire object (YANG container) being
managed, or only delete the individual resource attributes configured explicitly and leave everything else as-is.
Default value is
all
. - Choices:all
,attributes
- device str
- A device name from the provider configuration.
- execs
Sequence[Aaa
Authorization Exec Args] - For starting an exec (shell).
- networks
Sequence[Aaa
Authorization Network Args] - For network services. (PPP, SLIP, ARAP)
- delete
Mode String - Configure behavior when deleting/destroying the resource. Either delete the entire object (YANG container) being
managed, or only delete the individual resource attributes configured explicitly and leave everything else as-is.
Default value is
all
. - Choices:all
,attributes
- device String
- A device name from the provider configuration.
- execs List<Property Map>
- For starting an exec (shell).
- networks List<Property Map>
- For network services. (PPP, SLIP, ARAP)
Outputs
All input properties are implicitly available as output properties. Additionally, the AaaAuthorization 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 AaaAuthorization Resource
Get an existing AaaAuthorization 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?: AaaAuthorizationState, opts?: CustomResourceOptions): AaaAuthorization
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
delete_mode: Optional[str] = None,
device: Optional[str] = None,
execs: Optional[Sequence[AaaAuthorizationExecArgs]] = None,
networks: Optional[Sequence[AaaAuthorizationNetworkArgs]] = None) -> AaaAuthorization
func GetAaaAuthorization(ctx *Context, name string, id IDInput, state *AaaAuthorizationState, opts ...ResourceOption) (*AaaAuthorization, error)
public static AaaAuthorization Get(string name, Input<string> id, AaaAuthorizationState? state, CustomResourceOptions? opts = null)
public static AaaAuthorization get(String name, Output<String> id, AaaAuthorizationState 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.
- Delete
Mode string - Configure behavior when deleting/destroying the resource. Either delete the entire object (YANG container) being
managed, or only delete the individual resource attributes configured explicitly and leave everything else as-is.
Default value is
all
. - Choices:all
,attributes
- Device string
- A device name from the provider configuration.
- Execs
List<Lbrlabs.
Pulumi Package. Iosxe. Inputs. Aaa Authorization Exec> - For starting an exec (shell).
- Networks
List<Lbrlabs.
Pulumi Package. Iosxe. Inputs. Aaa Authorization Network> - For network services. (PPP, SLIP, ARAP)
- Delete
Mode string - Configure behavior when deleting/destroying the resource. Either delete the entire object (YANG container) being
managed, or only delete the individual resource attributes configured explicitly and leave everything else as-is.
Default value is
all
. - Choices:all
,attributes
- Device string
- A device name from the provider configuration.
- Execs
[]Aaa
Authorization Exec Args - For starting an exec (shell).
- Networks
[]Aaa
Authorization Network Args - For network services. (PPP, SLIP, ARAP)
- delete
Mode String - Configure behavior when deleting/destroying the resource. Either delete the entire object (YANG container) being
managed, or only delete the individual resource attributes configured explicitly and leave everything else as-is.
Default value is
all
. - Choices:all
,attributes
- device String
- A device name from the provider configuration.
- execs
List<Aaa
Authorization Exec> - For starting an exec (shell).
- networks
List<Aaa
Authorization Network> - For network services. (PPP, SLIP, ARAP)
- delete
Mode string - Configure behavior when deleting/destroying the resource. Either delete the entire object (YANG container) being
managed, or only delete the individual resource attributes configured explicitly and leave everything else as-is.
Default value is
all
. - Choices:all
,attributes
- device string
- A device name from the provider configuration.
- execs
Aaa
Authorization Exec[] - For starting an exec (shell).
- networks
Aaa
Authorization Network[] - For network services. (PPP, SLIP, ARAP)
- delete_
mode str - Configure behavior when deleting/destroying the resource. Either delete the entire object (YANG container) being
managed, or only delete the individual resource attributes configured explicitly and leave everything else as-is.
Default value is
all
. - Choices:all
,attributes
- device str
- A device name from the provider configuration.
- execs
Sequence[Aaa
Authorization Exec Args] - For starting an exec (shell).
- networks
Sequence[Aaa
Authorization Network Args] - For network services. (PPP, SLIP, ARAP)
- delete
Mode String - Configure behavior when deleting/destroying the resource. Either delete the entire object (YANG container) being
managed, or only delete the individual resource attributes configured explicitly and leave everything else as-is.
Default value is
all
. - Choices:all
,attributes
- device String
- A device name from the provider configuration.
- execs List<Property Map>
- For starting an exec (shell).
- networks List<Property Map>
- For network services. (PPP, SLIP, ARAP)
Supporting Types
AaaAuthorizationExec, AaaAuthorizationExecArgs
- Name string
- A1Group string
- A1If
Authenticated bool - A1Local bool
- A2Local bool
- Name string
- A1Group string
- A1If
Authenticated bool - A1Local bool
- A2Local bool
- name String
- a1Group String
- a1If
Authenticated Boolean - a1Local Boolean
- a2Local Boolean
- name string
- a1Group string
- a1If
Authenticated boolean - a1Local boolean
- a2Local boolean
- name str
- a1_
group str - a1_
if_ boolauthenticated - a1_
local bool - a2_
local bool
- name String
- a1Group String
- a1If
Authenticated Boolean - a1Local Boolean
- a2Local Boolean
AaaAuthorizationNetwork, AaaAuthorizationNetworkArgs
Import
$ pulumi import iosxe:index/aaaAuthorization:AaaAuthorization example "Cisco-IOS-XE-native:native/aaa/Cisco-IOS-XE-aaa:authorization"
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
iosxe
Terraform Provider.