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 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281
|
// Code generated by smithy-go-codegen DO NOT EDIT.
package types
import (
smithydocument "github.com/aws/smithy-go/document"
"time"
)
// An access control entry allows or denies Active Directory groups based on
//
// their security identifiers (SIDs) from enrolling and/or autoenrolling with the
// template.
type AccessControlEntry struct {
// Permissions to allow or deny an Active Directory group to enroll or autoenroll
// certificates issued against a template.
AccessRights *AccessRights
// The date and time that the Access Control Entry was created.
CreatedAt *time.Time
// Name of the Active Directory group. This name does not need to match the group
// name in Active Directory.
GroupDisplayName *string
// Security identifier (SID) of the group object from Active Directory. The SID
// starts with "S-".
GroupSecurityIdentifier *string
// The Amazon Resource Name (ARN) that was returned when you called [CreateTemplate].
//
// [CreateTemplate]: https://docs.aws.amazon.com/pca-connector-ad/latest/APIReference/API_CreateTemplate.html
TemplateArn *string
// The date and time that the Access Control Entry was updated.
UpdatedAt *time.Time
noSmithyDocumentSerde
}
// Summary of group access control entries that allow or deny Active Directory
// groups based on their security identifiers (SIDs) from enrolling and/or
// autofenrolling with the template.
type AccessControlEntrySummary struct {
// Allow or deny an Active Directory group from enrolling and autoenrolling
// certificates issued against a template.
AccessRights *AccessRights
// The date and time that the Access Control Entry was created.
CreatedAt *time.Time
// Name of the Active Directory group. This name does not need to match the group
// name in Active Directory.
GroupDisplayName *string
// Security identifier (SID) of the group object from Active Directory. The SID
// starts with "S-".
GroupSecurityIdentifier *string
// The Amazon Resource Name (ARN) that was returned when you called [CreateTemplate].
//
// [CreateTemplate]: https://docs.aws.amazon.com/pca-connector-ad/latest/APIReference/API_CreateTemplate.html
TemplateArn *string
// The date and time that the Access Control Entry was updated.
UpdatedAt *time.Time
noSmithyDocumentSerde
}
// Allow or deny permissions for an Active Directory group to enroll or
//
// autoenroll certificates for a template.
type AccessRights struct {
// Allow or deny an Active Directory group from autoenrolling certificates issued
// against a template. The Active Directory group must be allowed to enroll to
// allow autoenrollment
AutoEnroll AccessRight
// Allow or deny an Active Directory group from enrolling certificates issued
// against a template.
Enroll AccessRight
noSmithyDocumentSerde
}
// Application policies describe what the certificate can be used for.
type ApplicationPolicies struct {
// Application policies describe what the certificate can be used for.
//
// This member is required.
Policies []ApplicationPolicy
// Marks the application policy extension as critical.
Critical *bool
noSmithyDocumentSerde
}
// Application policies describe what the certificate can be used for.
//
// The following types satisfy this interface:
//
// ApplicationPolicyMemberPolicyObjectIdentifier
// ApplicationPolicyMemberPolicyType
type ApplicationPolicy interface {
isApplicationPolicy()
}
// The object identifier (OID) of an application policy.
type ApplicationPolicyMemberPolicyObjectIdentifier struct {
Value string
noSmithyDocumentSerde
}
func (*ApplicationPolicyMemberPolicyObjectIdentifier) isApplicationPolicy() {}
// The type of application policy
type ApplicationPolicyMemberPolicyType struct {
Value ApplicationPolicyType
noSmithyDocumentSerde
}
func (*ApplicationPolicyMemberPolicyType) isApplicationPolicy() {}
// Information describing the end of the validity period of the certificate. This
// parameter sets the “Not After” date for the certificate. Certificate validity is
// the period of time during which a certificate is valid. Validity can be
// expressed as an explicit date and time when the certificate expires, or as a
// span of time after issuance, stated in days, months, or years. For more
// information, see Validity in RFC 5280. This value is unaffected when
// ValidityNotBefore is also specified. For example, if Validity is set to 20 days
// in the future, the certificate will expire 20 days from issuance time regardless
// of the ValidityNotBefore value.
type CertificateValidity struct {
// Renewal period is the period of time before certificate expiration when a new
// certificate will be requested.
//
// This member is required.
RenewalPeriod *ValidityPeriod
// Information describing the end of the validity period of the certificate. This
// parameter sets the “Not After” date for the certificate. Certificate validity is
// the period of time during which a certificate is valid. Validity can be
// expressed as an explicit date and time when the certificate expires, or as a
// span of time after issuance, stated in days, months, or years. For more
// information, see Validity in RFC 5280. This value is unaffected when
// ValidityNotBefore is also specified. For example, if Validity is set to 20 days
// in the future, the certificate will expire 20 days from issuance time regardless
// of the ValidityNotBefore value.
//
// This member is required.
ValidityPeriod *ValidityPeriod
noSmithyDocumentSerde
}
// Amazon Web Services Private CA Connector for Active Directory is a service that
// links your Active Directory with Amazon Web Services Private CA. The connector
// brokers the exchange of certificates from Amazon Web Services Private CA to
// domain-joined users and machines managed with Active Directory.
type Connector struct {
// The Amazon Resource Name (ARN) that was returned when you called [CreateConnector].
//
// [CreateConnector]: https://docs.aws.amazon.com/pca-connector-ad/latest/APIReference/API_CreateConnector.html
Arn *string
// The Amazon Resource Name (ARN) of the certificate authority being used.
CertificateAuthorityArn *string
// Certificate enrollment endpoint for Active Directory domain-joined objects
// reach out to when requesting certificates.
CertificateEnrollmentPolicyServerEndpoint *string
// The date and time that the connector was created.
CreatedAt *time.Time
// The identifier of the Active Directory.
DirectoryId *string
// Status of the connector. Status can be creating, active, deleting, or failed.
Status ConnectorStatus
// Additional information about the connector status if the status is failed.
StatusReason ConnectorStatusReason
// The date and time that the connector was updated.
UpdatedAt *time.Time
// Information of the VPC and security group(s) used with the connector.
VpcInformation *VpcInformation
noSmithyDocumentSerde
}
// Summary description of the Amazon Web Services Private CA AD connectors
// belonging to an Amazon Web Services account.
type ConnectorSummary struct {
// The Amazon Resource Name (ARN) that was returned when you called [CreateConnector].
//
// [CreateConnector]: https://docs.aws.amazon.com/pca-connector-ad/latest/APIReference/API_CreateConnector.html
Arn *string
// The Amazon Resource Name (ARN) of the certificate authority being used.
CertificateAuthorityArn *string
// Certificate enrollment endpoint for Active Directory domain-joined objects to
// request certificates.
CertificateEnrollmentPolicyServerEndpoint *string
// The date and time that the connector was created.
CreatedAt *time.Time
// The identifier of the Active Directory.
DirectoryId *string
// Status of the connector. Status can be creating, active, deleting, or failed.
Status ConnectorStatus
// Additional information about the connector status if the status is failed.
StatusReason ConnectorStatusReason
// The date and time that the connector was updated.
UpdatedAt *time.Time
// Information of the VPC and security group(s) used with the connector.
VpcInformation *VpcInformation
noSmithyDocumentSerde
}
// The directory registration represents the authorization of the connector
// service with a directory.
type DirectoryRegistration struct {
// The Amazon Resource Name (ARN) that was returned when you called
// CreateDirectoryRegistration.
Arn *string
// The date and time that the directory registration was created.
CreatedAt *time.Time
// The identifier of the Active Directory.
DirectoryId *string
// Status of the directory registration.
Status DirectoryRegistrationStatus
// Additional information about the directory registration status if the status is
// failed.
StatusReason DirectoryRegistrationStatusReason
// The date and time that the directory registration was updated.
UpdatedAt *time.Time
noSmithyDocumentSerde
}
// The directory registration represents the authorization of the connector
// service with the Active Directory.
type DirectoryRegistrationSummary struct {
// The Amazon Resource Name (ARN) that was returned when you called [CreateDirectoryRegistration].
//
// [CreateDirectoryRegistration]: https://docs.aws.amazon.com/pca-connector-ad/latest/APIReference/API_CreateDirectoryRegistration.html
Arn *string
// The date and time that the directory registration was created.
CreatedAt *time.Time
// The identifier of the Active Directory.
DirectoryId *string
// Status of the directory registration.
Status DirectoryRegistrationStatus
// Additional information about the directory registration status if the status is
// failed.
StatusReason DirectoryRegistrationStatusReason
// The date and time that the directory registration was updated.
UpdatedAt *time.Time
noSmithyDocumentSerde
}
// Template configurations for v2 template schema.
type EnrollmentFlagsV2 struct {
// Allow renewal using the same key.
EnableKeyReuseOnNtTokenKeysetStorageFull *bool
// Include symmetric algorithms allowed by the subject.
IncludeSymmetricAlgorithms *bool
// This flag instructs the CA to not include the security extension
// szOID_NTDS_CA_SECURITY_EXT (OID:1.3.6.1.4.1.311.25.2), as specified in [MS-WCCE]
// sections 2.2.2.7.7.4 and 3.2.2.6.2.1.4.5.9, in the issued certificate. This
// addresses a Windows Kerberos elevation-of-privilege vulnerability.
NoSecurityExtension *bool
// Delete expired or revoked certificates instead of archiving them.
RemoveInvalidCertificateFromPersonalStore *bool
// Require user interaction when the subject is enrolled and the private key
// associated with the certificate is used.
UserInteractionRequired *bool
noSmithyDocumentSerde
}
// Template configurations for v3 template schema.
type EnrollmentFlagsV3 struct {
// Allow renewal using the same key.
EnableKeyReuseOnNtTokenKeysetStorageFull *bool
// Include symmetric algorithms allowed by the subject.
IncludeSymmetricAlgorithms *bool
// This flag instructs the CA to not include the security extension
// szOID_NTDS_CA_SECURITY_EXT (OID:1.3.6.1.4.1.311.25.2), as specified in [MS-WCCE]
// sections 2.2.2.7.7.4 and 3.2.2.6.2.1.4.5.9, in the issued certificate. This
// addresses a Windows Kerberos elevation-of-privilege vulnerability.
NoSecurityExtension *bool
// Delete expired or revoked certificates instead of archiving them.
RemoveInvalidCertificateFromPersonalStore *bool
// Require user interaction when the subject is enrolled and the private key
// associated with the certificate is used.
UserInteractionRequired *bool
noSmithyDocumentSerde
}
// Template configurations for v4 template schema.
type EnrollmentFlagsV4 struct {
// Allow renewal using the same key.
EnableKeyReuseOnNtTokenKeysetStorageFull *bool
// Include symmetric algorithms allowed by the subject.
IncludeSymmetricAlgorithms *bool
// This flag instructs the CA to not include the security extension
// szOID_NTDS_CA_SECURITY_EXT (OID:1.3.6.1.4.1.311.25.2), as specified in [MS-WCCE]
// sections 2.2.2.7.7.4 and 3.2.2.6.2.1.4.5.9, in the issued certificate. This
// addresses a Windows Kerberos elevation-of-privilege vulnerability.
NoSecurityExtension *bool
// Delete expired or revoked certificates instead of archiving them.
RemoveInvalidCertificateFromPersonalStore *bool
// Require user interaction when the subject is enrolled and the private key
// associated with the certificate is used.
UserInteractionRequired *bool
noSmithyDocumentSerde
}
// Certificate extensions for v2 template schema
type ExtensionsV2 struct {
// The key usage extension defines the purpose (e.g., encipherment, signature,
// certificate signing) of the key contained in the certificate.
//
// This member is required.
KeyUsage *KeyUsage
// Application policies specify what the certificate is used for and its purpose.
ApplicationPolicies *ApplicationPolicies
noSmithyDocumentSerde
}
// Certificate extensions for v3 template schema
type ExtensionsV3 struct {
// The key usage extension defines the purpose (e.g., encipherment, signature,
// certificate signing) of the key contained in the certificate.
//
// This member is required.
KeyUsage *KeyUsage
// Application policies specify what the certificate is used for and its purpose.
ApplicationPolicies *ApplicationPolicies
noSmithyDocumentSerde
}
// Certificate extensions for v4 template schema
type ExtensionsV4 struct {
// The key usage extension defines the purpose (e.g., encipherment, signature) of
// the key contained in the certificate.
//
// This member is required.
KeyUsage *KeyUsage
// Application policies specify what the certificate is used for and its purpose.
ApplicationPolicies *ApplicationPolicies
noSmithyDocumentSerde
}
// General flags for v2 template schema that defines if the template is for a
// machine or a user and if the template can be issued using autoenrollment.
type GeneralFlagsV2 struct {
// Allows certificate issuance using autoenrollment. Set to TRUE to allow
// autoenrollment.
AutoEnrollment *bool
// Defines if the template is for machines or users. Set to TRUE if the template
// is for machines. Set to FALSE if the template is for users.
MachineType *bool
noSmithyDocumentSerde
}
// General flags for v3 template schema that defines if the template is for a
// machine or a user and if the template can be issued using autoenrollment.
type GeneralFlagsV3 struct {
// Allows certificate issuance using autoenrollment. Set to TRUE to allow
// autoenrollment.
AutoEnrollment *bool
// Defines if the template is for machines or users. Set to TRUE if the template
// is for machines. Set to FALSE if the template is for users
MachineType *bool
noSmithyDocumentSerde
}
// General flags for v4 template schema that defines if the template is for a
// machine or a user and if the template can be issued using autoenrollment.
type GeneralFlagsV4 struct {
// Allows certificate issuance using autoenrollment. Set to TRUE to allow
// autoenrollment.
AutoEnrollment *bool
// Defines if the template is for machines or users. Set to TRUE if the template
// is for machines. Set to FALSE if the template is for users
MachineType *bool
noSmithyDocumentSerde
}
// The key usage extension defines the purpose (e.g., encipherment, signature) of
// the key contained in the certificate.
type KeyUsage struct {
// The key usage flags represent the purpose (e.g., encipherment, signature) of
// the key contained in the certificate.
//
// This member is required.
UsageFlags *KeyUsageFlags
// Sets the key usage extension to critical.
Critical *bool
noSmithyDocumentSerde
}
// The key usage flags represent the purpose (e.g., encipherment, signature) of
// the key contained in the certificate.
type KeyUsageFlags struct {
// DataEncipherment is asserted when the subject public key is used for directly
// enciphering raw user data without the use of an intermediate symmetric cipher.
DataEncipherment *bool
// The digitalSignature is asserted when the subject public key is used for
// verifying digital signatures.
DigitalSignature *bool
// KeyAgreement is asserted when the subject public key is used for key agreement.
KeyAgreement *bool
// KeyEncipherment is asserted when the subject public key is used for enciphering
// private or secret keys, i.e., for key transport.
KeyEncipherment *bool
// NonRepudiation is asserted when the subject public key is used to verify
// digital signatures.
NonRepudiation *bool
noSmithyDocumentSerde
}
// The key usage property defines the purpose of the private key contained in the
// certificate. You can specify specific purposes using property flags or all by
// using property type ALL.
//
// The following types satisfy this interface:
//
// KeyUsagePropertyMemberPropertyFlags
// KeyUsagePropertyMemberPropertyType
type KeyUsageProperty interface {
isKeyUsageProperty()
}
// You can specify key usage for encryption, key agreement, and signature. You can
// use property flags or property type but not both.
type KeyUsagePropertyMemberPropertyFlags struct {
Value KeyUsagePropertyFlags
noSmithyDocumentSerde
}
func (*KeyUsagePropertyMemberPropertyFlags) isKeyUsageProperty() {}
// You can specify all key usages using property type ALL. You can use property
// type or property flags but not both.
type KeyUsagePropertyMemberPropertyType struct {
Value KeyUsagePropertyType
noSmithyDocumentSerde
}
func (*KeyUsagePropertyMemberPropertyType) isKeyUsageProperty() {}
// Specifies key usage.
type KeyUsagePropertyFlags struct {
// Allows key for encryption and decryption.
Decrypt *bool
// Allows key exchange without encryption.
KeyAgreement *bool
// Allow key use for digital signature.
Sign *bool
noSmithyDocumentSerde
}
// Defines the attributes of the private key.
type PrivateKeyAttributesV2 struct {
// Defines the purpose of the private key. Set it to "KEY_EXCHANGE" or "SIGNATURE"
// value.
//
// This member is required.
KeySpec KeySpec
// Set the minimum key length of the private key.
//
// This member is required.
MinimalKeyLength *int32
// Defines the cryptographic providers used to generate the private key.
CryptoProviders []string
noSmithyDocumentSerde
}
// Defines the attributes of the private key.
type PrivateKeyAttributesV3 struct {
// Defines the algorithm used to generate the private key.
//
// This member is required.
Algorithm PrivateKeyAlgorithm
// Defines the purpose of the private key. Set it to "KEY_EXCHANGE" or "SIGNATURE"
// value.
//
// This member is required.
KeySpec KeySpec
// The key usage property defines the purpose of the private key contained in the
// certificate. You can specify specific purposes using property flags or all by
// using property type ALL.
//
// This member is required.
KeyUsageProperty KeyUsageProperty
// Set the minimum key length of the private key.
//
// This member is required.
MinimalKeyLength *int32
// Defines the cryptographic providers used to generate the private key.
CryptoProviders []string
noSmithyDocumentSerde
}
// Defines the attributes of the private key.
type PrivateKeyAttributesV4 struct {
// Defines the purpose of the private key. Set it to "KEY_EXCHANGE" or "SIGNATURE"
// value.
//
// This member is required.
KeySpec KeySpec
// Set the minimum key length of the private key.
//
// This member is required.
MinimalKeyLength *int32
// Defines the algorithm used to generate the private key.
Algorithm PrivateKeyAlgorithm
// Defines the cryptographic providers used to generate the private key.
CryptoProviders []string
// The key usage property defines the purpose of the private key contained in the
// certificate. You can specify specific purposes using property flags or all by
// using property type ALL.
KeyUsageProperty KeyUsageProperty
noSmithyDocumentSerde
}
// Private key flags for v2 templates specify the client compatibility, if the
// private key can be exported, and if user input is required when using a private
// key.
type PrivateKeyFlagsV2 struct {
// Defines the minimum client compatibility.
//
// This member is required.
ClientVersion ClientCompatibilityV2
// Allows the private key to be exported.
ExportableKey *bool
// Require user input when using the private key for enrollment.
StrongKeyProtectionRequired *bool
noSmithyDocumentSerde
}
// Private key flags for v3 templates specify the client compatibility, if the
// private key can be exported, if user input is required when using a private key,
// and if an alternate signature algorithm should be used.
type PrivateKeyFlagsV3 struct {
// Defines the minimum client compatibility.
//
// This member is required.
ClientVersion ClientCompatibilityV3
// Allows the private key to be exported.
ExportableKey *bool
// Reguires the PKCS #1 v2.1 signature format for certificates. You should verify
// that your CA, objects, and applications can accept this signature format.
RequireAlternateSignatureAlgorithm *bool
// Requirer user input when using the private key for enrollment.
StrongKeyProtectionRequired *bool
noSmithyDocumentSerde
}
// Private key flags for v4 templates specify the client compatibility, if the
// private key can be exported, if user input is required when using a private key,
// if an alternate signature algorithm should be used, and if certificates are
// renewed using the same private key.
type PrivateKeyFlagsV4 struct {
// Defines the minimum client compatibility.
//
// This member is required.
ClientVersion ClientCompatibilityV4
// Allows the private key to be exported.
ExportableKey *bool
// Requires the PKCS #1 v2.1 signature format for certificates. You should verify
// that your CA, objects, and applications can accept this signature format.
RequireAlternateSignatureAlgorithm *bool
// Renew certificate using the same private key.
RequireSameKeyRenewal *bool
// Require user input when using the private key for enrollment.
StrongKeyProtectionRequired *bool
// Specifies the cryptographic service provider category used to generate private
// keys. Set to TRUE to use Legacy Cryptographic Service Providers and FALSE to use
// Key Storage Providers.
UseLegacyProvider *bool
noSmithyDocumentSerde
}
// The service principal name that the connector uses to authenticate with Active
// Directory.
type ServicePrincipalName struct {
// The Amazon Resource Name (ARN) that was returned when you called [CreateConnector.html].
//
// [CreateConnector.html]: https://docs.aws.amazon.com/pca-connector-ad/latest/APIReference/API_CreateConnector.html
ConnectorArn *string
// The date and time that the service principal name was created.
CreatedAt *time.Time
// The Amazon Resource Name (ARN) that was returned when you called [CreateDirectoryRegistration].
//
// [CreateDirectoryRegistration]: https://docs.aws.amazon.com/pca-connector-ad/latest/APIReference/API_CreateDirectoryRegistration.html
DirectoryRegistrationArn *string
// The status of a service principal name.
Status ServicePrincipalNameStatus
// Additional information for the status of a service principal name if the status
// is failed.
StatusReason ServicePrincipalNameStatusReason
// The date and time that the service principal name was updated.
UpdatedAt *time.Time
noSmithyDocumentSerde
}
// The service principal name that the connector uses to authenticate with Active
// Directory.
type ServicePrincipalNameSummary struct {
// The Amazon Resource Name (ARN) that was returned when you called [CreateConnector].
//
// [CreateConnector]: https://docs.aws.amazon.com/pca-connector-ad/latest/APIReference/API_CreateConnector.html
ConnectorArn *string
// The date and time that the service principal name was created.
CreatedAt *time.Time
// The Amazon Resource Name (ARN) that was returned when you called [CreateDirectoryRegistration].
//
// [CreateDirectoryRegistration]: https://docs.aws.amazon.com/pca-connector-ad/latest/APIReference/API_CreateDirectoryRegistration.html
DirectoryRegistrationArn *string
// The status of a service principal name.
Status ServicePrincipalNameStatus
// Additional information for the status of a service principal name if the status
// is failed.
StatusReason ServicePrincipalNameStatusReason
// Time when the service principal name was updated.
UpdatedAt *time.Time
noSmithyDocumentSerde
}
// Information to include in the subject name and alternate subject name of the
// certificate. The subject name can be common name, directory path, DNS as common
// name, or left blank. You can optionally include email to the subject name for
// user templates. If you leave the subject name blank then you must set a subject
// alternate name. The subject alternate name (SAN) can include globally unique
// identifier (GUID), DNS, domain DNS, email, service principal name (SPN), and
// user principal name (UPN). You can leave the SAN blank. If you leave the SAN
// blank, then you must set a subject name.
type SubjectNameFlagsV2 struct {
// Include the common name in the subject name.
RequireCommonName *bool
// Include the directory path in the subject name.
RequireDirectoryPath *bool
// Include the DNS as common name in the subject name.
RequireDnsAsCn *bool
// Include the subject's email in the subject name.
RequireEmail *bool
// Include the globally unique identifier (GUID) in the subject alternate name.
SanRequireDirectoryGuid *bool
// Include the DNS in the subject alternate name.
SanRequireDns *bool
// Include the domain DNS in the subject alternate name.
SanRequireDomainDns *bool
// Include the subject's email in the subject alternate name.
SanRequireEmail *bool
// Include the service principal name (SPN) in the subject alternate name.
SanRequireSpn *bool
// Include the user principal name (UPN) in the subject alternate name.
SanRequireUpn *bool
noSmithyDocumentSerde
}
// Information to include in the subject name and alternate subject name of the
// certificate. The subject name can be common name, directory path, DNS as common
// name, or left blank. You can optionally include email to the subject name for
// user templates. If you leave the subject name blank then you must set a subject
// alternate name. The subject alternate name (SAN) can include globally unique
// identifier (GUID), DNS, domain DNS, email, service principal name (SPN), and
// user principal name (UPN). You can leave the SAN blank. If you leave the SAN
// blank, then you must set a subject name.
type SubjectNameFlagsV3 struct {
// Include the common name in the subject name.
RequireCommonName *bool
// Include the directory path in the subject name.
RequireDirectoryPath *bool
// Include the DNS as common name in the subject name.
RequireDnsAsCn *bool
// Include the subject's email in the subject name.
RequireEmail *bool
// Include the globally unique identifier (GUID) in the subject alternate name.
SanRequireDirectoryGuid *bool
// Include the DNS in the subject alternate name.
SanRequireDns *bool
// Include the domain DNS in the subject alternate name.
SanRequireDomainDns *bool
// Include the subject's email in the subject alternate name.
SanRequireEmail *bool
// Include the service principal name (SPN) in the subject alternate name.
SanRequireSpn *bool
// Include the user principal name (UPN) in the subject alternate name.
SanRequireUpn *bool
noSmithyDocumentSerde
}
// Information to include in the subject name and alternate subject name of the
// certificate. The subject name can be common name, directory path, DNS as common
// name, or left blank. You can optionally include email to the subject name for
// user templates. If you leave the subject name blank then you must set a subject
// alternate name. The subject alternate name (SAN) can include globally unique
// identifier (GUID), DNS, domain DNS, email, service principal name (SPN), and
// user principal name (UPN). You can leave the SAN blank. If you leave the SAN
// blank, then you must set a subject name.
type SubjectNameFlagsV4 struct {
// Include the common name in the subject name.
RequireCommonName *bool
// Include the directory path in the subject name.
RequireDirectoryPath *bool
// Include the DNS as common name in the subject name.
RequireDnsAsCn *bool
// Include the subject's email in the subject name.
RequireEmail *bool
// Include the globally unique identifier (GUID) in the subject alternate name.
SanRequireDirectoryGuid *bool
// Include the DNS in the subject alternate name.
SanRequireDns *bool
// Include the domain DNS in the subject alternate name.
SanRequireDomainDns *bool
// Include the subject's email in the subject alternate name.
SanRequireEmail *bool
// Include the service principal name (SPN) in the subject alternate name.
SanRequireSpn *bool
// Include the user principal name (UPN) in the subject alternate name.
SanRequireUpn *bool
noSmithyDocumentSerde
}
// An Active Directory compatible certificate template. Connectors issue
// certificates against these templates based on the requestor's Active Directory
// group membership.
type Template struct {
// The Amazon Resource Name (ARN) that was returned when you called [CreateTemplate].
//
// [CreateTemplate]: https://docs.aws.amazon.com/pca-connector-ad/latest/APIReference/API_CreateTemplate.html
Arn *string
// The Amazon Resource Name (ARN) that was returned when you called [CreateConnector].
//
// [CreateConnector]: https://docs.aws.amazon.com/pca-connector-ad/latest/APIReference/API_CreateConnector.html
ConnectorArn *string
// The date and time that the template was created.
CreatedAt *time.Time
// Template configuration to define the information included in certificates.
// Define certificate validity and renewal periods, certificate request handling
// and enrollment options, key usage extensions, application policies, and
// cryptography settings.
Definition TemplateDefinition
// Name of the templates. Template names must be unique.
Name *string
// Object identifier of a template.
ObjectIdentifier *string
// The template schema version. Template schema versions can be v2, v3, or v4. The
// template configuration options change based on the template schema version.
PolicySchema *int32
// The version of the template. Template updates will increment the minor
// revision. Re-enrolling all certificate holders will increment the major
// revision.
Revision *TemplateRevision
// Status of the template. Status can be creating, active, deleting, or failed.
Status TemplateStatus
// The date and time that the template was updated.
UpdatedAt *time.Time
noSmithyDocumentSerde
}
// Template configuration to define the information included in certificates.
// Define certificate validity and renewal periods, certificate request handling
// and enrollment options, key usage extensions, application policies, and
// cryptography settings.
//
// The following types satisfy this interface:
//
// TemplateDefinitionMemberTemplateV2
// TemplateDefinitionMemberTemplateV3
// TemplateDefinitionMemberTemplateV4
type TemplateDefinition interface {
isTemplateDefinition()
}
// Template configuration to define the information included in certificates.
// Define certificate validity and renewal periods, certificate request handling
// and enrollment options, key usage extensions, application policies, and
// cryptography settings.
type TemplateDefinitionMemberTemplateV2 struct {
Value TemplateV2
noSmithyDocumentSerde
}
func (*TemplateDefinitionMemberTemplateV2) isTemplateDefinition() {}
// Template configuration to define the information included in certificates.
// Define certificate validity and renewal periods, certificate request handling
// and enrollment options, key usage extensions, application policies, and
// cryptography settings.
type TemplateDefinitionMemberTemplateV3 struct {
Value TemplateV3
noSmithyDocumentSerde
}
func (*TemplateDefinitionMemberTemplateV3) isTemplateDefinition() {}
// Template configuration to define the information included in certificates.
// Define certificate validity and renewal periods, certificate request handling
// and enrollment options, key usage extensions, application policies, and
// cryptography settings.
type TemplateDefinitionMemberTemplateV4 struct {
Value TemplateV4
noSmithyDocumentSerde
}
func (*TemplateDefinitionMemberTemplateV4) isTemplateDefinition() {}
// The revision version of the template. Template updates will increment the minor
// revision. Re-enrolling all certificate holders will increment the major
// revision.
type TemplateRevision struct {
// The revision version of the template. Re-enrolling all certificate holders will
// increment the major revision.
//
// This member is required.
MajorRevision *int32
// The revision version of the template. Re-enrolling all certificate holders will
// increment the major revision.
//
// This member is required.
MinorRevision *int32
noSmithyDocumentSerde
}
// An Active Directory compatible certificate template. Connectors issue
// certificates against these templates based on the requestor's Active Directory
// group membership.
type TemplateSummary struct {
// The Amazon Resource Name (ARN) that was returned when you called [CreateTemplate].
//
// [CreateTemplate]: https://docs.aws.amazon.com/pca-connector-ad/latest/APIReference/API_CreateTemplate.html
Arn *string
// The Amazon Resource Name (ARN) that was returned when you called [CreateConnector].
//
// [CreateConnector]: https://docs.aws.amazon.com/pca-connector-ad/latest/APIReference/API_CreateConnector.html
ConnectorArn *string
// The date and time that the template was created.
CreatedAt *time.Time
// Template configuration to define the information included in certificates.
// Define certificate validity and renewal periods, certificate request handling
// and enrollment options, key usage extensions, application policies, and
// cryptography settings.
Definition TemplateDefinition
// Name of the template. The template name must be unique.
Name *string
// Object identifier of a template.
ObjectIdentifier *string
// The template schema version. Template schema versions can be v2, v3, or v4. The
// template configuration options change based on the template schema version.
PolicySchema *int32
// The revision version of the template. Template updates will increment the minor
// revision. Re-enrolling all certificate holders will increment the major
// revision.
Revision *TemplateRevision
// Status of the template. Status can be creating, active, deleting, or failed.
Status TemplateStatus
// The date and time that the template was updated.
UpdatedAt *time.Time
noSmithyDocumentSerde
}
// v2 template schema that uses Legacy Cryptographic Providers.
type TemplateV2 struct {
// Certificate validity describes the validity and renewal periods of a
// certificate.
//
// This member is required.
CertificateValidity *CertificateValidity
// Enrollment flags describe the enrollment settings for certificates such as
// using the existing private key and deleting expired or revoked certificates.
//
// This member is required.
EnrollmentFlags *EnrollmentFlagsV2
// Extensions describe the key usage extensions and application policies for a
// template.
//
// This member is required.
Extensions *ExtensionsV2
// General flags describe whether the template is used for computers or users and
// if the template can be used with autoenrollment.
//
// This member is required.
GeneralFlags *GeneralFlagsV2
// Private key attributes allow you to specify the minimal key length, key spec,
// and cryptographic providers for the private key of a certificate for v2
// templates. V2 templates allow you to use Legacy Cryptographic Service Providers.
//
// This member is required.
PrivateKeyAttributes *PrivateKeyAttributesV2
// Private key flags for v2 templates specify the client compatibility, if the
// private key can be exported, and if user input is required when using a private
// key.
//
// This member is required.
PrivateKeyFlags *PrivateKeyFlagsV2
// Subject name flags describe the subject name and subject alternate name that is
// included in a certificate.
//
// This member is required.
SubjectNameFlags *SubjectNameFlagsV2
// List of templates in Active Directory that are superseded by this template.
SupersededTemplates []string
noSmithyDocumentSerde
}
// v3 template schema that uses Key Storage Providers.
type TemplateV3 struct {
// Certificate validity describes the validity and renewal periods of a
// certificate.
//
// This member is required.
CertificateValidity *CertificateValidity
// Enrollment flags describe the enrollment settings for certificates such as
// using the existing private key and deleting expired or revoked certificates.
//
// This member is required.
EnrollmentFlags *EnrollmentFlagsV3
// Extensions describe the key usage extensions and application policies for a
// template.
//
// This member is required.
Extensions *ExtensionsV3
// General flags describe whether the template is used for computers or users and
// if the template can be used with autoenrollment.
//
// This member is required.
GeneralFlags *GeneralFlagsV3
// Specifies the hash algorithm used to hash the private key.
//
// This member is required.
HashAlgorithm HashAlgorithm
// Private key attributes allow you to specify the algorithm, minimal key length,
// key spec, key usage, and cryptographic providers for the private key of a
// certificate for v3 templates. V3 templates allow you to use Key Storage
// Providers.
//
// This member is required.
PrivateKeyAttributes *PrivateKeyAttributesV3
// Private key flags for v3 templates specify the client compatibility, if the
// private key can be exported, if user input is required when using a private key,
// and if an alternate signature algorithm should be used.
//
// This member is required.
PrivateKeyFlags *PrivateKeyFlagsV3
// Subject name flags describe the subject name and subject alternate name that is
// included in a certificate.
//
// This member is required.
SubjectNameFlags *SubjectNameFlagsV3
// List of templates in Active Directory that are superseded by this template.
SupersededTemplates []string
noSmithyDocumentSerde
}
// v4 template schema that can use either Legacy Cryptographic Providers or Key
// Storage Providers.
type TemplateV4 struct {
// Certificate validity describes the validity and renewal periods of a
// certificate.
//
// This member is required.
CertificateValidity *CertificateValidity
// Enrollment flags describe the enrollment settings for certificates using the
// existing private key and deleting expired or revoked certificates.
//
// This member is required.
EnrollmentFlags *EnrollmentFlagsV4
// Extensions describe the key usage extensions and application policies for a
// template.
//
// This member is required.
Extensions *ExtensionsV4
// General flags describe whether the template is used for computers or users and
// if the template can be used with autoenrollment.
//
// This member is required.
GeneralFlags *GeneralFlagsV4
// Private key attributes allow you to specify the minimal key length, key spec,
// key usage, and cryptographic providers for the private key of a certificate for
// v4 templates. V4 templates allow you to use either Key Storage Providers or
// Legacy Cryptographic Service Providers. You specify the cryptography provider
// category in private key flags.
//
// This member is required.
PrivateKeyAttributes *PrivateKeyAttributesV4
// Private key flags for v4 templates specify the client compatibility, if the
// private key can be exported, if user input is required when using a private key,
// if an alternate signature algorithm should be used, and if certificates are
// renewed using the same private key.
//
// This member is required.
PrivateKeyFlags *PrivateKeyFlagsV4
// Subject name flags describe the subject name and subject alternate name that is
// included in a certificate.
//
// This member is required.
SubjectNameFlags *SubjectNameFlagsV4
// Specifies the hash algorithm used to hash the private key. Hash algorithm can
// only be specified when using Key Storage Providers.
HashAlgorithm HashAlgorithm
// List of templates in Active Directory that are superseded by this template.
SupersededTemplates []string
noSmithyDocumentSerde
}
// Information describing the end of the validity period of the certificate. This
// parameter sets the “Not After” date for the certificate. Certificate validity is
// the period of time during which a certificate is valid. Validity can be
// expressed as an explicit date and time when the certificate expires, or as a
// span of time after issuance, stated in hours, days, months, or years. For more
// information, see Validity in RFC 5280. This value is unaffected when
// ValidityNotBefore is also specified. For example, if Validity is set to 20 days
// in the future, the certificate will expire 20 days from issuance time regardless
// of the ValidityNotBefore value.
type ValidityPeriod struct {
// The numeric value for the validity period.
//
// This member is required.
Period *int64
// The unit of time. You can select hours, days, weeks, months, and years.
//
// This member is required.
PeriodType ValidityPeriodType
noSmithyDocumentSerde
}
// Information about your VPC and security groups used with the connector.
type VpcInformation struct {
// The security groups used with the connector. You can use a maximum of 4
// security groups with a connector.
//
// This member is required.
SecurityGroupIds []string
noSmithyDocumentSerde
}
type noSmithyDocumentSerde = smithydocument.NoSerde
// UnknownUnionMember is returned when a union member is returned over the wire,
// but has an unknown tag.
type UnknownUnionMember struct {
Tag string
Value []byte
noSmithyDocumentSerde
}
func (*UnknownUnionMember) isApplicationPolicy() {}
func (*UnknownUnionMember) isKeyUsageProperty() {}
func (*UnknownUnionMember) isTemplateDefinition() {}
|