KeywordLib
- Implements: IKeywordLib
This class encapsulates and extends the ROS resource type ALIYUN::Aligreen::KeywordLib, which is used to create a custom text library.
Initializers
using AlibabaCloud.SDK.ROS.CDK.Aligreen;
new KeywordLib(Construct Scope, string Id, KeywordLibProps Props, bool EnableResourcePropertyConstraint = null);
| Name | Type | Description |
|---|---|---|
Scope | AlibabaCloud.SDK.ROS.CDK.Core.Construct | No description. |
Id | string | No description. |
Props | KeywordLibProps | No description. |
EnableResourcePropertyConstraint | bool | No description. |
ScopeRequired
- Type: AlibabaCloud.SDK.ROS.CDK.Core.Construct
IdRequired
- Type: string
PropsRequired
- Type: KeywordLibProps
EnableResourcePropertyConstraintOptional
- 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. |
AddCondition | No description. |
AddCount | No description. |
AddDependency | No description. |
AddResourceDesc | No description. |
ApplyRemovalPolicy | No description. |
FetchCondition | No description. |
FetchDependency | No description. |
FetchResourceDesc | No description. |
GetAtt | No description. |
SetMetadata | No description. |
ToString
private string ToString()
Returns a string representation of this construct.
Synthesize
private void Synthesize(ISynthesisSession Session)
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.
- Type: AlibabaCloud.SDK.ROS.CDK.Core.ISynthesisSession
The synthesis session.
AddCondition
private void AddCondition(RosCondition Condition)
- Type: AlibabaCloud.SDK.ROS.CDK.Core.RosCondition
AddCount
private void AddCount(object Count)
- Type: object
AddDependency
private void AddDependency(Resource Resource)
- Type: AlibabaCloud.SDK.ROS.CDK.Core.Resource
AddResourceDesc
private void AddResourceDesc(string Desc)
- Type: string
ApplyRemovalPolicy
private void ApplyRemovalPolicy(RemovalPolicy Policy)
- Type: AlibabaCloud.SDK.ROS.CDK.Core.RemovalPolicy
FetchCondition
private RosCondition FetchCondition()
FetchDependency
private string[] FetchDependency()
FetchResourceDesc
private string FetchResourceDesc()
GetAtt
private IResolvable GetAtt(string Name)
- Type: string
SetMetadata
private void SetMetadata(string Key, object Value)
- Type: string
- Type: object
Static Functions
| Name | Description |
|---|---|
IsConstruct | Return whether the given object is a Construct. |
IsConstruct
using AlibabaCloud.SDK.ROS.CDK.Aligreen;
KeywordLib.IsConstruct(object X);
Return whether the given object is a Construct.
- Type: object
Properties
| Name | Type | Description |
|---|---|---|
Node | AlibabaCloud.SDK.ROS.CDK.Core.ConstructNode | The construct tree node associated with this construct. |
Env | AlibabaCloud.SDK.ROS.CDK.Core.IResourceEnvironment | The environment this resource belongs to. |
Ref | string | No description. |
Stack | AlibabaCloud.SDK.ROS.CDK.Core.Stack | The stack in which this resource is defined. |
Resource | AlibabaCloud.SDK.ROS.CDK.Core.RosResource | No description. |
AttrBizTypes | object | Attribute BizTypes: The business scenario. |
AttrCategory | object | Attribute Category: The category of the text library. |
AttrEnable | object | Attribute Enable: Specifies whether to enable text library. |
AttrKeywordLibId | object | Attribute KeywordLibId: The ID of the primary key of the keyword library. |
AttrKeywordLibName | object | Attribute KeywordLibName: The name of the keyword library defined by the customer. |
AttrLanguage | object | Attribute Language: Language used by the text Library. |
AttrLibType | object | Attribute LibType: The category of the text library in each moderation scenario. |
AttrMatchMode | object | Attribute MatchMode: The matching method. |
AttrResourceType | object | Attribute ResourceType: The moderation scenario to which the text library applies. |
Props | KeywordLibProps | No description. |
NodeRequired
public ConstructNode Node { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.ConstructNode
The construct tree node associated with this construct.
EnvRequired
public IResourceEnvironment Env { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.IResourceEnvironment
The environment this resource belongs to.
For resources that are created and managed by the CDK (generally, those created by creating new class instances like Role, Bucket, etc.), this is always the same as the environment of the stack they belong to; however, for imported resources (those obtained from static methods like fromRoleArn, fromBucketName, etc.), that might be different than the stack they were imported into.
RefRequired
public string Ref { get; }
- Type: string
StackRequired
public Stack Stack { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.Stack
The stack in which this resource is defined.
ResourceOptional
public RosResource Resource { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.RosResource
AttrBizTypesRequired
public object AttrBizTypes { get; }
- Type: object
Attribute BizTypes: The business scenario.
AttrCategoryRequired
public object AttrCategory { get; }
- Type: object
Attribute Category: The category of the text library.
AttrEnableRequired
public object AttrEnable { get; }
- Type: object
Attribute Enable: Specifies whether to enable text library.
AttrKeywordLibIdRequired
public object AttrKeywordLibId { get; }
- Type: object
Attribute KeywordLibId: The ID of the primary key of the keyword library.
AttrKeywordLibNameRequired
public object AttrKeywordLibName { get; }
- Type: object
Attribute KeywordLibName: The name of the keyword library defined by the customer.
AttrLanguageRequired
public object AttrLanguage { get; }
- Type: object
Attribute Language: Language used by the text Library.
AttrLibTypeRequired
public object AttrLibType { get; }
- Type: object
Attribute LibType: The category of the text library in each moderation scenario.
AttrMatchModeRequired
public object AttrMatchMode { get; }
- Type: object
Attribute MatchMode: The matching method.
AttrResourceTypeRequired
public object AttrResourceType { get; }
- Type: object
Attribute ResourceType: The moderation scenario to which the text library applies.
PropsRequired
public KeywordLibProps Props { get; }
- Type: KeywordLibProps