-
Notifications
You must be signed in to change notification settings - Fork 17
/
CertificateAuthority.go
57 lines (48 loc) · 1.7 KB
/
CertificateAuthority.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
package awsacmpca
import (
_init_ "github.com/aws/aws-cdk-go/awscdk/v2/jsii"
_jsii_ "github.com/aws/jsii-runtime-go/runtime"
"github.com/aws/constructs-go/constructs/v10"
)
// Defines a Certificate for ACMPCA.
//
// Example:
// import acmpca "github.com/aws/aws-cdk-go/awscdk"
//
// var vpc vpc
//
// cluster := msk.NewCluster(this, jsii.String("Cluster"), &ClusterProps{
// ClusterName: jsii.String("myCluster"),
// KafkaVersion: msk.KafkaVersion_V2_8_1(),
// Vpc: Vpc,
// EncryptionInTransit: &EncryptionInTransitConfig{
// ClientBroker: msk.ClientBrokerEncryption_TLS,
// },
// ClientAuthentication: msk.ClientAuthentication_Tls(&TlsAuthProps{
// CertificateAuthorities: []iCertificateAuthority{
// acmpca.CertificateAuthority_FromCertificateAuthorityArn(this, jsii.String("CertificateAuthority"), jsii.String("arn:aws:acm-pca:us-west-2:1234567890:certificate-authority/11111111-1111-1111-1111-111111111111")),
// },
// }),
// })
//
type CertificateAuthority interface {
}
// The jsii proxy struct for CertificateAuthority
type jsiiProxy_CertificateAuthority struct {
_ byte // padding
}
// Import an existing Certificate given an ARN.
func CertificateAuthority_FromCertificateAuthorityArn(scope constructs.Construct, id *string, certificateAuthorityArn *string) ICertificateAuthority {
_init_.Initialize()
if err := validateCertificateAuthority_FromCertificateAuthorityArnParameters(scope, id, certificateAuthorityArn); err != nil {
panic(err)
}
var returns ICertificateAuthority
_jsii_.StaticInvoke(
"aws-cdk-lib.aws_acmpca.CertificateAuthority",
"fromCertificateAuthorityArn",
[]interface{}{scope, id, certificateAuthorityArn},
&returns,
)
return returns
}