Class Arn
- Namespace
- Amazon.Runtime.Internal.Endpoints.StandardLibrary
- Assembly
- AWSSDK.Core.dll
Internal implementation of ARN (Amazon Resource Name). Used by standard library functions to parse and validate ARNs.
public class Arn : PropertyBag, IPropertyBag
- Inheritance
-
Arn
- Implements
- Inherited Members
Constructors
Arn()
public Arn()
Properties
accountId
ARN accountId
public string accountId { get; set; }
Property Value
partition
ARN partition
public string partition { get; set; }
Property Value
region
ARN region
public string region { get; set; }
Property Value
resourceId
ARN list of ResourceIDs
public List<string> resourceId { get; set; }
Property Value
service
ARN service
public string service { get; set; }
Property Value
Methods
IsArn(string)
Check if input string is a valid ARN
public static bool IsArn(string arn)
Parameters
arn
string
Returns
Parse(string)
Parses the string into an ARN object.
public static Arn Parse(string arnString)
Parameters
arnString
stringString to parse into an Arn.
Returns
- Arn
The Arn object created from the passed in string.
Exceptions
- ArgumentNullException
Thrown if arnString is null.
- ArgumentException
Thrown if the string passed in not valid ARN.
TryParse(string, out Arn)
Parses the string into an ARN object.
public static bool TryParse(string arnString, out Arn arn)
Parameters
arnString
stringString to parse into an ARN.
arn
ArnThe out parameter for the ARN object created by TryParse.
Returns
- bool
True if the string was parsed into an ARN object.