Class AmazonResourceNameOptions
- Namespace
- Savvyio.Extensions.SimpleQueueService
- Assembly
- Savvyio.Extensions.SimpleQueueService.dll
Configuration options that is related to Amazon Resource Name (ARN).
public class AmazonResourceNameOptions : IValidatableParameterObject, IParameterObject
- Inheritance
-
AmazonResourceNameOptions
- Implements
Remarks
Constructors
AmazonResourceNameOptions()
Initializes a new instance of the AmazonResourceNameOptions class.
public AmazonResourceNameOptions()
Properties
AccountId
Gets or sets the default ID of the AWS account that owns the resource (without the hyphens) to embed in the ARN.
public string AccountId { get; set; }
Property Value
- string
The ID of the AWS account that owns the resource to embed in the ARN.
DefaultAccountId
Gets or sets the default ID of the AWS account that owns the resource (without the hyphens) to embed in the ARN. Default is "000000000000".
public static string DefaultAccountId { get; set; }
Property Value
- string
The default ID of the AWS account that owns the resource to embed in the ARN.
Remarks
For example, 123456789012.
DefaultPartition
Gets or sets the default partition in which the resource is located to embed in the ARN. Default is "aws".
public static string DefaultPartition { get; set; }
Property Value
- string
The default partition in which the resource is located to embed in the ARN.
DefaultRegion
Gets or sets the default region code to embed in the ARN. Default is "eu-west-1".
public static string DefaultRegion { get; set; }
Property Value
- string
The default region code to embed in the ARN.
Partition
Gets or sets the partition in which the resource is located to embed in the ARN.
public string Partition { get; set; }
Property Value
- string
The partition to embed in the ARN.
Region
Gets or sets the default region code to embed in the ARN.
public string Region { get; set; }
Property Value
- string
The region code to embed in the ARN.
Methods
ValidateOptions()
Determines whether the public read-write properties of this instance are in a valid state.
public void ValidateOptions()
Remarks
This method is expected to throw exceptions when one or more conditions fails to be in a valid state.
Exceptions
- InvalidOperationException
Partition cannot be null, empty or consist only of white-space characters - or - Region cannot be null, empty or consist only of white-space characters - or - AccountId cannot be null, have a length different from 12 or not be parseable to a numeric value.