Innovt Platform
Search Results for

    Show / Hide Table of Contents

    Class AssumeRoleAwsConfiguration

    Represents the configuration for assuming a role in AWS.

    Inheritance
    object
    AssumeRoleAwsConfiguration
    Implements
    IAssumeRoleAwsConfiguration
    IAwsConfiguration
    IConfiguration
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Innovt.Cloud.AWS.Configuration
    Assembly: Innovt.Cloud.AWS.dll
    Syntax
    [CLSCompliant(false)]
    public class AssumeRoleAwsConfiguration : IAssumeRoleAwsConfiguration, IAwsConfiguration, IConfiguration

    Constructors

    | Edit this page View Source

    AssumeRoleAwsConfiguration(IAwsConfiguration, string, string, string)

    Initializes a new instance of the AssumeRoleAwsConfiguration class.

    Declaration
    public AssumeRoleAwsConfiguration(IAwsConfiguration configuration, string roleArn, string roleSessionName = null, string roleExternalId = null)
    Parameters
    Type Name Description
    IAwsConfiguration configuration

    The AWS configuration.

    string roleArn

    The Amazon Resource Name (ARN) of the role to assume.

    string roleSessionName

    The name to use for the assumed role session.

    string roleExternalId

    An external ID to use when assuming the role.

    Exceptions
    Type Condition
    ArgumentNullException

    Thrown when configuration or roleArn is null.

    Properties

    | Edit this page View Source

    AccessKey

    Gets or sets the AWS access key.

    Declaration
    public string AccessKey { get; set; }
    Property Value
    Type Description
    string
    | Edit this page View Source

    AccountNumber

    Gets or sets the AWS account number.

    Declaration
    public string AccountNumber { get; set; }
    Property Value
    Type Description
    string
    | Edit this page View Source

    ExternalId

    Gets or sets the external ID to use when assuming the role.

    Declaration
    public string ExternalId { get; set; }
    Property Value
    Type Description
    string
    | Edit this page View Source

    Profile

    Gets or sets the AWS profile.

    Declaration
    public string Profile { get; set; }
    Property Value
    Type Description
    string
    | Edit this page View Source

    Region

    Gets or sets the AWS region.

    Declaration
    public string Region { get; set; }
    Property Value
    Type Description
    string
    | Edit this page View Source

    RoleArn

    Gets or sets the Amazon Resource Name (ARN) of the role to assume.

    Declaration
    public string RoleArn { get; set; }
    Property Value
    Type Description
    string
    | Edit this page View Source

    RoleSessionName

    Gets or sets the name to use for the assumed role session.

    Declaration
    public string RoleSessionName { get; set; }
    Property Value
    Type Description
    string
    | Edit this page View Source

    SecretKey

    Gets or sets the AWS secret key.

    Declaration
    public string SecretKey { get; set; }
    Property Value
    Type Description
    string

    Methods

    | Edit this page View Source

    GetCredential()

    Gets the AWS credentials for assuming the specified role.

    Declaration
    public AWSCredentials GetCredential()
    Returns
    Type Description
    AWSCredentials

    The AWS credentials for assuming the role.

    Exceptions
    Type Condition
    ConfigurationException

    Thrown when the source credentials are invalid.

    Implements

    IAssumeRoleAwsConfiguration
    IAwsConfiguration
    IConfiguration

    Extension Methods

    Extensions.IsNull(object)
    Extensions.ToStringOrDefault(object)
    SimpleMapper.MapTo<T1>(object)
    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX