Exemple #1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="identification">Example: RdsS3AccessRole</param>
        /// <param name="roleProperties"></param>
        /// <returns></returns>
        public IRole Create(string identification, IRoleProps roleProperties)
        {
            if (string.IsNullOrEmpty(identification))
            {
                throw new ArgumentException("The identification can not be null");
            }

            var result = new Role(Scope, $"{ApplicationName}{EnvironmentName}{identification}", roleProperties);

            TagHandler.LogTag($"{ApplicationName}{EnvironmentName}{identification}", result);
            return(result);
        }
 public IRole AddRole(string identification, IRoleProps roleProperties)
 {
     return(HandlerResources.AwsCdkRoleHandler.Create(identification, roleProperties));
 }