meraki.organizations.AdaptivePolicySettings
Explore with Pulumi AI
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as meraki from "@pulumi/meraki";
const example = new meraki.organizations.AdaptivePolicySettings("example", {
enabledNetworks: [
"L_11111111",
"L_22222222",
"N_33333333",
"L_44444444",
],
organizationId: "string",
});
export const merakiOrganizationsAdaptivePolicySettingsExample = example;
import pulumi
import pulumi_meraki as meraki
example = meraki.organizations.AdaptivePolicySettings("example",
enabled_networks=[
"L_11111111",
"L_22222222",
"N_33333333",
"L_44444444",
],
organization_id="string")
pulumi.export("merakiOrganizationsAdaptivePolicySettingsExample", 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.NewAdaptivePolicySettings(ctx, "example", &organizations.AdaptivePolicySettingsArgs{
EnabledNetworks: pulumi.StringArray{
pulumi.String("L_11111111"),
pulumi.String("L_22222222"),
pulumi.String("N_33333333"),
pulumi.String("L_44444444"),
},
OrganizationId: pulumi.String("string"),
})
if err != nil {
return err
}
ctx.Export("merakiOrganizationsAdaptivePolicySettingsExample", 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.AdaptivePolicySettings("example", new()
{
EnabledNetworks = new[]
{
"L_11111111",
"L_22222222",
"N_33333333",
"L_44444444",
},
OrganizationId = "string",
});
return new Dictionary<string, object?>
{
["merakiOrganizationsAdaptivePolicySettingsExample"] = example,
};
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.meraki.organizations.AdaptivePolicySettings;
import com.pulumi.meraki.organizations.AdaptivePolicySettingsArgs;
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 AdaptivePolicySettings("example", AdaptivePolicySettingsArgs.builder()
.enabledNetworks(
"L_11111111",
"L_22222222",
"N_33333333",
"L_44444444")
.organizationId("string")
.build());
ctx.export("merakiOrganizationsAdaptivePolicySettingsExample", example);
}
}
resources:
example:
type: meraki:organizations:AdaptivePolicySettings
properties:
enabledNetworks:
- L_11111111
- L_22222222
- N_33333333
- L_44444444
organizationId: string
outputs:
merakiOrganizationsAdaptivePolicySettingsExample: ${example}
Create AdaptivePolicySettings Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new AdaptivePolicySettings(name: string, args: AdaptivePolicySettingsArgs, opts?: CustomResourceOptions);
@overload
def AdaptivePolicySettings(resource_name: str,
args: AdaptivePolicySettingsArgs,
opts: Optional[ResourceOptions] = None)
@overload
def AdaptivePolicySettings(resource_name: str,
opts: Optional[ResourceOptions] = None,
organization_id: Optional[str] = None,
enabled_networks: Optional[Sequence[str]] = None)
func NewAdaptivePolicySettings(ctx *Context, name string, args AdaptivePolicySettingsArgs, opts ...ResourceOption) (*AdaptivePolicySettings, error)
public AdaptivePolicySettings(string name, AdaptivePolicySettingsArgs args, CustomResourceOptions? opts = null)
public AdaptivePolicySettings(String name, AdaptivePolicySettingsArgs args)
public AdaptivePolicySettings(String name, AdaptivePolicySettingsArgs args, CustomResourceOptions options)
type: meraki:organizations:AdaptivePolicySettings
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 AdaptivePolicySettingsArgs
- 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 AdaptivePolicySettingsArgs
- 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 AdaptivePolicySettingsArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AdaptivePolicySettingsArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args AdaptivePolicySettingsArgs
- 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 adaptivePolicySettingsResource = new Meraki.Organizations.AdaptivePolicySettings("adaptivePolicySettingsResource", new()
{
OrganizationId = "string",
EnabledNetworks = new[]
{
"string",
},
});
example, err := organizations.NewAdaptivePolicySettings(ctx, "adaptivePolicySettingsResource", &organizations.AdaptivePolicySettingsArgs{
OrganizationId: pulumi.String("string"),
EnabledNetworks: pulumi.StringArray{
pulumi.String("string"),
},
})
var adaptivePolicySettingsResource = new AdaptivePolicySettings("adaptivePolicySettingsResource", AdaptivePolicySettingsArgs.builder()
.organizationId("string")
.enabledNetworks("string")
.build());
adaptive_policy_settings_resource = meraki.organizations.AdaptivePolicySettings("adaptivePolicySettingsResource",
organization_id="string",
enabled_networks=["string"])
const adaptivePolicySettingsResource = new meraki.organizations.AdaptivePolicySettings("adaptivePolicySettingsResource", {
organizationId: "string",
enabledNetworks: ["string"],
});
type: meraki:organizations:AdaptivePolicySettings
properties:
enabledNetworks:
- string
organizationId: string
AdaptivePolicySettings 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 AdaptivePolicySettings resource accepts the following input properties:
- Organization
Id string - organizationId path parameter. Organization ID
- Enabled
Networks List<string> - List of network IDs with adaptive policy enabled
- Organization
Id string - organizationId path parameter. Organization ID
- Enabled
Networks []string - List of network IDs with adaptive policy enabled
- organization
Id String - organizationId path parameter. Organization ID
- enabled
Networks List<String> - List of network IDs with adaptive policy enabled
- organization
Id string - organizationId path parameter. Organization ID
- enabled
Networks string[] - List of network IDs with adaptive policy enabled
- organization_
id str - organizationId path parameter. Organization ID
- enabled_
networks Sequence[str] - List of network IDs with adaptive policy enabled
- organization
Id String - organizationId path parameter. Organization ID
- enabled
Networks List<String> - List of network IDs with adaptive policy enabled
Outputs
All input properties are implicitly available as output properties. Additionally, the AdaptivePolicySettings 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 AdaptivePolicySettings Resource
Get an existing AdaptivePolicySettings 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?: AdaptivePolicySettingsState, opts?: CustomResourceOptions): AdaptivePolicySettings
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
enabled_networks: Optional[Sequence[str]] = None,
organization_id: Optional[str] = None) -> AdaptivePolicySettings
func GetAdaptivePolicySettings(ctx *Context, name string, id IDInput, state *AdaptivePolicySettingsState, opts ...ResourceOption) (*AdaptivePolicySettings, error)
public static AdaptivePolicySettings Get(string name, Input<string> id, AdaptivePolicySettingsState? state, CustomResourceOptions? opts = null)
public static AdaptivePolicySettings get(String name, Output<String> id, AdaptivePolicySettingsState 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.
- Enabled
Networks List<string> - List of network IDs with adaptive policy enabled
- Organization
Id string - organizationId path parameter. Organization ID
- Enabled
Networks []string - List of network IDs with adaptive policy enabled
- Organization
Id string - organizationId path parameter. Organization ID
- enabled
Networks List<String> - List of network IDs with adaptive policy enabled
- organization
Id String - organizationId path parameter. Organization ID
- enabled
Networks string[] - List of network IDs with adaptive policy enabled
- organization
Id string - organizationId path parameter. Organization ID
- enabled_
networks Sequence[str] - List of network IDs with adaptive policy enabled
- organization_
id str - organizationId path parameter. Organization ID
- enabled
Networks List<String> - List of network IDs with adaptive policy enabled
- organization
Id String - organizationId path parameter. Organization ID
Import
$ pulumi import meraki:organizations/adaptivePolicySettings:AdaptivePolicySettings example "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.