@Generated(value="jsii-pacmak/1.57.0 (build f614666)", date="2022-05-04T20:10:01.760Z") @Stability(value=Stable) 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 String |
find(String region,
String name)
Retrieves a fact from this Fact database.
|
static List<String> |
getRegions() |
static void |
register(IFact fact)
Registers a new fact in this Fact database.
|
static void |
register(IFact fact,
Boolean allowReplacing)
Registers a new fact in this Fact database.
|
static String |
requireFact(String region,
String name)
Retrieve a fact from the Fact database.
|
static void |
unregister(String region,
String name)
Removes a fact from the database.
|
static void |
unregister(String region,
String name,
String value)
Removes a fact from the database.
|
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected Fact(software.amazon.jsii.JsiiObjectRef objRef)
protected Fact(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable) @Nullable public static String find(@NotNull String region, @NotNull 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.@Stability(value=Stable)
public static void register(@NotNull
IFact fact,
@Nullable
Boolean allowReplacing)
fact - the new fact to be registered. This parameter is required.allowReplacing - whether new facts can replace existing facts or not.@Stability(value=Stable)
public static void register(@NotNull
IFact fact)
fact - the new fact to be registered. This parameter is required.@Stability(value=Stable) @NotNull public static String requireFact(@NotNull String region, @NotNull 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.@Stability(value=Stable)
public static void unregister(@NotNull
String region,
@NotNull
String name,
@Nullable
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).@Stability(value=Stable)
public static void unregister(@NotNull
String region,
@NotNull
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.Copyright © 2022. All rights reserved.