meraki.organizations.AdaptivePolicyPolicies
Explore with Pulumi AI
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as meraki from "@pulumi/meraki";
const example = new meraki.organizations.AdaptivePolicyPolicies("example", {
acls: [{
id: "444",
name: "Block web",
}],
destinationGroup: {
id: "333",
name: "IoT Servers",
sgt: 51,
},
lastEntryRule: "allow",
organizationId: "string",
sourceGroup: {
id: "222",
name: "IoT Devices",
sgt: 50,
},
});
export const merakiOrganizationsAdaptivePolicyPoliciesExample = example;
import pulumi
import pulumi_meraki as meraki
example = meraki.organizations.AdaptivePolicyPolicies("example",
acls=[{
"id": "444",
"name": "Block web",
}],
destination_group={
"id": "333",
"name": "IoT Servers",
"sgt": 51,
},
last_entry_rule="allow",
organization_id="string",
source_group={
"id": "222",
"name": "IoT Devices",
"sgt": 50,
})
pulumi.export("merakiOrganizationsAdaptivePolicyPoliciesExample", 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.NewAdaptivePolicyPolicies(ctx, "example", &organizations.AdaptivePolicyPoliciesArgs{
Acls: organizations.AdaptivePolicyPoliciesAclArray{
&organizations.AdaptivePolicyPoliciesAclArgs{
Id: pulumi.String("444"),
Name: pulumi.String("Block web"),
},
},
DestinationGroup: &organizations.AdaptivePolicyPoliciesDestinationGroupArgs{
Id: pulumi.String("333"),
Name: pulumi.String("IoT Servers"),
Sgt: pulumi.Int(51),
},
LastEntryRule: pulumi.String("allow"),
OrganizationId: pulumi.String("string"),
SourceGroup: &organizations.AdaptivePolicyPoliciesSourceGroupArgs{
Id: pulumi.String("222"),
Name: pulumi.String("IoT Devices"),
Sgt: pulumi.Int(50),
},
})
if err != nil {
return err
}
ctx.Export("merakiOrganizationsAdaptivePolicyPoliciesExample", 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.AdaptivePolicyPolicies("example", new()
{
Acls = new[]
{
new Meraki.Organizations.Inputs.AdaptivePolicyPoliciesAclArgs
{
Id = "444",
Name = "Block web",
},
},
DestinationGroup = new Meraki.Organizations.Inputs.AdaptivePolicyPoliciesDestinationGroupArgs
{
Id = "333",
Name = "IoT Servers",
Sgt = 51,
},
LastEntryRule = "allow",
OrganizationId = "string",
SourceGroup = new Meraki.Organizations.Inputs.AdaptivePolicyPoliciesSourceGroupArgs
{
Id = "222",
Name = "IoT Devices",
Sgt = 50,
},
});
return new Dictionary<string, object?>
{
["merakiOrganizationsAdaptivePolicyPoliciesExample"] = example,
};
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.meraki.organizations.AdaptivePolicyPolicies;
import com.pulumi.meraki.organizations.AdaptivePolicyPoliciesArgs;
import com.pulumi.meraki.organizations.inputs.AdaptivePolicyPoliciesAclArgs;
import com.pulumi.meraki.organizations.inputs.AdaptivePolicyPoliciesDestinationGroupArgs;
import com.pulumi.meraki.organizations.inputs.AdaptivePolicyPoliciesSourceGroupArgs;
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 AdaptivePolicyPolicies("example", AdaptivePolicyPoliciesArgs.builder()
.acls(AdaptivePolicyPoliciesAclArgs.builder()
.id("444")
.name("Block web")
.build())
.destinationGroup(AdaptivePolicyPoliciesDestinationGroupArgs.builder()
.id("333")
.name("IoT Servers")
.sgt(51)
.build())
.lastEntryRule("allow")
.organizationId("string")
.sourceGroup(AdaptivePolicyPoliciesSourceGroupArgs.builder()
.id("222")
.name("IoT Devices")
.sgt(50)
.build())
.build());
ctx.export("merakiOrganizationsAdaptivePolicyPoliciesExample", example);
}
}
resources:
example:
type: meraki:organizations:AdaptivePolicyPolicies
properties:
acls:
- id: '444'
name: Block web
destinationGroup:
id: '333'
name: IoT Servers
sgt: 51
lastEntryRule: allow
organizationId: string
sourceGroup:
id: '222'
name: IoT Devices
sgt: 50
outputs:
merakiOrganizationsAdaptivePolicyPoliciesExample: ${example}
Create AdaptivePolicyPolicies Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new AdaptivePolicyPolicies(name: string, args: AdaptivePolicyPoliciesArgs, opts?: CustomResourceOptions);
@overload
def AdaptivePolicyPolicies(resource_name: str,
args: AdaptivePolicyPoliciesArgs,
opts: Optional[ResourceOptions] = None)
@overload
def AdaptivePolicyPolicies(resource_name: str,
opts: Optional[ResourceOptions] = None,
organization_id: Optional[str] = None,
acls: Optional[Sequence[AdaptivePolicyPoliciesAclArgs]] = None,
destination_group: Optional[AdaptivePolicyPoliciesDestinationGroupArgs] = None,
last_entry_rule: Optional[str] = None,
source_group: Optional[AdaptivePolicyPoliciesSourceGroupArgs] = None)
func NewAdaptivePolicyPolicies(ctx *Context, name string, args AdaptivePolicyPoliciesArgs, opts ...ResourceOption) (*AdaptivePolicyPolicies, error)
public AdaptivePolicyPolicies(string name, AdaptivePolicyPoliciesArgs args, CustomResourceOptions? opts = null)
public AdaptivePolicyPolicies(String name, AdaptivePolicyPoliciesArgs args)
public AdaptivePolicyPolicies(String name, AdaptivePolicyPoliciesArgs args, CustomResourceOptions options)
type: meraki:organizations:AdaptivePolicyPolicies
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 AdaptivePolicyPoliciesArgs
- 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 AdaptivePolicyPoliciesArgs
- 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 AdaptivePolicyPoliciesArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AdaptivePolicyPoliciesArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args AdaptivePolicyPoliciesArgs
- 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 adaptivePolicyPoliciesResource = new Meraki.Organizations.AdaptivePolicyPolicies("adaptivePolicyPoliciesResource", new()
{
OrganizationId = "string",
Acls = new[]
{
new Meraki.Organizations.Inputs.AdaptivePolicyPoliciesAclArgs
{
Id = "string",
Name = "string",
},
},
DestinationGroup = new Meraki.Organizations.Inputs.AdaptivePolicyPoliciesDestinationGroupArgs
{
Id = "string",
Name = "string",
Sgt = 0,
},
LastEntryRule = "string",
SourceGroup = new Meraki.Organizations.Inputs.AdaptivePolicyPoliciesSourceGroupArgs
{
Id = "string",
Name = "string",
Sgt = 0,
},
});
example, err := organizations.NewAdaptivePolicyPolicies(ctx, "adaptivePolicyPoliciesResource", &organizations.AdaptivePolicyPoliciesArgs{
OrganizationId: pulumi.String("string"),
Acls: organizations.AdaptivePolicyPoliciesAclArray{
&organizations.AdaptivePolicyPoliciesAclArgs{
Id: pulumi.String("string"),
Name: pulumi.String("string"),
},
},
DestinationGroup: &organizations.AdaptivePolicyPoliciesDestinationGroupArgs{
Id: pulumi.String("string"),
Name: pulumi.String("string"),
Sgt: pulumi.Int(0),
},
LastEntryRule: pulumi.String("string"),
SourceGroup: &organizations.AdaptivePolicyPoliciesSourceGroupArgs{
Id: pulumi.String("string"),
Name: pulumi.String("string"),
Sgt: pulumi.Int(0),
},
})
var adaptivePolicyPoliciesResource = new AdaptivePolicyPolicies("adaptivePolicyPoliciesResource", AdaptivePolicyPoliciesArgs.builder()
.organizationId("string")
.acls(AdaptivePolicyPoliciesAclArgs.builder()
.id("string")
.name("string")
.build())
.destinationGroup(AdaptivePolicyPoliciesDestinationGroupArgs.builder()
.id("string")
.name("string")
.sgt(0)
.build())
.lastEntryRule("string")
.sourceGroup(AdaptivePolicyPoliciesSourceGroupArgs.builder()
.id("string")
.name("string")
.sgt(0)
.build())
.build());
adaptive_policy_policies_resource = meraki.organizations.AdaptivePolicyPolicies("adaptivePolicyPoliciesResource",
organization_id="string",
acls=[{
"id": "string",
"name": "string",
}],
destination_group={
"id": "string",
"name": "string",
"sgt": 0,
},
last_entry_rule="string",
source_group={
"id": "string",
"name": "string",
"sgt": 0,
})
const adaptivePolicyPoliciesResource = new meraki.organizations.AdaptivePolicyPolicies("adaptivePolicyPoliciesResource", {
organizationId: "string",
acls: [{
id: "string",
name: "string",
}],
destinationGroup: {
id: "string",
name: "string",
sgt: 0,
},
lastEntryRule: "string",
sourceGroup: {
id: "string",
name: "string",
sgt: 0,
},
});
type: meraki:organizations:AdaptivePolicyPolicies
properties:
acls:
- id: string
name: string
destinationGroup:
id: string
name: string
sgt: 0
lastEntryRule: string
organizationId: string
sourceGroup:
id: string
name: string
sgt: 0
AdaptivePolicyPolicies 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 AdaptivePolicyPolicies resource accepts the following input properties:
- Organization
Id string - organizationId path parameter. Organization ID
- Acls
List<Adaptive
Policy Policies Acl> - An ordered array of adaptive policy ACLs (each requires one unique attribute) that apply to this policy (default: [])
- Destination
Group AdaptivePolicy Policies Destination Group - The destination adaptive policy group (requires one unique attribute)
- Last
Entry stringRule - The rule to apply if there is no matching ACL (default: "default")
- Source
Group AdaptivePolicy Policies Source Group - The source adaptive policy group (requires one unique attribute)
- Organization
Id string - organizationId path parameter. Organization ID
- Acls
[]Adaptive
Policy Policies Acl Args - An ordered array of adaptive policy ACLs (each requires one unique attribute) that apply to this policy (default: [])
- Destination
Group AdaptivePolicy Policies Destination Group Args - The destination adaptive policy group (requires one unique attribute)
- Last
Entry stringRule - The rule to apply if there is no matching ACL (default: "default")
- Source
Group AdaptivePolicy Policies Source Group Args - The source adaptive policy group (requires one unique attribute)
- organization
Id String - organizationId path parameter. Organization ID
- acls
List<Adaptive
Policy Policies Acl> - An ordered array of adaptive policy ACLs (each requires one unique attribute) that apply to this policy (default: [])
- destination
Group AdaptivePolicy Policies Destination Group - The destination adaptive policy group (requires one unique attribute)
- last
Entry StringRule - The rule to apply if there is no matching ACL (default: "default")
- source
Group AdaptivePolicy Policies Source Group - The source adaptive policy group (requires one unique attribute)
- organization
Id string - organizationId path parameter. Organization ID
- acls
Adaptive
Policy Policies Acl[] - An ordered array of adaptive policy ACLs (each requires one unique attribute) that apply to this policy (default: [])
- destination
Group AdaptivePolicy Policies Destination Group - The destination adaptive policy group (requires one unique attribute)
- last
Entry stringRule - The rule to apply if there is no matching ACL (default: "default")
- source
Group AdaptivePolicy Policies Source Group - The source adaptive policy group (requires one unique attribute)
- organization_
id str - organizationId path parameter. Organization ID
- acls
Sequence[Adaptive
Policy Policies Acl Args] - An ordered array of adaptive policy ACLs (each requires one unique attribute) that apply to this policy (default: [])
- destination_
group AdaptivePolicy Policies Destination Group Args - The destination adaptive policy group (requires one unique attribute)
- last_
entry_ strrule - The rule to apply if there is no matching ACL (default: "default")
- source_
group AdaptivePolicy Policies Source Group Args - The source adaptive policy group (requires one unique attribute)
- organization
Id String - organizationId path parameter. Organization ID
- acls List<Property Map>
- An ordered array of adaptive policy ACLs (each requires one unique attribute) that apply to this policy (default: [])
- destination
Group Property Map - The destination adaptive policy group (requires one unique attribute)
- last
Entry StringRule - The rule to apply if there is no matching ACL (default: "default")
- source
Group Property Map - The source adaptive policy group (requires one unique attribute)
Outputs
All input properties are implicitly available as output properties. Additionally, the AdaptivePolicyPolicies resource produces the following output properties:
- Adaptive
Policy stringId - Created
At string - Id string
- The provider-assigned unique ID for this managed resource.
- Updated
At string
- Adaptive
Policy stringId - Created
At string - Id string
- The provider-assigned unique ID for this managed resource.
- Updated
At string
- adaptive
Policy StringId - created
At String - id String
- The provider-assigned unique ID for this managed resource.
- updated
At String
- adaptive
Policy stringId - created
At string - id string
- The provider-assigned unique ID for this managed resource.
- updated
At string
- adaptive_
policy_ strid - created_
at str - id str
- The provider-assigned unique ID for this managed resource.
- updated_
at str
- adaptive
Policy StringId - created
At String - id String
- The provider-assigned unique ID for this managed resource.
- updated
At String
Look up Existing AdaptivePolicyPolicies Resource
Get an existing AdaptivePolicyPolicies 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?: AdaptivePolicyPoliciesState, opts?: CustomResourceOptions): AdaptivePolicyPolicies
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
acls: Optional[Sequence[AdaptivePolicyPoliciesAclArgs]] = None,
adaptive_policy_id: Optional[str] = None,
created_at: Optional[str] = None,
destination_group: Optional[AdaptivePolicyPoliciesDestinationGroupArgs] = None,
last_entry_rule: Optional[str] = None,
organization_id: Optional[str] = None,
source_group: Optional[AdaptivePolicyPoliciesSourceGroupArgs] = None,
updated_at: Optional[str] = None) -> AdaptivePolicyPolicies
func GetAdaptivePolicyPolicies(ctx *Context, name string, id IDInput, state *AdaptivePolicyPoliciesState, opts ...ResourceOption) (*AdaptivePolicyPolicies, error)
public static AdaptivePolicyPolicies Get(string name, Input<string> id, AdaptivePolicyPoliciesState? state, CustomResourceOptions? opts = null)
public static AdaptivePolicyPolicies get(String name, Output<String> id, AdaptivePolicyPoliciesState 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.
- Acls
List<Adaptive
Policy Policies Acl> - An ordered array of adaptive policy ACLs (each requires one unique attribute) that apply to this policy (default: [])
- Adaptive
Policy stringId - Created
At string - Destination
Group AdaptivePolicy Policies Destination Group - The destination adaptive policy group (requires one unique attribute)
- Last
Entry stringRule - The rule to apply if there is no matching ACL (default: "default")
- Organization
Id string - organizationId path parameter. Organization ID
- Source
Group AdaptivePolicy Policies Source Group - The source adaptive policy group (requires one unique attribute)
- Updated
At string
- Acls
[]Adaptive
Policy Policies Acl Args - An ordered array of adaptive policy ACLs (each requires one unique attribute) that apply to this policy (default: [])
- Adaptive
Policy stringId - Created
At string - Destination
Group AdaptivePolicy Policies Destination Group Args - The destination adaptive policy group (requires one unique attribute)
- Last
Entry stringRule - The rule to apply if there is no matching ACL (default: "default")
- Organization
Id string - organizationId path parameter. Organization ID
- Source
Group AdaptivePolicy Policies Source Group Args - The source adaptive policy group (requires one unique attribute)
- Updated
At string
- acls
List<Adaptive
Policy Policies Acl> - An ordered array of adaptive policy ACLs (each requires one unique attribute) that apply to this policy (default: [])
- adaptive
Policy StringId - created
At String - destination
Group AdaptivePolicy Policies Destination Group - The destination adaptive policy group (requires one unique attribute)
- last
Entry StringRule - The rule to apply if there is no matching ACL (default: "default")
- organization
Id String - organizationId path parameter. Organization ID
- source
Group AdaptivePolicy Policies Source Group - The source adaptive policy group (requires one unique attribute)
- updated
At String
- acls
Adaptive
Policy Policies Acl[] - An ordered array of adaptive policy ACLs (each requires one unique attribute) that apply to this policy (default: [])
- adaptive
Policy stringId - created
At string - destination
Group AdaptivePolicy Policies Destination Group - The destination adaptive policy group (requires one unique attribute)
- last
Entry stringRule - The rule to apply if there is no matching ACL (default: "default")
- organization
Id string - organizationId path parameter. Organization ID
- source
Group AdaptivePolicy Policies Source Group - The source adaptive policy group (requires one unique attribute)
- updated
At string
- acls
Sequence[Adaptive
Policy Policies Acl Args] - An ordered array of adaptive policy ACLs (each requires one unique attribute) that apply to this policy (default: [])
- adaptive_
policy_ strid - created_
at str - destination_
group AdaptivePolicy Policies Destination Group Args - The destination adaptive policy group (requires one unique attribute)
- last_
entry_ strrule - The rule to apply if there is no matching ACL (default: "default")
- organization_
id str - organizationId path parameter. Organization ID
- source_
group AdaptivePolicy Policies Source Group Args - The source adaptive policy group (requires one unique attribute)
- updated_
at str
- acls List<Property Map>
- An ordered array of adaptive policy ACLs (each requires one unique attribute) that apply to this policy (default: [])
- adaptive
Policy StringId - created
At String - destination
Group Property Map - The destination adaptive policy group (requires one unique attribute)
- last
Entry StringRule - The rule to apply if there is no matching ACL (default: "default")
- organization
Id String - organizationId path parameter. Organization ID
- source
Group Property Map - The source adaptive policy group (requires one unique attribute)
- updated
At String
Supporting Types
AdaptivePolicyPoliciesAcl, AdaptivePolicyPoliciesAclArgs
AdaptivePolicyPoliciesDestinationGroup, AdaptivePolicyPoliciesDestinationGroupArgs
AdaptivePolicyPoliciesSourceGroup, AdaptivePolicyPoliciesSourceGroupArgs
Import
$ pulumi import meraki:organizations/adaptivePolicyPolicies:AdaptivePolicyPolicies 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.