Ejemplo n.º 1
0
        public SnsTopic(AwsRegion region, string accountId, string topicName, IAwsCredential credential)
        {
            if (accountId is null)
            {
                throw new ArgumentNullException(nameof(accountId));
            }

            if (topicName is null)
            {
                throw new ArgumentNullException(nameof(topicName));
            }

            this.client = new SnsClient(region, credential);
            this.arn    = $"arn:aws:sns:{region}:{accountId}:{topicName}";
        }
Ejemplo n.º 2
0
        public SnsTopic(AwsRegion region, string accountId, string topicName, IAwsCredentials credentials)
        {
            #region Preconditions

            if (accountId == null)
            {
                throw new ArgumentNullException(nameof(accountId));
            }

            if (topicName == null)
            {
                throw new ArgumentNullException(nameof(topicName));
            }

            #endregion

            this.client = new SnsClient(region, credentials);
            this.arn    = $"arn:aws:sns:{region}:{accountId}:{topicName}";
        }