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
|
// Code generated by smithy-go-codegen DO NOT EDIT.
package types
import (
smithydocument "github.com/aws/smithy-go/document"
"time"
)
// Represents the different branches of a repository for building, deploying, and
// hosting an Amplify app.
type App struct {
// The Amazon Resource Name (ARN) of the Amplify app.
//
// This member is required.
AppArn *string
// The unique ID of the Amplify app.
//
// This member is required.
AppId *string
// Creates a date and time for the Amplify app.
//
// This member is required.
CreateTime *time.Time
// The default domain for the Amplify app.
//
// This member is required.
DefaultDomain *string
// The description for the Amplify app.
//
// This member is required.
Description *string
// Enables basic authorization for the Amplify app's branches.
//
// This member is required.
EnableBasicAuth *bool
// Enables the auto-building of branches for the Amplify app.
//
// This member is required.
EnableBranchAutoBuild *bool
// The environment variables for the Amplify app.
//
// For a list of the environment variables that are accessible to Amplify by
// default, see [Amplify Environment variables]in the Amplify Hosting User Guide.
//
// [Amplify Environment variables]: https://docs.aws.amazon.com/amplify/latest/userguide/amplify-console-environment-variables.html
//
// This member is required.
EnvironmentVariables map[string]string
// The name for the Amplify app.
//
// This member is required.
Name *string
// The platform for the Amplify app. For a static app, set the platform type to WEB
// . For a dynamic server-side rendered (SSR) app, set the platform type to
// WEB_COMPUTE . For an app requiring Amplify Hosting's original SSR support only,
// set the platform type to WEB_DYNAMIC .
//
// This member is required.
Platform Platform
// The Git repository for the Amplify app.
//
// This member is required.
Repository *string
// Updates the date and time for the Amplify app.
//
// This member is required.
UpdateTime *time.Time
// Describes the automated branch creation configuration for the Amplify app.
AutoBranchCreationConfig *AutoBranchCreationConfig
// Describes the automated branch creation glob patterns for the Amplify app.
AutoBranchCreationPatterns []string
// The basic authorization credentials for branches for the Amplify app. You must
// base64-encode the authorization credentials and provide them in the format
// user:password .
BasicAuthCredentials *string
// Describes the content of the build specification (build spec) for the Amplify
// app.
BuildSpec *string
// Describes the custom HTTP headers for the Amplify app.
CustomHeaders *string
// Describes the custom redirect and rewrite rules for the Amplify app.
CustomRules []CustomRule
// Enables automated branch creation for the Amplify app.
EnableAutoBranchCreation *bool
// Automatically disconnect a branch in the Amplify console when you delete a
// branch from your Git repository.
EnableBranchAutoDeletion *bool
// The AWS Identity and Access Management (IAM) service role for the Amazon
// Resource Name (ARN) of the Amplify app.
IamServiceRoleArn *string
// Describes the information about a production branch of the Amplify app.
ProductionBranch *ProductionBranch
// This is for internal use.
//
// The Amplify service uses this parameter to specify the authentication protocol
// to use to access the Git repository for an Amplify app. Amplify specifies TOKEN
// for a GitHub repository, SIGV4 for an Amazon Web Services CodeCommit
// repository, and SSH for GitLab and Bitbucket repositories.
RepositoryCloneMethod RepositoryCloneMethod
// The tag for the Amplify app.
Tags map[string]string
noSmithyDocumentSerde
}
// Describes an artifact.
type Artifact struct {
// The file name for the artifact.
//
// This member is required.
ArtifactFileName *string
// The unique ID for the artifact.
//
// This member is required.
ArtifactId *string
noSmithyDocumentSerde
}
// Describes the automated branch creation configuration.
type AutoBranchCreationConfig struct {
// The basic authorization credentials for the autocreated branch. You must
// base64-encode the authorization credentials and provide them in the format
// user:password .
BasicAuthCredentials *string
// The build specification (build spec) for the autocreated branch.
BuildSpec *string
// Enables auto building for the autocreated branch.
EnableAutoBuild *bool
// Enables basic authorization for the autocreated branch.
EnableBasicAuth *bool
// Enables performance mode for the branch.
//
// Performance mode optimizes for faster hosting performance by keeping content
// cached at the edge for a longer interval. When performance mode is enabled,
// hosting configuration or code changes can take up to 10 minutes to roll out.
EnablePerformanceMode *bool
// Enables pull request previews for the autocreated branch.
EnablePullRequestPreview *bool
// The environment variables for the autocreated branch.
EnvironmentVariables map[string]string
// The framework for the autocreated branch.
Framework *string
// The Amplify environment name for the pull request.
PullRequestEnvironmentName *string
// Describes the current stage for the autocreated branch.
Stage Stage
noSmithyDocumentSerde
}
// Describes the backend associated with an Amplify Branch .
//
// This property is available to Amplify Gen 2 apps only. When you deploy an
// application with Amplify Gen 2, you provision the app's backend infrastructure
// using Typescript code.
type Backend struct {
// The Amazon Resource Name (ARN) for the CloudFormation stack.
StackArn *string
noSmithyDocumentSerde
}
// Describes the backend environment associated with a Branch of a Gen 1 Amplify
// app. Amplify Gen 1 applications are created using Amplify Studio or the Amplify
// command line interface (CLI).
type BackendEnvironment struct {
// The Amazon Resource Name (ARN) for a backend environment that is part of an
// Amplify app.
//
// This member is required.
BackendEnvironmentArn *string
// The creation date and time for a backend environment that is part of an Amplify
// app.
//
// This member is required.
CreateTime *time.Time
// The name for a backend environment that is part of an Amplify app.
//
// This member is required.
EnvironmentName *string
// The last updated date and time for a backend environment that is part of an
// Amplify app.
//
// This member is required.
UpdateTime *time.Time
// The name of deployment artifacts.
DeploymentArtifacts *string
// The AWS CloudFormation stack name of a backend environment.
StackName *string
noSmithyDocumentSerde
}
// The branch for an Amplify app, which maps to a third-party repository branch.
type Branch struct {
// The ID of the active job for a branch of an Amplify app.
//
// This member is required.
ActiveJobId *string
// The Amazon Resource Name (ARN) for a branch that is part of an Amplify app.
//
// This member is required.
BranchArn *string
// The name for the branch that is part of an Amplify app.
//
// This member is required.
BranchName *string
// The creation date and time for a branch that is part of an Amplify app.
//
// This member is required.
CreateTime *time.Time
// The custom domains for a branch of an Amplify app.
//
// This member is required.
CustomDomains []string
// The description for the branch that is part of an Amplify app.
//
// This member is required.
Description *string
// The display name for the branch. This is used as the default domain prefix.
//
// This member is required.
DisplayName *string
// Enables auto-building on push for a branch of an Amplify app.
//
// This member is required.
EnableAutoBuild *bool
// Enables basic authorization for a branch of an Amplify app.
//
// This member is required.
EnableBasicAuth *bool
// Enables notifications for a branch that is part of an Amplify app.
//
// This member is required.
EnableNotification *bool
// Enables pull request previews for the branch.
//
// This member is required.
EnablePullRequestPreview *bool
// The environment variables specific to a branch of an Amplify app.
//
// This member is required.
EnvironmentVariables map[string]string
// The framework for a branch of an Amplify app.
//
// This member is required.
Framework *string
// The current stage for the branch that is part of an Amplify app.
//
// This member is required.
Stage Stage
// The total number of jobs that are part of an Amplify app.
//
// This member is required.
TotalNumberOfJobs *string
// The content Time to Live (TTL) for the website in seconds.
//
// This member is required.
Ttl *string
// The last updated date and time for a branch that is part of an Amplify app.
//
// This member is required.
UpdateTime *time.Time
// A list of custom resources that are linked to this branch.
AssociatedResources []string
// Describes the backend associated with an Amplify Branch .
//
// This property is available to Amplify Gen 2 apps only. When you deploy an
// application with Amplify Gen 2, you provision the app's backend infrastructure
// using Typescript code.
Backend *Backend
// The Amazon Resource Name (ARN) for a backend environment that is part of an
// Amplify app.
//
// This property is available to Amplify Gen 1 apps only. When you deploy an
// application with Amplify Gen 2, you provision the app's backend infrastructure
// using Typescript code.
BackendEnvironmentArn *string
// The basic authorization credentials for a branch of an Amplify app. You must
// base64-encode the authorization credentials and provide them in the format
// user:password .
BasicAuthCredentials *string
// The build specification (build spec) content for the branch of an Amplify app.
BuildSpec *string
// The destination branch if the branch is a pull request branch.
DestinationBranch *string
// Enables performance mode for the branch.
//
// Performance mode optimizes for faster hosting performance by keeping content
// cached at the edge for a longer interval. When performance mode is enabled,
// hosting configuration or code changes can take up to 10 minutes to roll out.
EnablePerformanceMode *bool
// The Amplify environment name for the pull request.
PullRequestEnvironmentName *string
// The source branch if the branch is a pull request branch.
SourceBranch *string
// The tag for the branch of an Amplify app.
Tags map[string]string
// The thumbnail URL for the branch of an Amplify app.
ThumbnailUrl *string
noSmithyDocumentSerde
}
// Describes the current SSL/TLS certificate that is in use for the domain. If you
// are using CreateDomainAssociation to create a new domain association,
// Certificate describes the new certificate that you are creating.
type Certificate struct {
// The type of SSL/TLS certificate that you want to use.
//
// Specify AMPLIFY_MANAGED to use the default certificate that Amplify provisions
// for you.
//
// Specify CUSTOM to use your own certificate that you have already added to
// Certificate Manager in your Amazon Web Services account. Make sure you request
// (or import) the certificate in the US East (N. Virginia) Region (us-east-1). For
// more information about using ACM, see [Importing certificates into Certificate Manager]in the ACM User guide .
//
// [Importing certificates into Certificate Manager]: https://docs.aws.amazon.com/acm/latest/userguide/import-certificate.html
//
// This member is required.
Type CertificateType
// The DNS record for certificate verification.
CertificateVerificationDNSRecord *string
// The Amazon resource name (ARN) for a custom certificate that you have already
// added to Certificate Manager in your Amazon Web Services account.
//
// This field is required only when the certificate type is CUSTOM .
CustomCertificateArn *string
noSmithyDocumentSerde
}
// The type of SSL/TLS certificate to use for your custom domain. If a certificate
// type isn't specified, Amplify uses the default AMPLIFY_MANAGED certificate.
type CertificateSettings struct {
// The certificate type.
//
// Specify AMPLIFY_MANAGED to use the default certificate that Amplify provisions
// for you.
//
// Specify CUSTOM to use your own certificate that you have already added to
// Certificate Manager in your Amazon Web Services account. Make sure you request
// (or import) the certificate in the US East (N. Virginia) Region (us-east-1). For
// more information about using ACM, see [Importing certificates into Certificate Manager]in the ACM User guide.
//
// [Importing certificates into Certificate Manager]: https://docs.aws.amazon.com/acm/latest/userguide/import-certificate.html
//
// This member is required.
Type CertificateType
// The Amazon resource name (ARN) for the custom certificate that you have already
// added to Certificate Manager in your Amazon Web Services account.
//
// This field is required only when the certificate type is CUSTOM .
CustomCertificateArn *string
noSmithyDocumentSerde
}
// Describes a custom rewrite or redirect rule.
type CustomRule struct {
// The source pattern for a URL rewrite or redirect rule.
//
// This member is required.
Source *string
// The target pattern for a URL rewrite or redirect rule.
//
// This member is required.
Target *string
// The condition for a URL rewrite or redirect rule, such as a country code.
Condition *string
// The status code for a URL rewrite or redirect rule.
//
// 200 Represents a 200 rewrite rule.
//
// 301 Represents a 301 (moved permanently) redirect rule. This and all future
// requests should be directed to the target URL.
//
// 302 Represents a 302 temporary redirect rule.
//
// 404 Represents a 404 redirect rule.
//
// 404-200 Represents a 404 rewrite rule.
Status *string
noSmithyDocumentSerde
}
// Describes the association between a custom domain and an Amplify app.
type DomainAssociation struct {
// The Amazon Resource Name (ARN) for the domain association.
//
// This member is required.
DomainAssociationArn *string
// The name of the domain.
//
// This member is required.
DomainName *string
// The current status of the domain association.
//
// This member is required.
DomainStatus DomainStatus
// Enables the automated creation of subdomains for branches.
//
// This member is required.
EnableAutoSubDomain *bool
// Additional information that describes why the domain association is in the
// current state.
//
// This member is required.
StatusReason *string
// The subdomains for the domain association.
//
// This member is required.
SubDomains []SubDomain
// Sets branch patterns for automatic subdomain creation.
AutoSubDomainCreationPatterns []string
// The required AWS Identity and Access Management (IAM) service role for the
// Amazon Resource Name (ARN) for automatically creating subdomains.
AutoSubDomainIAMRole *string
// Describes the SSL/TLS certificate for the domain association. This can be your
// own custom certificate or the default certificate that Amplify provisions for
// you.
//
// If you are updating your domain to use a different certificate, certificate
// points to the new certificate that is being created instead of the current
// active certificate. Otherwise, certificate points to the current active
// certificate.
Certificate *Certificate
// The DNS record for certificate verification.
CertificateVerificationDNSRecord *string
// The status of the domain update operation that is currently in progress. The
// following list describes the valid update states.
//
// REQUESTING_CERTIFICATE The certificate is in the process of being updated.
//
// PENDING_VERIFICATION Indicates that an Amplify managed certificate is in the
// process of being verified. This occurs during the creation of a custom domain or
// when a custom domain is updated to use a managed certificate.
//
// IMPORTING_CUSTOM_CERTIFICATE Indicates that an Amplify custom certificate is in
// the process of being imported. This occurs during the creation of a custom
// domain or when a custom domain is updated to use a custom certificate.
//
// PENDING_DEPLOYMENT Indicates that the subdomain or certificate changes are
// being propagated.
//
// AWAITING_APP_CNAME Amplify is waiting for CNAME records corresponding to
// subdomains to be propagated. If your custom domain is on Route 53, Amplify
// handles this for you automatically. For more information about custom domains,
// see [Setting up custom domains]in the Amplify Hosting User Guide.
//
// UPDATE_COMPLETE The certificate has been associated with a domain.
//
// UPDATE_FAILED The certificate has failed to be provisioned or associated, and
// there is no existing active certificate to roll back to.
//
// [Setting up custom domains]: https://docs.aws.amazon.com/amplify/latest/userguide/custom-domains.html
UpdateStatus UpdateStatus
noSmithyDocumentSerde
}
// Describes an execution job for an Amplify app.
type Job struct {
// The execution steps for an execution job, for an Amplify app.
//
// This member is required.
Steps []Step
// Describes the summary for an execution job for an Amplify app.
//
// This member is required.
Summary *JobSummary
noSmithyDocumentSerde
}
// Describes the summary for an execution job for an Amplify app.
type JobSummary struct {
// The commit ID from a third-party repository provider for the job.
//
// This member is required.
CommitId *string
// The commit message from a third-party repository provider for the job.
//
// This member is required.
CommitMessage *string
// The commit date and time for the job.
//
// This member is required.
CommitTime *time.Time
// The Amazon Resource Name (ARN) for the job.
//
// This member is required.
JobArn *string
// The unique ID for the job.
//
// This member is required.
JobId *string
// The type for the job. If the value is RELEASE , the job was manually released
// from its source by using the StartJob API. If the value is RETRY , the job was
// manually retried using the StartJob API. If the value is WEB_HOOK , the job was
// automatically triggered by webhooks.
//
// This member is required.
JobType JobType
// The start date and time for the job.
//
// This member is required.
StartTime *time.Time
// The current status for the job.
//
// This member is required.
Status JobStatus
// The end date and time for the job.
EndTime *time.Time
noSmithyDocumentSerde
}
// Describes the information about a production branch for an Amplify app.
type ProductionBranch struct {
// The branch name for the production branch.
BranchName *string
// The last deploy time of the production branch.
LastDeployTime *time.Time
// The status of the production branch.
Status *string
// The thumbnail URL for the production branch.
ThumbnailUrl *string
noSmithyDocumentSerde
}
// Describes an execution step, for an execution job, for an Amplify app.
type Step struct {
// The end date and time of the execution step.
//
// This member is required.
EndTime *time.Time
// The start date and time of the execution step.
//
// This member is required.
StartTime *time.Time
// The status of the execution step.
//
// This member is required.
Status JobStatus
// The name of the execution step.
//
// This member is required.
StepName *string
// The URL to the artifact for the execution step.
ArtifactsUrl *string
// The context for the current step. Includes a build image if the step is build.
Context *string
// The URL to the logs for the execution step.
LogUrl *string
// The list of screenshot URLs for the execution step, if relevant.
Screenshots map[string]string
// The reason for the current step status.
StatusReason *string
// The URL to the test artifact for the execution step.
TestArtifactsUrl *string
// The URL to the test configuration for the execution step.
TestConfigUrl *string
noSmithyDocumentSerde
}
// The subdomain for the domain association.
type SubDomain struct {
// The DNS record for the subdomain.
//
// This member is required.
DnsRecord *string
// Describes the settings for the subdomain.
//
// This member is required.
SubDomainSetting *SubDomainSetting
// The verified status of the subdomain
//
// This member is required.
Verified *bool
noSmithyDocumentSerde
}
// Describes the settings for the subdomain.
type SubDomainSetting struct {
// The branch name setting for the subdomain.
//
// This member is required.
BranchName *string
// The prefix setting for the subdomain.
//
// This member is required.
Prefix *string
noSmithyDocumentSerde
}
// Describes a webhook that connects repository events to an Amplify app.
type Webhook struct {
// The name for a branch that is part of an Amplify app.
//
// This member is required.
BranchName *string
// The create date and time for a webhook.
//
// This member is required.
CreateTime *time.Time
// The description for a webhook.
//
// This member is required.
Description *string
// Updates the date and time for a webhook.
//
// This member is required.
UpdateTime *time.Time
// The Amazon Resource Name (ARN) for the webhook.
//
// This member is required.
WebhookArn *string
// The ID of the webhook.
//
// This member is required.
WebhookId *string
// The URL of the webhook.
//
// This member is required.
WebhookUrl *string
noSmithyDocumentSerde
}
type noSmithyDocumentSerde = smithydocument.NoSerde
|