@Generated(value="jsii-pacmak/1.73.0 (build 6faeda3)",
date="2023-01-31T18:36:44.881Z")
public class Fact
extends software.amazon.jsii.JsiiObject
Example:
public class MyFact implements IFact { public final Object region; public final Object name; public final Object value; } Fact.register(new MyFact());
Modifier | Constructor and Description |
---|---|
protected |
Fact(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
Fact(software.amazon.jsii.JsiiObjectRef objRef) |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
find(java.lang.String region,
java.lang.String name)
Retrieves a fact from this Fact database.
|
static java.util.List<java.lang.String> |
getRegions() |
static void |
register(IFact fact)
Registers a new fact in this Fact database.
|
static void |
register(IFact fact,
java.lang.Boolean allowReplacing)
Registers a new fact in this Fact database.
|
static java.lang.String |
requireFact(java.lang.String region,
java.lang.String name)
Retrieve a fact from the Fact database.
|
static void |
unregister(java.lang.String region,
java.lang.String name)
Removes a fact from the database.
|
static void |
unregister(java.lang.String region,
java.lang.String name,
java.lang.String value)
Removes a fact from the database.
|
protected Fact(software.amazon.jsii.JsiiObjectRef objRef)
protected Fact(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
public static java.lang.String find(java.lang.String region, java.lang.String name)
region
- the name of the region (e.g: `us-east-1`). This parameter is required.name
- the name of the fact being looked up (see the `FactName` class for details). This parameter is required.public static void register(IFact fact, java.lang.Boolean allowReplacing)
fact
- the new fact to be registered. This parameter is required.allowReplacing
- whether new facts can replace existing facts or not.public static void register(IFact fact)
fact
- the new fact to be registered. This parameter is required.public static java.lang.String requireFact(java.lang.String region, java.lang.String name)
(retrieval will fail if the specified region or fact name does not exist.)
region
- the name of the region (e.g: `us-east-1`). This parameter is required.name
- the name of the fact being looked up (see the `FactName` class for details). This parameter is required.public static void unregister(java.lang.String region, java.lang.String name, java.lang.String value)
region
- the region for which the fact is to be removed. This parameter is required.name
- the name of the fact to remove. This parameter is required.value
- the value that should be removed (removal will fail if the value is specified, but does not match the current stored value).public static void unregister(java.lang.String region, java.lang.String name)
region
- the region for which the fact is to be removed. This parameter is required.name
- the name of the fact to remove. This parameter is required.public static java.util.List<java.lang.String> getRegions()