github.com/myhau/pulumi/pkg/v3@v3.70.2-0.20221116134521-f2775972e587/codegen/testing/test/testdata/azure-native-pp/nodejs/azure-native.ts (about) 1 import * as pulumi from "@pulumi/pulumi"; 2 import * as azure_native from "@pulumi/azure-native"; 3 4 const frontDoor = new azure_native.network.FrontDoor("frontDoor", { 5 resourceGroupName: "someGroupName", 6 routingRules: [{ 7 routeConfiguration: { 8 odataType: "#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration", 9 backendPool: { 10 id: "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/backendPools/backendPool1", 11 }, 12 }, 13 }], 14 }); 15 const endpoint = new azure_native.cdn.Endpoint("endpoint", { 16 origins: [], 17 deliveryPolicy: { 18 rules: [{ 19 actions: [ 20 { 21 name: "CacheExpiration", 22 parameters: { 23 cacheBehavior: "Override", 24 cacheDuration: "10:10:09", 25 cacheType: "All", 26 odataType: "#Microsoft.Azure.Cdn.Models.DeliveryRuleCacheExpirationActionParameters", 27 }, 28 }, 29 { 30 name: "ModifyResponseHeader", 31 parameters: { 32 headerAction: "Overwrite", 33 headerName: "Access-Control-Allow-Origin", 34 odataType: "#Microsoft.Azure.Cdn.Models.DeliveryRuleHeaderActionParameters", 35 value: "*", 36 }, 37 }, 38 { 39 name: "ModifyRequestHeader", 40 parameters: { 41 headerAction: "Overwrite", 42 headerName: "Accept-Encoding", 43 odataType: "#Microsoft.Azure.Cdn.Models.DeliveryRuleHeaderActionParameters", 44 value: "gzip", 45 }, 46 }, 47 ], 48 conditions: [{ 49 name: "RemoteAddress", 50 parameters: { 51 matchValues: [ 52 "192.168.1.0/24", 53 "10.0.0.0/24", 54 ], 55 negateCondition: true, 56 odataType: "#Microsoft.Azure.Cdn.Models.DeliveryRuleRemoteAddressConditionParameters", 57 operator: "IPMatch", 58 }, 59 }], 60 name: "rule1", 61 order: 1, 62 }], 63 }, 64 endpointName: "endpoint1", 65 isCompressionEnabled: true, 66 isHttpAllowed: true, 67 isHttpsAllowed: true, 68 location: "WestUs", 69 profileName: "profileName", 70 resourceGroupName: "resourceGroupName", 71 });