1 // Code generated by smithy-go-codegen DO NOT EDIT. 2 3 package types 4 5 import ( 6 smithydocument "github.com/aws/smithy-go/document" 7 "time" 8 ) 9 10 // The identifiers for the temporary security credentials that the operation 11 // returns. 12 type AssumedRoleUser struct { 13 14 // The ARN of the temporary security credentials that are returned from the 15 // AssumeRole action. For more information about ARNs and how to use them in 16 // policies, see IAM Identifiers (https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_identifiers.html) 17 // in the IAM User Guide. 18 // 19 // This member is required. 20 Arn *string 21 22 // A unique identifier that contains the role ID and the role session name of the 23 // role that is being assumed. The role ID is generated by Amazon Web Services when 24 // the role is created. 25 // 26 // This member is required. 27 AssumedRoleId *string 28 29 noSmithyDocumentSerde 30 } 31 32 // Amazon Web Services credentials for API authentication. 33 type Credentials struct { 34 35 // The access key ID that identifies the temporary security credentials. 36 // 37 // This member is required. 38 AccessKeyId *string 39 40 // The date on which the current credentials expire. 41 // 42 // This member is required. 43 Expiration *time.Time 44 45 // The secret access key that can be used to sign requests. 46 // 47 // This member is required. 48 SecretAccessKey *string 49 50 // The token that users must pass to the service API to use the temporary 51 // credentials. 52 // 53 // This member is required. 54 SessionToken *string 55 56 noSmithyDocumentSerde 57 } 58 59 // Identifiers for the federated user that is associated with the credentials. 60 type FederatedUser struct { 61 62 // The ARN that specifies the federated user that is associated with the 63 // credentials. For more information about ARNs and how to use them in policies, 64 // see IAM Identifiers (https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_identifiers.html) 65 // in the IAM User Guide. 66 // 67 // This member is required. 68 Arn *string 69 70 // The string that identifies the federated user associated with the credentials, 71 // similar to the unique ID of an IAM user. 72 // 73 // This member is required. 74 FederatedUserId *string 75 76 noSmithyDocumentSerde 77 } 78 79 // A reference to the IAM managed policy that is passed as a session policy for a 80 // role session or a federated user session. 81 type PolicyDescriptorType struct { 82 83 // The Amazon Resource Name (ARN) of the IAM managed policy to use as a session 84 // policy for the role. For more information about ARNs, see Amazon Resource Names 85 // (ARNs) and Amazon Web Services Service Namespaces (https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) 86 // in the Amazon Web Services General Reference. 87 Arn *string 88 89 noSmithyDocumentSerde 90 } 91 92 // Contains information about the provided context. This includes the signed and 93 // encrypted trusted context assertion and the context provider ARN from which the 94 // trusted context assertion was generated. 95 type ProvidedContext struct { 96 97 // The signed and encrypted trusted context assertion generated by the context 98 // provider. The trusted context assertion is signed and encrypted by Amazon Web 99 // Services STS. 100 ContextAssertion *string 101 102 // The context provider ARN from which the trusted context assertion was generated. 103 ProviderArn *string 104 105 noSmithyDocumentSerde 106 } 107 108 // You can pass custom key-value pair attributes when you assume a role or 109 // federate a user. These are called session tags. You can then use the session 110 // tags to control access to resources. For more information, see Tagging Amazon 111 // Web Services STS Sessions (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_session-tags.html) 112 // in the IAM User Guide. 113 type Tag struct { 114 115 // The key for a session tag. You can pass up to 50 session tags. The plain text 116 // session tag keys can’t exceed 128 characters. For these and additional limits, 117 // see IAM and STS Character Limits (https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_iam-limits.html#reference_iam-limits-entity-length) 118 // in the IAM User Guide. 119 // 120 // This member is required. 121 Key *string 122 123 // The value for a session tag. You can pass up to 50 session tags. The plain text 124 // session tag values can’t exceed 256 characters. For these and additional limits, 125 // see IAM and STS Character Limits (https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_iam-limits.html#reference_iam-limits-entity-length) 126 // in the IAM User Guide. 127 // 128 // This member is required. 129 Value *string 130 131 noSmithyDocumentSerde 132 } 133 134 type noSmithyDocumentSerde = smithydocument.NoSerde 135