Skip to content

RosCacheRule

This class is a base encapsulation around the ROS resource type ALIYUN::ESA::CacheRule.

Initializers

import "github.com/alibabacloud-go/ros-cdk/alicloudroscdkesa"
alicloudroscdkesa.NewRosCacheRule(scope Construct, id *string, props RosCacheRuleProps, enableResourcePropertyConstraint *bool) RosCacheRule
Name Type Description
scope github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.Construct - scope in which this resource is defined.
id *string - scoped id of the resource.
props RosCacheRuleProps - resource properties.
enableResourcePropertyConstraint *bool No description.

scopeRequired

  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.Construct

scope in which this resource is defined.


idRequired

  • Type: *string

scoped id of the resource.


propsRequired

resource properties.


enableResourcePropertyConstraintRequired

  • Type: *bool

Methods

Name Description
ToString Returns a string representation of this construct.
Synthesize Allows this construct to emit artifacts into the cloud assembly during synthesis.
OverrideLogicalId Overrides the auto-generated logical ID with a specific ID.
AddCondition No description.
AddCount No description.
AddDeletionOverride Syntactic sugar for addOverride(path, undefined).
AddDependsOn Indicates that this resource depends on another resource and cannot be provisioned unless the other resource has been successfully provisioned.
AddDesc No description.
AddMetaData No description.
AddOverride Adds an override to the synthesized ROS resource.
AddPropertyDeletionOverride Adds an override that deletes the value of a property from the resource definition.
AddPropertyOverride Adds an override to a resource property.
AddRosDependency No description.
ApplyRemovalPolicy Sets the deletion policy of the resource based on the removal policy specified.
FetchCondition No description.
FetchDesc No description.
FetchRosDependency No description.
GetAtt Returns a token for an runtime attribute of this resource.

ToString

func ToString() *string

Returns a string representation of this construct.

Synthesize

func Synthesize(session ISynthesisSession)

Allows this construct to emit artifacts into the cloud assembly during synthesis.

This method is usually implemented by framework-level constructs such as Stack and Asset as they participate in synthesizing the cloud assembly.

sessionRequired

  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.ISynthesisSession

The synthesis session.


OverrideLogicalId

func OverrideLogicalId(newLogicalId *string)

Overrides the auto-generated logical ID with a specific ID.

newLogicalIdRequired

  • Type: *string

The new logical ID to use for this stack element.


AddCondition

func AddCondition(con RosCondition)

conRequired

  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.RosCondition

AddCount

func AddCount(count interface{})

countRequired

  • Type: interface{}

AddDeletionOverride

func AddDeletionOverride(path *string)

Syntactic sugar for addOverride(path, undefined).

pathRequired

  • Type: *string

The path of the value to delete.


AddDependsOn

func AddDependsOn(target RosResource)

Indicates that this resource depends on another resource and cannot be provisioned unless the other resource has been successfully provisioned.

This can be used for resources across stacks (or nested stack) boundaries and the dependency will automatically be transferred to the relevant scope.

targetRequired

  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.RosResource

AddDesc

func AddDesc(desc *string)

descRequired

  • Type: *string

AddMetaData

func AddMetaData(key *string, value interface{})

keyRequired

  • Type: *string

valueRequired

  • Type: interface{}

AddOverride

func AddOverride(path *string, value interface{})

Adds an override to the synthesized ROS resource.

To add a property override, either use addPropertyOverride or prefix path with "Properties." (i.e. Properties.TopicName).

If the override is nested, separate each nested level using a dot (.) in the path parameter. If there is an array as part of the nesting, specify the index in the path.

For example,

addOverride('Properties.GlobalSecondaryIndexes.0.Projection.NonKeyAttributes', ['myattribute'])
addOverride('Properties.GlobalSecondaryIndexes.1.ProjectionType', 'INCLUDE')

would add the overrides

"Properties": {
   "GlobalSecondaryIndexes": [
     {
       "Projection": {
         "NonKeyAttributes": [ "myattribute" ]
         ...
       }
       ...
     },
     {
       "ProjectionType": "INCLUDE"
       ...
     },
   ]
   ...
}

pathRequired

  • Type: *string

The path of the property, you can use dot notation to override values in complex types.

Any intermdediate keys will be created as needed.


valueRequired

  • Type: interface{}

The value.

Could be primitive or complex.


AddPropertyDeletionOverride

func AddPropertyDeletionOverride(propertyPath *string)

Adds an override that deletes the value of a property from the resource definition.

propertyPathRequired

  • Type: *string

The path to the property.


AddPropertyOverride

func AddPropertyOverride(propertyPath *string, value interface{})

Adds an override to a resource property.

Syntactic sugar for addOverride("Properties.<...>", value).

propertyPathRequired

  • Type: *string

The path of the property.


valueRequired

  • Type: interface{}

The value.


AddRosDependency

func AddRosDependency(target *string)

targetRequired

  • Type: *string

ApplyRemovalPolicy

func ApplyRemovalPolicy(policy RemovalPolicy, options RemovalPolicyOptions)

Sets the deletion policy of the resource based on the removal policy specified.

policyOptional

  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.RemovalPolicy

optionsOptional

  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.RemovalPolicyOptions

FetchCondition

func FetchCondition() RosCondition

FetchDesc

func FetchDesc() *string

FetchRosDependency

func FetchRosDependency() *[]*string

GetAtt

func GetAtt(attributeName *string) Reference

Returns a token for an runtime attribute of this resource.

Ideally, use generated attribute accessors (e.g. resource.arn), but this can be used for future compatibility in case there is no generated attribute.

attributeNameRequired

  • Type: *string

The name of the attribute.


Static Functions

Name Description
IsConstruct Return whether the given object is a Construct.
IsRosElement Returns true if a construct is a stack element (i.e. part of the synthesized template).
IsRosResource Check whether the given construct is a RosResource.

IsConstruct

import "github.com/alibabacloud-go/ros-cdk/alicloudroscdkesa"
alicloudroscdkesa.RosCacheRule_IsConstruct(x interface{}) *bool

Return whether the given object is a Construct.

xRequired

  • Type: interface{}

IsRosElement

import "github.com/alibabacloud-go/ros-cdk/alicloudroscdkesa"
alicloudroscdkesa.RosCacheRule_IsRosElement(x interface{}) *bool

Returns true if a construct is a stack element (i.e. part of the synthesized template).

Uses duck-typing instead of instanceof to allow stack elements from different versions of this library to be included in the same stack.

xRequired

  • Type: interface{}

IsRosResource

import "github.com/alibabacloud-go/ros-cdk/alicloudroscdkesa"
alicloudroscdkesa.RosCacheRule_IsRosResource(construct IConstruct) *bool

Check whether the given construct is a RosResource.

constructRequired

  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IConstruct

Properties

Name Type Description
Node github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.ConstructNode The construct tree node associated with this construct.
CreationStack []string No description.
LogicalId *string The logical ID for this stack element.
Stack github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.Stack The stack in which this element is defined.
Ref *string Return a string that will be resolved to a RosTemplate { Ref } for this element.
RosOptions github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IRosResourceOptions Options for this resource, such as condition, update policy etc.
RosResourceType *string ROS resource type.
AttrAdditionalCacheablePorts github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable No description.
AttrBrowserCacheMode github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable No description.
AttrBrowserCacheTtl github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable No description.
AttrBypassCache github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable No description.
AttrCacheDeceptionArmor github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable No description.
AttrCacheReserveEligibility github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable No description.
AttrCacheRuleId github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable No description.
AttrCheckPresenceCookie github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable No description.
AttrCheckPresenceHeader github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable No description.
AttrConfigType github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable No description.
AttrEdgeCacheMode github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable No description.
AttrEdgeCacheTtl github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable No description.
AttrEdgeStatusCodeCacheTtl github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable No description.
AttrIncludeCookie github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable No description.
AttrIncludeHeader github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable No description.
AttrQueryString github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable No description.
AttrQueryStringMode github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable No description.
AttrRule github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable No description.
AttrRuleEnable github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable No description.
AttrRuleName github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable No description.
AttrSequence github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable No description.
AttrServeStale github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable No description.
AttrSiteVersion github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable No description.
AttrSortQueryStringForCache github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable No description.
AttrUserDeviceType github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable No description.
AttrUserGeo github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable No description.
AttrUserLanguage github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable No description.
EnableResourcePropertyConstraint *bool No description.
SiteId interface{} No description.
AdditionalCacheablePorts interface{} No description.
BrowserCacheMode interface{} No description.
BrowserCacheTtl interface{} No description.
BypassCache interface{} No description.
CacheDeceptionArmor interface{} No description.
CacheReserveEligibility interface{} No description.
CheckPresenceCookie interface{} No description.
CheckPresenceHeader interface{} No description.
EdgeCacheMode interface{} No description.
EdgeCacheTtl interface{} No description.
EdgeStatusCodeCacheTtl interface{} No description.
IncludeCookie interface{} No description.
IncludeHeader interface{} No description.
QueryString interface{} No description.
QueryStringMode interface{} No description.
Rule interface{} No description.
RuleEnable interface{} No description.
RuleName interface{} No description.
Sequence interface{} No description.
ServeStale interface{} No description.
SiteVersion interface{} No description.
SortQueryStringForCache interface{} No description.
UserDeviceType interface{} No description.
UserGeo interface{} No description.
UserLanguage interface{} No description.

NodeRequired

func Node() ConstructNode
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.ConstructNode

The construct tree node associated with this construct.


CreationStackRequired

func CreationStack() *[]*string
  • Type: []string

LogicalIdRequired

func LogicalId() *string
  • Type: *string

The logical ID for this stack element.

The logical ID of the element is calculated from the path of the resource node in the construct tree.

To override this value, use overrideLogicalId(newLogicalId).


StackRequired

func Stack() Stack
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.Stack

The stack in which this element is defined.

RosElements must be defined within a stack scope (directly or indirectly).


RefRequired

func Ref() *string
  • Type: *string

Return a string that will be resolved to a RosTemplate { Ref } for this element.

If, by any chance, the intrinsic reference of a resource is not a string, you could coerce it to an IResolvable through Lazy.any({ produce: resource.ref }).


RosOptionsRequired

func RosOptions() IRosResourceOptions
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IRosResourceOptions

Options for this resource, such as condition, update policy etc.


RosResourceTypeRequired

func RosResourceType() *string
  • Type: *string

ROS resource type.


AttrAdditionalCacheablePortsRequired

func AttrAdditionalCacheablePorts() IResolvable
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable

AttrBrowserCacheModeRequired

func AttrBrowserCacheMode() IResolvable
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable

AttrBrowserCacheTtlRequired

func AttrBrowserCacheTtl() IResolvable
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable

AttrBypassCacheRequired

func AttrBypassCache() IResolvable
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable

AttrCacheDeceptionArmorRequired

func AttrCacheDeceptionArmor() IResolvable
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable

AttrCacheReserveEligibilityRequired

func AttrCacheReserveEligibility() IResolvable
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable

AttrCacheRuleIdRequired

func AttrCacheRuleId() IResolvable
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable

AttrCheckPresenceCookieRequired

func AttrCheckPresenceCookie() IResolvable
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable

AttrCheckPresenceHeaderRequired

func AttrCheckPresenceHeader() IResolvable
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable

AttrConfigTypeRequired

func AttrConfigType() IResolvable
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable

AttrEdgeCacheModeRequired

func AttrEdgeCacheMode() IResolvable
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable

AttrEdgeCacheTtlRequired

func AttrEdgeCacheTtl() IResolvable
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable

AttrEdgeStatusCodeCacheTtlRequired

func AttrEdgeStatusCodeCacheTtl() IResolvable
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable

AttrIncludeCookieRequired

func AttrIncludeCookie() IResolvable
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable

AttrIncludeHeaderRequired

func AttrIncludeHeader() IResolvable
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable

AttrQueryStringRequired

func AttrQueryString() IResolvable
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable

AttrQueryStringModeRequired

func AttrQueryStringMode() IResolvable
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable

AttrRuleRequired

func AttrRule() IResolvable
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable

AttrRuleEnableRequired

func AttrRuleEnable() IResolvable
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable

AttrRuleNameRequired

func AttrRuleName() IResolvable
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable

AttrSequenceRequired

func AttrSequence() IResolvable
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable

AttrServeStaleRequired

func AttrServeStale() IResolvable
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable

AttrSiteVersionRequired

func AttrSiteVersion() IResolvable
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable

AttrSortQueryStringForCacheRequired

func AttrSortQueryStringForCache() IResolvable
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable

AttrUserDeviceTypeRequired

func AttrUserDeviceType() IResolvable
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable

AttrUserGeoRequired

func AttrUserGeo() IResolvable
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable

AttrUserLanguageRequired

func AttrUserLanguage() IResolvable
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable

EnableResourcePropertyConstraintRequired

func EnableResourcePropertyConstraint() *bool
  • Type: *bool

SiteIdRequired

func SiteId() interface{}
  • Type: interface{}

AdditionalCacheablePortsOptional

func AdditionalCacheablePorts() interface{}
  • Type: interface{}

BrowserCacheModeOptional

func BrowserCacheMode() interface{}
  • Type: interface{}

BrowserCacheTtlOptional

func BrowserCacheTtl() interface{}
  • Type: interface{}

BypassCacheOptional

func BypassCache() interface{}
  • Type: interface{}

CacheDeceptionArmorOptional

func CacheDeceptionArmor() interface{}
  • Type: interface{}

CacheReserveEligibilityOptional

func CacheReserveEligibility() interface{}
  • Type: interface{}

CheckPresenceCookieOptional

func CheckPresenceCookie() interface{}
  • Type: interface{}

CheckPresenceHeaderOptional

func CheckPresenceHeader() interface{}
  • Type: interface{}

EdgeCacheModeOptional

func EdgeCacheMode() interface{}
  • Type: interface{}

EdgeCacheTtlOptional

func EdgeCacheTtl() interface{}
  • Type: interface{}

EdgeStatusCodeCacheTtlOptional

func EdgeStatusCodeCacheTtl() interface{}
  • Type: interface{}

IncludeCookieOptional

func IncludeCookie() interface{}
  • Type: interface{}

IncludeHeaderOptional

func IncludeHeader() interface{}
  • Type: interface{}

QueryStringOptional

func QueryString() interface{}
  • Type: interface{}

QueryStringModeOptional

func QueryStringMode() interface{}
  • Type: interface{}

RuleOptional

func Rule() interface{}
  • Type: interface{}

RuleEnableOptional

func RuleEnable() interface{}
  • Type: interface{}

RuleNameOptional

func RuleName() interface{}
  • Type: interface{}

SequenceOptional

func Sequence() interface{}
  • Type: interface{}

ServeStaleOptional

func ServeStale() interface{}
  • Type: interface{}

SiteVersionOptional

func SiteVersion() interface{}
  • Type: interface{}

SortQueryStringForCacheOptional

func SortQueryStringForCache() interface{}
  • Type: interface{}

UserDeviceTypeOptional

func UserDeviceType() interface{}
  • Type: interface{}

UserGeoOptional

func UserGeo() interface{}
  • Type: interface{}

UserLanguageOptional

func UserLanguage() interface{}
  • Type: interface{}

Constants

Name Type Description
RosResourceTypeName *string The resource type name for this resource class.

RosResourceTypeNameRequired

func RosResourceTypeName() *string
  • Type: *string

The resource type name for this resource class.