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
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct UpdateAccountSettingsInput {
/// <p>The Amazon Resource Name (ARN) of the service role you want to use for provisioning pipelines. Assumed by Proton for Amazon Web Services-managed provisioning, and by customer-owned automation for self-managed provisioning.</p>
/// <p>To remove a previously configured ARN, specify an empty string.</p>
pub pipeline_service_role_arn: ::std::option::Option<::std::string::String>,
/// <p>A linked repository for pipeline provisioning. Specify it if you have environments configured for self-managed provisioning with services that include pipelines. A linked repository is a repository that has been registered with Proton. For more information, see <code>CreateRepository</code>.</p>
/// <p>To remove a previously configured repository, set <code>deletePipelineProvisioningRepository</code> to <code>true</code>, and don't set <code>pipelineProvisioningRepository</code>.</p>
pub pipeline_provisioning_repository: ::std::option::Option<crate::types::RepositoryBranchInput>,
/// <p>Set to <code>true</code> to remove a configured pipeline repository from the account settings. Don't set this field if you are updating the configured pipeline repository.</p>
pub delete_pipeline_provisioning_repository: ::std::option::Option<bool>,
/// <p>The Amazon Resource Name (ARN) of the service role you want to use for provisioning pipelines. Proton assumes this role for CodeBuild-based provisioning.</p>
pub pipeline_codebuild_role_arn: ::std::option::Option<::std::string::String>,
}
impl UpdateAccountSettingsInput {
/// <p>The Amazon Resource Name (ARN) of the service role you want to use for provisioning pipelines. Assumed by Proton for Amazon Web Services-managed provisioning, and by customer-owned automation for self-managed provisioning.</p>
/// <p>To remove a previously configured ARN, specify an empty string.</p>
pub fn pipeline_service_role_arn(&self) -> ::std::option::Option<&str> {
self.pipeline_service_role_arn.as_deref()
}
/// <p>A linked repository for pipeline provisioning. Specify it if you have environments configured for self-managed provisioning with services that include pipelines. A linked repository is a repository that has been registered with Proton. For more information, see <code>CreateRepository</code>.</p>
/// <p>To remove a previously configured repository, set <code>deletePipelineProvisioningRepository</code> to <code>true</code>, and don't set <code>pipelineProvisioningRepository</code>.</p>
pub fn pipeline_provisioning_repository(&self) -> ::std::option::Option<&crate::types::RepositoryBranchInput> {
self.pipeline_provisioning_repository.as_ref()
}
/// <p>Set to <code>true</code> to remove a configured pipeline repository from the account settings. Don't set this field if you are updating the configured pipeline repository.</p>
pub fn delete_pipeline_provisioning_repository(&self) -> ::std::option::Option<bool> {
self.delete_pipeline_provisioning_repository
}
/// <p>The Amazon Resource Name (ARN) of the service role you want to use for provisioning pipelines. Proton assumes this role for CodeBuild-based provisioning.</p>
pub fn pipeline_codebuild_role_arn(&self) -> ::std::option::Option<&str> {
self.pipeline_codebuild_role_arn.as_deref()
}
}
impl UpdateAccountSettingsInput {
/// Creates a new builder-style object to manufacture [`UpdateAccountSettingsInput`](crate::operation::update_account_settings::UpdateAccountSettingsInput).
pub fn builder() -> crate::operation::update_account_settings::builders::UpdateAccountSettingsInputBuilder {
crate::operation::update_account_settings::builders::UpdateAccountSettingsInputBuilder::default()
}
}
/// A builder for [`UpdateAccountSettingsInput`](crate::operation::update_account_settings::UpdateAccountSettingsInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct UpdateAccountSettingsInputBuilder {
pub(crate) pipeline_service_role_arn: ::std::option::Option<::std::string::String>,
pub(crate) pipeline_provisioning_repository: ::std::option::Option<crate::types::RepositoryBranchInput>,
pub(crate) delete_pipeline_provisioning_repository: ::std::option::Option<bool>,
pub(crate) pipeline_codebuild_role_arn: ::std::option::Option<::std::string::String>,
}
impl UpdateAccountSettingsInputBuilder {
/// <p>The Amazon Resource Name (ARN) of the service role you want to use for provisioning pipelines. Assumed by Proton for Amazon Web Services-managed provisioning, and by customer-owned automation for self-managed provisioning.</p>
/// <p>To remove a previously configured ARN, specify an empty string.</p>
pub fn pipeline_service_role_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.pipeline_service_role_arn = ::std::option::Option::Some(input.into());
self
}
/// <p>The Amazon Resource Name (ARN) of the service role you want to use for provisioning pipelines. Assumed by Proton for Amazon Web Services-managed provisioning, and by customer-owned automation for self-managed provisioning.</p>
/// <p>To remove a previously configured ARN, specify an empty string.</p>
pub fn set_pipeline_service_role_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.pipeline_service_role_arn = input;
self
}
/// <p>The Amazon Resource Name (ARN) of the service role you want to use for provisioning pipelines. Assumed by Proton for Amazon Web Services-managed provisioning, and by customer-owned automation for self-managed provisioning.</p>
/// <p>To remove a previously configured ARN, specify an empty string.</p>
pub fn get_pipeline_service_role_arn(&self) -> &::std::option::Option<::std::string::String> {
&self.pipeline_service_role_arn
}
/// <p>A linked repository for pipeline provisioning. Specify it if you have environments configured for self-managed provisioning with services that include pipelines. A linked repository is a repository that has been registered with Proton. For more information, see <code>CreateRepository</code>.</p>
/// <p>To remove a previously configured repository, set <code>deletePipelineProvisioningRepository</code> to <code>true</code>, and don't set <code>pipelineProvisioningRepository</code>.</p>
pub fn pipeline_provisioning_repository(mut self, input: crate::types::RepositoryBranchInput) -> Self {
self.pipeline_provisioning_repository = ::std::option::Option::Some(input);
self
}
/// <p>A linked repository for pipeline provisioning. Specify it if you have environments configured for self-managed provisioning with services that include pipelines. A linked repository is a repository that has been registered with Proton. For more information, see <code>CreateRepository</code>.</p>
/// <p>To remove a previously configured repository, set <code>deletePipelineProvisioningRepository</code> to <code>true</code>, and don't set <code>pipelineProvisioningRepository</code>.</p>
pub fn set_pipeline_provisioning_repository(mut self, input: ::std::option::Option<crate::types::RepositoryBranchInput>) -> Self {
self.pipeline_provisioning_repository = input;
self
}
/// <p>A linked repository for pipeline provisioning. Specify it if you have environments configured for self-managed provisioning with services that include pipelines. A linked repository is a repository that has been registered with Proton. For more information, see <code>CreateRepository</code>.</p>
/// <p>To remove a previously configured repository, set <code>deletePipelineProvisioningRepository</code> to <code>true</code>, and don't set <code>pipelineProvisioningRepository</code>.</p>
pub fn get_pipeline_provisioning_repository(&self) -> &::std::option::Option<crate::types::RepositoryBranchInput> {
&self.pipeline_provisioning_repository
}
/// <p>Set to <code>true</code> to remove a configured pipeline repository from the account settings. Don't set this field if you are updating the configured pipeline repository.</p>
pub fn delete_pipeline_provisioning_repository(mut self, input: bool) -> Self {
self.delete_pipeline_provisioning_repository = ::std::option::Option::Some(input);
self
}
/// <p>Set to <code>true</code> to remove a configured pipeline repository from the account settings. Don't set this field if you are updating the configured pipeline repository.</p>
pub fn set_delete_pipeline_provisioning_repository(mut self, input: ::std::option::Option<bool>) -> Self {
self.delete_pipeline_provisioning_repository = input;
self
}
/// <p>Set to <code>true</code> to remove a configured pipeline repository from the account settings. Don't set this field if you are updating the configured pipeline repository.</p>
pub fn get_delete_pipeline_provisioning_repository(&self) -> &::std::option::Option<bool> {
&self.delete_pipeline_provisioning_repository
}
/// <p>The Amazon Resource Name (ARN) of the service role you want to use for provisioning pipelines. Proton assumes this role for CodeBuild-based provisioning.</p>
pub fn pipeline_codebuild_role_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.pipeline_codebuild_role_arn = ::std::option::Option::Some(input.into());
self
}
/// <p>The Amazon Resource Name (ARN) of the service role you want to use for provisioning pipelines. Proton assumes this role for CodeBuild-based provisioning.</p>
pub fn set_pipeline_codebuild_role_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.pipeline_codebuild_role_arn = input;
self
}
/// <p>The Amazon Resource Name (ARN) of the service role you want to use for provisioning pipelines. Proton assumes this role for CodeBuild-based provisioning.</p>
pub fn get_pipeline_codebuild_role_arn(&self) -> &::std::option::Option<::std::string::String> {
&self.pipeline_codebuild_role_arn
}
/// Consumes the builder and constructs a [`UpdateAccountSettingsInput`](crate::operation::update_account_settings::UpdateAccountSettingsInput).
pub fn build(
self,
) -> ::std::result::Result<crate::operation::update_account_settings::UpdateAccountSettingsInput, ::aws_smithy_types::error::operation::BuildError>
{
::std::result::Result::Ok(crate::operation::update_account_settings::UpdateAccountSettingsInput {
pipeline_service_role_arn: self.pipeline_service_role_arn,
pipeline_provisioning_repository: self.pipeline_provisioning_repository,
delete_pipeline_provisioning_repository: self.delete_pipeline_provisioning_repository,
pipeline_codebuild_role_arn: self.pipeline_codebuild_role_arn,
})
}
}