/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the proton-2020-07-20.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.Proton.Model
{
///
/// Container for the parameters to the UpdateEnvironmentAccountConnection operation.
/// In an environment account, update an environment account connection to use a new IAM
/// role.
///
///
///
/// For more information, see Environment
/// account connections in the Proton User guide.
///
///
public partial class UpdateEnvironmentAccountConnectionRequest : AmazonProtonRequest
{
private string _codebuildRoleArn;
private string _componentRoleArn;
private string _id;
private string _roleArn;
///
/// Gets and sets the property CodebuildRoleArn.
///
/// The Amazon Resource Name (ARN) of an IAM service role in the environment account.
/// Proton uses this role to provision infrastructure resources using CodeBuild-based
/// provisioning in the associated environment account.
///
///
[AWSProperty(Min=1, Max=2048)]
public string CodebuildRoleArn
{
get { return this._codebuildRoleArn; }
set { this._codebuildRoleArn = value; }
}
// Check to see if CodebuildRoleArn property is set
internal bool IsSetCodebuildRoleArn()
{
return this._codebuildRoleArn != null;
}
///
/// Gets and sets the property ComponentRoleArn.
///
/// The Amazon Resource Name (ARN) of the IAM service role that Proton uses when provisioning
/// directly defined components in the associated environment account. It determines the
/// scope of infrastructure that a component can provision in the account.
///
///
///
/// The environment account connection must have a componentRoleArn
to allow
/// directly defined components to be associated with any environments running in the
/// account.
///
///
///
/// For more information about components, see Proton
/// components in the Proton User Guide.
///
///
[AWSProperty(Min=1, Max=2048)]
public string ComponentRoleArn
{
get { return this._componentRoleArn; }
set { this._componentRoleArn = value; }
}
// Check to see if ComponentRoleArn property is set
internal bool IsSetComponentRoleArn()
{
return this._componentRoleArn != null;
}
///
/// Gets and sets the property Id.
///
/// The ID of the environment account connection to update.
///
///
[AWSProperty(Required=true)]
public string Id
{
get { return this._id; }
set { this._id = value; }
}
// Check to see if Id property is set
internal bool IsSetId()
{
return this._id != null;
}
///
/// Gets and sets the property RoleArn.
///
/// The Amazon Resource Name (ARN) of the IAM service role that's associated with the
/// environment account connection to update.
///
///
[AWSProperty(Min=1, Max=2048)]
public string RoleArn
{
get { return this._roleArn; }
set { this._roleArn = value; }
}
// Check to see if RoleArn property is set
internal bool IsSetRoleArn()
{
return this._roleArn != null;
}
}
}