コード例 #1
0
        public void ElastiCacheModifyCacheSubnetGroup()
        {
            #region modifycachesubnetgroup-1483043446226

            var response = client.ModifyCacheSubnetGroup(new ModifyCacheSubnetGroupRequest
            {
                CacheSubnetGroupName = "my-sn-grp",
                SubnetIds            = new List <string> {
                    "subnet-bcde2345"
                }
            });

            CacheSubnetGroup cacheSubnetGroup = response.CacheSubnetGroup;

            #endregion
        }
コード例 #2
0
        public void ElastiCacheCreateCacheSubnetGroup()
        {
            #region createcachesubnet-1483042274558

            var response = client.CreateCacheSubnetGroup(new CreateCacheSubnetGroupRequest
            {
                CacheSubnetGroupDescription = "Sample subnet group",
                CacheSubnetGroupName        = "my-sn-grp2",
                SubnetIds = new List <string> {
                    "subnet-6f28c982",
                    "subnet-bcd382f3",
                    "subnet-845b3e7c0"
                }
            });

            CacheSubnetGroup cacheSubnetGroup = response.CacheSubnetGroup;

            #endregion
        }