-
Notifications
You must be signed in to change notification settings - Fork 17
/
awsiam_AccessKeyProps.go
39 lines (36 loc) · 1.4 KB
/
awsiam_AccessKeyProps.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
package awsiam
// Properties for defining an IAM access key.
//
// Example:
// // Creates a new IAM user, access and secret keys, and stores the secret access key in a Secret.
// user := iam.NewUser(this, jsii.String("User"))
// accessKey := iam.NewAccessKey(this, jsii.String("AccessKey"), &accessKeyProps{
// user: user,
// })
// secretValue := secretsmanager.secretStringValueBeta1.fromToken(accessKey.secretAccessKey.toString())
// secretsmanager.NewSecret(this, jsii.String("Secret"), &secretProps{
// secretStringBeta1: secretValue,
// })
//
// Experimental.
type AccessKeyProps struct {
// The IAM user this key will belong to.
//
// Changing this value will result in the access key being deleted and a new
// access key (with a different ID and secret value) being assigned to the new
// user.
// Experimental.
User IUser `field:"required" json:"user" yaml:"user"`
// A CloudFormation-specific value that signifies the access key should be replaced/rotated.
//
// This value can only be incremented. Incrementing this
// value will cause CloudFormation to replace the Access Key resource.
// Experimental.
Serial *float64 `field:"optional" json:"serial" yaml:"serial"`
// The status of the access key.
//
// An Active access key is allowed to be used
// to make API calls; An Inactive key cannot.
// Experimental.
Status AccessKeyStatus `field:"optional" json:"status" yaml:"status"`
}