-
Notifications
You must be signed in to change notification settings - Fork 17
/
awscdk_Names.go
75 lines (62 loc) · 1.69 KB
/
awscdk_Names.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
// An experiment to bundle the entire CDK into a single module
package awscdk
import (
_init_ "github.com/aws/aws-cdk-go/awscdk/jsii"
_jsii_ "github.com/aws/jsii-runtime-go/runtime"
"github.com/aws/constructs-go/constructs/v3"
)
// Functions for devising unique names for constructs.
//
// For example, those can be
// used to allocate unique physical names for resources.
// Experimental.
type Names interface {
}
// The jsii proxy struct for Names
type jsiiProxy_Names struct {
_ byte // padding
}
// Returns a CloudFormation-compatible unique identifier for a construct based on its path.
//
// The identifier includes a human readable portion rendered
// from the path components and a hash suffix.
//
// TODO (v2): replace with API to use `constructs.Node`.
//
// Returns: a unique id based on the construct path.
// Experimental.
func Names_NodeUniqueId(node ConstructNode) *string {
_init_.Initialize()
if err := validateNames_NodeUniqueIdParameters(node); err != nil {
panic(err)
}
var returns *string
_jsii_.StaticInvoke(
"monocdk.Names",
"nodeUniqueId",
[]interface{}{node},
&returns,
)
return returns
}
// Returns a CloudFormation-compatible unique identifier for a construct based on its path.
//
// The identifier includes a human readable portion rendered
// from the path components and a hash suffix.
//
// Returns: a unique id based on the construct path.
// Experimental.
func Names_UniqueId(construct constructs.Construct) *string {
_init_.Initialize()
if err := validateNames_UniqueIdParameters(construct); err != nil {
panic(err)
}
var returns *string
_jsii_.StaticInvoke(
"monocdk.Names",
"uniqueId",
[]interface{}{construct},
&returns,
)
return returns
}