pub struct Builder { /* private fields */ }
Expand description

A builder for CreateApplicationInput.

Implementations§

The name of the author publishing the app.

Minimum length=1. Maximum length=127.

Pattern "^[a-z0-9](([a-z0-9]|-(?!-))*[a-z0-9])?$";

Examples found in repository?
src/client.rs (line 423)
422
423
424
425
        pub fn author(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.author(input.into());
            self
        }

The name of the author publishing the app.

Minimum length=1. Maximum length=127.

Pattern "^[a-z0-9](([a-z0-9]|-(?!-))*[a-z0-9])?$";

Examples found in repository?
src/client.rs (line 430)
429
430
431
432
        pub fn set_author(mut self, input: std::option::Option<std::string::String>) -> Self {
            self.inner = self.inner.set_author(input);
            self
        }

The description of the application.

Minimum length=1. Maximum length=256

Examples found in repository?
src/client.rs (line 436)
435
436
437
438
        pub fn description(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.description(input.into());
            self
        }

The description of the application.

Minimum length=1. Maximum length=256

Examples found in repository?
src/client.rs (line 442)
441
442
443
444
        pub fn set_description(mut self, input: std::option::Option<std::string::String>) -> Self {
            self.inner = self.inner.set_description(input);
            self
        }

A URL with more information about the application, for example the location of your GitHub repository for the application.

Examples found in repository?
src/client.rs (line 447)
446
447
448
449
        pub fn home_page_url(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.home_page_url(input.into());
            self
        }

A URL with more information about the application, for example the location of your GitHub repository for the application.

Examples found in repository?
src/client.rs (line 455)
451
452
453
454
455
456
457
        pub fn set_home_page_url(
            mut self,
            input: std::option::Option<std::string::String>,
        ) -> Self {
            self.inner = self.inner.set_home_page_url(input);
            self
        }

Appends an item to labels.

To override the contents of this collection use set_labels.

Labels to improve discovery of apps in search results.

Minimum length=1. Maximum length=127. Maximum number of labels: 10

Pattern: "^[a-zA-Z0-9+\\-_:\\/@]+$";

Examples found in repository?
src/client.rs (line 466)
465
466
467
468
        pub fn labels(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.labels(input.into());
            self
        }

Labels to improve discovery of apps in search results.

Minimum length=1. Maximum length=127. Maximum number of labels: 10

Pattern: "^[a-zA-Z0-9+\\-_:\\/@]+$";

Examples found in repository?
src/client.rs (line 476)
472
473
474
475
476
477
478
        pub fn set_labels(
            mut self,
            input: std::option::Option<std::vec::Vec<std::string::String>>,
        ) -> Self {
            self.inner = self.inner.set_labels(input);
            self
        }

A local text file that contains the license of the app that matches the spdxLicenseID value of your application. The file has the format file://<path>/<filename>.

Maximum size 5 MB

You can specify only one of licenseBody and licenseUrl; otherwise, an error results.

Examples found in repository?
src/client.rs (line 483)
482
483
484
485
        pub fn license_body(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.license_body(input.into());
            self
        }

A local text file that contains the license of the app that matches the spdxLicenseID value of your application. The file has the format file://<path>/<filename>.

Maximum size 5 MB

You can specify only one of licenseBody and licenseUrl; otherwise, an error results.

Examples found in repository?
src/client.rs (line 490)
489
490
491
492
        pub fn set_license_body(mut self, input: std::option::Option<std::string::String>) -> Self {
            self.inner = self.inner.set_license_body(input);
            self
        }

A link to the S3 object that contains the license of the app that matches the spdxLicenseID value of your application.

Maximum size 5 MB

You can specify only one of licenseBody and licenseUrl; otherwise, an error results.

Examples found in repository?
src/client.rs (line 497)
496
497
498
499
        pub fn license_url(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.license_url(input.into());
            self
        }

A link to the S3 object that contains the license of the app that matches the spdxLicenseID value of your application.

Maximum size 5 MB

You can specify only one of licenseBody and licenseUrl; otherwise, an error results.

Examples found in repository?
src/client.rs (line 504)
503
504
505
506
        pub fn set_license_url(mut self, input: std::option::Option<std::string::String>) -> Self {
            self.inner = self.inner.set_license_url(input);
            self
        }

The name of the application that you want to publish.

Minimum length=1. Maximum length=140

Pattern: "[a-zA-Z0-9\\-]+";

Examples found in repository?
src/client.rs (line 511)
510
511
512
513
        pub fn name(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.name(input.into());
            self
        }

The name of the application that you want to publish.

Minimum length=1. Maximum length=140

Pattern: "[a-zA-Z0-9\\-]+";

Examples found in repository?
src/client.rs (line 518)
517
518
519
520
        pub fn set_name(mut self, input: std::option::Option<std::string::String>) -> Self {
            self.inner = self.inner.set_name(input);
            self
        }

A local text readme file in Markdown language that contains a more detailed description of the application and how it works. The file has the format file://<path>/<filename>.

Maximum size 5 MB

You can specify only one of readmeBody and readmeUrl; otherwise, an error results.

Examples found in repository?
src/client.rs (line 525)
524
525
526
527
        pub fn readme_body(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.readme_body(input.into());
            self
        }

A local text readme file in Markdown language that contains a more detailed description of the application and how it works. The file has the format file://<path>/<filename>.

Maximum size 5 MB

You can specify only one of readmeBody and readmeUrl; otherwise, an error results.

Examples found in repository?
src/client.rs (line 532)
531
532
533
534
        pub fn set_readme_body(mut self, input: std::option::Option<std::string::String>) -> Self {
            self.inner = self.inner.set_readme_body(input);
            self
        }

A link to the S3 object in Markdown language that contains a more detailed description of the application and how it works.

Maximum size 5 MB

You can specify only one of readmeBody and readmeUrl; otherwise, an error results.

Examples found in repository?
src/client.rs (line 539)
538
539
540
541
        pub fn readme_url(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.readme_url(input.into());
            self
        }

A link to the S3 object in Markdown language that contains a more detailed description of the application and how it works.

Maximum size 5 MB

You can specify only one of readmeBody and readmeUrl; otherwise, an error results.

Examples found in repository?
src/client.rs (line 546)
545
546
547
548
        pub fn set_readme_url(mut self, input: std::option::Option<std::string::String>) -> Self {
            self.inner = self.inner.set_readme_url(input);
            self
        }

The semantic version of the application:

https://semver.org/

Examples found in repository?
src/client.rs (line 552)
551
552
553
554
        pub fn semantic_version(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.semantic_version(input.into());
            self
        }

The semantic version of the application:

https://semver.org/

Examples found in repository?
src/client.rs (line 561)
557
558
559
560
561
562
563
        pub fn set_semantic_version(
            mut self,
            input: std::option::Option<std::string::String>,
        ) -> Self {
            self.inner = self.inner.set_semantic_version(input);
            self
        }

A link to the S3 object that contains the ZIP archive of the source code for this version of your application.

Maximum size 50 MB

Examples found in repository?
src/client.rs (line 567)
566
567
568
569
        pub fn source_code_archive_url(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.source_code_archive_url(input.into());
            self
        }

A link to the S3 object that contains the ZIP archive of the source code for this version of your application.

Maximum size 50 MB

Examples found in repository?
src/client.rs (line 576)
572
573
574
575
576
577
578
        pub fn set_source_code_archive_url(
            mut self,
            input: std::option::Option<std::string::String>,
        ) -> Self {
            self.inner = self.inner.set_source_code_archive_url(input);
            self
        }

A link to a public repository for the source code of your application, for example the URL of a specific GitHub commit.

Examples found in repository?
src/client.rs (line 581)
580
581
582
583
        pub fn source_code_url(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.source_code_url(input.into());
            self
        }

A link to a public repository for the source code of your application, for example the URL of a specific GitHub commit.

Examples found in repository?
src/client.rs (line 589)
585
586
587
588
589
590
591
        pub fn set_source_code_url(
            mut self,
            input: std::option::Option<std::string::String>,
        ) -> Self {
            self.inner = self.inner.set_source_code_url(input);
            self
        }

A valid identifier from https://spdx.org/licenses/.

Examples found in repository?
src/client.rs (line 594)
593
594
595
596
        pub fn spdx_license_id(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.spdx_license_id(input.into());
            self
        }

A valid identifier from https://spdx.org/licenses/.

Examples found in repository?
src/client.rs (line 602)
598
599
600
601
602
603
604
        pub fn set_spdx_license_id(
            mut self,
            input: std::option::Option<std::string::String>,
        ) -> Self {
            self.inner = self.inner.set_spdx_license_id(input);
            self
        }

The local raw packaged AWS SAM template file of your application. The file has the format file://<path>/<filename>.

You can specify only one of templateBody and templateUrl; otherwise an error results.

Examples found in repository?
src/client.rs (line 608)
607
608
609
610
        pub fn template_body(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.template_body(input.into());
            self
        }

The local raw packaged AWS SAM template file of your application. The file has the format file://<path>/<filename>.

You can specify only one of templateBody and templateUrl; otherwise an error results.

Examples found in repository?
src/client.rs (line 617)
613
614
615
616
617
618
619
        pub fn set_template_body(
            mut self,
            input: std::option::Option<std::string::String>,
        ) -> Self {
            self.inner = self.inner.set_template_body(input);
            self
        }

A link to the S3 object containing the packaged AWS SAM template of your application.

You can specify only one of templateBody and templateUrl; otherwise an error results.

Examples found in repository?
src/client.rs (line 623)
622
623
624
625
        pub fn template_url(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.template_url(input.into());
            self
        }

A link to the S3 object containing the packaged AWS SAM template of your application.

You can specify only one of templateBody and templateUrl; otherwise an error results.

Examples found in repository?
src/client.rs (line 629)
628
629
630
631
        pub fn set_template_url(mut self, input: std::option::Option<std::string::String>) -> Self {
            self.inner = self.inner.set_template_url(input);
            self
        }

Consumes the builder and constructs a CreateApplicationInput.

Examples found in repository?
src/client.rs (line 388)
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
        pub async fn customize(
            self,
        ) -> std::result::Result<
            crate::operation::customize::CustomizableOperation<
                crate::operation::CreateApplication,
                aws_http::retry::AwsResponseRetryClassifier,
            >,
            aws_smithy_http::result::SdkError<crate::error::CreateApplicationError>,
        > {
            let handle = self.handle.clone();
            let operation = self
                .inner
                .build()
                .map_err(aws_smithy_http::result::SdkError::construction_failure)?
                .make_operation(&handle.conf)
                .await
                .map_err(aws_smithy_http::result::SdkError::construction_failure)?;
            Ok(crate::operation::customize::CustomizableOperation { handle, operation })
        }

        /// Sends the request and returns the response.
        ///
        /// If an error occurs, an `SdkError` will be returned with additional details that
        /// can be matched against.
        ///
        /// By default, any retryable failures will be retried twice. Retry behavior
        /// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
        /// set when configuring the client.
        pub async fn send(
            self,
        ) -> std::result::Result<
            crate::output::CreateApplicationOutput,
            aws_smithy_http::result::SdkError<crate::error::CreateApplicationError>,
        > {
            let op = self
                .inner
                .build()
                .map_err(aws_smithy_http::result::SdkError::construction_failure)?
                .make_operation(&self.handle.conf)
                .await
                .map_err(aws_smithy_http::result::SdkError::construction_failure)?;
            self.handle.client.call(op).await
        }

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more