/
IEmailIdentity.go
87 lines (73 loc) · 1.79 KB
/
IEmailIdentity.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
package awsses
import (
_jsii_ "github.com/aws/jsii-runtime-go/runtime"
"github.com/aws/aws-cdk-go/awscdk/v2"
"github.com/aws/aws-cdk-go/awscdk/v2/awsiam"
"github.com/aws/aws-cdk-go/awscdk/v2/awsses/internal"
)
// An email identity.
type IEmailIdentity interface {
awscdk.IResource
// Adds an IAM policy statement associated with this email identity to an IAM principal's policy.
Grant(grantee awsiam.IGrantable, actions ...*string) awsiam.Grant
// Permits an IAM principal the send email action.
//
// Actions: SendEmail.
GrantSendEmail(grantee awsiam.IGrantable) awsiam.Grant
// The ARN of the email identity.
EmailIdentityArn() *string
// The name of the email identity.
EmailIdentityName() *string
}
// The jsii proxy for IEmailIdentity
type jsiiProxy_IEmailIdentity struct {
internal.Type__awscdkIResource
}
func (i *jsiiProxy_IEmailIdentity) Grant(grantee awsiam.IGrantable, actions ...*string) awsiam.Grant {
if err := i.validateGrantParameters(grantee); err != nil {
panic(err)
}
args := []interface{}{grantee}
for _, a := range actions {
args = append(args, a)
}
var returns awsiam.Grant
_jsii_.Invoke(
i,
"grant",
args,
&returns,
)
return returns
}
func (i *jsiiProxy_IEmailIdentity) GrantSendEmail(grantee awsiam.IGrantable) awsiam.Grant {
if err := i.validateGrantSendEmailParameters(grantee); err != nil {
panic(err)
}
var returns awsiam.Grant
_jsii_.Invoke(
i,
"grantSendEmail",
[]interface{}{grantee},
&returns,
)
return returns
}
func (j *jsiiProxy_IEmailIdentity) EmailIdentityArn() *string {
var returns *string
_jsii_.Get(
j,
"emailIdentityArn",
&returns,
)
return returns
}
func (j *jsiiProxy_IEmailIdentity) EmailIdentityName() *string {
var returns *string
_jsii_.Get(
j,
"emailIdentityName",
&returns,
)
return returns
}