1. Packages
  2. Gcore Provider
  3. API Docs
  4. WaapPolicy
gcore 0.24.1 published on Wednesday, Jun 4, 2025 by g-core

gcore.WaapPolicy

Explore with Pulumi AI

gcore logo
gcore 0.24.1 published on Wednesday, Jun 4, 2025 by g-core

    Represent WAAP Policy

    Create WaapPolicy Resource

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

    Constructor syntax

    new WaapPolicy(name: string, args: WaapPolicyArgs, opts?: CustomResourceOptions);
    @overload
    def WaapPolicy(resource_name: str,
                   args: WaapPolicyArgs,
                   opts: Optional[ResourceOptions] = None)
    
    @overload
    def WaapPolicy(resource_name: str,
                   opts: Optional[ResourceOptions] = None,
                   domain_id: Optional[str] = None,
                   policies: Optional[Mapping[str, bool]] = None,
                   waap_policy_id: Optional[str] = None)
    func NewWaapPolicy(ctx *Context, name string, args WaapPolicyArgs, opts ...ResourceOption) (*WaapPolicy, error)
    public WaapPolicy(string name, WaapPolicyArgs args, CustomResourceOptions? opts = null)
    public WaapPolicy(String name, WaapPolicyArgs args)
    public WaapPolicy(String name, WaapPolicyArgs args, CustomResourceOptions options)
    
    type: gcore:WaapPolicy
    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 WaapPolicyArgs
    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 WaapPolicyArgs
    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 WaapPolicyArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args WaapPolicyArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args WaapPolicyArgs
    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 waapPolicyResource = new Gcore.WaapPolicy("waapPolicyResource", new()
    {
        DomainId = "string",
        Policies = 
        {
            { "string", false },
        },
        WaapPolicyId = "string",
    });
    
    example, err := gcore.NewWaapPolicy(ctx, "waapPolicyResource", &gcore.WaapPolicyArgs{
    	DomainId: pulumi.String("string"),
    	Policies: pulumi.BoolMap{
    		"string": pulumi.Bool(false),
    	},
    	WaapPolicyId: pulumi.String("string"),
    })
    
    var waapPolicyResource = new WaapPolicy("waapPolicyResource", WaapPolicyArgs.builder()
        .domainId("string")
        .policies(Map.of("string", false))
        .waapPolicyId("string")
        .build());
    
    waap_policy_resource = gcore.WaapPolicy("waapPolicyResource",
        domain_id="string",
        policies={
            "string": False,
        },
        waap_policy_id="string")
    
    const waapPolicyResource = new gcore.WaapPolicy("waapPolicyResource", {
        domainId: "string",
        policies: {
            string: false,
        },
        waapPolicyId: "string",
    });
    
    type: gcore:WaapPolicy
    properties:
        domainId: string
        policies:
            string: false
        waapPolicyId: string
    

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

    DomainId string
    The WAAP domain ID for which the Policy is configured.
    Policies Dictionary<string, bool>
    A map of policies where each key is a policy ID and the value is a boolean indicating whether the policy is enabled (true) or disabled (false). Policy IDs can be obtained from the API endpoint /v1/domains/{domainid}/rule-sets (the 'rules' field) or you can use the gcorewaapdomainpolicy data source.
    WaapPolicyId string
    The ID of this resource.
    DomainId string
    The WAAP domain ID for which the Policy is configured.
    Policies map[string]bool
    A map of policies where each key is a policy ID and the value is a boolean indicating whether the policy is enabled (true) or disabled (false). Policy IDs can be obtained from the API endpoint /v1/domains/{domainid}/rule-sets (the 'rules' field) or you can use the gcorewaapdomainpolicy data source.
    WaapPolicyId string
    The ID of this resource.
    domainId String
    The WAAP domain ID for which the Policy is configured.
    policies Map<String,Boolean>
    A map of policies where each key is a policy ID and the value is a boolean indicating whether the policy is enabled (true) or disabled (false). Policy IDs can be obtained from the API endpoint /v1/domains/{domainid}/rule-sets (the 'rules' field) or you can use the gcorewaapdomainpolicy data source.
    waapPolicyId String
    The ID of this resource.
    domainId string
    The WAAP domain ID for which the Policy is configured.
    policies {[key: string]: boolean}
    A map of policies where each key is a policy ID and the value is a boolean indicating whether the policy is enabled (true) or disabled (false). Policy IDs can be obtained from the API endpoint /v1/domains/{domainid}/rule-sets (the 'rules' field) or you can use the gcorewaapdomainpolicy data source.
    waapPolicyId string
    The ID of this resource.
    domain_id str
    The WAAP domain ID for which the Policy is configured.
    policies Mapping[str, bool]
    A map of policies where each key is a policy ID and the value is a boolean indicating whether the policy is enabled (true) or disabled (false). Policy IDs can be obtained from the API endpoint /v1/domains/{domainid}/rule-sets (the 'rules' field) or you can use the gcorewaapdomainpolicy data source.
    waap_policy_id str
    The ID of this resource.
    domainId String
    The WAAP domain ID for which the Policy is configured.
    policies Map<Boolean>
    A map of policies where each key is a policy ID and the value is a boolean indicating whether the policy is enabled (true) or disabled (false). Policy IDs can be obtained from the API endpoint /v1/domains/{domainid}/rule-sets (the 'rules' field) or you can use the gcorewaapdomainpolicy data source.
    waapPolicyId String
    The ID of this resource.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the WaapPolicy 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 WaapPolicy Resource

    Get an existing WaapPolicy 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?: WaapPolicyState, opts?: CustomResourceOptions): WaapPolicy
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            domain_id: Optional[str] = None,
            policies: Optional[Mapping[str, bool]] = None,
            waap_policy_id: Optional[str] = None) -> WaapPolicy
    func GetWaapPolicy(ctx *Context, name string, id IDInput, state *WaapPolicyState, opts ...ResourceOption) (*WaapPolicy, error)
    public static WaapPolicy Get(string name, Input<string> id, WaapPolicyState? state, CustomResourceOptions? opts = null)
    public static WaapPolicy get(String name, Output<String> id, WaapPolicyState state, CustomResourceOptions options)
    resources:  _:    type: gcore:WaapPolicy    get:      id: ${id}
    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:
    DomainId string
    The WAAP domain ID for which the Policy is configured.
    Policies Dictionary<string, bool>
    A map of policies where each key is a policy ID and the value is a boolean indicating whether the policy is enabled (true) or disabled (false). Policy IDs can be obtained from the API endpoint /v1/domains/{domainid}/rule-sets (the 'rules' field) or you can use the gcorewaapdomainpolicy data source.
    WaapPolicyId string
    The ID of this resource.
    DomainId string
    The WAAP domain ID for which the Policy is configured.
    Policies map[string]bool
    A map of policies where each key is a policy ID and the value is a boolean indicating whether the policy is enabled (true) or disabled (false). Policy IDs can be obtained from the API endpoint /v1/domains/{domainid}/rule-sets (the 'rules' field) or you can use the gcorewaapdomainpolicy data source.
    WaapPolicyId string
    The ID of this resource.
    domainId String
    The WAAP domain ID for which the Policy is configured.
    policies Map<String,Boolean>
    A map of policies where each key is a policy ID and the value is a boolean indicating whether the policy is enabled (true) or disabled (false). Policy IDs can be obtained from the API endpoint /v1/domains/{domainid}/rule-sets (the 'rules' field) or you can use the gcorewaapdomainpolicy data source.
    waapPolicyId String
    The ID of this resource.
    domainId string
    The WAAP domain ID for which the Policy is configured.
    policies {[key: string]: boolean}
    A map of policies where each key is a policy ID and the value is a boolean indicating whether the policy is enabled (true) or disabled (false). Policy IDs can be obtained from the API endpoint /v1/domains/{domainid}/rule-sets (the 'rules' field) or you can use the gcorewaapdomainpolicy data source.
    waapPolicyId string
    The ID of this resource.
    domain_id str
    The WAAP domain ID for which the Policy is configured.
    policies Mapping[str, bool]
    A map of policies where each key is a policy ID and the value is a boolean indicating whether the policy is enabled (true) or disabled (false). Policy IDs can be obtained from the API endpoint /v1/domains/{domainid}/rule-sets (the 'rules' field) or you can use the gcorewaapdomainpolicy data source.
    waap_policy_id str
    The ID of this resource.
    domainId String
    The WAAP domain ID for which the Policy is configured.
    policies Map<Boolean>
    A map of policies where each key is a policy ID and the value is a boolean indicating whether the policy is enabled (true) or disabled (false). Policy IDs can be obtained from the API endpoint /v1/domains/{domainid}/rule-sets (the 'rules' field) or you can use the gcorewaapdomainpolicy data source.
    waapPolicyId String
    The ID of this resource.

    Package Details

    Repository
    gcore g-core/terraform-provider-gcore
    License
    Notes
    This Pulumi package is based on the gcore Terraform Provider.
    gcore logo
    gcore 0.24.1 published on Wednesday, Jun 4, 2025 by g-core