tencentcloud.TeoOriginAcl
Explore with Pulumi AI
Provides a resource to create a TEO origin acl
NOTE: This resource must exclusive in one origin acl, do not declare additional rule resources of this origin acl elsewhere.
Example Usage
Example coming soon!
Example coming soon!
Example coming soon!
Example coming soon!
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.TeoOriginAcl;
import com.pulumi.tencentcloud.TeoOriginAclArgs;
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 example = new TeoOriginAcl("example", TeoOriginAclArgs.builder()
.zoneId("zone-39quuimqg8r6")
.l7Hosts(
"example1.com",
"example2.com",
"example3.com")
.l4ProxyIds(
"sid-3dwf5252ravl",
"sid-3dwfxzt8ed3l",
"sid-3dwfy5mpwnk4",
"sid-3dwfyaj6qeys")
.timeouts(TeoOriginAclTimeoutsArgs.builder()
.create("30m")
.update("30m")
.delete("30m")
.build())
.build());
}
}
resources:
example:
type: tencentcloud:TeoOriginAcl
properties:
zoneId: zone-39quuimqg8r6
l7Hosts:
- example1.com
- example2.com
- example3.com
l4ProxyIds:
- sid-3dwf5252ravl
- sid-3dwfxzt8ed3l
- sid-3dwfy5mpwnk4
- sid-3dwfyaj6qeys
timeouts:
- create: 30m
update: 30m
delete: 30m
Create TeoOriginAcl Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new TeoOriginAcl(name: string, args: TeoOriginAclArgs, opts?: CustomResourceOptions);
@overload
def TeoOriginAcl(resource_name: str,
args: TeoOriginAclArgs,
opts: Optional[ResourceOptions] = None)
@overload
def TeoOriginAcl(resource_name: str,
opts: Optional[ResourceOptions] = None,
zone_id: Optional[str] = None,
l4_proxy_ids: Optional[Sequence[str]] = None,
l7_hosts: Optional[Sequence[str]] = None,
teo_origin_acl_id: Optional[str] = None,
timeouts: Optional[TeoOriginAclTimeoutsArgs] = None)
func NewTeoOriginAcl(ctx *Context, name string, args TeoOriginAclArgs, opts ...ResourceOption) (*TeoOriginAcl, error)
public TeoOriginAcl(string name, TeoOriginAclArgs args, CustomResourceOptions? opts = null)
public TeoOriginAcl(String name, TeoOriginAclArgs args)
public TeoOriginAcl(String name, TeoOriginAclArgs args, CustomResourceOptions options)
type: tencentcloud:TeoOriginAcl
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 TeoOriginAclArgs
- 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 TeoOriginAclArgs
- 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 TeoOriginAclArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args TeoOriginAclArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args TeoOriginAclArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
TeoOriginAcl 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 TeoOriginAcl resource accepts the following input properties:
- Zone
Id string - Specifies the site ID.
- L4Proxy
Ids List<string> - he list of L4 proxy Instances that require enabling origin ACLs. This list must be empty when the request parameter L4EnableMode is set to 'all'.
- L7Hosts List<string>
- The list of L7 acceleration domains that require enabling the origin ACLs. This list must be empty when the request parameter L7EnableMode is set to 'all'.
- Teo
Origin stringAcl Id - ID of the resource.
- Timeouts
Teo
Origin Acl Timeouts
- Zone
Id string - Specifies the site ID.
- L4Proxy
Ids []string - he list of L4 proxy Instances that require enabling origin ACLs. This list must be empty when the request parameter L4EnableMode is set to 'all'.
- L7Hosts []string
- The list of L7 acceleration domains that require enabling the origin ACLs. This list must be empty when the request parameter L7EnableMode is set to 'all'.
- Teo
Origin stringAcl Id - ID of the resource.
- Timeouts
Teo
Origin Acl Timeouts Args
- zone
Id String - Specifies the site ID.
- l4Proxy
Ids List<String> - he list of L4 proxy Instances that require enabling origin ACLs. This list must be empty when the request parameter L4EnableMode is set to 'all'.
- l7Hosts List<String>
- The list of L7 acceleration domains that require enabling the origin ACLs. This list must be empty when the request parameter L7EnableMode is set to 'all'.
- teo
Origin StringAcl Id - ID of the resource.
- timeouts
Teo
Origin Acl Timeouts
- zone
Id string - Specifies the site ID.
- l4Proxy
Ids string[] - he list of L4 proxy Instances that require enabling origin ACLs. This list must be empty when the request parameter L4EnableMode is set to 'all'.
- l7Hosts string[]
- The list of L7 acceleration domains that require enabling the origin ACLs. This list must be empty when the request parameter L7EnableMode is set to 'all'.
- teo
Origin stringAcl Id - ID of the resource.
- timeouts
Teo
Origin Acl Timeouts
- zone_
id str - Specifies the site ID.
- l4_
proxy_ Sequence[str]ids - he list of L4 proxy Instances that require enabling origin ACLs. This list must be empty when the request parameter L4EnableMode is set to 'all'.
- l7_
hosts Sequence[str] - The list of L7 acceleration domains that require enabling the origin ACLs. This list must be empty when the request parameter L7EnableMode is set to 'all'.
- teo_
origin_ stracl_ id - ID of the resource.
- timeouts
Teo
Origin Acl Timeouts Args
- zone
Id String - Specifies the site ID.
- l4Proxy
Ids List<String> - he list of L4 proxy Instances that require enabling origin ACLs. This list must be empty when the request parameter L4EnableMode is set to 'all'.
- l7Hosts List<String>
- The list of L7 acceleration domains that require enabling the origin ACLs. This list must be empty when the request parameter L7EnableMode is set to 'all'.
- teo
Origin StringAcl Id - ID of the resource.
- timeouts Property Map
Outputs
All input properties are implicitly available as output properties. Additionally, the TeoOriginAcl 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 TeoOriginAcl Resource
Get an existing TeoOriginAcl 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?: TeoOriginAclState, opts?: CustomResourceOptions): TeoOriginAcl
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
l4_proxy_ids: Optional[Sequence[str]] = None,
l7_hosts: Optional[Sequence[str]] = None,
teo_origin_acl_id: Optional[str] = None,
timeouts: Optional[TeoOriginAclTimeoutsArgs] = None,
zone_id: Optional[str] = None) -> TeoOriginAcl
func GetTeoOriginAcl(ctx *Context, name string, id IDInput, state *TeoOriginAclState, opts ...ResourceOption) (*TeoOriginAcl, error)
public static TeoOriginAcl Get(string name, Input<string> id, TeoOriginAclState? state, CustomResourceOptions? opts = null)
public static TeoOriginAcl get(String name, Output<String> id, TeoOriginAclState state, CustomResourceOptions options)
resources: _: type: tencentcloud:TeoOriginAcl 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.
- L4Proxy
Ids List<string> - he list of L4 proxy Instances that require enabling origin ACLs. This list must be empty when the request parameter L4EnableMode is set to 'all'.
- L7Hosts List<string>
- The list of L7 acceleration domains that require enabling the origin ACLs. This list must be empty when the request parameter L7EnableMode is set to 'all'.
- Teo
Origin stringAcl Id - ID of the resource.
- Timeouts
Teo
Origin Acl Timeouts - Zone
Id string - Specifies the site ID.
- L4Proxy
Ids []string - he list of L4 proxy Instances that require enabling origin ACLs. This list must be empty when the request parameter L4EnableMode is set to 'all'.
- L7Hosts []string
- The list of L7 acceleration domains that require enabling the origin ACLs. This list must be empty when the request parameter L7EnableMode is set to 'all'.
- Teo
Origin stringAcl Id - ID of the resource.
- Timeouts
Teo
Origin Acl Timeouts Args - Zone
Id string - Specifies the site ID.
- l4Proxy
Ids List<String> - he list of L4 proxy Instances that require enabling origin ACLs. This list must be empty when the request parameter L4EnableMode is set to 'all'.
- l7Hosts List<String>
- The list of L7 acceleration domains that require enabling the origin ACLs. This list must be empty when the request parameter L7EnableMode is set to 'all'.
- teo
Origin StringAcl Id - ID of the resource.
- timeouts
Teo
Origin Acl Timeouts - zone
Id String - Specifies the site ID.
- l4Proxy
Ids string[] - he list of L4 proxy Instances that require enabling origin ACLs. This list must be empty when the request parameter L4EnableMode is set to 'all'.
- l7Hosts string[]
- The list of L7 acceleration domains that require enabling the origin ACLs. This list must be empty when the request parameter L7EnableMode is set to 'all'.
- teo
Origin stringAcl Id - ID of the resource.
- timeouts
Teo
Origin Acl Timeouts - zone
Id string - Specifies the site ID.
- l4_
proxy_ Sequence[str]ids - he list of L4 proxy Instances that require enabling origin ACLs. This list must be empty when the request parameter L4EnableMode is set to 'all'.
- l7_
hosts Sequence[str] - The list of L7 acceleration domains that require enabling the origin ACLs. This list must be empty when the request parameter L7EnableMode is set to 'all'.
- teo_
origin_ stracl_ id - ID of the resource.
- timeouts
Teo
Origin Acl Timeouts Args - zone_
id str - Specifies the site ID.
- l4Proxy
Ids List<String> - he list of L4 proxy Instances that require enabling origin ACLs. This list must be empty when the request parameter L4EnableMode is set to 'all'.
- l7Hosts List<String>
- The list of L7 acceleration domains that require enabling the origin ACLs. This list must be empty when the request parameter L7EnableMode is set to 'all'.
- teo
Origin StringAcl Id - ID of the resource.
- timeouts Property Map
- zone
Id String - Specifies the site ID.
Supporting Types
TeoOriginAclTimeouts, TeoOriginAclTimeoutsArgs
Import
TEO origin acl can be imported using the zone_id, e.g.
`
$ pulumi import tencentcloud:index/teoOriginAcl:TeoOriginAcl example zone-39quuimqg8r6
`
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloud
Terraform Provider.