meraki.organizations.AdaptivePolicyGroups
Explore with Pulumi AI
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:
- Organization
Id string - organizationId path parameter. Organization ID
- Description string
- Description of the group (default: "")
- Name string
- Name of the group
- Policy
Objects List<AdaptivePolicy Groups Policy Object> - 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
- Organization
Id string - organizationId path parameter. Organization ID
- Description string
- Description of the group (default: "")
- Name string
- Name of the group
- Policy
Objects []AdaptivePolicy Groups Policy Object Args - 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
- organization
Id String - organizationId path parameter. Organization ID
- description String
- Description of the group (default: "")
- name String
- Name of the group
- policy
Objects List<AdaptivePolicy Groups Policy Object> - 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
- organization
Id string - organizationId path parameter. Organization ID
- description string
- Description of the group (default: "")
- name string
- Name of the group
- policy
Objects AdaptivePolicy Groups Policy Object[] - 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[AdaptivePolicy Groups Policy Object Args] - 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
- organization
Id String - organizationId path parameter. Organization ID
- description String
- Description of the group (default: "")
- name String
- Name of the group
- policy
Objects 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:
- Created
At string - Group
Id string - Id string
- The provider-assigned unique ID for this managed resource.
- Is
Default boolGroup - Required
Ip List<string>Mappings - Updated
At string
- Created
At string - Group
Id string - Id string
- The provider-assigned unique ID for this managed resource.
- Is
Default boolGroup - Required
Ip []stringMappings - Updated
At string
- created
At String - group
Id String - id String
- The provider-assigned unique ID for this managed resource.
- is
Default BooleanGroup - required
Ip List<String>Mappings - updated
At String
- created
At string - group
Id string - id string
- The provider-assigned unique ID for this managed resource.
- is
Default booleanGroup - required
Ip string[]Mappings - updated
At string
- created_
at str - group_
id str - id str
- The provider-assigned unique ID for this managed resource.
- is_
default_ boolgroup - required_
ip_ Sequence[str]mappings - updated_
at str
- created
At String - group
Id String - id String
- The provider-assigned unique ID for this managed resource.
- is
Default BooleanGroup - required
Ip List<String>Mappings - updated
At 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.
- Created
At string - Description string
- Description of the group (default: "")
- Group
Id string - Is
Default boolGroup - Name string
- Name of the group
- Organization
Id string - organizationId path parameter. Organization ID
- Policy
Objects List<AdaptivePolicy Groups Policy Object> - 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 List<string>Mappings - Sgt int
- SGT value of the group
- Updated
At string
- Created
At string - Description string
- Description of the group (default: "")
- Group
Id string - Is
Default boolGroup - Name string
- Name of the group
- Organization
Id string - organizationId path parameter. Organization ID
- Policy
Objects []AdaptivePolicy Groups Policy Object Args - 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 []stringMappings - Sgt int
- SGT value of the group
- Updated
At string
- created
At String - description String
- Description of the group (default: "")
- group
Id String - is
Default BooleanGroup - name String
- Name of the group
- organization
Id String - organizationId path parameter. Organization ID
- policy
Objects List<AdaptivePolicy Groups Policy Object> - 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 List<String>Mappings - sgt Integer
- SGT value of the group
- updated
At String
- created
At string - description string
- Description of the group (default: "")
- group
Id string - is
Default booleanGroup - name string
- Name of the group
- organization
Id string - organizationId path parameter. Organization ID
- policy
Objects AdaptivePolicy Groups Policy Object[] - 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 string[]Mappings - sgt number
- SGT value of the group
- updated
At string
- created_
at str - description str
- Description of the group (default: "")
- group_
id str - is_
default_ boolgroup - name str
- Name of the group
- organization_
id str - organizationId path parameter. Organization ID
- policy_
objects Sequence[AdaptivePolicy Groups Policy Object Args] - 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_ Sequence[str]mappings - sgt int
- SGT value of the group
- updated_
at str
- created
At String - description String
- Description of the group (default: "")
- group
Id String - is
Default BooleanGroup - name String
- Name of the group
- organization
Id String - organizationId path parameter. Organization ID
- policy
Objects 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) ()
- required
Ip List<String>Mappings - sgt Number
- SGT value of the group
- updated
At String
Supporting Types
AdaptivePolicyGroupsPolicyObject, AdaptivePolicyGroupsPolicyObjectArgs
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.