/
awscdkapprunneralpha_EcrPublicSource.go
168 lines (138 loc) · 3.64 KB
/
awscdkapprunneralpha_EcrPublicSource.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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
// The CDK Construct Library for AWS::AppRunner
package awscdkapprunneralpha
import (
_init_ "github.com/aws/aws-cdk-go/awscdkapprunneralpha/v2/jsii"
_jsii_ "github.com/aws/jsii-runtime-go/runtime"
"github.com/aws/constructs-go/constructs/v10"
)
// Represents the service source from ECR Public.
//
// Example:
// // The code below shows an example of how to instantiate this type.
// // The values are placeholders you should change.
// import apprunner_alpha "github.com/aws/aws-cdk-go/awscdkapprunneralpha"
//
// ecrPublicSource := apprunner_alpha.NewEcrPublicSource(&ecrPublicProps{
// imageIdentifier: jsii.String("imageIdentifier"),
//
// // the properties below are optional
// imageConfiguration: &imageConfiguration{
// environment: map[string]*string{
// "environmentKey": jsii.String("environment"),
// },
// port: jsii.Number(123),
// startCommand: jsii.String("startCommand"),
// },
// })
//
// Experimental.
type EcrPublicSource interface {
Source
// Called when the Job is initialized to allow this object to bind.
// Experimental.
Bind(_scope constructs.Construct) *SourceConfig
}
// The jsii proxy struct for EcrPublicSource
type jsiiProxy_EcrPublicSource struct {
jsiiProxy_Source
}
// Experimental.
func NewEcrPublicSource(props *EcrPublicProps) EcrPublicSource {
_init_.Initialize()
if err := validateNewEcrPublicSourceParameters(props); err != nil {
panic(err)
}
j := jsiiProxy_EcrPublicSource{}
_jsii_.Create(
"@aws-cdk/aws-apprunner-alpha.EcrPublicSource",
[]interface{}{props},
&j,
)
return &j
}
// Experimental.
func NewEcrPublicSource_Override(e EcrPublicSource, props *EcrPublicProps) {
_init_.Initialize()
_jsii_.Create(
"@aws-cdk/aws-apprunner-alpha.EcrPublicSource",
[]interface{}{props},
e,
)
}
// Source from local assets.
// Experimental.
func EcrPublicSource_FromAsset(props *AssetProps) AssetSource {
_init_.Initialize()
if err := validateEcrPublicSource_FromAssetParameters(props); err != nil {
panic(err)
}
var returns AssetSource
_jsii_.StaticInvoke(
"@aws-cdk/aws-apprunner-alpha.EcrPublicSource",
"fromAsset",
[]interface{}{props},
&returns,
)
return returns
}
// Source from the ECR repository.
// Experimental.
func EcrPublicSource_FromEcr(props *EcrProps) EcrSource {
_init_.Initialize()
if err := validateEcrPublicSource_FromEcrParameters(props); err != nil {
panic(err)
}
var returns EcrSource
_jsii_.StaticInvoke(
"@aws-cdk/aws-apprunner-alpha.EcrPublicSource",
"fromEcr",
[]interface{}{props},
&returns,
)
return returns
}
// Source from the ECR Public repository.
// Experimental.
func EcrPublicSource_FromEcrPublic(props *EcrPublicProps) EcrPublicSource {
_init_.Initialize()
if err := validateEcrPublicSource_FromEcrPublicParameters(props); err != nil {
panic(err)
}
var returns EcrPublicSource
_jsii_.StaticInvoke(
"@aws-cdk/aws-apprunner-alpha.EcrPublicSource",
"fromEcrPublic",
[]interface{}{props},
&returns,
)
return returns
}
// Source from the GitHub repository.
// Experimental.
func EcrPublicSource_FromGitHub(props *GithubRepositoryProps) GithubSource {
_init_.Initialize()
if err := validateEcrPublicSource_FromGitHubParameters(props); err != nil {
panic(err)
}
var returns GithubSource
_jsii_.StaticInvoke(
"@aws-cdk/aws-apprunner-alpha.EcrPublicSource",
"fromGitHub",
[]interface{}{props},
&returns,
)
return returns
}
func (e *jsiiProxy_EcrPublicSource) Bind(_scope constructs.Construct) *SourceConfig {
if err := e.validateBindParameters(_scope); err != nil {
panic(err)
}
var returns *SourceConfig
_jsii_.Invoke(
e,
"bind",
[]interface{}{_scope},
&returns,
)
return returns
}