1. Packages
  2. Meraki Provider
  3. API Docs
  4. organizations
  5. AdaptivePolicyGroups
Cisco Meraki v0.3.2 published on Tuesday, Sep 24, 2024 by Pulumi

meraki.organizations.AdaptivePolicyGroups

Explore with Pulumi AI

meraki logo
Cisco Meraki v0.3.2 published on Tuesday, Sep 24, 2024 by Pulumi

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as meraki from "@pulumi/meraki";
    
    const example = new meraki.organizations.AdaptivePolicyGroups("example", {
        description: "Group of XYZ Corp Employees",
        name: "Employee Group",
        organizationId: "string",
        policyObjects: [{
            id: "2345",
            name: "Example Policy Object",
        }],
        sgt: 1000,
    });
    export const merakiOrganizationsAdaptivePolicyGroupsExample = example;
    
    import pulumi
    import pulumi_meraki as meraki
    
    example = meraki.organizations.AdaptivePolicyGroups("example",
        description="Group of XYZ Corp Employees",
        name="Employee Group",
        organization_id="string",
        policy_objects=[{
            "id": "2345",
            "name": "Example Policy Object",
        }],
        sgt=1000)
    pulumi.export("merakiOrganizationsAdaptivePolicyGroupsExample", example)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-meraki/sdk/go/meraki/organizations"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		example, err := organizations.NewAdaptivePolicyGroups(ctx, "example", &organizations.AdaptivePolicyGroupsArgs{
    			Description:    pulumi.String("Group of XYZ Corp Employees"),
    			Name:           pulumi.String("Employee Group"),
    			OrganizationId: pulumi.String("string"),
    			PolicyObjects: organizations.AdaptivePolicyGroupsPolicyObjectArray{
    				&organizations.AdaptivePolicyGroupsPolicyObjectArgs{
    					Id:   pulumi.String("2345"),
    					Name: pulumi.String("Example Policy Object"),
    				},
    			},
    			Sgt: pulumi.Int(1000),
    		})
    		if err != nil {
    			return err
    		}
    		ctx.Export("merakiOrganizationsAdaptivePolicyGroupsExample", example)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Meraki = Pulumi.Meraki;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Meraki.Organizations.AdaptivePolicyGroups("example", new()
        {
            Description = "Group of XYZ Corp Employees",
            Name = "Employee Group",
            OrganizationId = "string",
            PolicyObjects = new[]
            {
                new Meraki.Organizations.Inputs.AdaptivePolicyGroupsPolicyObjectArgs
                {
                    Id = "2345",
                    Name = "Example Policy Object",
                },
            },
            Sgt = 1000,
        });
    
        return new Dictionary<string, object?>
        {
            ["merakiOrganizationsAdaptivePolicyGroupsExample"] = example,
        };
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.meraki.organizations.AdaptivePolicyGroups;
    import com.pulumi.meraki.organizations.AdaptivePolicyGroupsArgs;
    import com.pulumi.meraki.organizations.inputs.AdaptivePolicyGroupsPolicyObjectArgs;
    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 AdaptivePolicyGroups("example", AdaptivePolicyGroupsArgs.builder()
                .description("Group of XYZ Corp Employees")
                .name("Employee Group")
                .organizationId("string")
                .policyObjects(AdaptivePolicyGroupsPolicyObjectArgs.builder()
                    .id("2345")
                    .name("Example Policy Object")
                    .build())
                .sgt(1000)
                .build());
    
            ctx.export("merakiOrganizationsAdaptivePolicyGroupsExample", example);
        }
    }
    
    resources:
      example:
        type: meraki:organizations:AdaptivePolicyGroups
        properties:
          description: Group of XYZ Corp Employees
          name: Employee Group
          organizationId: string
          policyObjects:
            - id: '2345'
              name: Example Policy Object
          sgt: 1000
    outputs:
      merakiOrganizationsAdaptivePolicyGroupsExample: ${example}
    

    Create AdaptivePolicyGroups Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new AdaptivePolicyGroups(name: string, args: AdaptivePolicyGroupsArgs, opts?: CustomResourceOptions);
    @overload
    def AdaptivePolicyGroups(resource_name: str,
                             args: AdaptivePolicyGroupsArgs,
                             opts: Optional[ResourceOptions] = None)
    
    @overload
    def AdaptivePolicyGroups(resource_name: str,
                             opts: Optional[ResourceOptions] = None,
                             organization_id: Optional[str] = None,
                             description: Optional[str] = None,
                             name: Optional[str] = None,
                             policy_objects: Optional[Sequence[AdaptivePolicyGroupsPolicyObjectArgs]] = None,
                             sgt: Optional[int] = None)
    func NewAdaptivePolicyGroups(ctx *Context, name string, args AdaptivePolicyGroupsArgs, opts ...ResourceOption) (*AdaptivePolicyGroups, error)
    public AdaptivePolicyGroups(string name, AdaptivePolicyGroupsArgs args, CustomResourceOptions? opts = null)
    public AdaptivePolicyGroups(String name, AdaptivePolicyGroupsArgs args)
    public AdaptivePolicyGroups(String name, AdaptivePolicyGroupsArgs args, CustomResourceOptions options)
    
    type: meraki:organizations:AdaptivePolicyGroups
    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 AdaptivePolicyGroupsArgs
    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 AdaptivePolicyGroupsArgs
    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 AdaptivePolicyGroupsArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args AdaptivePolicyGroupsArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args AdaptivePolicyGroupsArgs
    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 adaptivePolicyGroupsResource = new Meraki.Organizations.AdaptivePolicyGroups("adaptivePolicyGroupsResource", new()
    {
        OrganizationId = "string",
        Description = "string",
        Name = "string",
        PolicyObjects = new[]
        {
            new Meraki.Organizations.Inputs.AdaptivePolicyGroupsPolicyObjectArgs
            {
                Id = "string",
                Name = "string",
            },
        },
        Sgt = 0,
    });
    
    example, err := organizations.NewAdaptivePolicyGroups(ctx, "adaptivePolicyGroupsResource", &organizations.AdaptivePolicyGroupsArgs{
    	OrganizationId: pulumi.String("string"),
    	Description:    pulumi.String("string"),
    	Name:           pulumi.String("string"),
    	PolicyObjects: organizations.AdaptivePolicyGroupsPolicyObjectArray{
    		&organizations.AdaptivePolicyGroupsPolicyObjectArgs{
    			Id:   pulumi.String("string"),
    			Name: pulumi.String("string"),
    		},
    	},
    	Sgt: pulumi.Int(0),
    })
    
    var adaptivePolicyGroupsResource = new AdaptivePolicyGroups("adaptivePolicyGroupsResource", AdaptivePolicyGroupsArgs.builder()
        .organizationId("string")
        .description("string")
        .name("string")
        .policyObjects(AdaptivePolicyGroupsPolicyObjectArgs.builder()
            .id("string")
            .name("string")
            .build())
        .sgt(0)
        .build());
    
    adaptive_policy_groups_resource = meraki.organizations.AdaptivePolicyGroups("adaptivePolicyGroupsResource",
        organization_id="string",
        description="string",
        name="string",
        policy_objects=[{
            "id": "string",
            "name": "string",
        }],
        sgt=0)
    
    const adaptivePolicyGroupsResource = new meraki.organizations.AdaptivePolicyGroups("adaptivePolicyGroupsResource", {
        organizationId: "string",
        description: "string",
        name: "string",
        policyObjects: [{
            id: "string",
            name: "string",
        }],
        sgt: 0,
    });
    
    type: meraki:organizations:AdaptivePolicyGroups
    properties:
        description: string
        name: string
        organizationId: string
        policyObjects:
            - id: string
              name: string
        sgt: 0
    

    AdaptivePolicyGroups 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 AdaptivePolicyGroups resource accepts the following input properties:

    OrganizationId string
    organizationId path parameter. Organization ID
    Description string
    Description of the group (default: "")
    Name string
    Name of the group
    PolicyObjects List<AdaptivePolicyGroupsPolicyObject>
    The policy objects that belong to this group; traffic from addresses specified by these policy objects will be tagged with this group's SGT value if no other tagging scheme is being used (each requires one unique attribute) ()
    Sgt int
    SGT value of the group
    OrganizationId string
    organizationId path parameter. Organization ID
    Description string
    Description of the group (default: "")
    Name string
    Name of the group
    PolicyObjects []AdaptivePolicyGroupsPolicyObjectArgs
    The policy objects that belong to this group; traffic from addresses specified by these policy objects will be tagged with this group's SGT value if no other tagging scheme is being used (each requires one unique attribute) ()
    Sgt int
    SGT value of the group
    organizationId String
    organizationId path parameter. Organization ID
    description String
    Description of the group (default: "")
    name String
    Name of the group
    policyObjects List<AdaptivePolicyGroupsPolicyObject>
    The policy objects that belong to this group; traffic from addresses specified by these policy objects will be tagged with this group's SGT value if no other tagging scheme is being used (each requires one unique attribute) ()
    sgt Integer
    SGT value of the group
    organizationId string
    organizationId path parameter. Organization ID
    description string
    Description of the group (default: "")
    name string
    Name of the group
    policyObjects AdaptivePolicyGroupsPolicyObject[]
    The policy objects that belong to this group; traffic from addresses specified by these policy objects will be tagged with this group's SGT value if no other tagging scheme is being used (each requires one unique attribute) ()
    sgt number
    SGT value of the group
    organization_id str
    organizationId path parameter. Organization ID
    description str
    Description of the group (default: "")
    name str
    Name of the group
    policy_objects Sequence[AdaptivePolicyGroupsPolicyObjectArgs]
    The policy objects that belong to this group; traffic from addresses specified by these policy objects will be tagged with this group's SGT value if no other tagging scheme is being used (each requires one unique attribute) ()
    sgt int
    SGT value of the group
    organizationId String
    organizationId path parameter. Organization ID
    description String
    Description of the group (default: "")
    name String
    Name of the group
    policyObjects List<Property Map>
    The policy objects that belong to this group; traffic from addresses specified by these policy objects will be tagged with this group's SGT value if no other tagging scheme is being used (each requires one unique attribute) ()
    sgt Number
    SGT value of the group

    Outputs

    All input properties are implicitly available as output properties. Additionally, the AdaptivePolicyGroups resource produces the following output properties:

    CreatedAt string
    GroupId string
    Id string
    The provider-assigned unique ID for this managed resource.
    IsDefaultGroup bool
    RequiredIpMappings List<string>
    UpdatedAt string
    CreatedAt string
    GroupId string
    Id string
    The provider-assigned unique ID for this managed resource.
    IsDefaultGroup bool
    RequiredIpMappings []string
    UpdatedAt string
    createdAt String
    groupId String
    id String
    The provider-assigned unique ID for this managed resource.
    isDefaultGroup Boolean
    requiredIpMappings List<String>
    updatedAt String
    createdAt string
    groupId string
    id string
    The provider-assigned unique ID for this managed resource.
    isDefaultGroup boolean
    requiredIpMappings string[]
    updatedAt string
    created_at str
    group_id str
    id str
    The provider-assigned unique ID for this managed resource.
    is_default_group bool
    required_ip_mappings Sequence[str]
    updated_at str
    createdAt String
    groupId String
    id String
    The provider-assigned unique ID for this managed resource.
    isDefaultGroup Boolean
    requiredIpMappings List<String>
    updatedAt String

    Look up Existing AdaptivePolicyGroups Resource

    Get an existing AdaptivePolicyGroups 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?: AdaptivePolicyGroupsState, opts?: CustomResourceOptions): AdaptivePolicyGroups
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            created_at: Optional[str] = None,
            description: Optional[str] = None,
            group_id: Optional[str] = None,
            is_default_group: Optional[bool] = None,
            name: Optional[str] = None,
            organization_id: Optional[str] = None,
            policy_objects: Optional[Sequence[AdaptivePolicyGroupsPolicyObjectArgs]] = None,
            required_ip_mappings: Optional[Sequence[str]] = None,
            sgt: Optional[int] = None,
            updated_at: Optional[str] = None) -> AdaptivePolicyGroups
    func GetAdaptivePolicyGroups(ctx *Context, name string, id IDInput, state *AdaptivePolicyGroupsState, opts ...ResourceOption) (*AdaptivePolicyGroups, error)
    public static AdaptivePolicyGroups Get(string name, Input<string> id, AdaptivePolicyGroupsState? state, CustomResourceOptions? opts = null)
    public static AdaptivePolicyGroups get(String name, Output<String> id, AdaptivePolicyGroupsState 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.
    The following state arguments are supported:
    CreatedAt string
    Description string
    Description of the group (default: "")
    GroupId string
    IsDefaultGroup bool
    Name string
    Name of the group
    OrganizationId string
    organizationId path parameter. Organization ID
    PolicyObjects List<AdaptivePolicyGroupsPolicyObject>
    The policy objects that belong to this group; traffic from addresses specified by these policy objects will be tagged with this group's SGT value if no other tagging scheme is being used (each requires one unique attribute) ()
    RequiredIpMappings List<string>
    Sgt int
    SGT value of the group
    UpdatedAt string
    CreatedAt string
    Description string
    Description of the group (default: "")
    GroupId string
    IsDefaultGroup bool
    Name string
    Name of the group
    OrganizationId string
    organizationId path parameter. Organization ID
    PolicyObjects []AdaptivePolicyGroupsPolicyObjectArgs
    The policy objects that belong to this group; traffic from addresses specified by these policy objects will be tagged with this group's SGT value if no other tagging scheme is being used (each requires one unique attribute) ()
    RequiredIpMappings []string
    Sgt int
    SGT value of the group
    UpdatedAt string
    createdAt String
    description String
    Description of the group (default: "")
    groupId String
    isDefaultGroup Boolean
    name String
    Name of the group
    organizationId String
    organizationId path parameter. Organization ID
    policyObjects List<AdaptivePolicyGroupsPolicyObject>
    The policy objects that belong to this group; traffic from addresses specified by these policy objects will be tagged with this group's SGT value if no other tagging scheme is being used (each requires one unique attribute) ()
    requiredIpMappings List<String>
    sgt Integer
    SGT value of the group
    updatedAt String
    createdAt string
    description string
    Description of the group (default: "")
    groupId string
    isDefaultGroup boolean
    name string
    Name of the group
    organizationId string
    organizationId path parameter. Organization ID
    policyObjects AdaptivePolicyGroupsPolicyObject[]
    The policy objects that belong to this group; traffic from addresses specified by these policy objects will be tagged with this group's SGT value if no other tagging scheme is being used (each requires one unique attribute) ()
    requiredIpMappings string[]
    sgt number
    SGT value of the group
    updatedAt string
    created_at str
    description str
    Description of the group (default: "")
    group_id str
    is_default_group bool
    name str
    Name of the group
    organization_id str
    organizationId path parameter. Organization ID
    policy_objects Sequence[AdaptivePolicyGroupsPolicyObjectArgs]
    The policy objects that belong to this group; traffic from addresses specified by these policy objects will be tagged with this group's SGT value if no other tagging scheme is being used (each requires one unique attribute) ()
    required_ip_mappings Sequence[str]
    sgt int
    SGT value of the group
    updated_at str
    createdAt String
    description String
    Description of the group (default: "")
    groupId String
    isDefaultGroup Boolean
    name String
    Name of the group
    organizationId String
    organizationId path parameter. Organization ID
    policyObjects List<Property Map>
    The policy objects that belong to this group; traffic from addresses specified by these policy objects will be tagged with this group's SGT value if no other tagging scheme is being used (each requires one unique attribute) ()
    requiredIpMappings List<String>
    sgt Number
    SGT value of the group
    updatedAt String

    Supporting Types

    AdaptivePolicyGroupsPolicyObject, AdaptivePolicyGroupsPolicyObjectArgs

    Id string
    The ID of the policy object
    Name string
    The name of the policy object
    Id string
    The ID of the policy object
    Name string
    The name of the policy object
    id String
    The ID of the policy object
    name String
    The name of the policy object
    id string
    The ID of the policy object
    name string
    The name of the policy object
    id str
    The ID of the policy object
    name str
    The name of the policy object
    id String
    The ID of the policy object
    name String
    The name of the policy object

    Import

    $ pulumi import meraki:organizations/adaptivePolicyGroups:AdaptivePolicyGroups example "id,organization_id"
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    meraki pulumi/pulumi-meraki
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the meraki Terraform Provider.
    meraki logo
    Cisco Meraki v0.3.2 published on Tuesday, Sep 24, 2024 by Pulumi