/
getPropertyRuleFormats.go
52 lines (48 loc) · 1.67 KB
/
getPropertyRuleFormats.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
// Code generated by the Pulumi Terraform Bridge (tfgen) Tool DO NOT EDIT.
// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! ***
package akamai
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
// Use the `getPropertyRuleFormats` data source to query the list of
// known rule formats.
// You use rule formats to [freeze](https://techdocs.akamai.com/property-mgr/reference/modify-a-rule#freeze-a-feature-set-for-a-rule-tree) or
// [update](https://techdocs.akamai.com/property-mgr/reference/modify-a-rule#update-rules-to-a-newer-set-of-features) the versioned set of behaviors
// and criteria a rule tree invokes. Without this mechanism, behaviors and criteria
// would update automatically and generate unexpected errors.
//
// ## Example Usage
//
// Use this example to list available property rule formats:
//
// ```go
// package main
//
// import (
//
// "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
//
// )
//
// func main() {
// pulumi.Run(func(ctx *pulumi.Context) error {
// ctx.Export("propertyMatch", data.Akamai_property_rule_formats.My-example)
// return nil
// })
// }
//
// ```
func GetPropertyRuleFormats(ctx *pulumi.Context, opts ...pulumi.InvokeOption) (*GetPropertyRuleFormatsResult, error) {
var rv GetPropertyRuleFormatsResult
err := ctx.Invoke("akamai:index/getPropertyRuleFormats:getPropertyRuleFormats", nil, &rv, opts...)
if err != nil {
return nil, err
}
return &rv, nil
}
// A collection of values returned by getPropertyRuleFormats.
type GetPropertyRuleFormatsResult struct {
// The provider-assigned unique ID for this managed resource.
Id string `pulumi:"id"`
RuleFormats []string `pulumi:"ruleFormats"`
}