volcengine.cdn.SharedConfig
Explore with Pulumi AI
Provides a resource to manage cdn shared config
Example Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Volcengine = Pulumi.Volcengine;
return await Deployment.RunAsync(() =>
{
var foo = new Volcengine.Cdn.SharedConfig("foo", new()
{
AllowIpAccessRule = new Volcengine.Cdn.Inputs.SharedConfigAllowIpAccessRuleArgs
{
Rules = new[]
{
"1.1.1.1",
"2.2.2.0/24",
"3.3.3.3",
},
},
AllowRefererAccessRule = new Volcengine.Cdn.Inputs.SharedConfigAllowRefererAccessRuleArgs
{
CommonType = new Volcengine.Cdn.Inputs.SharedConfigAllowRefererAccessRuleCommonTypeArgs
{
Rules = new[]
{
"1.1.1.1",
"2.2.2.0/24",
"3.3.4.4",
},
},
},
CommonMatchList = new Volcengine.Cdn.Inputs.SharedConfigCommonMatchListArgs
{
CommonType = new Volcengine.Cdn.Inputs.SharedConfigCommonMatchListCommonTypeArgs
{
Rules = new[]
{
"1.1.1.1",
"2.2.2.0/24",
},
},
},
ConfigName = "tftest",
ConfigType = "allow_referer_access_rule",
DenyIpAccessRule = new Volcengine.Cdn.Inputs.SharedConfigDenyIpAccessRuleArgs
{
Rules = new[]
{
"1.1.1.1",
"2.2.2.0/24",
},
},
DenyRefererAccessRule = new Volcengine.Cdn.Inputs.SharedConfigDenyRefererAccessRuleArgs
{
CommonType = new Volcengine.Cdn.Inputs.SharedConfigDenyRefererAccessRuleCommonTypeArgs
{
Rules = new[]
{
"1.1.1.1",
"2.2.2.0/24",
},
},
},
});
});
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/cdn"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := cdn.NewSharedConfig(ctx, "foo", &cdn.SharedConfigArgs{
AllowIpAccessRule: &cdn.SharedConfigAllowIpAccessRuleArgs{
Rules: pulumi.StringArray{
pulumi.String("1.1.1.1"),
pulumi.String("2.2.2.0/24"),
pulumi.String("3.3.3.3"),
},
},
AllowRefererAccessRule: &cdn.SharedConfigAllowRefererAccessRuleArgs{
CommonType: &cdn.SharedConfigAllowRefererAccessRuleCommonTypeArgs{
Rules: pulumi.StringArray{
pulumi.String("1.1.1.1"),
pulumi.String("2.2.2.0/24"),
pulumi.String("3.3.4.4"),
},
},
},
CommonMatchList: &cdn.SharedConfigCommonMatchListArgs{
CommonType: &cdn.SharedConfigCommonMatchListCommonTypeArgs{
Rules: pulumi.StringArray{
pulumi.String("1.1.1.1"),
pulumi.String("2.2.2.0/24"),
},
},
},
ConfigName: pulumi.String("tftest"),
ConfigType: pulumi.String("allow_referer_access_rule"),
DenyIpAccessRule: &cdn.SharedConfigDenyIpAccessRuleArgs{
Rules: pulumi.StringArray{
pulumi.String("1.1.1.1"),
pulumi.String("2.2.2.0/24"),
},
},
DenyRefererAccessRule: &cdn.SharedConfigDenyRefererAccessRuleArgs{
CommonType: &cdn.SharedConfigDenyRefererAccessRuleCommonTypeArgs{
Rules: pulumi.StringArray{
pulumi.String("1.1.1.1"),
pulumi.String("2.2.2.0/24"),
},
},
},
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.volcengine.cdn.SharedConfig;
import com.pulumi.volcengine.cdn.SharedConfigArgs;
import com.pulumi.volcengine.cdn.inputs.SharedConfigAllowIpAccessRuleArgs;
import com.pulumi.volcengine.cdn.inputs.SharedConfigAllowRefererAccessRuleArgs;
import com.pulumi.volcengine.cdn.inputs.SharedConfigAllowRefererAccessRuleCommonTypeArgs;
import com.pulumi.volcengine.cdn.inputs.SharedConfigCommonMatchListArgs;
import com.pulumi.volcengine.cdn.inputs.SharedConfigCommonMatchListCommonTypeArgs;
import com.pulumi.volcengine.cdn.inputs.SharedConfigDenyIpAccessRuleArgs;
import com.pulumi.volcengine.cdn.inputs.SharedConfigDenyRefererAccessRuleArgs;
import com.pulumi.volcengine.cdn.inputs.SharedConfigDenyRefererAccessRuleCommonTypeArgs;
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 foo = new SharedConfig("foo", SharedConfigArgs.builder()
.allowIpAccessRule(SharedConfigAllowIpAccessRuleArgs.builder()
.rules(
"1.1.1.1",
"2.2.2.0/24",
"3.3.3.3")
.build())
.allowRefererAccessRule(SharedConfigAllowRefererAccessRuleArgs.builder()
.commonType(SharedConfigAllowRefererAccessRuleCommonTypeArgs.builder()
.rules(
"1.1.1.1",
"2.2.2.0/24",
"3.3.4.4")
.build())
.build())
.commonMatchList(SharedConfigCommonMatchListArgs.builder()
.commonType(SharedConfigCommonMatchListCommonTypeArgs.builder()
.rules(
"1.1.1.1",
"2.2.2.0/24")
.build())
.build())
.configName("tftest")
.configType("allow_referer_access_rule")
.denyIpAccessRule(SharedConfigDenyIpAccessRuleArgs.builder()
.rules(
"1.1.1.1",
"2.2.2.0/24")
.build())
.denyRefererAccessRule(SharedConfigDenyRefererAccessRuleArgs.builder()
.commonType(SharedConfigDenyRefererAccessRuleCommonTypeArgs.builder()
.rules(
"1.1.1.1",
"2.2.2.0/24")
.build())
.build())
.build());
}
}
import pulumi
import pulumi_volcengine as volcengine
foo = volcengine.cdn.SharedConfig("foo",
allow_ip_access_rule=volcengine.cdn.SharedConfigAllowIpAccessRuleArgs(
rules=[
"1.1.1.1",
"2.2.2.0/24",
"3.3.3.3",
],
),
allow_referer_access_rule=volcengine.cdn.SharedConfigAllowRefererAccessRuleArgs(
common_type=volcengine.cdn.SharedConfigAllowRefererAccessRuleCommonTypeArgs(
rules=[
"1.1.1.1",
"2.2.2.0/24",
"3.3.4.4",
],
),
),
common_match_list=volcengine.cdn.SharedConfigCommonMatchListArgs(
common_type=volcengine.cdn.SharedConfigCommonMatchListCommonTypeArgs(
rules=[
"1.1.1.1",
"2.2.2.0/24",
],
),
),
config_name="tftest",
config_type="allow_referer_access_rule",
deny_ip_access_rule=volcengine.cdn.SharedConfigDenyIpAccessRuleArgs(
rules=[
"1.1.1.1",
"2.2.2.0/24",
],
),
deny_referer_access_rule=volcengine.cdn.SharedConfigDenyRefererAccessRuleArgs(
common_type=volcengine.cdn.SharedConfigDenyRefererAccessRuleCommonTypeArgs(
rules=[
"1.1.1.1",
"2.2.2.0/24",
],
),
))
import * as pulumi from "@pulumi/pulumi";
import * as volcengine from "@volcengine/pulumi";
const foo = new volcengine.cdn.SharedConfig("foo", {
allowIpAccessRule: {
rules: [
"1.1.1.1",
"2.2.2.0/24",
"3.3.3.3",
],
},
allowRefererAccessRule: {
commonType: {
rules: [
"1.1.1.1",
"2.2.2.0/24",
"3.3.4.4",
],
},
},
commonMatchList: {
commonType: {
rules: [
"1.1.1.1",
"2.2.2.0/24",
],
},
},
configName: "tftest",
configType: "allow_referer_access_rule",
denyIpAccessRule: {
rules: [
"1.1.1.1",
"2.2.2.0/24",
],
},
denyRefererAccessRule: {
commonType: {
rules: [
"1.1.1.1",
"2.2.2.0/24",
],
},
},
});
resources:
foo:
type: volcengine:cdn:SharedConfig
properties:
allowIpAccessRule:
rules:
- 1.1.1.1
- 2.2.2.0/24
- 3.3.3.3
allowRefererAccessRule:
commonType:
rules:
- 1.1.1.1
- 2.2.2.0/24
- 3.3.4.4
commonMatchList:
commonType:
rules:
- 1.1.1.1
- 2.2.2.0/24
configName: tftest
configType: allow_referer_access_rule
denyIpAccessRule:
rules:
- 1.1.1.1
- 2.2.2.0/24
denyRefererAccessRule:
commonType:
rules:
- 1.1.1.1
- 2.2.2.0/24
Create SharedConfig Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new SharedConfig(name: string, args: SharedConfigArgs, opts?: CustomResourceOptions);
@overload
def SharedConfig(resource_name: str,
args: SharedConfigArgs,
opts: Optional[ResourceOptions] = None)
@overload
def SharedConfig(resource_name: str,
opts: Optional[ResourceOptions] = None,
config_name: Optional[str] = None,
config_type: Optional[str] = None,
allow_ip_access_rule: Optional[SharedConfigAllowIpAccessRuleArgs] = None,
allow_referer_access_rule: Optional[SharedConfigAllowRefererAccessRuleArgs] = None,
common_match_list: Optional[SharedConfigCommonMatchListArgs] = None,
deny_ip_access_rule: Optional[SharedConfigDenyIpAccessRuleArgs] = None,
deny_referer_access_rule: Optional[SharedConfigDenyRefererAccessRuleArgs] = None,
project_name: Optional[str] = None)
func NewSharedConfig(ctx *Context, name string, args SharedConfigArgs, opts ...ResourceOption) (*SharedConfig, error)
public SharedConfig(string name, SharedConfigArgs args, CustomResourceOptions? opts = null)
public SharedConfig(String name, SharedConfigArgs args)
public SharedConfig(String name, SharedConfigArgs args, CustomResourceOptions options)
type: volcengine:cdn:SharedConfig
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 SharedConfigArgs
- 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 SharedConfigArgs
- 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 SharedConfigArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SharedConfigArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args SharedConfigArgs
- 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 sharedConfigResource = new Volcengine.Cdn.SharedConfig("sharedConfigResource", new()
{
ConfigName = "string",
ConfigType = "string",
AllowIpAccessRule = new Volcengine.Cdn.Inputs.SharedConfigAllowIpAccessRuleArgs
{
Rules = new[]
{
"string",
},
},
AllowRefererAccessRule = new Volcengine.Cdn.Inputs.SharedConfigAllowRefererAccessRuleArgs
{
CommonType = new Volcengine.Cdn.Inputs.SharedConfigAllowRefererAccessRuleCommonTypeArgs
{
Rules = new[]
{
"string",
},
IgnoreCase = false,
},
AllowEmpty = false,
},
CommonMatchList = new Volcengine.Cdn.Inputs.SharedConfigCommonMatchListArgs
{
CommonType = new Volcengine.Cdn.Inputs.SharedConfigCommonMatchListCommonTypeArgs
{
Rules = new[]
{
"string",
},
IgnoreCase = false,
},
},
DenyIpAccessRule = new Volcengine.Cdn.Inputs.SharedConfigDenyIpAccessRuleArgs
{
Rules = new[]
{
"string",
},
},
DenyRefererAccessRule = new Volcengine.Cdn.Inputs.SharedConfigDenyRefererAccessRuleArgs
{
CommonType = new Volcengine.Cdn.Inputs.SharedConfigDenyRefererAccessRuleCommonTypeArgs
{
Rules = new[]
{
"string",
},
IgnoreCase = false,
},
AllowEmpty = false,
},
ProjectName = "string",
});
example, err := cdn.NewSharedConfig(ctx, "sharedConfigResource", &cdn.SharedConfigArgs{
ConfigName: pulumi.String("string"),
ConfigType: pulumi.String("string"),
AllowIpAccessRule: &cdn.SharedConfigAllowIpAccessRuleArgs{
Rules: pulumi.StringArray{
pulumi.String("string"),
},
},
AllowRefererAccessRule: &cdn.SharedConfigAllowRefererAccessRuleArgs{
CommonType: &cdn.SharedConfigAllowRefererAccessRuleCommonTypeArgs{
Rules: pulumi.StringArray{
pulumi.String("string"),
},
IgnoreCase: pulumi.Bool(false),
},
AllowEmpty: pulumi.Bool(false),
},
CommonMatchList: &cdn.SharedConfigCommonMatchListArgs{
CommonType: &cdn.SharedConfigCommonMatchListCommonTypeArgs{
Rules: pulumi.StringArray{
pulumi.String("string"),
},
IgnoreCase: pulumi.Bool(false),
},
},
DenyIpAccessRule: &cdn.SharedConfigDenyIpAccessRuleArgs{
Rules: pulumi.StringArray{
pulumi.String("string"),
},
},
DenyRefererAccessRule: &cdn.SharedConfigDenyRefererAccessRuleArgs{
CommonType: &cdn.SharedConfigDenyRefererAccessRuleCommonTypeArgs{
Rules: pulumi.StringArray{
pulumi.String("string"),
},
IgnoreCase: pulumi.Bool(false),
},
AllowEmpty: pulumi.Bool(false),
},
ProjectName: pulumi.String("string"),
})
var sharedConfigResource = new SharedConfig("sharedConfigResource", SharedConfigArgs.builder()
.configName("string")
.configType("string")
.allowIpAccessRule(SharedConfigAllowIpAccessRuleArgs.builder()
.rules("string")
.build())
.allowRefererAccessRule(SharedConfigAllowRefererAccessRuleArgs.builder()
.commonType(SharedConfigAllowRefererAccessRuleCommonTypeArgs.builder()
.rules("string")
.ignoreCase(false)
.build())
.allowEmpty(false)
.build())
.commonMatchList(SharedConfigCommonMatchListArgs.builder()
.commonType(SharedConfigCommonMatchListCommonTypeArgs.builder()
.rules("string")
.ignoreCase(false)
.build())
.build())
.denyIpAccessRule(SharedConfigDenyIpAccessRuleArgs.builder()
.rules("string")
.build())
.denyRefererAccessRule(SharedConfigDenyRefererAccessRuleArgs.builder()
.commonType(SharedConfigDenyRefererAccessRuleCommonTypeArgs.builder()
.rules("string")
.ignoreCase(false)
.build())
.allowEmpty(false)
.build())
.projectName("string")
.build());
shared_config_resource = volcengine.cdn.SharedConfig("sharedConfigResource",
config_name="string",
config_type="string",
allow_ip_access_rule=volcengine.cdn.SharedConfigAllowIpAccessRuleArgs(
rules=["string"],
),
allow_referer_access_rule=volcengine.cdn.SharedConfigAllowRefererAccessRuleArgs(
common_type=volcengine.cdn.SharedConfigAllowRefererAccessRuleCommonTypeArgs(
rules=["string"],
ignore_case=False,
),
allow_empty=False,
),
common_match_list=volcengine.cdn.SharedConfigCommonMatchListArgs(
common_type=volcengine.cdn.SharedConfigCommonMatchListCommonTypeArgs(
rules=["string"],
ignore_case=False,
),
),
deny_ip_access_rule=volcengine.cdn.SharedConfigDenyIpAccessRuleArgs(
rules=["string"],
),
deny_referer_access_rule=volcengine.cdn.SharedConfigDenyRefererAccessRuleArgs(
common_type=volcengine.cdn.SharedConfigDenyRefererAccessRuleCommonTypeArgs(
rules=["string"],
ignore_case=False,
),
allow_empty=False,
),
project_name="string")
const sharedConfigResource = new volcengine.cdn.SharedConfig("sharedConfigResource", {
configName: "string",
configType: "string",
allowIpAccessRule: {
rules: ["string"],
},
allowRefererAccessRule: {
commonType: {
rules: ["string"],
ignoreCase: false,
},
allowEmpty: false,
},
commonMatchList: {
commonType: {
rules: ["string"],
ignoreCase: false,
},
},
denyIpAccessRule: {
rules: ["string"],
},
denyRefererAccessRule: {
commonType: {
rules: ["string"],
ignoreCase: false,
},
allowEmpty: false,
},
projectName: "string",
});
type: volcengine:cdn:SharedConfig
properties:
allowIpAccessRule:
rules:
- string
allowRefererAccessRule:
allowEmpty: false
commonType:
ignoreCase: false
rules:
- string
commonMatchList:
commonType:
ignoreCase: false
rules:
- string
configName: string
configType: string
denyIpAccessRule:
rules:
- string
denyRefererAccessRule:
allowEmpty: false
commonType:
ignoreCase: false
rules:
- string
projectName: string
SharedConfig 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 SharedConfig resource accepts the following input properties:
- Config
Name string - The name of the shared config. The name cannot be the same as the name of an existing global configuration under the main account.
- Config
Type string - The type of the shared config. The type of global configuration. The parameter can have the following values:
deny_ip_access_rule
: represents IP blacklist.allow_ip_access_rule
: represents IP whitelist.deny_referer_access_rule
: represents Referer blacklist.allow_referer_access_rule
: represents Referer whitelist.common_match_list
: represents common list. - Allow
Ip SharedAccess Rule Config Allow Ip Access Rule - The configuration for IP whitelist corresponds to ConfigType allow_ip_access_rule.
- Allow
Referer SharedAccess Rule Config Allow Referer Access Rule - The configuration for the Referer whitelist corresponds to ConfigType allow_referer_access_rule.
- Common
Match SharedList Config Common Match List - The configuration for a common list is represented by ConfigType common_match_list.
- Deny
Ip SharedAccess Rule Config Deny Ip Access Rule - The configuration for IP blacklist is denoted by ConfigType deny_ip_access_rule.
- Deny
Referer SharedAccess Rule Config Deny Referer Access Rule - The configuration for the Referer blacklist corresponds to ConfigType deny_referer_access_rule.
- Project
Name string - The ProjectName of the cdn shared config.
- Config
Name string - The name of the shared config. The name cannot be the same as the name of an existing global configuration under the main account.
- Config
Type string - The type of the shared config. The type of global configuration. The parameter can have the following values:
deny_ip_access_rule
: represents IP blacklist.allow_ip_access_rule
: represents IP whitelist.deny_referer_access_rule
: represents Referer blacklist.allow_referer_access_rule
: represents Referer whitelist.common_match_list
: represents common list. - Allow
Ip SharedAccess Rule Config Allow Ip Access Rule Args - The configuration for IP whitelist corresponds to ConfigType allow_ip_access_rule.
- Allow
Referer SharedAccess Rule Config Allow Referer Access Rule Args - The configuration for the Referer whitelist corresponds to ConfigType allow_referer_access_rule.
- Common
Match SharedList Config Common Match List Args - The configuration for a common list is represented by ConfigType common_match_list.
- Deny
Ip SharedAccess Rule Config Deny Ip Access Rule Args - The configuration for IP blacklist is denoted by ConfigType deny_ip_access_rule.
- Deny
Referer SharedAccess Rule Config Deny Referer Access Rule Args - The configuration for the Referer blacklist corresponds to ConfigType deny_referer_access_rule.
- Project
Name string - The ProjectName of the cdn shared config.
- config
Name String - The name of the shared config. The name cannot be the same as the name of an existing global configuration under the main account.
- config
Type String - The type of the shared config. The type of global configuration. The parameter can have the following values:
deny_ip_access_rule
: represents IP blacklist.allow_ip_access_rule
: represents IP whitelist.deny_referer_access_rule
: represents Referer blacklist.allow_referer_access_rule
: represents Referer whitelist.common_match_list
: represents common list. - allow
Ip SharedAccess Rule Config Allow Ip Access Rule - The configuration for IP whitelist corresponds to ConfigType allow_ip_access_rule.
- allow
Referer SharedAccess Rule Config Allow Referer Access Rule - The configuration for the Referer whitelist corresponds to ConfigType allow_referer_access_rule.
- common
Match SharedList Config Common Match List - The configuration for a common list is represented by ConfigType common_match_list.
- deny
Ip SharedAccess Rule Config Deny Ip Access Rule - The configuration for IP blacklist is denoted by ConfigType deny_ip_access_rule.
- deny
Referer SharedAccess Rule Config Deny Referer Access Rule - The configuration for the Referer blacklist corresponds to ConfigType deny_referer_access_rule.
- project
Name String - The ProjectName of the cdn shared config.
- config
Name string - The name of the shared config. The name cannot be the same as the name of an existing global configuration under the main account.
- config
Type string - The type of the shared config. The type of global configuration. The parameter can have the following values:
deny_ip_access_rule
: represents IP blacklist.allow_ip_access_rule
: represents IP whitelist.deny_referer_access_rule
: represents Referer blacklist.allow_referer_access_rule
: represents Referer whitelist.common_match_list
: represents common list. - allow
Ip SharedAccess Rule Config Allow Ip Access Rule - The configuration for IP whitelist corresponds to ConfigType allow_ip_access_rule.
- allow
Referer SharedAccess Rule Config Allow Referer Access Rule - The configuration for the Referer whitelist corresponds to ConfigType allow_referer_access_rule.
- common
Match SharedList Config Common Match List - The configuration for a common list is represented by ConfigType common_match_list.
- deny
Ip SharedAccess Rule Config Deny Ip Access Rule - The configuration for IP blacklist is denoted by ConfigType deny_ip_access_rule.
- deny
Referer SharedAccess Rule Config Deny Referer Access Rule - The configuration for the Referer blacklist corresponds to ConfigType deny_referer_access_rule.
- project
Name string - The ProjectName of the cdn shared config.
- config_
name str - The name of the shared config. The name cannot be the same as the name of an existing global configuration under the main account.
- config_
type str - The type of the shared config. The type of global configuration. The parameter can have the following values:
deny_ip_access_rule
: represents IP blacklist.allow_ip_access_rule
: represents IP whitelist.deny_referer_access_rule
: represents Referer blacklist.allow_referer_access_rule
: represents Referer whitelist.common_match_list
: represents common list. - allow_
ip_ Sharedaccess_ rule Config Allow Ip Access Rule Args - The configuration for IP whitelist corresponds to ConfigType allow_ip_access_rule.
- allow_
referer_ Sharedaccess_ rule Config Allow Referer Access Rule Args - The configuration for the Referer whitelist corresponds to ConfigType allow_referer_access_rule.
- common_
match_ Sharedlist Config Common Match List Args - The configuration for a common list is represented by ConfigType common_match_list.
- deny_
ip_ Sharedaccess_ rule Config Deny Ip Access Rule Args - The configuration for IP blacklist is denoted by ConfigType deny_ip_access_rule.
- deny_
referer_ Sharedaccess_ rule Config Deny Referer Access Rule Args - The configuration for the Referer blacklist corresponds to ConfigType deny_referer_access_rule.
- project_
name str - The ProjectName of the cdn shared config.
- config
Name String - The name of the shared config. The name cannot be the same as the name of an existing global configuration under the main account.
- config
Type String - The type of the shared config. The type of global configuration. The parameter can have the following values:
deny_ip_access_rule
: represents IP blacklist.allow_ip_access_rule
: represents IP whitelist.deny_referer_access_rule
: represents Referer blacklist.allow_referer_access_rule
: represents Referer whitelist.common_match_list
: represents common list. - allow
Ip Property MapAccess Rule - The configuration for IP whitelist corresponds to ConfigType allow_ip_access_rule.
- allow
Referer Property MapAccess Rule - The configuration for the Referer whitelist corresponds to ConfigType allow_referer_access_rule.
- common
Match Property MapList - The configuration for a common list is represented by ConfigType common_match_list.
- deny
Ip Property MapAccess Rule - The configuration for IP blacklist is denoted by ConfigType deny_ip_access_rule.
- deny
Referer Property MapAccess Rule - The configuration for the Referer blacklist corresponds to ConfigType deny_referer_access_rule.
- project
Name String - The ProjectName of the cdn shared config.
Outputs
All input properties are implicitly available as output properties. Additionally, the SharedConfig 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 SharedConfig Resource
Get an existing SharedConfig 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?: SharedConfigState, opts?: CustomResourceOptions): SharedConfig
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
allow_ip_access_rule: Optional[SharedConfigAllowIpAccessRuleArgs] = None,
allow_referer_access_rule: Optional[SharedConfigAllowRefererAccessRuleArgs] = None,
common_match_list: Optional[SharedConfigCommonMatchListArgs] = None,
config_name: Optional[str] = None,
config_type: Optional[str] = None,
deny_ip_access_rule: Optional[SharedConfigDenyIpAccessRuleArgs] = None,
deny_referer_access_rule: Optional[SharedConfigDenyRefererAccessRuleArgs] = None,
project_name: Optional[str] = None) -> SharedConfig
func GetSharedConfig(ctx *Context, name string, id IDInput, state *SharedConfigState, opts ...ResourceOption) (*SharedConfig, error)
public static SharedConfig Get(string name, Input<string> id, SharedConfigState? state, CustomResourceOptions? opts = null)
public static SharedConfig get(String name, Output<String> id, SharedConfigState 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.
- Allow
Ip SharedAccess Rule Config Allow Ip Access Rule - The configuration for IP whitelist corresponds to ConfigType allow_ip_access_rule.
- Allow
Referer SharedAccess Rule Config Allow Referer Access Rule - The configuration for the Referer whitelist corresponds to ConfigType allow_referer_access_rule.
- Common
Match SharedList Config Common Match List - The configuration for a common list is represented by ConfigType common_match_list.
- Config
Name string - The name of the shared config. The name cannot be the same as the name of an existing global configuration under the main account.
- Config
Type string - The type of the shared config. The type of global configuration. The parameter can have the following values:
deny_ip_access_rule
: represents IP blacklist.allow_ip_access_rule
: represents IP whitelist.deny_referer_access_rule
: represents Referer blacklist.allow_referer_access_rule
: represents Referer whitelist.common_match_list
: represents common list. - Deny
Ip SharedAccess Rule Config Deny Ip Access Rule - The configuration for IP blacklist is denoted by ConfigType deny_ip_access_rule.
- Deny
Referer SharedAccess Rule Config Deny Referer Access Rule - The configuration for the Referer blacklist corresponds to ConfigType deny_referer_access_rule.
- Project
Name string - The ProjectName of the cdn shared config.
- Allow
Ip SharedAccess Rule Config Allow Ip Access Rule Args - The configuration for IP whitelist corresponds to ConfigType allow_ip_access_rule.
- Allow
Referer SharedAccess Rule Config Allow Referer Access Rule Args - The configuration for the Referer whitelist corresponds to ConfigType allow_referer_access_rule.
- Common
Match SharedList Config Common Match List Args - The configuration for a common list is represented by ConfigType common_match_list.
- Config
Name string - The name of the shared config. The name cannot be the same as the name of an existing global configuration under the main account.
- Config
Type string - The type of the shared config. The type of global configuration. The parameter can have the following values:
deny_ip_access_rule
: represents IP blacklist.allow_ip_access_rule
: represents IP whitelist.deny_referer_access_rule
: represents Referer blacklist.allow_referer_access_rule
: represents Referer whitelist.common_match_list
: represents common list. - Deny
Ip SharedAccess Rule Config Deny Ip Access Rule Args - The configuration for IP blacklist is denoted by ConfigType deny_ip_access_rule.
- Deny
Referer SharedAccess Rule Config Deny Referer Access Rule Args - The configuration for the Referer blacklist corresponds to ConfigType deny_referer_access_rule.
- Project
Name string - The ProjectName of the cdn shared config.
- allow
Ip SharedAccess Rule Config Allow Ip Access Rule - The configuration for IP whitelist corresponds to ConfigType allow_ip_access_rule.
- allow
Referer SharedAccess Rule Config Allow Referer Access Rule - The configuration for the Referer whitelist corresponds to ConfigType allow_referer_access_rule.
- common
Match SharedList Config Common Match List - The configuration for a common list is represented by ConfigType common_match_list.
- config
Name String - The name of the shared config. The name cannot be the same as the name of an existing global configuration under the main account.
- config
Type String - The type of the shared config. The type of global configuration. The parameter can have the following values:
deny_ip_access_rule
: represents IP blacklist.allow_ip_access_rule
: represents IP whitelist.deny_referer_access_rule
: represents Referer blacklist.allow_referer_access_rule
: represents Referer whitelist.common_match_list
: represents common list. - deny
Ip SharedAccess Rule Config Deny Ip Access Rule - The configuration for IP blacklist is denoted by ConfigType deny_ip_access_rule.
- deny
Referer SharedAccess Rule Config Deny Referer Access Rule - The configuration for the Referer blacklist corresponds to ConfigType deny_referer_access_rule.
- project
Name String - The ProjectName of the cdn shared config.
- allow
Ip SharedAccess Rule Config Allow Ip Access Rule - The configuration for IP whitelist corresponds to ConfigType allow_ip_access_rule.
- allow
Referer SharedAccess Rule Config Allow Referer Access Rule - The configuration for the Referer whitelist corresponds to ConfigType allow_referer_access_rule.
- common
Match SharedList Config Common Match List - The configuration for a common list is represented by ConfigType common_match_list.
- config
Name string - The name of the shared config. The name cannot be the same as the name of an existing global configuration under the main account.
- config
Type string - The type of the shared config. The type of global configuration. The parameter can have the following values:
deny_ip_access_rule
: represents IP blacklist.allow_ip_access_rule
: represents IP whitelist.deny_referer_access_rule
: represents Referer blacklist.allow_referer_access_rule
: represents Referer whitelist.common_match_list
: represents common list. - deny
Ip SharedAccess Rule Config Deny Ip Access Rule - The configuration for IP blacklist is denoted by ConfigType deny_ip_access_rule.
- deny
Referer SharedAccess Rule Config Deny Referer Access Rule - The configuration for the Referer blacklist corresponds to ConfigType deny_referer_access_rule.
- project
Name string - The ProjectName of the cdn shared config.
- allow_
ip_ Sharedaccess_ rule Config Allow Ip Access Rule Args - The configuration for IP whitelist corresponds to ConfigType allow_ip_access_rule.
- allow_
referer_ Sharedaccess_ rule Config Allow Referer Access Rule Args - The configuration for the Referer whitelist corresponds to ConfigType allow_referer_access_rule.
- common_
match_ Sharedlist Config Common Match List Args - The configuration for a common list is represented by ConfigType common_match_list.
- config_
name str - The name of the shared config. The name cannot be the same as the name of an existing global configuration under the main account.
- config_
type str - The type of the shared config. The type of global configuration. The parameter can have the following values:
deny_ip_access_rule
: represents IP blacklist.allow_ip_access_rule
: represents IP whitelist.deny_referer_access_rule
: represents Referer blacklist.allow_referer_access_rule
: represents Referer whitelist.common_match_list
: represents common list. - deny_
ip_ Sharedaccess_ rule Config Deny Ip Access Rule Args - The configuration for IP blacklist is denoted by ConfigType deny_ip_access_rule.
- deny_
referer_ Sharedaccess_ rule Config Deny Referer Access Rule Args - The configuration for the Referer blacklist corresponds to ConfigType deny_referer_access_rule.
- project_
name str - The ProjectName of the cdn shared config.
- allow
Ip Property MapAccess Rule - The configuration for IP whitelist corresponds to ConfigType allow_ip_access_rule.
- allow
Referer Property MapAccess Rule - The configuration for the Referer whitelist corresponds to ConfigType allow_referer_access_rule.
- common
Match Property MapList - The configuration for a common list is represented by ConfigType common_match_list.
- config
Name String - The name of the shared config. The name cannot be the same as the name of an existing global configuration under the main account.
- config
Type String - The type of the shared config. The type of global configuration. The parameter can have the following values:
deny_ip_access_rule
: represents IP blacklist.allow_ip_access_rule
: represents IP whitelist.deny_referer_access_rule
: represents Referer blacklist.allow_referer_access_rule
: represents Referer whitelist.common_match_list
: represents common list. - deny
Ip Property MapAccess Rule - The configuration for IP blacklist is denoted by ConfigType deny_ip_access_rule.
- deny
Referer Property MapAccess Rule - The configuration for the Referer blacklist corresponds to ConfigType deny_referer_access_rule.
- project
Name String - The ProjectName of the cdn shared config.
Supporting Types
SharedConfigAllowIpAccessRule, SharedConfigAllowIpAccessRuleArgs
- Rules List<string>
- The entries in this list are an array of IP addresses and CIDR network segments. The total number of entries cannot exceed 3,000. The IP addresses and segments can be in IPv4 and IPv6 format. Duplicate entries in the list will be removed and will not count towards the limit.
- Rules []string
- The entries in this list are an array of IP addresses and CIDR network segments. The total number of entries cannot exceed 3,000. The IP addresses and segments can be in IPv4 and IPv6 format. Duplicate entries in the list will be removed and will not count towards the limit.
- rules List<String>
- The entries in this list are an array of IP addresses and CIDR network segments. The total number of entries cannot exceed 3,000. The IP addresses and segments can be in IPv4 and IPv6 format. Duplicate entries in the list will be removed and will not count towards the limit.
- rules string[]
- The entries in this list are an array of IP addresses and CIDR network segments. The total number of entries cannot exceed 3,000. The IP addresses and segments can be in IPv4 and IPv6 format. Duplicate entries in the list will be removed and will not count towards the limit.
- rules Sequence[str]
- The entries in this list are an array of IP addresses and CIDR network segments. The total number of entries cannot exceed 3,000. The IP addresses and segments can be in IPv4 and IPv6 format. Duplicate entries in the list will be removed and will not count towards the limit.
- rules List<String>
- The entries in this list are an array of IP addresses and CIDR network segments. The total number of entries cannot exceed 3,000. The IP addresses and segments can be in IPv4 and IPv6 format. Duplicate entries in the list will be removed and will not count towards the limit.
SharedConfigAllowRefererAccessRule, SharedConfigAllowRefererAccessRuleArgs
- Common
Type SharedConfig Allow Referer Access Rule Common Type - The content indicating the Referer whitelist.
- Allow
Empty bool - Indicates whether an empty Referer header, or a request without a Referer header, is not allowed. Default is false.
- Common
Type SharedConfig Allow Referer Access Rule Common Type - The content indicating the Referer whitelist.
- Allow
Empty bool - Indicates whether an empty Referer header, or a request without a Referer header, is not allowed. Default is false.
- common
Type SharedConfig Allow Referer Access Rule Common Type - The content indicating the Referer whitelist.
- allow
Empty Boolean - Indicates whether an empty Referer header, or a request without a Referer header, is not allowed. Default is false.
- common
Type SharedConfig Allow Referer Access Rule Common Type - The content indicating the Referer whitelist.
- allow
Empty boolean - Indicates whether an empty Referer header, or a request without a Referer header, is not allowed. Default is false.
- common_
type SharedConfig Allow Referer Access Rule Common Type - The content indicating the Referer whitelist.
- allow_
empty bool - Indicates whether an empty Referer header, or a request without a Referer header, is not allowed. Default is false.
- common
Type Property Map - The content indicating the Referer whitelist.
- allow
Empty Boolean - Indicates whether an empty Referer header, or a request without a Referer header, is not allowed. Default is false.
SharedConfigAllowRefererAccessRuleCommonType, SharedConfigAllowRefererAccessRuleCommonTypeArgs
- Rules List<string>
- The entries in this list are an array of IP addresses and CIDR network segments. The total number of entries cannot exceed 3,000. The IP addresses and segments can be in IPv4 and IPv6 format. Duplicate entries in the list will be removed and will not count towards the limit.
- Ignore
Case bool - This list is case-sensitive when matching requests. Default is true.
- Rules []string
- The entries in this list are an array of IP addresses and CIDR network segments. The total number of entries cannot exceed 3,000. The IP addresses and segments can be in IPv4 and IPv6 format. Duplicate entries in the list will be removed and will not count towards the limit.
- Ignore
Case bool - This list is case-sensitive when matching requests. Default is true.
- rules List<String>
- The entries in this list are an array of IP addresses and CIDR network segments. The total number of entries cannot exceed 3,000. The IP addresses and segments can be in IPv4 and IPv6 format. Duplicate entries in the list will be removed and will not count towards the limit.
- ignore
Case Boolean - This list is case-sensitive when matching requests. Default is true.
- rules string[]
- The entries in this list are an array of IP addresses and CIDR network segments. The total number of entries cannot exceed 3,000. The IP addresses and segments can be in IPv4 and IPv6 format. Duplicate entries in the list will be removed and will not count towards the limit.
- ignore
Case boolean - This list is case-sensitive when matching requests. Default is true.
- rules Sequence[str]
- The entries in this list are an array of IP addresses and CIDR network segments. The total number of entries cannot exceed 3,000. The IP addresses and segments can be in IPv4 and IPv6 format. Duplicate entries in the list will be removed and will not count towards the limit.
- ignore_
case bool - This list is case-sensitive when matching requests. Default is true.
- rules List<String>
- The entries in this list are an array of IP addresses and CIDR network segments. The total number of entries cannot exceed 3,000. The IP addresses and segments can be in IPv4 and IPv6 format. Duplicate entries in the list will be removed and will not count towards the limit.
- ignore
Case Boolean - This list is case-sensitive when matching requests. Default is true.
SharedConfigCommonMatchList, SharedConfigCommonMatchListArgs
- Common
Type SharedConfig Common Match List Common Type - The content indicating the Referer blacklist.
- Common
Type SharedConfig Common Match List Common Type - The content indicating the Referer blacklist.
- common
Type SharedConfig Common Match List Common Type - The content indicating the Referer blacklist.
- common
Type SharedConfig Common Match List Common Type - The content indicating the Referer blacklist.
- common_
type SharedConfig Common Match List Common Type - The content indicating the Referer blacklist.
- common
Type Property Map - The content indicating the Referer blacklist.
SharedConfigCommonMatchListCommonType, SharedConfigCommonMatchListCommonTypeArgs
- Rules List<string>
- The entries in this list are an array of IP addresses and CIDR network segments. The total number of entries cannot exceed 3,000. The IP addresses and segments can be in IPv4 and IPv6 format. Duplicate entries in the list will be removed and will not count towards the limit.
- Ignore
Case bool - This list is case-sensitive when matching requests. Default is true.
- Rules []string
- The entries in this list are an array of IP addresses and CIDR network segments. The total number of entries cannot exceed 3,000. The IP addresses and segments can be in IPv4 and IPv6 format. Duplicate entries in the list will be removed and will not count towards the limit.
- Ignore
Case bool - This list is case-sensitive when matching requests. Default is true.
- rules List<String>
- The entries in this list are an array of IP addresses and CIDR network segments. The total number of entries cannot exceed 3,000. The IP addresses and segments can be in IPv4 and IPv6 format. Duplicate entries in the list will be removed and will not count towards the limit.
- ignore
Case Boolean - This list is case-sensitive when matching requests. Default is true.
- rules string[]
- The entries in this list are an array of IP addresses and CIDR network segments. The total number of entries cannot exceed 3,000. The IP addresses and segments can be in IPv4 and IPv6 format. Duplicate entries in the list will be removed and will not count towards the limit.
- ignore
Case boolean - This list is case-sensitive when matching requests. Default is true.
- rules Sequence[str]
- The entries in this list are an array of IP addresses and CIDR network segments. The total number of entries cannot exceed 3,000. The IP addresses and segments can be in IPv4 and IPv6 format. Duplicate entries in the list will be removed and will not count towards the limit.
- ignore_
case bool - This list is case-sensitive when matching requests. Default is true.
- rules List<String>
- The entries in this list are an array of IP addresses and CIDR network segments. The total number of entries cannot exceed 3,000. The IP addresses and segments can be in IPv4 and IPv6 format. Duplicate entries in the list will be removed and will not count towards the limit.
- ignore
Case Boolean - This list is case-sensitive when matching requests. Default is true.
SharedConfigDenyIpAccessRule, SharedConfigDenyIpAccessRuleArgs
- Rules List<string>
- The entries in this list are an array of IP addresses and CIDR network segments. The total number of entries cannot exceed 3,000. The IP addresses and segments can be in IPv4 and IPv6 format. Duplicate entries in the list will be removed and will not count towards the limit.
- Rules []string
- The entries in this list are an array of IP addresses and CIDR network segments. The total number of entries cannot exceed 3,000. The IP addresses and segments can be in IPv4 and IPv6 format. Duplicate entries in the list will be removed and will not count towards the limit.
- rules List<String>
- The entries in this list are an array of IP addresses and CIDR network segments. The total number of entries cannot exceed 3,000. The IP addresses and segments can be in IPv4 and IPv6 format. Duplicate entries in the list will be removed and will not count towards the limit.
- rules string[]
- The entries in this list are an array of IP addresses and CIDR network segments. The total number of entries cannot exceed 3,000. The IP addresses and segments can be in IPv4 and IPv6 format. Duplicate entries in the list will be removed and will not count towards the limit.
- rules Sequence[str]
- The entries in this list are an array of IP addresses and CIDR network segments. The total number of entries cannot exceed 3,000. The IP addresses and segments can be in IPv4 and IPv6 format. Duplicate entries in the list will be removed and will not count towards the limit.
- rules List<String>
- The entries in this list are an array of IP addresses and CIDR network segments. The total number of entries cannot exceed 3,000. The IP addresses and segments can be in IPv4 and IPv6 format. Duplicate entries in the list will be removed and will not count towards the limit.
SharedConfigDenyRefererAccessRule, SharedConfigDenyRefererAccessRuleArgs
- Common
Type SharedConfig Deny Referer Access Rule Common Type - The content indicating the Referer blacklist.
- Allow
Empty bool - Indicates whether an empty Referer header, or a request without a Referer header, is not allowed. Default is false.
- Common
Type SharedConfig Deny Referer Access Rule Common Type - The content indicating the Referer blacklist.
- Allow
Empty bool - Indicates whether an empty Referer header, or a request without a Referer header, is not allowed. Default is false.
- common
Type SharedConfig Deny Referer Access Rule Common Type - The content indicating the Referer blacklist.
- allow
Empty Boolean - Indicates whether an empty Referer header, or a request without a Referer header, is not allowed. Default is false.
- common
Type SharedConfig Deny Referer Access Rule Common Type - The content indicating the Referer blacklist.
- allow
Empty boolean - Indicates whether an empty Referer header, or a request without a Referer header, is not allowed. Default is false.
- common_
type SharedConfig Deny Referer Access Rule Common Type - The content indicating the Referer blacklist.
- allow_
empty bool - Indicates whether an empty Referer header, or a request without a Referer header, is not allowed. Default is false.
- common
Type Property Map - The content indicating the Referer blacklist.
- allow
Empty Boolean - Indicates whether an empty Referer header, or a request without a Referer header, is not allowed. Default is false.
SharedConfigDenyRefererAccessRuleCommonType, SharedConfigDenyRefererAccessRuleCommonTypeArgs
- Rules List<string>
- The entries in this list are an array of IP addresses and CIDR network segments. The total number of entries cannot exceed 3,000. The IP addresses and segments can be in IPv4 and IPv6 format. Duplicate entries in the list will be removed and will not count towards the limit.
- Ignore
Case bool - This list is case-sensitive when matching requests. Default is true.
- Rules []string
- The entries in this list are an array of IP addresses and CIDR network segments. The total number of entries cannot exceed 3,000. The IP addresses and segments can be in IPv4 and IPv6 format. Duplicate entries in the list will be removed and will not count towards the limit.
- Ignore
Case bool - This list is case-sensitive when matching requests. Default is true.
- rules List<String>
- The entries in this list are an array of IP addresses and CIDR network segments. The total number of entries cannot exceed 3,000. The IP addresses and segments can be in IPv4 and IPv6 format. Duplicate entries in the list will be removed and will not count towards the limit.
- ignore
Case Boolean - This list is case-sensitive when matching requests. Default is true.
- rules string[]
- The entries in this list are an array of IP addresses and CIDR network segments. The total number of entries cannot exceed 3,000. The IP addresses and segments can be in IPv4 and IPv6 format. Duplicate entries in the list will be removed and will not count towards the limit.
- ignore
Case boolean - This list is case-sensitive when matching requests. Default is true.
- rules Sequence[str]
- The entries in this list are an array of IP addresses and CIDR network segments. The total number of entries cannot exceed 3,000. The IP addresses and segments can be in IPv4 and IPv6 format. Duplicate entries in the list will be removed and will not count towards the limit.
- ignore_
case bool - This list is case-sensitive when matching requests. Default is true.
- rules List<String>
- The entries in this list are an array of IP addresses and CIDR network segments. The total number of entries cannot exceed 3,000. The IP addresses and segments can be in IPv4 and IPv6 format. Duplicate entries in the list will be removed and will not count towards the limit.
- ignore
Case Boolean - This list is case-sensitive when matching requests. Default is true.
Import
CdnSharedConfig can be imported using the id, e.g.
$ pulumi import volcengine:cdn/sharedConfig:SharedConfig default resource_id
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- volcengine volcengine/pulumi-volcengine
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
volcengine
Terraform Provider.