public override void Invoke(AWSCredentials creds, RegionEndpoint region, int maxItems)
        {
            AmazonECSConfig config = new AmazonECSConfig();

            config.RegionEndpoint = region;
            ConfigureClient(config);
            AmazonECSClient client = new AmazonECSClient(creds, config);

            ListAccountSettingsResponse resp = new ListAccountSettingsResponse();

            do
            {
                ListAccountSettingsRequest req = new ListAccountSettingsRequest
                {
                    NextToken = resp.NextToken
                    ,
                    MaxResults = maxItems
                };

                resp = client.ListAccountSettings(req);
                CheckError(resp.HttpStatusCode, "200");

                foreach (var obj in resp.Settings)
                {
                    AddObject(obj);
                }
            }while (!string.IsNullOrEmpty(resp.NextToken));
        }
Esempio n. 2
0
        public void ECSListAccountSettings()
        {
            #region to-view-your-account-settings-1549524118170

            var client   = new AmazonECSClient();
            var response = client.ListAccountSettings(new ListAccountSettingsRequest
            {
                EffectiveSettings = true
            });

            List <Setting> settings = response.Settings;

            #endregion
        }
Esempio n. 3
0
        public void ECSListAccountSettings()
        {
            #region to-view-the-account-settings-for-a-specific-iam-user-or-iam-role-1549524237932

            var client   = new AmazonECSClient();
            var response = client.ListAccountSettings(new ListAccountSettingsRequest
            {
                EffectiveSettings = true,
                PrincipalArn      = "arn:aws:iam::<aws_account_id>:user/principalName"
            });

            List <Setting> settings = response.Settings;

            #endregion
        }