com.pulumi.azurenative.cdn.Rule Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-native Show documentation
Show all versions of azure-native Show documentation
A native Pulumi package for creating and managing Azure resources.
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package com.pulumi.azurenative.cdn;
import com.pulumi.azurenative.Utilities;
import com.pulumi.azurenative.cdn.RuleArgs;
import com.pulumi.azurenative.cdn.outputs.DeliveryRuleCacheExpirationActionResponse;
import com.pulumi.azurenative.cdn.outputs.DeliveryRuleCacheKeyQueryStringActionResponse;
import com.pulumi.azurenative.cdn.outputs.DeliveryRuleClientPortConditionResponse;
import com.pulumi.azurenative.cdn.outputs.DeliveryRuleCookiesConditionResponse;
import com.pulumi.azurenative.cdn.outputs.DeliveryRuleHostNameConditionResponse;
import com.pulumi.azurenative.cdn.outputs.DeliveryRuleHttpVersionConditionResponse;
import com.pulumi.azurenative.cdn.outputs.DeliveryRuleIsDeviceConditionResponse;
import com.pulumi.azurenative.cdn.outputs.DeliveryRulePostArgsConditionResponse;
import com.pulumi.azurenative.cdn.outputs.DeliveryRuleQueryStringConditionResponse;
import com.pulumi.azurenative.cdn.outputs.DeliveryRuleRemoteAddressConditionResponse;
import com.pulumi.azurenative.cdn.outputs.DeliveryRuleRequestBodyConditionResponse;
import com.pulumi.azurenative.cdn.outputs.DeliveryRuleRequestHeaderActionResponse;
import com.pulumi.azurenative.cdn.outputs.DeliveryRuleRequestHeaderConditionResponse;
import com.pulumi.azurenative.cdn.outputs.DeliveryRuleRequestMethodConditionResponse;
import com.pulumi.azurenative.cdn.outputs.DeliveryRuleRequestSchemeConditionResponse;
import com.pulumi.azurenative.cdn.outputs.DeliveryRuleRequestUriConditionResponse;
import com.pulumi.azurenative.cdn.outputs.DeliveryRuleResponseHeaderActionResponse;
import com.pulumi.azurenative.cdn.outputs.DeliveryRuleRouteConfigurationOverrideActionResponse;
import com.pulumi.azurenative.cdn.outputs.DeliveryRuleServerPortConditionResponse;
import com.pulumi.azurenative.cdn.outputs.DeliveryRuleSocketAddrConditionResponse;
import com.pulumi.azurenative.cdn.outputs.DeliveryRuleSslProtocolConditionResponse;
import com.pulumi.azurenative.cdn.outputs.DeliveryRuleUrlFileExtensionConditionResponse;
import com.pulumi.azurenative.cdn.outputs.DeliveryRuleUrlFileNameConditionResponse;
import com.pulumi.azurenative.cdn.outputs.DeliveryRuleUrlPathConditionResponse;
import com.pulumi.azurenative.cdn.outputs.OriginGroupOverrideActionResponse;
import com.pulumi.azurenative.cdn.outputs.SystemDataResponse;
import com.pulumi.azurenative.cdn.outputs.UrlRedirectActionResponse;
import com.pulumi.azurenative.cdn.outputs.UrlRewriteActionResponse;
import com.pulumi.azurenative.cdn.outputs.UrlSigningActionResponse;
import com.pulumi.core.Alias;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Export;
import com.pulumi.core.annotations.ResourceType;
import com.pulumi.core.internal.Codegen;
import java.lang.Integer;
import java.lang.Object;
import java.lang.String;
import java.util.List;
import java.util.Optional;
import javax.annotation.Nullable;
/**
* Friendly Rules name mapping to the any Rules or secret related information.
* Azure REST API version: 2023-05-01. Prior API version in Azure Native 1.x: 2020-09-01.
*
* Other available API versions: 2023-07-01-preview, 2024-02-01, 2024-05-01-preview, 2024-06-01-preview, 2024-09-01.
*
* ## Example Usage
* ### Rules_Create
*
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.azurenative.cdn.Rule;
* import com.pulumi.azurenative.cdn.RuleArgs;
* 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 rule = new Rule("rule", RuleArgs.builder()
* .actions(DeliveryRuleCacheExpirationActionArgs.builder()
* .name("ModifyResponseHeader")
* .parameters(CacheExpirationActionParametersArgs.builder()
* .headerAction("Overwrite")
* .headerName("X-CDN")
* .typeName("DeliveryRuleHeaderActionParameters")
* .value("MSFT")
* .build())
* .build())
* .conditions(DeliveryRuleRequestMethodConditionArgs.builder()
* .name("RequestMethod")
* .parameters(RequestMethodMatchConditionParametersArgs.builder()
* .matchValues("GET")
* .negateCondition(false)
* .operator("Equal")
* .typeName("DeliveryRuleRequestMethodConditionParameters")
* .build())
* .build())
* .order(1)
* .profileName("profile1")
* .resourceGroupName("RG")
* .ruleName("rule1")
* .ruleSetName("ruleSet1")
* .build());
*
* }
* }
*
* }
*
*
* ## Import
*
* An existing resource can be imported using its type token, name, and identifier, e.g.
*
* ```sh
* $ pulumi import azure-native:cdn:Rule rule1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/ruleSets/{ruleSetName}/rules/{ruleName}
* ```
*
*/
@ResourceType(type="azure-native:cdn:Rule")
public class Rule extends com.pulumi.resources.CustomResource {
/**
* A list of actions that are executed when all the conditions of a rule are satisfied.
*
*/
@Export(name="actions", refs={List.class,Object.class}, tree="[0,1]")
private Output> actions;
/**
* @return A list of actions that are executed when all the conditions of a rule are satisfied.
*
*/
public Output> actions() {
return this.actions;
}
/**
* A list of conditions that must be matched for the actions to be executed
*
*/
@Export(name="conditions", refs={List.class,Object.class}, tree="[0,1]")
private Output* @Nullable */ List
© 2015 - 2024 Weber Informatics LLC | Privacy Policy